﻿:root {
  /* ===== Brand Colors (Teal/Emerald) ===== */
  --joy-emerald-50: #F0FCFC;
  --joy-emerald-100: #CCF5F5;
  --joy-emerald-200: #99EBEB;
  --joy-emerald-300: #66DCDC;
  --joy-emerald-400: #33C9C9;
  --joy-emerald-500: #00B0B0;
  --joy-emerald-600: #009999;
  --joy-emerald-700: #007A7A;
  --joy-emerald-800: #005C5C;
  --joy-emerald-900: #003D3D;
  --joy-emerald-950: #001F1F;

  /* ===== Neutral Colors ===== */
  --joy-neutral-0: #FFFFFF;
  --joy-neutral-50: #FAFAFA;
  --joy-neutral-100: #F4F4F5;
  --joy-neutral-200: #E4E4E7;
  --joy-neutral-300: #D4D4D8;
  --joy-neutral-400: #A1A1AA;
  --joy-neutral-500: #71717A;
  --joy-neutral-600: #52525B;
  --joy-neutral-700: #3F3F46;
  --joy-neutral-800: #27272A;
  --joy-neutral-900: #18181B;
  --joy-neutral-950: #09090B;

  /* ===== Semantic Tokens ===== */
  --joy-primary: #009999;
  --joy-primary-light: #33C9C9;
  --joy-primary-dark: #007A7A;
  --joy-primary-foreground: #FFFFFF;
  --joy-primary-soft: color-mix(in srgb, var(--joy-primary) 8%, transparent);
  --joy-primary-glow: color-mix(in srgb, var(--joy-primary) 25%, transparent);
  --joy-primary-06: color-mix(in srgb, var(--joy-primary) 6%, transparent);
  --joy-primary-10: color-mix(in srgb, var(--joy-primary) 10%, transparent);
  --joy-primary-12: color-mix(in srgb, var(--joy-primary) 12%, transparent);
  --joy-primary-15: color-mix(in srgb, var(--joy-primary) 15%, transparent);
  --joy-primary-20: color-mix(in srgb, var(--joy-primary) 20%, transparent);
  --joy-primary-22: color-mix(in srgb, var(--joy-primary) 22%, transparent);
  --joy-primary-25: color-mix(in srgb, var(--joy-primary) 25%, transparent);
  --joy-primary-30: color-mix(in srgb, var(--joy-primary) 30%, transparent);
  --joy-primary-40: color-mix(in srgb, var(--joy-primary) 40%, transparent);
  --joy-primary-50: color-mix(in srgb, var(--joy-primary) 50%, transparent);

  --joy-background: #FAFAFA;
  --joy-foreground: #18181B;
  --joy-card: #FFFFFF;
  --joy-card-foreground: #18181B;
  --joy-muted: #F4F4F5;
  --joy-muted-foreground: #71717A;
  --joy-border: #E4E4E7;
  --joy-input: #E4E4E7;
  --joy-ring: #33C9C9;
  --joy-surface: #FFFFFF;
  --joy-surface-2: #FAFAFA;
  --joy-surface-3: #F4F4F5;

  /* ===== State Colors ===== */
  --joy-state-success: #10B981;
  --joy-state-success-soft: rgba(16, 185, 129, 0.1);
  --joy-state-warning: #F59E0B;
  --joy-state-warning-soft: rgba(245, 158, 11, 0.1);
  --joy-state-error: #EF4444;
  --joy-state-error-soft: rgba(239, 68, 68, 0.1);
  --joy-state-info: var(--joy-primary);
  --joy-state-info-soft: var(--joy-primary-10);

  /* ===== Radius Scale ===== */
  --joy-radius-sm: 6px;
  --joy-radius: 10px;
  --joy-radius-md: 10px;
  --joy-radius-lg: 14px;
  --joy-radius-xl: 20px;
  --joy-radius-2xl: 28px;
  --joy-radius-full: 9999px;

  /* ===== Shadow System ===== */
  --joy-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --joy-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --joy-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --joy-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --joy-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --joy-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --joy-shadow-primary: 0 10px 30px -10px color-mix(in srgb, var(--joy-primary) 40%, transparent);
  --joy-shadow-primary-lg: 0 20px 40px -15px color-mix(in srgb, var(--joy-primary) 50%, transparent);

  /* ===== Spacing Scale ===== */
  --joy-s-1: 4px;
  --joy-s-2: 8px;
  --joy-s-3: 12px;
  --joy-s-4: 16px;
  --joy-s-5: 20px;
  --joy-s-6: 24px;
  --joy-s-7: 32px;
  --joy-s-8: 48px;
  --joy-s-9: 64px;
  --joy-s-10: 96px;
  --joy-s-11: 128px;

  /* ===== Typography ===== */
  --joy-font-sans: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --joy-font-mono: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
  --joy-leading-tight: 1.2;
  --joy-leading-normal: 1.5;
  --joy-leading-relaxed: 1.7;

  /* ===== Transitions ===== */
  --joy-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --joy-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --joy-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --joy-transition-bounce: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ===== Z-Index Scale ===== */
  /* Usage: z-index: var(--joy-z-dropdown); */
  --joy-z-base: 0;          /* Normal flow */
  --joy-z-dropdown: 100;    /* Dropdowns, small menus */
  --joy-z-sticky: 200;      /* Sticky headers, nav */
  --joy-z-drawer: 300;      /* Drawers, side panels */
  --joy-z-modal: 400;       /* Modals, overlays */
  --joy-z-toast: 500;       /* Toasts, notifications */
  --joy-z-tooltip: 600;      /* Tooltips, popovers */
  --joy-z-max: 9999;        /* Floating window, top-level */

  /* ===== Legacy Variables → mapped to --joy-* ===== */
  --bg: var(--joy-background);
  --surface: var(--joy-card);
  --surface-solid: var(--joy-surface);
  --text: var(--joy-foreground);
  --muted: var(--joy-muted-foreground);
  --line: var(--joy-border);
  --blue: var(--joy-primary);
  --blue-dark: var(--joy-primary-dark);
  --black: var(--joy-neutral-900);
  --silver: var(--joy-neutral-200);
  --shadow: var(--joy-shadow-lg);
  --radius-xl: var(--joy-radius-xl);
  --radius-lg: var(--joy-radius-lg);
  --radius-md: var(--joy-radius-md);
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background-color: var(--joy-background);
  color: var(--joy-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===== Typography ===== */
.text-display {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  word-break: keep-all;
}

.text-h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  word-break: keep-all;
}

.text-h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

h1, h2, h3, p { margin-top: 0; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

/* ===== Navbar ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--joy-border);
  z-index: 1000;
  transition: all var(--joy-transition);
}

.site-header.scrolled {
  box-shadow: var(--joy-shadow-sm);
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity var(--joy-transition-fast);
}

.brand:hover { opacity: 0.85; }

.brand-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-logo { height: 32px; width: auto; }

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--joy-neutral-600);
  transition: all var(--joy-transition-fast);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--joy-radius);
  position: relative;
}

.nav-links a:hover {
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
}

.nav-links a.active {
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-start {
  padding: 8px 20px;
  background: var(--joy-primary);
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-start:hover { opacity: 0.9; }

.btn-login {
  padding: 8px 16px;
  background: none;
  color: var(--joy-neutral-500);
  border: none;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.btn-login:hover { color: var(--joy-primary); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--joy-border);
  border-radius: 8px;
  background: var(--joy-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--joy-neutral-700);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--joy-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--joy-primary-glow);
}

.btn-primary {
  background-color: var(--joy-primary);
  color: var(--joy-primary-foreground);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--joy-primary) 20%, transparent), 0 2px 8px var(--joy-primary-15);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--joy-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent), 0 2px 4px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}

.btn-secondary {
  background-color: var(--joy-surface);
  color: var(--joy-primary);
  border-color: var(--joy-border);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--joy-primary-soft);
  border-color: var(--joy-primary);
  color: var(--joy-primary-dark);
}

.btn-secondary:active:not(:disabled) {
  background-color: var(--joy-primary-12);
}

.btn-ghost {
  background-color: transparent;
  color: var(--joy-neutral-600);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--joy-muted);
  color: var(--joy-neutral-800);
}

.btn-outline {
  background-color: transparent;
  color: var(--joy-primary);
  border-color: var(--joy-primary);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--joy-primary);
  color: var(--joy-primary-foreground);
}

.btn-destructive {
  background-color: var(--joy-state-error);
  color: white;
}

.btn-destructive:hover:not(:disabled) {
  background-color: #DC2626;
  transform: translateY(-1px);
}

.btn-pill { border-radius: var(--joy-radius-full); padding: 10px 24px; }
.btn-lg { padding: 14px 32px; font-size: 16px; font-weight: 600; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 6px 10px; font-size: 12px; }

.btn-gradient {
  background: linear-gradient(135deg, var(--joy-primary) 0%, var(--joy-emerald-400) 100%);
  border: none;
  color: white;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.btn-gradient:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--joy-emerald-400) 0%, var(--joy-primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--joy-primary) 40%, transparent);
}

.btn-gradient:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.primary-button, .secondary-button, .plan-button, .text-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: white;
  background: var(--joy-primary);
  font-weight: 600;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.primary-button:hover { transform: translateY(-2px); background: var(--joy-emerald-600); }
.primary-button.small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.primary-button.full { width: 100%; }

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: transparent;
  border: 2px solid var(--joy-primary);
  color: var(--joy-primary);
  font-weight: 600;
}

.secondary-button:hover { background: color-mix(in srgb, var(--joy-primary) 5%, transparent); }
.secondary-button.small { min-height: 38px; padding: 0 16px; font-size: 13px; }

.text-button {
  background: transparent;
  color: var(--joy-neutral-500);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--joy-s-8) 0;
  padding-top: calc(64px + var(--joy-s-8));
  background: var(--joy-background);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--joy-primary-12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(51, 201, 201, 0.08), transparent);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--joy-emerald-400), transparent 70%);
  top: -10%;
  right: -5%;
  opacity: 0.25;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--joy-emerald-300), transparent 70%);
  bottom: -10%;
  left: -5%;
  opacity: 0.2;
  animation-delay: -4s;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--joy-emerald-500), transparent 70%);
  top: 40%;
  left: 15%;
  opacity: 0.08;
  animation-delay: -2s;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(color-mix(in srgb, var(--joy-primary) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--joy-primary) 3%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--joy-s-4);
}

.hero-content h1 {
  margin-bottom: var(--joy-s-6);
  color: var(--joy-neutral-900);
}

.hero-content .highlight {
  background: linear-gradient(135deg, var(--joy-primary) 0%, var(--joy-emerald-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--joy-neutral-500);
  line-height: 1.7;
  margin-bottom: var(--joy-s-7);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--joy-s-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--joy-s-8);
}

.hero-actions .btn {
  min-width: 160px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: var(--joy-s-9);
}

.trust-strip span {
  padding: 9px 16px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-surface);
  color: var(--joy-neutral-500);
  border: 1px solid var(--joy-border);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all var(--joy-transition-fast);
}

.trust-strip span:hover {
  border-color: var(--joy-primary);
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
}

/* Hero Visual - Translation Demo Card */
.hero-visual { margin-top: var(--joy-s-7); }

.hero-card {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-2xl);
  padding: var(--joy-s-6);
  box-shadow: var(--joy-shadow-xl);
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--joy-primary), transparent);
  opacity: 0.5;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--joy-s-3);
  margin-bottom: var(--joy-s-6);
  font-size: 14px;
  color: var(--joy-neutral-500);
  flex-wrap: wrap;
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--joy-radius-lg);
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.hero-lang-select {
  margin-left: auto;
  max-width: 160px;
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-full);
  padding: 8px 14px;
  background: var(--joy-surface);
  font-size: 13px;
  color: var(--joy-neutral-700);
  cursor: pointer;
  transition: all var(--joy-transition-fast);
}

.hero-lang-select:hover {
  border-color: var(--joy-primary);
}

.hero-lang-select:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-glow);
}

.divider { color: var(--joy-border); }
.text-success { color: var(--joy-state-success); }
.text-warning { color: var(--joy-state-warning); }

.hero-card-body {
  background: var(--joy-surface-2);
  border-radius: var(--joy-radius-lg);
  padding: var(--joy-s-6);
}

.translation-item {
  display: flex;
  gap: var(--joy-s-4);
  margin-bottom: var(--joy-s-5);
  align-items: flex-start;
}

.translation-item:last-child { margin-bottom: 0; }

.translation-lang {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.translation-lang.en { 
  background: linear-gradient(135deg, var(--joy-state-success), #34D399);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.translation-text {
  padding-top: var(--joy-s-2);
  color: var(--joy-neutral-700);
  line-height: 1.6;
  font-size: 15px;
}

/* ===== Section ===== */
.section {
  padding: var(--joy-s-10) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--joy-s-9);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 { margin-bottom: var(--joy-s-4); }

.section-subtitle {
  font-size: 18px;
  color: var(--joy-neutral-500);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--joy-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 12px;
  background: var(--joy-primary-soft);
  border-radius: var(--joy-radius-full);
}

/* ===== Capabilities ===== */
.capabilities { background: var(--joy-surface-2); }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--joy-s-5);
}

.capability-card {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-xl);
  padding: var(--joy-s-7);
  text-align: center;
  transition: all var(--joy-transition);
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--joy-primary), transparent);
  opacity: 0;
  transition: opacity var(--joy-transition);
}

.capability-card:hover {
  border-color: var(--joy-primary);
  transform: translateY(-6px);
  box-shadow: var(--joy-shadow-xl);
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--joy-s-5);
  background: var(--joy-primary-soft);
  border-radius: var(--joy-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--joy-primary);
  transition: all var(--joy-transition);
}

.capability-card:hover .capability-icon {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}
}

.capability-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--joy-s-2);
  color: var(--joy-neutral-900);
}

.capability-desc {
  font-size: 14px;
  color: var(--joy-neutral-500);
  line-height: 1.6;
}

/* ===== Workflow ===== */
.workflow { background: var(--joy-background); }

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--joy-s-6);
  position: relative;
}

.workflow-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--joy-s-4);
  background: var(--joy-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.step-connector {
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  z-index: 1;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--joy-s-2);
  color: var(--joy-neutral-900);
}

.step-desc {
  font-size: 14px;
  color: var(--joy-neutral-500);
  line-height: 1.5;
}

/* ===== Pricing ===== */
.pricing { background: var(--joy-surface-2); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--joy-s-5);
  margin-bottom: var(--joy-s-6);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--joy-card);
  border: 1px solid var(--joy-primary);
  border-radius: var(--joy-radius-lg);
  padding: 20px 16px;
  position: relative;
  transition: all var(--joy-transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--joy-primary);
  box-shadow: var(--joy-shadow-2);
}

.pricing-card.highlight {
  border-color: var(--joy-primary);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--joy-primary);
  padding: var(--joy-s-1) var(--joy-s-4);
  border-radius: var(--joy-radius-full);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--joy-primary);
}

.pricing-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--joy-neutral-900);
  margin-bottom: 8px;
  text-align: center;
}

.pricing-price {
  text-align: center;
  margin-bottom: 10px;
  white-space: nowrap;
}

.pricing-price .price {
  font-size: 26px;
  font-weight: 700;
  color: var(--joy-neutral-900);
}

.pricing-price .period {
  font-size: 14px;
  color: var(--joy-neutral-400);
}

.pricing-features {
  list-style: none;
  margin-bottom: 12px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--joy-neutral-600);
  margin-bottom: 6px;
}

.pricing-features svg {
  color: var(--joy-state-success);
  flex-shrink: 0;
}

.pricing-card .btn, .pricing-card .plan-button { width: 100%; }
.pricing-card .btn-lg { padding: 8px 16px; font-size: 14px; }

.plan-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  color: var(--joy-primary);
  border: 2px solid var(--joy-primary);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.plan-button:hover { background: color-mix(in srgb, var(--joy-primary) 5%, transparent); }

.plan-button.solid {
  background: var(--joy-primary);
  color: white;
  border: none;
}

.plan-button.solid:hover { background: var(--joy-emerald-600); }

/* 试用中提示 */
.plan-hint {
  text-align: center;
  font-size: 12px;
  color: var(--joy-neutral-500);
  margin-top: var(--joy-s-2);
  line-height: 1.4;
}

/* BYOK 自带API 讲解卡片 */
.byok-explain {
  max-width: 820px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--joy-primary) 4%, transparent) 0%, color-mix(in srgb, var(--joy-primary) 3%, transparent) 100%);
  border: 1px solid var(--joy-primary-15);
  border-radius: 12px;
  padding: 20px 24px;
}

.byok-explain-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--joy-neutral-900);
  margin-bottom: 8px;
}

.byok-explain-header svg {
  color: var(--joy-primary);
}

.byok-explain-intro {
  font-size: 14px;
  color: var(--joy-neutral-600);
  line-height: 1.6;
  margin: 0 0 16px;
}

.byok-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.byok-explain-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.byok-explain-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--joy-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--joy-primary);
}

.byok-explain-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--joy-neutral-900);
  margin: 0 0 4px;
}

.byok-explain-item p {
  font-size: 13px;
  color: var(--joy-neutral-600);
  line-height: 1.5;
  margin: 0;
}

.byok-explain-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.byok-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
  border: 1px solid color-mix(in srgb, var(--joy-primary) 20%, transparent);
  border-radius: 20px;
  padding: 4px 12px;
  font-weight: 500;
}

body.gold-theme .byok-explain {
  background: linear-gradient(135deg, rgba(212, 175, 95, 0.06) 0%, rgba(212, 175, 95, 0.02) 100%);
  border-color: rgba(212, 175, 95, 0.2);
}

body.gold-theme .byok-explain-icon {
  background: rgba(212, 175, 95, 0.1);
  color: #d4af5f;
}

body.gold-theme .byok-benefit-pill {
  color: #d4af5f;
  background: rgba(212, 175, 95, 0.08);
  border-color: rgba(212, 175, 95, 0.25);
}

@media (max-width: 768px) {
  .byok-explain-grid { grid-template-columns: 1fr; }
}

/* 首页省钱测算开关栏 */
.pricing-savings-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* 首页4套餐并排 */
.pricing-main-grid {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
}

/* 首页2加油包并排居中 */
.pricing-topup-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
}

/* 自带API标签 */
.byok-tag {
  font-size: 11px;
  color: var(--joy-primary);
  font-weight: 600;
  margin-left: 4px;
}

body.gold-theme .byok-tag {
  color: #d4af5f;
}

/* Addon Card */
.addon-card {
  background: linear-gradient(135deg, var(--joy-primary-soft) 0%, transparent 100%);
  border: 1px solid var(--joy-primary);
  border-radius: var(--joy-radius-xl);
  padding: var(--joy-s-6);
  max-width: 700px;
  margin: 0 auto;
}

.addon-badge {
  display: inline-block;
  background: var(--joy-primary);
  color: white;
  padding: var(--joy-s-1) var(--joy-s-3);
  border-radius: var(--joy-radius-full);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: var(--joy-s-4);
}

.addon-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--joy-s-6);
  flex-wrap: wrap;
}

.addon-info { flex: 1; min-width: 200px; }

.addon-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--joy-neutral-900);
  margin-bottom: var(--joy-s-2);
}

.addon-price { margin-bottom: var(--joy-s-2); }
.addon-price .price { font-size: 28px; font-weight: 700; color: var(--joy-neutral-900); }
.addon-price .period { font-size: 14px; color: var(--joy-neutral-400); }

.addon-desc {
  font-size: 14px;
  color: var(--joy-neutral-500);
  margin-bottom: var(--joy-s-3);
}

.addon-features { list-style: none; }
.addon-features li {
  display: flex;
  align-items: center;
  gap: var(--joy-s-2);
  font-size: 13px;
  color: var(--joy-neutral-500);
  margin-bottom: var(--joy-s-1);
}

.addon-features svg { color: var(--joy-primary); flex-shrink: 0; }

.addon-purchase {
  display: flex;
  flex-direction: column;
  gap: var(--joy-s-3);
  align-items: stretch;
  min-width: 200px;
}

.topup-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.topup-quantity button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius);
  background: var(--joy-surface);
  cursor: pointer;
  font-size: 18px;
  color: var(--joy-neutral-700);
  transition: all 0.15s ease;
}

.topup-quantity button:hover { border-color: var(--joy-primary); color: var(--joy-primary); }

.topup-quantity input {
  width: 60px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius);
  background: var(--joy-surface);
  font-size: 15px;
}

.topup-quantity span { font-size: 14px; color: var(--joy-neutral-500); }

.topup-buy-button { white-space: nowrap; }

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, var(--joy-emerald-700) 0%, var(--joy-primary) 50%, var(--joy-emerald-400) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.cta-content { 
  text-align: center; 
  position: relative;
  z-index: 1;
}

.cta-content h2 { color: white; margin-bottom: var(--joy-s-3); }

.cta-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: var(--joy-s-7);
}

.cta .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  backdrop-filter: blur(10px);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ===== Footer ===== */
.footer {
  background: var(--joy-neutral-50);
  color: var(--joy-neutral-600);
  padding: 80px 0 32px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--joy-primary), transparent);
  opacity: 0.3;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
}

.footer-brand { padding-right: 48px; }

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .brand-text {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-emerald-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 14px;
  color: var(--joy-neutral-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--joy-radius);
  background: var(--joy-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--joy-neutral-500);
  transition: all var(--joy-transition-fast);
}

.footer-socials a:hover {
  background: var(--joy-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--joy-neutral-800);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }

.footer-column a {
  font-size: 14px;
  color: var(--joy-neutral-600);
  text-decoration: none;
  transition: all var(--joy-transition-fast);
  display: inline-block;
}

.footer-column a:hover { 
  color: var(--joy-emerald-400); 
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--joy-neutral-200);
  text-align: center;
  font-size: 13px;
  color: var(--joy-neutral-500);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--joy-neutral-600);
  font-size: 13px;
  transition: color var(--joy-transition-fast);
}

.footer-bottom-links a:hover { color: var(--joy-emerald-400); }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 84px 24px 20px;
}

.modal.show { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(100%, 450px);
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 30px;
  border-radius: var(--joy-radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--joy-shadow-3);
  border: 1px solid var(--joy-border);
  animation: modalIn 0.22s ease both;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--joy-surface-3);
  cursor: pointer;
  font-size: 24px;
  color: var(--joy-neutral-500);
}

.modal-close:hover { background: var(--joy-neutral-100); }

.tab-switch, .pay-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--joy-surface-3);
}

.tab, .pay-tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--joy-neutral-500);
  font-weight: 600;
  transition: all 0.15s ease;
}

.tab.active, .pay-tab.active {
  color: var(--joy-neutral-900);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-form { display: grid; gap: 14px; margin-top: 24px; }

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--joy-neutral-600);
  font-size: 14px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--joy-input);
  border-radius: var(--joy-radius);
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-15);
}

.auth-form input::placeholder { color: var(--joy-neutral-400); }

.captcha-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.captcha-row label { flex: 1; }

.checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--joy-primary);
}

.signup-only { display: none !important; }
.auth-card.signup-mode .signup-only { display: grid !important; }
.auth-card.signup-mode .captcha-row.signup-only { display: flex !important; }

.forgot-password {
  font-size: 13px;
  color: var(--joy-primary);
  text-decoration: none;
  justify-self: end;
}

.forgot-password:hover { text-decoration: underline; }

.email-code-row { display: flex; gap: 8px; }
.email-code-row input { flex: 1; }
.email-code-row .secondary-button { white-space: nowrap; }

.pay-tabs { grid-template-columns: repeat(4, 1fr); }

.stripe-redirect-hint { text-align: center; padding: 20px 10px; }
.stripe-redirect-hint p { margin: 0 0 6px; color: var(--joy-neutral-900); font-size: 14px; }
.stripe-redirect-sub { color: var(--joy-neutral-500) !important; font-size: 12px !important; }
.stripe-pay-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background: #635bff;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.stripe-pay-btn:hover { background: #5046e5; }

.qr-box {
  width: 210px;
  height: 210px;
  margin: 20px auto;
  padding: 18px;
  border-radius: var(--joy-radius-xl);
  background: white;
  border: 1px solid var(--joy-border);
  display: grid;
  place-items: center;
  gap: 8px;
}

.qr-pattern {
  width: 100%;
  height: 100%;
  border-radius: var(--joy-radius);
  background:
    linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 28px 28px,
    linear-gradient(#111 10px, transparent 10px) 0 0 / 28px 28px,
    radial-gradient(circle at 20% 20%, #111 0 24px, transparent 25px),
    radial-gradient(circle at 80% 20%, #111 0 24px, transparent 25px),
    radial-gradient(circle at 20% 80%, #111 0 24px, transparent 25px),
    #fff;
  opacity: 0.88;
}

.pay-hint { text-align: center; color: var(--joy-neutral-500); }

.payment-qr-img { width: 160px; height: 160px; object-fit: contain; border-radius: 12px; }
.payment-order-no { color: var(--joy-neutral-500); font-size: 11px; word-break: break-all; text-align: center; }

.form-note, .modal-subtitle { color: var(--joy-neutral-500); }
.modal-subtitle { font-size: 15px; margin-bottom: 4px; }
.form-note { font-size: 13px; margin-top: 16px; text-align: center; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  z-index: 9999;
  min-width: 240px;
  max-width: calc(100% - 40px);
  padding: 14px 18px;
  border-radius: 999px;
  color: white;
  background: rgba(18, 18, 23, 0.88);
  backdrop-filter: blur(12px);
  text-align: center;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); gap: var(--joy-s-8); }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-main-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
  .pricing-topup-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; margin-bottom: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .nav.open .nav-links, .nav.open .nav-actions {
    display: grid;
    width: 100%;
    gap: 14px;
  }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(64px + var(--joy-s-4)); }
  .capabilities-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; gap: var(--joy-s-6); }
  .addon-content { flex-direction: column; text-align: center; }
  .addon-content .btn, .addon-content .plan-button { width: 100%; }
  .footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ===== 个人中心页面 ===== */
.pc-container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: calc(64px + 40px) 0 80px;
}

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.pc-header h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.04em; margin-bottom: 8px; }
.pc-header p { color: var(--muted); font-size: 16px; margin: 0; }

.pc-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

.pc-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
}

.pc-card-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; letter-spacing: -0.01em; }

/* 个人信息标题栏（标题+编辑按钮） */
.profile-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  min-height: 44px;
  margin-bottom: 0;
}

.profile-title-action {
  background: none;
  border: none;
  color: var(--joy-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.profile-title-action:hover {
  background: var(--joy-primary-soft);
}

/* 黑金主题下编辑按钮金色 */
.gold-theme .profile-title-action {
  color: var(--gold-text) !important;
  text-shadow: 0 0 6px var(--gold-glow);
}
.gold-theme .profile-title-action:hover {
  background: var(--gold-soft) !important;
}
/* 编辑状态（保存按钮）使用主色调 */
.profile-title-action.saving {
  color: #fff !important;
  background: var(--joy-primary);
  text-shadow: none;
}
.gold-theme .profile-title-action.saving {
  background: var(--gold-grad) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

.avatar-display { position: relative; text-align: center; margin-bottom: 16px; }

.avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--joy-primary), #6366f1);
  color: white;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--joy-primary) 20%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-large:hover { transform: scale(1.04); box-shadow: 0 14px 36px color-mix(in srgb, var(--joy-primary) 28%, transparent); }

.avatar-large img { width: 100%; height: 100%; border-radius: 28px; object-fit: cover; }

/* 头像选择菜单 */
.avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.96) translateY(-6px);
  min-width: 140px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
}

.avatar-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1) translateY(0);
}

.avatar-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.avatar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  color: #1d1d1f;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.avatar-menu-item:hover { background: var(--joy-primary-soft); }

.avatar-menu-icon { font-size: 16px; line-height: 1; }
.avatar-menu-text { flex: 1; font-weight: 500; }
.avatar-menu-arrow { color: #c7c7cc; font-size: 16px; font-weight: 600; line-height: 1; }

/* 用户信息徽章 */
.user-info-badge {
  position: relative;
  text-align: center;
  padding: 14px 16px 12px;
  background: rgba(245, 245, 247, 0.6);
  border-radius: 12px;
}

.user-info-badge-name {
  font-size: 16px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info-badge-email {
  font-size: 12px;
  color: #86868b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info-badge-points {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--joy-primary);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  box-shadow: 0 2px 8px var(--joy-primary-25);
}

.user-info-badge-points:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.user-info-badge-points.points-gold {
  background: var(--gold-grad) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 2px 10px var(--gold-glow), inset 0 1px 0 rgba(255, 235, 150, 0.3) !important;
}

/* 黑金徽章整体样式（言值 > 500） */
.user-info-badge.badge-gold {
  background: linear-gradient(135deg, #3d3420 0%, #6b5a38 35%, #a8894f 70%, #d4af5f 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow:
    0 4px 20px rgba(255, 190, 50, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 235, 150, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-info-badge.badge-gold:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(255, 190, 50, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 235, 150, 0.4),
    0 0 25px rgba(255, 200, 80, 0.15);
  border-color: rgba(255, 215, 0, 0.55);
}

.user-info-badge.badge-gold .user-info-badge-name {
  color: #fff8dc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.user-info-badge.badge-gold .user-info-badge-email {
  color: rgba(255, 248, 220, 0.7);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.avatar-option {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.avatar-option:hover { transform: scale(1.08); }
.avatar-option.selected { border-color: var(--blue); box-shadow: 0 4px 12px var(--joy-primary-25); }

.avatar-upload-btn {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(245, 245, 247, 0.6);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
}

.avatar-upload-btn:hover { background: color-mix(in srgb, var(--joy-primary) 5%, transparent); color: var(--blue); }

.pc-form { display: grid; gap: 18px; }
.pc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pc-field { display: grid; gap: 6px; }
.pc-field label { font-size: 13px; font-weight: 600; color: rgba(18, 18, 23, 0.72); }
.pc-field label .required { color: #ff3b30; margin-left: 2px; }

.pc-field input, .pc-field select, .pc-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  font-size: 15px;
}

.pc-field textarea { min-height: 80px; padding: 12px 14px; resize: vertical; }

.pc-field input:focus, .pc-field select:focus, .pc-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--joy-primary-12);
}

.pc-save-btn {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s ease;
}

.pc-save-btn:hover { opacity: 0.85; }

.pc-subscription-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(245, 245, 247, 0.8);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.pc-subscription-item.active { border-color: rgba(48, 209, 88, 0.3); background: rgba(48, 209, 88, 0.04); }

.pc-sub-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pc-sub-name { font-weight: 600; font-size: 15px; }

.pc-sub-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pc-sub-status.active { background: rgba(48, 209, 88, 0.15); color: #248a3d; }
.pc-sub-status.expired { background: rgba(255, 59, 48, 0.1); color: #ff3b30; }
.pc-sub-status.cancelled { background: rgba(142, 142, 147, 0.15); color: #8e8e93; }
.pc-sub-status.pending { background: rgba(255, 149, 0, 0.15); color: #c77c00; }

/* 按使用优先级区分的来源框背景 */
.pc-source-in-use { background: rgba(48, 209, 88, 0.06) !important; border-color: rgba(48, 209, 88, 0.2) !important; }
.pc-source-pending { background: rgba(255, 149, 0, 0.06) !important; border-color: rgba(255, 149, 0, 0.2) !important; }
.pc-source-exhausted { background: rgba(48, 209, 88, 0.04) !important; border-color: rgba(48, 209, 88, 0.12) !important; }

.pc-sub-meta {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pc-trial-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--joy-primary-06), rgba(99, 102, 241, 0.04));
  border: 1px solid var(--joy-primary-12);
  margin-bottom: 16px;
}

.pc-trial-box .pc-sub-name { color: var(--blue); }

.pc-trial-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--joy-primary) 10%, transparent);
  margin-top: 10px;
  overflow: hidden;
}

.pc-trial-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.4s ease;
}

/* 语音包余额框 — 与免费体验框结构一致，琥珀色调区分 */
.pc-topup-box {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.06), rgba(255, 204, 0, 0.04));
  border: 1px solid rgba(255, 149, 0, 0.15);
  margin-bottom: 16px;
}
.pc-topup-box .pc-sub-name { color: #c77c00; }
.pc-topup-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #ff9500;
  transition: width 0.4s ease;
}

.pc-upgrade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }

.pc-upgrade-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(245, 245, 247, 0.8);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.pc-upgrade-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.pc-upgrade-card .plan-name { font-size: 14px; }
.pc-upgrade-card h4 { font-size: 22px; margin: 6px 0; letter-spacing: -0.02em; }
.pc-upgrade-card h4 span { font-size: 13px; opacity: 0.5; font-weight: 600; }

.pc-empty { color: var(--muted); font-size: 14px; padding: 20px 0; text-align: center; }

/* ===== 折叠展开组件 ===== */
.collapsible-section {
  position: relative;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.collapsible-section.expanded {
  max-height: none;
}
.collapsible-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgb(255, 255, 255));
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.collapsible-section.expanded .collapsible-fade {
  opacity: 0;
}
.collapsible-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.95));
  border: 1px solid var(--line);
  border-top-color: transparent;
  border-radius: 0 0 12px 12px;
  color: var(--link);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0;
}
.collapsible-toggle-btn:hover {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--joy-primary) 0%, transparent), var(--joy-primary-06));
  border-color: color-mix(in srgb, var(--joy-primary) 20%, transparent);
  border-top-color: transparent;
}
.collapsible-toggle-btn .toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 12px;
}
.collapsible-toggle-btn.expanded .toggle-arrow {
  transform: rotate(180deg);
}

.device-usage-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.device-usage-summary span {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.8);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.device-usage-summary b { color: var(--text); font-weight: 600; }

.device-usage-list { display: flex; flex-direction: column; gap: 0; max-height: 280px; overflow-y: auto; }
.device-usage-list::-webkit-scrollbar { width: 5px; }
.device-usage-list::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }
.device-usage-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
.device-usage-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

.device-usage-item {
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: background 0.15s ease;
}

.device-usage-item:last-child { border-bottom: none; }

.device-usage-item.active { background: rgba(48, 209, 88, 0.03); }

.device-usage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.device-usage-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.device-usage-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  outline: none;
  border-radius: 4px;
  padding: 2px 4px;
  transition: background 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-usage-plan {
  font-size: 13px;
  font-weight: 600;
  color: var(--joy-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-usage-account {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-usage-date {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

/* 兴趣爱好标签输入 */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  background: color-mix(in srgb, var(--joy-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--joy-primary) 20%, transparent);
  border-radius: 16px;
  font-size: 13px;
  color: var(--joy-primary);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.tag-chip:hover {
  background: var(--joy-primary-15);
  border-color: color-mix(in srgb, var(--joy-primary) 40%, transparent);
}

body.gold-theme .tag-chip {
  background: rgba(184, 148, 63, 0.12);
  border-color: rgba(184, 148, 63, 0.25);
  color: var(--joy-primary);
}

.tag-chip-text {
  outline: none;
  white-space: nowrap;
}

.tag-chip-text[contenteditable="true"] {
  background: white;
  border-radius: 12px;
  padding: 0 4px;
}

.tag-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--joy-primary-15);
  color: var(--joy-primary);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.15s ease;
}

.tag-chip-remove:hover {
  background: #ff3b30;
  color: white;
}

.device-usage-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.device-usage-edit-btn:hover {
  background: var(--joy-primary-soft);
  color: var(--blue);
}

.device-usage-edit-input {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 2px 6px;
  outline: none;
  flex: 1;
  min-width: 0;
  box-shadow: 0 0 0 2px var(--joy-primary-15);
}

.device-usage-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 400;
  min-width: 50px;
  text-align: center;
}

.device-usage-status.active {
  background: rgba(48, 209, 88, 0.12);
  color: #30d158;
}

.device-usage-status.stopped {
  background: rgba(142, 142, 147, 0.12);
  color: #8e8e93;
}

.device-usage-details {
  display: none;
  padding: 0 12px 10px;
}

.device-usage-item.expanded .device-usage-details {
  display: block;
}

.device-usage-chevron {
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.2s ease;
  margin-left: auto;
}
.device-usage-item.expanded .device-usage-chevron {
  transform: rotate(90deg);
}

.device-usage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.usage-history {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 6px;
  margin-top: 6px;
}

.usage-record {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 3px 0;
}

.usage-history-toggle {
  text-align: center;
  font-size: 11px;
  color: var(--blue);
  margin-top: 6px;
  cursor: pointer;
  user-select: none;
}

.usage-history-toggle:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pc-form-row { grid-template-columns: 1fr; }
  .pc-upgrade-grid { grid-template-columns: 1fr; }
}

/* ===== 实时翻译页面 ===== */
.meeting-page {
  display: flex;
  flex-direction: row;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 80px;
  min-height: calc(100vh - 64px);
  gap: 0;
  align-items: stretch;
  /* 让底部音频栏固定在视口底部 */
  padding-bottom: 0;
}

.meeting-main { display: flex; flex-direction: column; gap: 16px; }

.meeting-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.meeting-toolbar-left { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; white-space: nowrap; }

.meeting-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

.meeting-status .live-dot { background: #8e8e93; box-shadow: none; }

.meeting-status.recording .live-dot {
  background: #ff3b30;
  box-shadow: 0 0 0 6px rgba(255, 59, 48, 0.12);
  animation: pulse 1.5s ease-in-out infinite;
}

.asr-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(142, 142, 147, 0.22);
  background: rgba(142, 142, 147, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.asr-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8e8e93;
  box-shadow: none;
  flex: 0 0 auto;
}

.asr-status.connecting {
  border-color: var(--joy-primary-25);
  background: var(--joy-primary-soft);
  color: var(--joy-primary-dark);
}

.asr-status.connecting .asr-status-dot {
  background: var(--joy-primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.asr-status.connected {
  border-color: rgba(48, 209, 88, 0.25);
  background: rgba(48, 209, 88, 0.10);
  color: #248a3d;
}

.asr-status.connected .asr-status-dot {
  background: #30d158;
  box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.12);
}

.asr-status.manual {
  border-color: rgba(142, 142, 147, 0.25);
  background: rgba(142, 142, 147, 0.10);
  color: #6e6e73;
}

.asr-status.manual .asr-status-dot {
  background: #8e8e93;
  box-shadow: none;
}

.asr-status.error {
  border-color: rgba(255, 59, 48, 0.25);
  background: rgba(255, 59, 48, 0.10);
  color: #d70015;
}

.asr-status.error .asr-status-dot {
  background: #ff3b30;
  box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.10);
}

/* ===== 服务状态灯（ASR / MT）===== */
.service-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(142, 142, 147, 0.22);
  background: rgba(142, 142, 147, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.service-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8e8e93;
  box-shadow: none;
  flex: 0 0 auto;
}

/* idle 状态 */
.service-status.idle {
  border-color: rgba(142, 142, 147, 0.22);
  background: rgba(142, 142, 147, 0.08);
  color: var(--muted);
}
.service-status.idle .service-status-dot {
  background: #8e8e93;
}

/* connecting 状态 */
.service-status.connecting {
  border-color: var(--joy-primary-25);
  background: var(--joy-primary-soft);
  color: var(--joy-primary-dark);
}
.service-status.connecting .service-status-dot {
  background: var(--joy-primary);
  animation: pulse 1.5s ease-in-out infinite;
}

/* 用户 BYOK 运行中（绿色） */
.service-status.user {
  border-color: rgba(48, 209, 88, 0.25);
  background: rgba(48, 209, 88, 0.10);
  color: #248a3d;
}
.service-status.user .service-status-dot {
  background: #30d158;
  box-shadow: 0 0 0 5px rgba(48, 209, 88, 0.12);
}

/* 系统 API 运行中（蓝色） */
.service-status.system {
  border-color: var(--joy-primary-25);
  background: var(--joy-primary-12);
  color: var(--joy-primary-dark);
}
.service-status.system .service-status-dot {
  background: var(--joy-primary);
  box-shadow: 0 0 0 5px var(--joy-primary-12);
}

/* error 状态 */
.service-status.error {
  border-color: rgba(255, 59, 48, 0.25);
  background: rgba(255, 59, 48, 0.10);
  color: #d70015;
}
.service-status.error .service-status-dot {
  background: #ff3b30;
  box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.10);
}

/* paused 状态（仅原文/仅总结模式，MT 已暂停） */
.service-status.paused {
  border-color: rgba(255, 149, 0, 0.25);
  background: rgba(255, 149, 0, 0.10);
  color: #b25000;
}
.service-status.paused .service-status-dot {
  background: #ff9500;
  box-shadow: 0 0 0 5px rgba(255, 149, 0, 0.12);
}

/* ===== 术语回顾弹窗 ===== */
.term-review-modal {
  width: min(100%, 560px);
}

.term-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
  max-height: 50vh;
  overflow-y: auto;
  scrollbar-width: thin;
}

.term-review-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--joy-border);
  background: var(--joy-neutral-50);
  flex-wrap: wrap;
}

.term-review-item .term-original {
  font-size: 13px;
  font-weight: 700;
  color: var(--joy-neutral-900);
  min-width: 60px;
}

.term-review-item .term-arrow {
  color: var(--joy-neutral-400);
  font-size: 13px;
}

.term-review-item .term-corrected {
  font-size: 13px;
  font-weight: 600;
  color: var(--joy-emerald-600);
  min-width: 60px;
}

.term-review-item .term-translation-input {
  flex: 1;
  min-width: 100px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--joy-border);
  border-radius: 8px;
  background: white;
  font-size: 13px;
}

.term-review-item .term-translation-input:focus {
  outline: none;
  border-color: var(--joy-emerald-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 131, 0.12);
}

.term-review-item .term-category-select {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--joy-border);
  border-radius: 8px;
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--joy-neutral-700);
  cursor: pointer;
}

.term-review-item .term-status {
  font-size: 11px;
  color: var(--joy-emerald-600);
  margin-left: auto;
  white-space: nowrap;
}

.term-review-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.meeting-toolbar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap; }

.meeting-lang-select {
  min-height: 40px;
  width: 8em;
  min-width: 8em;
  max-width: 8em;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
}

.meeting-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.meeting-btn.start { background: #30d158; color: white; box-shadow: 0 8px 24px rgba(48, 209, 88, 0.25); }
.meeting-btn.start:hover { background: #248a3d; }
.meeting-btn.stop { background: #ff3b30; color: white; box-shadow: 0 8px 24px rgba(255, 59, 48, 0.25); }
.meeting-btn.stop:hover { background: #d70015; }
.meeting-btn.secondary { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); color: var(--text); }
.meeting-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 转写区域 */
.transcript-area {
  flex: 1;
  min-height: 400px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
}

.transcript-entry {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(245, 245, 247, 0.6);
  border-left: 4px solid var(--blue);
  animation: fadeInUp 0.3s ease;
}

.transcript-entry[data-speaker="1"] { border-left-color: var(--joy-primary); }
.transcript-entry[data-speaker="2"] { border-left-color: #ff9500; }
.transcript-entry[data-speaker="3"] { border-left-color: #af52de; }
.transcript-entry[data-speaker="4"] { border-left-color: #30d158; }
.transcript-entry[data-speaker="5"] { border-left-color: #ff3b30; }

.transcript-speaker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.transcript-speaker .speaker-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: white;
}

.transcript-speaker[data-speaker="1"] .speaker-avatar { background: var(--joy-primary); }
.transcript-speaker[data-speaker="2"] .speaker-avatar { background: #ff9500; }
.transcript-speaker[data-speaker="3"] .speaker-avatar { background: #af52de; }
.transcript-speaker[data-speaker="4"] .speaker-avatar { background: #30d158; }
.transcript-speaker[data-speaker="5"] .speaker-avatar { background: #ff3b30; }
.transcript-speaker[data-speaker="6"] .speaker-avatar { background: #5856d6; }
.transcript-speaker[data-speaker="7"] .speaker-avatar { background: #00c7be; }
.transcript-speaker[data-speaker="8"] .speaker-avatar { background: #ff2d55; }
.transcript-speaker[data-speaker="9"] .speaker-avatar { background: #34c759; }
.transcript-speaker[data-speaker="10"] .speaker-avatar { background: #5ac8fa; }
.transcript-speaker[data-speaker="11"] .speaker-avatar { background: #ffd60a; }
.transcript-speaker[data-speaker="12"] .speaker-avatar { background: #bf5af2; }
.transcript-speaker[data-speaker="0"] .speaker-avatar { background: var(--joy-primary); }

.transcript-time {
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
  font-size: 12px;
}

.transcript-original { font-size: 15px; line-height: 1.6; color: var(--text); margin-bottom: 6px; }

.transcript-translation {
  font-size: 15px;
  line-height: 1.6;
  color: var(--blue);
  font-weight: 500;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.transcript-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 16px; }
.transcript-empty .icon { font-size: 48px; display: block; margin-bottom: 16px; color: var(--muted); }

/* ===== Phase 1.1: 术语高亮 ===== */
.term-highlight {
  background: var(--joy-primary-soft);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: var(--joy-primary);
  cursor: pointer;
  border-radius: 3px;
  padding: 1px 3px;
  margin: 0 1px;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.term-highlight:hover {
  background: var(--joy-primary-glow);
  color: var(--joy-primary);
}
/* Tooltip via ::after — shows data-translation on hover */
.term-highlight::after {
  content: attr(data-translation);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--joy-surface-3, #1a1a2e);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.18s ease;
  box-shadow: var(--joy-shadow-md, 0 4px 6px -1px rgba(0,0,0,0.2));
}
.term-highlight::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--joy-surface-3, #1a1a2e);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.term-highlight:hover::after,
.term-highlight:hover::before {
  opacity: 1;
}
/* Night mode variant */
html[data-night="true"] .term-highlight {
  background: var(--joy-primary-soft);
  text-decoration-color: var(--joy-ring, #2DD4D4);
}
html[data-night="true"] .term-highlight:hover {
  background: var(--joy-primary-glow);
  color: var(--joy-ring, #2DD4D4);
}
html[data-night="true"] .term-highlight::after {
  background: var(--joy-surface-3, #283044);
  box-shadow: var(--joy-shadow-md, 0 4px 6px -1px rgba(0,0,0,0.5));
}
html[data-night="true"] .term-highlight::before {
  border-top-color: var(--joy-surface-3, #283044);
}

/* ===== 纠词闪光高亮（仅纠正后显示一次，3秒后消失） ===== */
.correction-flash {
  background: rgba(255, 193, 7, 0.35);
  border-radius: 3px;
  padding: 1px 3px;
  margin: 0 1px;
  animation: correctionFlashFade 3s ease-out forwards;
}
@keyframes correctionFlashFade {
  0% { background: rgba(255, 193, 7, 0.5); }
  70% { background: rgba(255, 193, 7, 0.3); }
  100% { background: transparent; }
}
html[data-night="true"] .correction-flash {
  animation: correctionFlashFadeNight 3s ease-out forwards;
}
@keyframes correctionFlashFadeNight {
  0% { background: rgba(255, 193, 7, 0.3); }
  70% { background: rgba(255, 193, 7, 0.15); }
  100% { background: transparent; }
}

/* 右侧总结面板 */
.meeting-sidebar { display: flex; flex-direction: column; gap: 16px; }

.summary-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.summary-header h3 { font-size: 18px; font-weight: 800; margin: 0; }

.summary-countdown {
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--joy-primary) 10%, transparent);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.summary-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.summary-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.summary-speaker-label {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-speaker-label .dot-sm { width: 8px; height: 8px; border-radius: 50%; }
.summary-speaker-label[data-speaker="1"] .dot-sm { background: var(--joy-primary); }
.summary-speaker-label[data-speaker="2"] .dot-sm { background: #ff9500; }
.summary-speaker-label[data-speaker="3"] .dot-sm { background: #af52de; }
.summary-speaker-label[data-speaker="4"] .dot-sm { background: #30d158; }
.summary-speaker-label[data-speaker="5"] .dot-sm { background: #ff3b30; }

.summary-content { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-wrap: break-word; }

.summary-action {
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--joy-primary-06), rgba(99, 102, 241, 0.04));
  border: 1px solid var(--joy-primary-12);
}

.summary-action-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.summary-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 30px 10px; }

/* 试用时长显示 */
.trial-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--joy-primary-06);
  border: 1px solid var(--joy-primary-12);
  font-size: 14px;
}

.trial-timer .timer-icon { font-size: 18px; }
.trial-timer .timer-text { font-weight: 700; color: var(--blue); }
.trial-timer.expired { background: rgba(255, 59, 48, 0.06); border-color: rgba(255, 59, 48, 0.12); }
.trial-timer.expired .timer-text { color: #ff3b30; }

@media (max-width: 1100px) {
  .meeting-page { grid-template-columns: 1fr; }
  .transcript-area { max-height: 500px; }
  .summary-panel { max-height: none; }
}

@media (max-width: 680px) {
  .meeting-toolbar { flex-direction: row; align-items: center; }
  .meeting-toolbar-left, .meeting-toolbar-right { flex-wrap: nowrap; }
  .meeting-lang-select { width: 8em; }
  .avatar-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ===== 本轮优化：主页面与套餐分组 ===== */
.feature-grid { grid-template-columns: repeat(5, 1fr); }

.pricing-title { white-space: nowrap; font-size: clamp(34px, 3.4vw, 52px); }

.pricing-groups {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.pricing-group {
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(18px);
}

.monthly-group { background: rgba(255, 255, 255, 0.56); }

.topup-group { background: linear-gradient(135deg, color-mix(in srgb, var(--joy-primary) 7%, transparent), rgba(255, 255, 255, 0.78)); }

.pricing-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.pricing-group-header span { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.pricing-group-header small { color: var(--muted); }

.monthly-pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }

.monthly-pricing-grid .pricing-card { min-height: 390px; padding: 24px; }
.monthly-pricing-grid .pricing-card h3 { font-size: 34px; }
.monthly-pricing-grid .pricing-card ul { margin: 18px 0; }
.monthly-pricing-grid .pricing-card.featured { transform: none; }

.topup-group .pricing-card.topup { min-height: auto; max-width: none; background: rgba(255, 255, 255, 0.82); }

.compact-topup-card {
  height: calc(100% - 40px);
  padding: 22px;
  justify-content: center;
  gap: 14px;
}

.compact-topup-card h3 { font-size: 36px; margin-bottom: 10px; }
.compact-topup-card ul { margin: 14px 0 0; }
.compact-topup-card li { margin-bottom: 8px; }
.topup-purchase-row { display: block; }

.topup-quantity {
  display: grid;
  grid-template-columns: 40px 1fr 40px auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.9);
  border: 1px solid var(--line);
}

.topup-quantity button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.topup-quantity input {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
}

.topup-quantity span { color: var(--muted); font-size: 14px; padding-right: 10px; }
.topup-buy-button { min-height: 46px; margin-top: 10px; }

.pricing-card.disabled-plan { opacity: 0.42; filter: grayscale(1); }
.pricing-card.disabled-plan .plan-button { cursor: not-allowed; }
.pricing-card.disabled-plan:hover, .pricing-card.disabled-plan .plan-button:hover { transform: none; }

/* ===== 本轮优化：3D 动物头像与兴趣标签 ===== */
.avatar-picker-btn {
  display: block;
  width: 100%;
  min-height: 38px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.avatar-picker-btn:hover { opacity: 0.85; }

.avatar-picker-modal {
  width: min(100%, 720px);
  max-height: 85vh;
  overflow-y: auto;
}

.avatar-grid-modal {
  grid-template-columns: repeat(10, 1fr);
  min-height: 300px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
}

.avatar-grid-modal .avatar-option {
  min-height: 54px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 12px 22px rgba(0, 0, 0, 0.13);
  transform-style: preserve-3d;
}

.avatar-grid-modal .avatar-option span { display: block; font-size: 28px; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.18)); }
.avatar-grid-modal .avatar-option small { display: none; }
.avatar-large { font-size: 52px; }

.tag-input {
  min-height: 52px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  cursor: text;
}

.tag-list { display: contents; }

.hobby-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--joy-primary) 10%, transparent);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.hobby-tag button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--joy-primary) 16%, transparent);
  color: var(--blue);
  cursor: pointer;
  line-height: 1;
}

#hobbyInput { flex: 1 1 220px; min-height: 34px; border: 0; outline: none; padding: 0 6px; }

.pc-upgrade-card.disabled { opacity: 0.42; cursor: not-allowed; filter: grayscale(1); }
.pc-upgrade-card.disabled:hover { border-color: var(--line); transform: none; }

/* ===== 省钱测算胶囊开关 ===== */
.savings-toggle-wrapper input:checked + .savings-toggle-slider {
  background: var(--joy-primary) !important;
}
.savings-toggle-wrapper input:checked + .savings-toggle-slider > span {
  transform: translateX(20px);
}

/* ===== 本轮优化：会议总结布局 ===== */
.meeting-page {
  grid-template-columns: 2fr 1fr;
  align-items: stretch;
  height: calc(100vh - 64px);
  min-height: 620px;
  overflow: hidden;
}

.meeting-main, .meeting-sidebar { min-height: 0; height: 100%; }
.meeting-main { overflow: hidden; }

.transcript-area { max-height: none; flex: 1; min-height: 0; height: auto; overflow-y: auto; }

.speaking-entry { border-left-style: dashed; background: color-mix(in srgb, var(--joy-primary) 5%, transparent); }
.speaking-entry .transcript-translation { color: var(--muted); font-style: italic; }

#sourceLang option[disabled] { color: #8e8e93; }
.source-locked { color: #8e8e93; background: #f1f1f3; cursor: not-allowed; }

/* ===== 本轮优化：个人信息折叠与编辑状态 ===== */

.profile-toggle {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.profile-toggle span { font-size: 17px; font-weight: 600; }
.profile-toggle small { color: var(--muted); font-size: 13px; font-weight: 400; }
.profile-card.collapsed .profile-content { display: none; }

.pc-form.readonly input,
.pc-form.readonly select,
.pc-form.readonly textarea,
.pc-form.readonly .tag-input {
  color: #8e8e93;
  background: #f5f5f7;
  cursor: not-allowed;
}

.pc-form.readonly .hobby-tag { color: #6e6e73; background: rgba(142, 142, 147, 0.14); }
.pc-form.readonly .hobby-tag button { display: none; }

.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.profile-edit-btn { min-height: 38px; width: 100%; font-size: 13px; font-weight: 400; }

/* ===== 本轮优化：翻译页单行工具栏与导出弹窗 ===== */
.summary-export-modal { width: min(100%, 440px); }

.export-format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }

.export-format-option {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.export-format-option.active { color: white; background: var(--blue); border-color: var(--blue); }

.summary-panel {
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.summary-header { flex-shrink: 0; align-items: flex-start; }
.summary-header h3 { margin-bottom: 8px; }

.summary-actions { display: flex; gap: 8px; flex-shrink: 0; }
.summary-btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
.summary-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; }

@media (max-width: 1100px) {
  .feature-grid, .monthly-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-title { white-space: normal; }
  .pricing-groups { grid-template-columns: 1fr; }
  .meeting-page { grid-template-columns: 1fr; height: auto; overflow: visible; }
}

@media (max-width: 680px) {
  .feature-grid, .monthly-pricing-grid, .avatar-grid-modal { grid-template-columns: 1fr; }
  .avatar-grid-modal { grid-template-columns: repeat(5, 1fr); }
  .pricing-group { padding: 16px; }
  .topup-purchase-row { display: block; }
  .meeting-toolbar { flex-wrap: wrap; }
  .meeting-toolbar-left, .meeting-toolbar-right { width: 100%; }
  .profile-actions, .export-format-grid { grid-template-columns: 1fr; }
  .summary-header { gap: 12px; flex-direction: column; }
}

/* ===== 本轮优化：全宽工具栏 ===== */
.meeting-full-toolbar {
  position: sticky;
  top: 64px;
  margin-top: 64px;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
}

.meeting-toolbar-inner {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.meeting-toolbar-inner .meeting-toolbar-left { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; white-space: nowrap; }
.meeting-toolbar-inner .meeting-toolbar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap; }
.lang-arrow { color: var(--muted); font-size: 14px; flex-shrink: 0; }

/* ===== 本轮优化：可拖拽分割面板 ===== */
.meeting-page { display: flex; flex-direction: row; width: min(1400px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0 80px; min-height: calc(100vh - 64px - 60px - 80px); gap: 0; align-items: stretch; padding-bottom: 0; position: relative; }

.meeting-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  min-width: 25%;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(18px);
  position: relative;
}

#chatPanel { flex: 2; margin-right: 0; transition: flex-basis 0.22s ease, opacity 0.18s ease, min-width 0.22s ease, border 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease, margin 0.18s ease; }
#summaryPanel { flex: 1; transition: flex-basis 0.22s ease, opacity 0.18s ease, min-width 0.22s ease, border 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease, margin 0.18s ease; }

.panel-header { flex-shrink: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header h3 { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }

.translation-mode-bar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.translation-toggle-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(245, 245, 247, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.translation-toggle-btn:hover {
  background: var(--joy-primary-06);
  color: var(--blue);
  border-color: color-mix(in srgb, var(--joy-primary) 20%, transparent);
}

.translation-toggle-btn.active {
  background: var(--joy-primary-12);
  color: var(--blue);
  border-color: color-mix(in srgb, var(--joy-primary) 40%, transparent);
}

.translation-toggle-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(245, 245, 247, 0.4);
  pointer-events: none;
}

.transcript-area.hide-translations .transcript-translation { display: none !important; }

.transcript-area.mode-summary-only .transcript-entry,
.transcript-area.mode-summary-only .speaking-entry,
.transcript-area.mode-summary-only .transcript-empty { display: none !important; }

.meeting-page.chat-hidden #chatPanel {
  flex: 0 0 0 !important;
  min-width: 0 !important;
  width: 0 !important;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
}

.meeting-page.chat-hidden #splitDivider {
  cursor: pointer;
}

.transcript-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  align-self: flex-end;
  margin-top: 4px;
}

.transcript-entry:hover .transcript-actions { opacity: 1; }

.engine-badge {
  display: none; /* 引擎标签已隐藏 */
}

.transcript-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.transcript-action-btn:hover {
  background: var(--joy-primary-soft);
  color: var(--blue);
}

.transcript-delete-btn:hover {
  background: rgba(225, 29, 72, 0.1);
  color: #E11D48;
}

.jump-to-latest-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 6px 18px;
  border: 1px solid color-mix(in srgb, var(--joy-primary) 20%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  animation: fadeInUp 0.25s ease;
}

.jump-to-latest-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.split-divider {
  width: 8px;
  flex-shrink: 0;
  background: transparent;
  cursor: col-resize;
  position: relative;
  margin: 0 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-divider::after {
  content: '';
  width: 4px;
  height: 48px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease;
}

.split-divider:hover::after, .split-divider.dragging::after { background: var(--blue); }

/* ===== 本轮优化：转写区域气泡布局 ===== */
.transcript-area { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.transcript-entry {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(245, 245, 247, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.3s ease;
}

.transcript-entry.other-speaker { align-self: flex-start; border-left: 4px solid var(--blue); }
.transcript-entry.self-speaker { align-self: flex-end; border-right: 4px solid #30d158; border-left: 1px solid rgba(0, 0, 0, 0.06); background: rgba(48, 209, 88, 0.06); }

.transcript-entry.speaking-entry { border-style: dashed; opacity: 0.85; }
.transcript-entry.other-speaker.speaking-entry { border-left-color: var(--blue); background: color-mix(in srgb, var(--joy-primary) 5%, transparent); }
.transcript-entry.self-speaker.speaking-entry { border-right-color: #30d158; background: rgba(48, 209, 88, 0.07); }

.transcript-speaker { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.transcript-speaker .speaker-avatar { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: white; flex-shrink: 0; }
.transcript-time { color: var(--muted); font-weight: 400; margin-left: auto; font-size: 12px; }
.transcript-original { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 6px; word-break: break-word; }

.transcript-translation {
  font-size: 14px;
  line-height: 1.6;
  color: var(--blue);
  font-weight: 500;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  word-break: break-word;
}

.transcript-entry.self-speaker .transcript-translation { color: #248a3d; }

.transcript-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 16px; align-self: center; width: 100%; }
.transcript-empty .icon { font-size: 48px; display: block; margin-bottom: 16px; color: var(--muted); }

/* ===== 本轮优化：底部音频状态栏 ===== */
.audio-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  gap: 20px;
  min-height: 56px;
}

.audio-status-left, .audio-status-right { display: flex; align-items: center; gap: 16px; }
.audio-source-item { display: flex; align-items: center; gap: 10px; }
.audio-source-label { font-size: 13px; font-weight: 700; color: rgba(18, 18, 23, 0.72); white-space: nowrap; }

.volume-meter { width: 80px; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); overflow: hidden; flex-shrink: 0; }

.volume-level {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #30d158, #ff9500, #ff3b30);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.15s ease;
}

.audio-source-name { font-size: 12px; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mic-select {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 13px;
  cursor: pointer;
  max-width: 200px;
}

.mute-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mute-btn:hover { border-color: #ff3b30; color: #ff3b30; }
.mute-btn.active { background: #ff3b30; border-color: #ff3b30; color: white; }
.mute-btn.active:hover { background: #d70015; }

/* ===== 本轮优化：会议总结面板 ===== */
.summary-panel { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.summary-header { flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); gap: 12px; }
.summary-header > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.summary-header h3 { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.summary-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.summary-lang-select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  min-width: 120px;
}
.summary-lang-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--joy-primary-12); }
.summary-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.summary-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }

.terminology-input-bar { flex-shrink: 0; display: flex; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--line); }
.terminology-input { flex: 1; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: 12px; }
.terminology-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--joy-primary-12); }
.terminology-save-btn { min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--blue); color: white; font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; transition: background 0.2s ease; }
.terminology-save-btn:hover { background: var(--blue-dark); }
.meeting-page { margin-bottom: 56px; }

/* ===== 个人中心：内容资产（词条术语） ===== */
.pc-section-desc { color: var(--muted); font-size: 13px; margin: -8px 0 16px; line-height: 1.5; }
.term-source-tabs { gap: 4px; }
.term-tab-btn {
  padding: 5px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.term-tab-btn:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.term-tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.term-tab-all { margin-left: auto; }
.term-item-translation.editable { cursor: pointer; border-radius: 4px; padding: 2px 4px; margin: -2px -4px; }
.term-item-translation.editable:hover { background: var(--joy-primary-soft); }
.term-item-source.editable { cursor: pointer; }
.term-item-source.editable:hover { background: var(--joy-primary-15); }
.term-edit-input { font-size: 12px; padding: 2px 6px; border: 1px solid var(--blue); border-radius: 4px; outline: none; background: white; flex: 1 1 auto; min-width: 0; }
.term-edit-select { font-size: 11px; padding: 2px 6px; border: 1px solid var(--blue); border-radius: 6px; outline: none; background: white; cursor: pointer; }
.term-add-form { margin-bottom: 12px; }
.term-add-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.term-input { width: 100%; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 12px; }
.term-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--joy-primary-12); }
.term-add-btn { min-height: 32px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--blue); color: white; font-size: 12px; font-weight: 400; cursor: pointer; transition: opacity 0.2s ease; white-space: nowrap; }
.term-add-btn:hover { opacity: 0.85; }

.term-controls { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.term-search-box { flex: 1; }
.term-search-box input { width: 100%; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(245, 245, 247, 0.6); font-size: 13px; }
.term-search-box input:focus { outline: none; border-color: var(--blue); background: white; }
.term-sort-select { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(245, 245, 247, 0.6); color: var(--text); font-size: 13px; cursor: pointer; }

.term-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.term-list::-webkit-scrollbar { width: 5px; }
.term-list::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }
.term-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
.term-list::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
.term-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: transparent; border: 0; transition: background 0.15s ease; }
.term-item:hover { background: rgba(245, 245, 247, 0.8); }
.term-item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.term-item-term { font-weight: 600; font-size: 13px; color: #1d1d1f; flex-shrink: 0; min-width: 80px; }
.term-item-translation { font-size: 12px; color: #6e6e73; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-item-translation.term-empty { color: #c7c7cc; font-style: italic; }
.term-item-source { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 400; background: rgba(142, 142, 147, 0.1); color: #6e6e73; flex-shrink: 0; white-space: nowrap; }
.term-item-creator { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.term-delete-icon { width: 30px; height: 30px; border: 0; background: transparent; color: #c7c7cc; cursor: pointer; border-radius: 50%; display: grid; place-items: center; transition: all 0.15s ease; flex-shrink: 0; }
.term-delete-icon:hover { background: rgba(255, 59, 48, 0.1); color: #ff3b30; }

/* 术语管理新增样式 */
.term-select-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px; cursor: pointer; }
.term-item-industry { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11px; background: rgba(0, 122, 255, 0.1); color: #007aff; flex-shrink: 0; white-space: nowrap; }
.term-item-lang { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 6px; font-size: 11px; background: rgba(88, 86, 214, 0.1); color: #5856d6; flex-shrink: 0; white-space: nowrap; font-weight: 500; }
.term-item-check { flex-shrink: 0; display: flex; align-items: center; }
.term-item-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #007aff; }
.term-batch-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 10px; background: color-mix(in srgb, var(--joy-primary) 6%, transparent); border-radius: 10px; font-size: 12px; }
.term-batch-check-wrap { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #1d1d1f; font-weight: 500; }
.term-batch-check-wrap input { width: 16px; height: 16px; accent-color: var(--joy-primary); cursor: pointer; }
.term-batch-count { color: #6e6e73; }
.term-batch-btn { padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: white; font-size: 12px; cursor: pointer; transition: all 0.15s; }
.term-batch-btn:hover { background: #f5f5f7; }
.term-batch-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.term-batch-btn.primary { background: var(--joy-primary); color: white; border-color: var(--joy-primary); }
.term-batch-btn.primary:hover { background: var(--joy-primary-dark, #0056cc); }
.term-batch-btn.danger { background: #fff; color: #ff3b30; border-color: #ff3b30; }
.term-batch-btn.danger:hover:not(:disabled) { background: #fff5f5; }
.term-batch-right { margin-left: auto; display: flex; gap: 8px; }
.term-filter-select { padding: 6px 28px 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 12px; color: #1d1d1f; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; cursor: pointer; }
.term-filter-select:focus { outline: none; border-color: var(--blue); }
.term-import-modal { max-width: 560px; width: 90vw; max-height: 85vh; overflow-y: auto; }
.term-import-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.term-import-tab { flex: 1; padding: 10px 0; border: 0; background: transparent; font-size: 14px; color: #6e6e73; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; }
.term-import-tab.active { color: #007aff; border-bottom-color: #007aff; font-weight: 500; }
.term-import-panel { margin-bottom: 16px; }
.term-import-dropzone { border: 2px dashed #d1d1d6; border-radius: 12px; padding: 30px 20px; text-align: center; cursor: pointer; transition: all 0.2s; margin-bottom: 16px; }
.term-import-dropzone:hover { border-color: #007aff; background: rgba(0, 122, 255, 0.03); }
.term-import-dropzone.dragover { border-color: #007aff; background: rgba(0, 122, 255, 0.08); }
.dropzone-icon { font-size: 36px; margin-bottom: 8px; }
.dropzone-hint { font-size: 12px; color: #86868b; margin-top: 4px; }
.term-import-defaults { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.term-import-default-row { display: flex; flex-direction: column; gap: 4px; }
.term-import-default-row label { font-size: 12px; color: #6e6e73; }
.term-import-default-row select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: white; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.term-import-paste-area { width: 100%; min-height: 140px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; resize: vertical; line-height: 1.5; }
.term-import-paste-area:focus { outline: none; border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12); }
.term-import-preview { background: #f5f5f7; border-radius: 10px; padding: 12px; margin-bottom: 16px; }
.term-import-preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: #1d1d1f; }
.term-import-preview-count { color: #86868b; font-weight: 400; font-size: 12px; }
.term-import-preview-list { max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.import-preview-item { display: flex; gap: 10px; padding: 6px 10px; background: white; border-radius: 6px; font-size: 12px; }
.preview-term { font-weight: 600; color: #1d1d1f; min-width: 100px; }
.preview-trans { color: #6e6e73; flex: 1; }
.preview-industry { color: #007aff; flex-shrink: 0; }
.term-import-result { text-align: center; padding: 16px; border-radius: 10px; margin-bottom: 16px; }
.import-result-success .result-icon { font-size: 40px; margin-bottom: 8px; }
.import-result-error .result-icon { font-size: 40px; margin-bottom: 8px; }
.import-error-list { text-align: left; font-size: 12px; color: #ff3b30; margin-top: 8px; padding-left: 20px; }
.import-error-list li { margin-bottom: 2px; }
.term-import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.term-add-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.term-add-row .term-input { flex: 1 1 120px; min-width: 0; }
.term-add-row .term-select-input { flex: 0 0 auto; min-width: 100px; }
.term-add-row .term-add-btn { flex-shrink: 0; }

@media (max-width: 680px) {
  .term-add-row .term-input { flex: 1 1 100%; }
  .term-add-row .term-select-input { flex: 1 1 calc(50% - 4px); }
  .term-add-row .term-add-btn { flex: 1 1 100%; }
  .term-controls { flex-direction: column; align-items: stretch; }
  .term-item-main { flex-wrap: wrap; gap: 8px; }
  .term-import-defaults { grid-template-columns: 1fr; }
  .term-batch-bar { flex-wrap: wrap; }
}

/* ===== 翻译功能优化：状态栏、底部功能栏、内容总结 ===== */
.meeting-toolbar-inner {
  align-items: center;
  justify-content: flex-start;
}

.meeting-toolbar-inner .meeting-toolbar-right {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.toolbar-audio-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.toolbar-audio-source .volume-meter {
  width: 68px;
}

.toolbar-audio-source .mic-select {
  max-width: 180px;
  min-height: 30px;
}

.toolbar-audio-source .mute-btn {
  min-height: 30px;
  padding: 0 10px;
}

.meeting-panel {
  background: var(--surface-solid);
}

.panel-header,
.summary-header {
  background: #f5f5f7;
  border-bottom: 1px solid var(--line);
}

.transcript-area,
.summary-body {
  background: var(--surface-solid);
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.summary-panel {
  padding: 0;
  background: var(--surface-solid);
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.summary-header {
  margin: 0;
}

.summary-header h3 {
  font-size: 16px;
  margin: 0;
}

.summary-footer-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  background: #f5f5f7;
  flex-wrap: wrap;
}

.meeting-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  min-height: 62px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.bottom-actions-left,
.bottom-actions-right,
.bottom-terminology-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-actions-left {
  flex: 0 0 auto;
}

.bottom-actions-right {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.bottom-terminology-box {
  min-width: min(420px, 45vw);
}

.terminology-label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(18, 18, 23, 0.72);
  white-space: nowrap;
}

.bottom-actions-right .terminology-input {
  min-width: 180px;
  max-width: 260px;
}

.bottom-actions-right .terminology-tags {
  padding: 0;
  max-height: 40px;
  overflow: hidden;
}

.meeting-page {
  padding-bottom: 82px;
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .meeting-toolbar-inner,
  .meeting-toolbar-inner .meeting-toolbar-left,
  .meeting-toolbar-inner .meeting-toolbar-right,
  .meeting-bottom-bar {
    flex-wrap: wrap;
  }

  .meeting-toolbar-inner .meeting-toolbar-right {
    justify-content: flex-start;
  }

  .bottom-actions-right {
    justify-content: flex-start;
    width: 100%;
  }

  .bottom-terminology-box {
    min-width: 100%;
  }

  .history-drawer {
    width: 82vw;
    max-width: none;
  }

  .history-divider {
    left: 82vw;
  }

  .meeting-page.history-open {
    width: min(1400px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 680px) {
  .toolbar-audio-source,
  .bottom-actions-left,
  .bottom-actions-right,
  .bottom-terminology-box {
    width: 100%;
    flex-wrap: wrap;
  }

  .bottom-actions-left .meeting-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .bottom-actions-right .terminology-input {
    flex: 1 1 100%;
    max-width: none;
  }

  .meeting-lang-select {
    width: 8em;
    min-width: 8em;
    max-width: 8em;
  }
}

/* ===== 苹果风格统一：会议页控件、气泡与按钮 ===== */
.meeting-full-toolbar {
  background: rgba(246, 246, 248, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px);
}

.meeting-toolbar-inner {
  min-height: 58px;
  gap: 10px;
  padding: 10px 0;
}

.meeting-toolbar-inner .meeting-toolbar-left,
.meeting-toolbar-inner .meeting-toolbar-right {
  gap: 8px;
}

.meeting-status,
.asr-status,
.trial-timer,
.toolbar-audio-source {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #ffffff;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 650;
  box-shadow: none;
}

/* 所有 ASR 状态统一白底灰字，仅圆点保留状态色 */
.asr-status.connected,
.asr-status.connecting,
.asr-status.manual,
.asr-status.error {
  border-color: rgba(0, 0, 0, 0.07);
  background: #ffffff;
  color: #6e6e73;
}

.meeting-lang-select,
.mic-select {
  min-height: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.86);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.meeting-lang-select {
  width: 8em;
  min-width: 8em;
  max-width: 8em;
}

.lang-arrow {
  color: #8e8e93;
  font-size: 13px;
}

.volume-meter {
  width: 64px;
  height: 6px;
  background: rgba(60, 60, 67, 0.12);
}

.volume-level {
  background: linear-gradient(90deg, #34c759, #ffcc00, #ff453a);
}

.meeting-btn,
.summary-btn,
.mute-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.meeting-btn.start {
  background: var(--joy-primary);
  color: #fff;
  box-shadow: none;
}

.meeting-btn.start:hover {
  background: #007575;
}

.meeting-btn.stop {
  background: rgba(255, 69, 58, 0.12);
  color: #b42318;
  box-shadow: none;
}

.meeting-btn.stop:hover {
  background: rgba(255, 69, 58, 0.18);
}

.meeting-btn.secondary,
.summary-btn {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
}

.mute-btn {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(142, 142, 147, 0.12);
  color: #6e6e73;
}

.mute-btn:hover {
  border-color: rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
}

.mute-btn.active {
  background: rgba(255, 69, 58, 0.12);
  border-color: rgba(255, 69, 58, 0.22);
  color: #c1271d;
}

.mute-btn.active:hover {
  background: rgba(255, 69, 58, 0.18);
}

.meeting-panel {
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.panel-header,
.summary-header,
.summary-footer-actions {
  background: rgba(246, 246, 248, 0.72);
  border-color: rgba(0, 0, 0, 0.06);
}

.panel-header h3,
.summary-header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.transcript-area,
.summary-body {
  background: transparent;
}

/* 面板标题/按钮防重叠：窄宽度时标题省略、按钮不缩 */
.panel-header,
.summary-header,
.history-drawer-header {
  overflow: hidden;
}

.panel-header h3,
.summary-header h3,
.history-drawer-header h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.translation-mode-bar,
.translation-toggle-btn {
  flex-shrink: 0;
}

.summary-header-actions {
  flex-shrink: 1;
  min-width: 0;
}

.summary-lang-select {
  min-width: 80px;
  flex-shrink: 1;
  max-width: 140px;
}

.transcript-entry {
  max-width: min(76%, 760px);
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f7;
  color: #1d1d1f;
  box-shadow: none;
}

.transcript-entry.other-speaker {
  border-left: 0;
  background: #f5f5f7;
}

.transcript-entry.self-speaker {
  border-right: 0;
  border-left: 0;
  background: var(--joy-primary-12);
}

.transcript-speaker {
  font-size: 12px;
  font-weight: 650;
  color: #6e6e73;
}

.transcript-speaker .speaker-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  background: #8e8e93;
}

.self-speaker .speaker-avatar {
  background: var(--joy-primary);
}

.transcript-original {
  font-size: 15px;
  line-height: 1.55;
  color: #1d1d1f;
  margin-bottom: 6px;
}

.transcript-translation {
  padding-top: 7px;
  border-top: 1px solid rgba(60, 60, 67, 0.12);
  color: var(--blue);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.transcript-entry.self-speaker .transcript-translation {
  color: #248a3d;
}

.summary-countdown,
.summary-speaker-label,
.terminology-label,
.audio-source-label {
  font-size: 12px;
  font-weight: 650;
  color: #6e6e73;
}

.meeting-bottom-bar {
  min-height: 60px;
  background: rgba(246, 246, 248, 0.86);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px);
}

/* ===== 词条术语导出按钮 ===== */
.term-source-select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  flex-shrink: 0;
  width: auto;
  min-width: 70px;
}

.pc-export-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pc-export-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ===== 总结加载状态 ===== */
.summary-loading {
  text-align: center;
  color: #6e6e73;
  font-size: 14px;
  padding: 30px 10px;
  font-weight: 500;
}

/* ===== 个人中心左栏样式 ===== */
.pc-left-col {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pc-left-col .avatar-display { margin-bottom: 0; }
.pc-left-col .user-info-badge { margin-bottom: 0; }
.pc-left-col .checkin-section { margin-top: 0; }
.pc-left-col .profile-card { margin-top: 0 !important; }

.pc-left-col::-webkit-scrollbar {
  width: 4px;
}

.pc-left-col::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.pc-left-col::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== 个人中心按钮统一样式（苹果风格） ===== */
.pc-container button,
.pc-container .pc-save-btn,
.pc-container .avatar-picker-btn,
.pc-container .avatar-upload-btn,
.pc-container .profile-edit-btn,
.pc-container .pc-export-btn,
.pc-container .term-add-btn {
  font-weight: 400 !important;
  font-size: 13px !important;
}

/* ===== profile-card 内嵌样式调整 ===== */
.profile-card .profile-toggle {
  padding: 12px 18px;
  min-height: 44px;
}

.profile-card .profile-toggle span { font-size: 15px; font-weight: 600; }
.profile-card .profile-toggle small { font-size: 13px; }

.profile-card .profile-content {
  padding-top: 0;
}

/* "更多信息"框内文字尺寸 */
.profile-card .pc-field label { font-size: 13px; font-weight: 500; }
.profile-card .pc-field label .required { font-size: 13px; }
.profile-card .pc-field input,
.profile-card .pc-field select,
.profile-card .pc-field textarea {
  font-size: 14px;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 10px;
}
.profile-card .pc-field textarea { min-height: 52px; padding: 8px 10px; }
.profile-card .pc-field input::placeholder,
.profile-card .pc-field textarea::placeholder { font-size: 14px; }
.profile-card .tag-input { min-height: 36px; padding: 5px; border-radius: 8px; font-size: 14px; }
.profile-card .tag-input input { font-size: 14px; }
.profile-card .tag-input input::placeholder { font-size: 14px; }
.profile-card .hobby-tag { font-size: 13px; padding: 3px 8px; }
.profile-card .hobby-tag button { font-size: 13px; }
.profile-card .profile-edit-btn,
.profile-card .pc-save-btn {
  font-size: 13px !important;
  min-height: 34px;
  border-radius: 8px;
}
.profile-card .pc-form { gap: 12px; }
.profile-card .pc-form-row { gap: 10px; }
.profile-card .profile-actions { gap: 10px; }

/* ===== 底部词条输入框优化 ===== */
.bottom-terminology-box {
  min-width: min(360px, 40vw);
}

.bottom-actions-right .terminology-input {
  min-width: 200px;
  max-width: 280px;
}

@media (max-width: 980px) {
  .pc-left-col {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .term-add-row {
    grid-template-columns: 1fr 1fr;
  }

  .term-add-btn {
    grid-column: 1 / -1;
  }
}

/* ===== 翻译页本轮优化：历史抽屉、底部工具栏与居中状态栏 ===== */
.meeting-toolbar-inner {
  justify-content: space-between;
}

.meeting-toolbar-inner .meeting-toolbar-left {
  justify-content: flex-start;
}

.meeting-toolbar-inner .meeting-toolbar-right {
  justify-content: flex-end;
}

.meeting-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bottom-actions-left,
.bottom-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bottom-actions-left {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.bottom-actions-right {
  justify-content: flex-end;
  flex-shrink: 0;
}

.meeting-page {
  transition: width 0.25s ease, margin-left 0.25s ease;
}

.meeting-page.history-open {
  width: calc(100% - var(--history-width, 25vw) - 40px);
  margin-left: calc(var(--history-width, 25vw) + 20px);
  margin-right: 20px;
}

.history-drawer {
  position: fixed;
  left: 0;
  top: 130px;
  bottom: 62px;
  z-index: 14;
  width: var(--history-width, 25vw);
  min-width: 300px;
  max-width: 460px;
  transform: translateX(-102%);
  transition: transform 0.25s ease;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 22px 0 56px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  border-radius: 0 22px 22px 0;
  overflow: hidden;
}

.history-drawer.open {
  transform: translateX(0);
}

.history-divider {
  position: fixed;
  left: var(--history-width, 25vw);
  top: 130px;
  bottom: 62px;
  z-index: 15;
  width: 8px;
  margin-left: -4px;
  background: transparent;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-102%);
  transition: transform 0.25s ease;
}

.history-divider.open {
  transform: translateX(0);
}

.history-divider::after {
  content: '';
  width: 4px;
  height: 48px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease;
}

.history-divider:hover::after,
.history-divider.dragging::after {
  background: var(--blue);
}

.history-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(246, 246, 248, 0.72);
  flex-shrink: 0;
}

.history-drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.history-close-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s ease;
}

.history-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
}

.history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-empty {
  color: #8e8e93;
  text-align: center;
  padding: 36px 12px;
  font-size: 13px;
}

.history-hint {
  padding: 8px 12px 10px;
  text-align: center;
  color: #aeaeb5;
  font-size: 11px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

/* 历史记录条目 */
.history-item {
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.history-item:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

/* 标题栏 —— 灰色背景，可点击展开 */
.history-item-main {
  width: 100%;
  border: 0;
  background: rgba(246, 246, 248, 0.72);
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.history-item-main:hover {
  background: rgba(246, 246, 248, 0.92);
}

.history-item.expanded .history-item-main {
  background: var(--joy-primary-06);
}

.history-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-title {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-subtitle {
  color: #8e8e93;
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 标题编辑输入框 */
.history-title-edit {
  flex: 1;
  min-width: 0;
  min-height: 28px;
  padding: 2px 8px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: white;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
}

.history-title-edit:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--joy-primary-12);
}

/* 铅笔编辑按钮与删除按钮 */
.history-icon-btn {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8e8e93;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.history-icon-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
}

.history-icon-btn.delete:hover {
  background: rgba(255, 59, 48, 0.12);
  color: #ff3b30;
}

.history-icon-btn svg {
  width: 14px;
  height: 14px;
}

/* 展开内容区域 —— 使用 max-height 过渡实现平滑展开 */
.history-detail {
  border-top: 1px solid transparent;
  padding: 0 12px;
  background: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.history-item.expanded .history-detail {
  border-top-color: rgba(0, 0, 0, 0.06);
  max-height: 320px;
  overflow-y: auto;
  padding: 10px 12px 12px;
}

.history-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.history-download-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-download-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.history-detail pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1d1d1f;
  font: 12px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.realtime-translation:empty {
  display: none;
}

/* ===== 译文样式（静态，无渐变） ===== */
.transcript-translation {
  transition: color 0.2s ease;
}

.transcript-entry.self-speaker .transcript-translation {
  color: #248a3d;
}

/* ===== 本轮进一步优化：统一导航与会议页布局 ===== */
.nav-links a,
.nav-actions .text-button,
.nav-actions .primary-button,
.nav-actions a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.brand-mark {
  color: #fff;
  background: #050506;
  box-shadow: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 顶部状态栏：左状态 / 中音频 / 右时长 */
.meeting-toolbar-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(420px, auto) minmax(240px, 1fr);
  align-items: center;
  gap: 14px;
  overflow: visible;
}

.meeting-toolbar-inner .meeting-toolbar-left,
.meeting-toolbar-inner .meeting-toolbar-center,
.meeting-toolbar-inner .meeting-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.meeting-toolbar-inner .meeting-toolbar-left { justify-content: flex-start; }
.meeting-toolbar-inner .meeting-toolbar-center { justify-content: center; }
.meeting-toolbar-inner .meeting-toolbar-right { justify-content: flex-end; }

.meeting-toolbar-center .toolbar-audio-source {
  min-width: 0;
}

.meeting-toolbar-center .audio-source-name {
  max-width: 110px;
}

.sys-audio-mode-select {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-sm);
  background: var(--joy-surface);
  color: var(--joy-text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}
.sys-audio-mode-select:hover { border-color: var(--joy-primary); }
.sys-audio-device-select {
  font-size: 12px;
  max-width: 160px;
}
.sys-audio-no-signal {
  color: #ff9500 !important;
  font-weight: 600;
}

/* 主体面板：历史对话与聊天/总结同级，默认仅显示拉手 */
.meeting-page {
  --history-width: 25vw;
  width: min(1400px, calc(100% - 40px));
  min-height: calc(100vh - 64px - 58px - 60px);
  height: calc(100vh - 64px - 58px - 60px);
  padding: 20px 0;
  transition: none;
  overflow: hidden;
}

.meeting-page.history-open {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.history-drawer {
  position: static;
  left: auto;
  top: auto;
  bottom: auto;
  z-index: auto;
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  max-width: none;
  height: 100%;
  transform: none;
  opacity: 0;
  pointer-events: none;
  border-radius: 22px;
  border: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.88);
  transition: flex-basis 0.22s ease, opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.history-drawer.open {
  flex-basis: min(var(--history-width, 25vw), 50vw);
  width: auto;
  min-width: 260px;
  max-width: 50vw;
  opacity: 1;
  pointer-events: auto;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.history-divider {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  z-index: auto;
  flex: 0 0 8px;
  width: 8px;
  height: 100%;
  margin: 0 6px;
  transform: none;
  display: flex;
}

.history-divider.open {
  transform: none;
}

.history-divider:not(.open) {
  cursor: pointer;
}

#chatPanel,
#summaryPanel {
  min-width: 200px;
}

.meeting-page.history-open #chatPanel,
.meeting-page.history-open #summaryPanel {
  flex: 1 1 0;
}

/* 底部功能栏：左历史 / 中语言与控制 / 右词条 */
.meeting-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: visible;
  font-size: 12px;
  color: #1d1d1f;
  position: relative;
  z-index: 100;
}

.bottom-group,
.bottom-terminology-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.bottom-history-group { justify-content: flex-start; position: relative; }
.bottom-suborg-group { justify-content: flex-start; position: relative; }
.bottom-center-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.bottom-language-group,
.bottom-translation-group,
.bottom-clear-group { justify-content: center; white-space: nowrap; }
.bottom-terminology-group { justify-content: flex-end; flex-shrink: 0; }
.bottom-correction-group { justify-content: flex-end; flex-shrink: 0; }

.bottom-dual-input-box {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
}

.bottom-separator {
  color: rgba(60, 60, 67, 0.32);
  font-size: 14px;
  line-height: 1;
  margin: 0 2px;
}

/* 底部功能栏字体统一 12px 苹果灰 */
.meeting-bottom-bar .meeting-btn,
.meeting-bottom-bar .summary-btn,
.meeting-bottom-bar .mute-btn,
.meeting-bottom-bar .bottom-separator,
.meeting-bottom-bar .meeting-lang-select,
.meeting-bottom-bar .terminology-input,
.meeting-bottom-bar .terminology-save-btn {
  font-size: 12px;
}

/* 非翻译按钮文字使用苹果灰 */
.meeting-bottom-bar .meeting-btn.secondary,
.meeting-bottom-bar .mute-btn,
.meeting-bottom-bar .bottom-separator,
.meeting-bottom-bar .meeting-lang-select,
.meeting-bottom-bar .terminology-input {
  color: #1d1d1f;
}

/* 麦克风激活（关麦）状态保持红色 */
.meeting-bottom-bar .mute-btn.active {
  color: #c1271d;
}

/* 开始/停止翻译按钮字体 12px 但保持原色 */
.meeting-bottom-bar .meeting-btn.start,
.meeting-bottom-bar .meeting-btn.stop {
  font-size: 12px;
}

/* 词条保存按钮改为深绿色 */
.meeting-bottom-bar .terminology-save-btn {
  background: var(--joy-primary);
  color: #fff;
  border: 0;
}

.meeting-bottom-bar .terminology-save-btn:hover {
  background: #007575;
}

/* Speaker 面板（向上展开拉帘） */
.speaker-panel {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 9999;
  min-width: 300px;
  max-width: 380px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(20px);
}

@keyframes speakerPanelSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.speaker-panel.open { display: flex; flex-direction: column; animation: speakerPanelSlideUp 0.25s ease; }

.speaker-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.speaker-panel-close {
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.speaker-panel-close:hover { color: #1d1d1f; }

.speaker-panel-list {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.speaker-panel-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 20px 0;
}

.speaker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.speaker-row-label {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  min-width: 70px;
}

.speaker-row-input {
  flex: 1;
  border: 1px solid color-mix(in srgb, var(--joy-primary) 30%, transparent);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: #1d1d1f;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--joy-primary) 10%, transparent);
}

.speaker-row-name {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: default;
}

.speaker-row-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.speaker-row-edit-btn:hover {
  background: var(--joy-primary-soft);
  color: var(--blue);
}

/* 己方发言者行特殊样式 */
.speaker-row-self {
  background: var(--joy-primary-06);
  border: 1px solid var(--joy-primary-15);
}

.speaker-row-self .speaker-row-label {
  color: var(--joy-primary);
}

/* Speaker 面板分割线 */
.speaker-panel-divider {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0 4px;
  position: relative;
}

.speaker-panel-divider::before,
.speaker-panel-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.speaker-panel-divider::before { left: 8px; }
.speaker-panel-divider::after { right: 8px; }

.mute-btn.compact {
  width: 36px;
  min-width: 36px;
  padding: 0;
  justify-content: center;
}

/* 紧凑输入框：缩小词条术语和纠词组件宽度 */
.bottom-dual-input-box .terminology-input.compact-input {
  min-width: 50px;
  max-width: 90px;
  width: 70px;
}

.terminology-save-btn.compact-btn {
  padding: 6px 10px;
  font-size: 12px;
  min-width: auto;
}

/* 子组织面板（向上展开拉帘，参照 Speaker 面板） */
.suborg-panel {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 9999;
  min-width: 320px;
  max-width: 440px;
  max-height: 440px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(20px);
}

.suborg-panel.open {
  display: flex;
  flex-direction: column;
  animation: speakerPanelSlideUp 0.25s ease;
}

.suborg-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.suborg-panel-close {
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.suborg-panel-close:hover { color: #1d1d1f; }

.suborg-panel-content {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suborg-invitation-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suborg-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--joy-primary-06);
  border: 1px solid var(--joy-primary-15);
  font-size: 12px;
}

.suborg-invitation-text {
  flex: 1;
  color: #1d1d1f;
  line-height: 1.4;
}

.suborg-invitation-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.suborg-invitation-btn {
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.suborg-invitation-btn.accept {
  background: var(--joy-primary);
  color: #fff;
}

.suborg-invitation-btn.accept:hover { background: #007777; }

.suborg-invitation-btn.reject {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.suborg-invitation-btn.reject:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

.suborg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suborg-panel-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 20px 0;
}

.suborg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(245, 245, 247, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 12px;
}

.suborg-row.joined {
  background: var(--joy-primary-06);
  border-color: var(--joy-primary-15);
}

.suborg-row-name {
  font-weight: 600;
  color: #1d1d1f;
  flex: 1;
}

.suborg-row-delete {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #ff3b30;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suborg-row:hover .suborg-row-delete {
  opacity: 1;
}

.suborg-row-delete:hover {
  background: rgba(255, 59, 48, 0.12);
}

.suborg-row-mode {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--joy-primary) 10%, transparent);
  color: var(--joy-primary);
  font-weight: 600;
  flex-shrink: 0;
}

.suborg-row-status {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.suborg-row-status.joined { color: var(--joy-primary); }

.suborg-row-btn {
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.suborg-row-btn.join {
  background: var(--joy-primary);
  color: #fff;
}

.suborg-row-btn.join:hover { background: #007777; }

.suborg-row-btn.leave {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.suborg-row-btn.leave:hover {
  background: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
}

.suborg-create-form {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.suborg-name-input {
  flex: 1;
  border: 1px solid color-mix(in srgb, var(--joy-primary) 30%, transparent);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: #1d1d1f;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--joy-primary) 10%, transparent);
}

.suborg-name-input:focus {
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}

/* 子组织成员面板 */
.suborg-members-panel {
  position: absolute;
  top: 36px;
  right: 8px;
  width: 260px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: var(--joy-z-dropdown);
  display: none;
  animation: orgDrawerSlideDown 0.2s ease;
}

/* 子组织搜索区 */
.suborg-search-area {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.suborg-search-row {
  display: flex;
  gap: 6px;
}
.suborg-search-results {
  margin-top: 4px;
  max-height: 160px;
  overflow-y: auto;
}
.suborg-search-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid #f5f5f7;
}

/* 子组织行内按钮 */
.suborg-row-pencil {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #86868b;
  font-size: 13px;
  padding: 0 2px;
  opacity: 0;
  transition: opacity 0.15s;
}
.suborg-row:hover .suborg-row-pencil {
  opacity: 1;
}
.suborg-row-pencil:hover {
  color: var(--joy-primary);
}
.suborg-row-mode-btn {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  cursor: pointer;
  background: white;
  color: var(--joy-primary);
}
.suborg-row-mode-btn:hover {
  background: var(--joy-primary-06);
}
.suborg-row-members {
  border: none;
  background: transparent;
  color: var(--joy-primary);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.suborg-row-members:hover {
  text-decoration: underline;
}

.bottom-terminology-box {
  min-width: min(440px, 38vw);
}

.bottom-dual-input-box .terminology-input {
  min-width: 55px;
  max-width: 120px;
  width: 90px;
}

.bottom-correction-group .terminology-input {
  min-width: 55px;
  max-width: 120px;
  width: 90px;
}

.toolbar-audio-source .volume-level,
.volume-level {
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
}

.meeting-toolbar-center .toolbar-audio-source {
  border-color: color-mix(in srgb, var(--joy-primary) 18%, transparent);
  background: color-mix(in srgb, var(--joy-primary) 7%, transparent);
}

.meeting-toolbar-center .audio-source-label {
  color: var(--blue);
}

.summary-footer-actions {
  justify-content: space-between;
}

.summary-footer-left,
.summary-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-pause-btn {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1180px) {
  .meeting-toolbar-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .meeting-toolbar-inner .meeting-toolbar-left,
  .meeting-toolbar-inner .meeting-toolbar-center,
  .meeting-toolbar-inner .meeting-toolbar-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .meeting-bottom-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .bottom-group {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .bottom-terminology-box {
    min-width: min(100%, 520px);
  }

  .bottom-dual-input-box {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .history-drawer.open {
    flex-basis: 50vw;
    max-width: 50vw;
    min-width: 220px;
  }

  #chatPanel,
  #summaryPanel {
    min-width: 260px;
  }
}

/* ===== Info / Document Pages ===== */
.info-page {
  padding-top: 64px;
  min-height: 100vh;
  background: var(--joy-background);
}

.info-hero {
  background: linear-gradient(135deg, var(--joy-primary-06) 0%, rgba(51, 187, 187, 0.03) 100%);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--joy-border);
}

.info-hero .container {
  max-width: 820px;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
  background: var(--joy-emerald-50);
  color: var(--joy-emerald-700);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.info-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--joy-foreground);
  margin-bottom: 16px;
}

.info-hero .info-subtitle {
  font-size: 18px;
  color: var(--joy-neutral-500);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.info-hero .info-meta {
  margin-top: 20px;
  font-size: 13px;
  color: var(--joy-neutral-400);
}

.info-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.info-content h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--joy-foreground);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--joy-emerald-100);
}

.info-content h2:first-child {
  margin-top: 0;
}

.info-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--joy-foreground);
  margin-top: 28px;
  margin-bottom: 10px;
}

.info-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--joy-neutral-700);
  margin-bottom: 14px;
}

.info-content ul,
.info-content ol {
  margin: 0 0 18px 4px;
  list-style: none;
}

.info-content ul li,
.info-content ol li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--joy-neutral-700);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.info-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--joy-emerald-400);
}

.info-content ol {
  counter-reset: info-ol;
}

.info-content ol li::before {
  counter-increment: info-ol;
  content: counter(info-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--joy-primary);
}

.info-content strong {
  color: var(--joy-foreground);
  font-weight: 600;
}

.info-content a {
  color: var(--joy-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.info-content a:hover {
  color: var(--joy-emerald-600);
  text-decoration: underline;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--joy-card);
  border-radius: var(--joy-radius-lg);
  overflow: hidden;
  box-shadow: var(--joy-shadow-1);
}

.info-table thead {
  background: var(--joy-emerald-50);
}

.info-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--joy-emerald-800);
  border-bottom: 2px solid var(--joy-emerald-200);
  white-space: nowrap;
}

.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--joy-border);
  color: var(--joy-neutral-700);
  vertical-align: top;
}

.info-table tbody tr:last-child td {
  border-bottom: none;
}

.info-table tbody tr:hover {
  background: var(--joy-neutral-50);
}

.info-table .check {
  color: var(--joy-state-success);
  font-weight: 600;
}

.info-table .cross {
  color: var(--joy-neutral-400);
}

.info-callout {
  background: color-mix(in srgb, var(--joy-primary) 5%, transparent);
  border-left: 4px solid var(--joy-primary);
  border-radius: 0 var(--joy-radius) var(--joy-radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

.info-callout p {
  margin-bottom: 0;
  color: var(--joy-neutral-700);
}

.info-callout.warning {
  background: rgba(245, 158, 11, 0.06);
  border-left-color: var(--joy-state-warning);
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.info-card {
  background: var(--joy-card);
  border-radius: var(--joy-radius-lg);
  padding: 24px;
  border: 1px solid var(--joy-border);
  transition: all 0.2s ease;
}

.info-card:hover {
  border-color: var(--joy-emerald-300);
  box-shadow: var(--joy-shadow-2);
  transform: translateY(-2px);
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--joy-emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--joy-primary);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--joy-foreground);
}

.info-card p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--joy-neutral-500);
  line-height: 1.6;
}

.info-step-list {
  counter-reset: info-step;
  margin: 24px 0;
}

.info-step {
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
}

.info-step::before {
  counter-increment: info-step;
  content: counter(info-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--joy-primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-step h3 {
  margin-top: 4px;
  margin-bottom: 6px;
}

.info-step p {
  margin-bottom: 0;
}

.info-toc {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.info-toc h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--joy-neutral-800);
}

.info-toc ul {
  margin: 0;
}

.info-toc li {
  margin-bottom: 6px;
}

.info-toc a {
  font-size: 14px;
  color: var(--joy-neutral-500);
}

.info-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--joy-primary);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.info-back:hover {
  color: var(--joy-emerald-600);
}

@media (max-width: 768px) {
  .info-hero {
    padding: 56px 0 40px;
  }

  .info-content {
    padding: 40px 16px 72px;
  }

  .info-content h2 {
    font-size: 22px;
  }

  .info-content p,
  .info-content li {
    font-size: 14px;
  }

  .info-table {
    font-size: 13px;
  }

  .info-table th,
  .info-table td {
    padding: 10px 12px;
  }

  .info-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .meeting-bottom-bar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .bottom-group,
  .bottom-terminology-box,
  .bottom-dual-input-box {
    flex-wrap: nowrap;
  }

  .bottom-terminology-group .terminology-input,
  .bottom-correction-group .terminology-input {
    min-width: 70px;
    max-width: 130px;
    width: 100px;
  }
}

/* ===== 套餐共享 ===== */

.share-section {
  margin-top: 16px;
}

.share-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.share-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 套餐内的共享添加区域 */
.share-add-area {
  margin-top: 12px;
  padding: 14px;
  background: rgba(245, 245, 247, 0.7);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.share-add-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.share-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-email-input {
  flex: 1;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.share-email-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--joy-primary-12);
}

.share-duration-input {
  width: 60px;
  padding: 8px 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  text-align: center;
}

.share-duration-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--joy-primary-12);
}

.share-duration-unit {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.share-add-btn {
  padding: 8px 18px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.share-add-btn:hover:not(:disabled) {
  background: var(--blue-dark);
}

.share-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 已关联用户列表 */
.share-users-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-wrap: wrap;
}

.share-user-item.pending {
  border-color: rgba(255, 149, 0, 0.2);
  background: rgba(255, 149, 0, 0.03);
}

.share-user-item.active {
  border-color: rgba(48, 209, 88, 0.2);
  background: rgba(48, 209, 88, 0.03);
}

.share-user-item.expired,
.share-user-item.exited,
.share-user-item.rejected,
.share-user-item.revoked {
  opacity: 0.65;
}

.share-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.share-user-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-user-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(142, 142, 147, 0.15);
  color: #8e8e93;
}

.share-user-status.pending {
  background: rgba(255, 149, 0, 0.12);
  color: #c93400;
}

.share-user-status.active {
  background: rgba(48, 209, 88, 0.15);
  color: #248a3d;
}

.share-user-status.expired,
.share-user-status.cancelled,
.share-user-status.pending_owner_confirm,
.share-user-status.exited,
.share-user-status.rejected,
.share-user-status.revoked {
  background: rgba(142, 142, 147, 0.15);
  color: #8e8e93;
}

.share-user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.share-user-note {
  color: #c93400;
}

/* 收到的共享 */
.share-received-item {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-received-item.pending {
  border-color: rgba(255, 149, 0, 0.25);
  background: rgba(255, 149, 0, 0.03);
}

.share-received-item.active {
  border-color: rgba(48, 209, 88, 0.25);
  background: rgba(48, 209, 88, 0.03);
}

.share-received-item.expired,
.share-received-item.exited,
.share-received-item.rejected,
.share-received-item.revoked {
  opacity: 0.65;
}

.share-received-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.share-received-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.share-received-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.share-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.share-confirm-btn {
  padding: 4px 11px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.share-confirm-btn:hover { background: var(--blue-dark); }

.share-reject-btn,
.share-delete-btn,
.share-delete-received-btn,
.share-reject-shared-btn {
  padding: 4px 11px;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.share-reject-btn:hover {
  border-color: rgba(0,0,0,0.25);
  color: var(--text);
}
.share-delete-btn:hover,
.share-delete-received-btn:hover,
.share-reject-shared-btn:hover {
  color: #ff3b30;
  border-color: rgba(255,59,48,0.3);
  background: rgba(255,59,48,0.06);
}

.share-exit-btn,
.share-revoke-btn {
  padding: 4px 11px;
  background: transparent;
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.share-exit-btn:hover,
.share-revoke-btn:hover {
  background: rgba(255, 59, 48, 0.08);
  border-color: #ff3b30;
}

/* 再次共享按钮 */
.share-reapply-btn {
  padding: 4px 11px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.share-reapply-btn:hover { background: var(--blue-dark); }
.share-reapply-btn:active { background: var(--blue-dark); opacity: 0.85; }

/* 已取消记录中的按钮：浅色版本 */
.share-btn-muted {
  opacity: 0.55;
  transition: opacity 0.15s;
}
.share-btn-muted:hover { opacity: 0.85; }

/* 通知徽章 */
.share-notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
}

/* ===== 总结句子级反馈图标 ===== */
.summary-sentence {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 4px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.summary-sentence:hover {
  background: rgba(0, 0, 0, 0.03);
}

.summary-sentence-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.summary-feedback-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.summary-sentence:hover .summary-feedback-icons {
  opacity: 1;
}

.feedback-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s ease;
  opacity: 0.45;
}

.feedback-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.feedback-btn.active {
  opacity: 1;
}

.feedback-up.active {
  background: rgba(52, 199, 89, 0.12);
}

.feedback-down.active {
  background: rgba(255, 59, 48, 0.12);
}

/* ===== 总结句子 ✔/✕ 反馈按钮 ===== */
.summary-sentence-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 4px;
}

.summary-feedback-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.summary-sentence:hover .summary-feedback-btn {
  opacity: 0.6;
}

.summary-feedback-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.summary-feedback-btn.active {
  opacity: 1;
  font-weight: bold;
}

.summary-feedback-btn[data-feedback="like"].active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.summary-feedback-btn[data-feedback="dislike"].active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.summary-sentence.liked {
  background: rgba(34, 197, 94, 0.04);
}

.summary-sentence.disliked {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.4);
}

/* 聊天框缩回时，总结框自动延展占满空间 */
.meeting-page.chat-hidden .split-divider {
  cursor: pointer;
}

.meeting-page.chat-hidden #summaryPanel {
  flex: 1 1 0;
  min-width: 300px;
}

/* ===== 内容总结收起/展开 ===== */

/* 总结面板头部按钮间距 */
.summary-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 收起状态：总结面板隐藏 */
.meeting-page.summary-hidden #summaryPanel {
  flex: 0 0 0 !important;
  min-width: 0 !important;
  width: 0 !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.meeting-page.summary-hidden #splitDivider {
  cursor: pointer;
}

/* summaryHandle 已废弃：splitDivider 统一处理展开/拖拽 */
.summary-handle {
  display: none !important;
}

.summary-handle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.summary-handle-line {
  width: 4px;
  height: 48px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease;
}

.summary-handle:hover .summary-handle-line {
  background: var(--blue);
}

/* ===== 痛点爽点反馈标签 ===== */
.feedback-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  background: linear-gradient(180deg, #1d1d1f, #2d2d30);
  color: #fff;
  padding: 14px 6px;
  border-radius: 12px 0 0 12px;
  cursor: grab;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  box-shadow: -3px 0 16px rgba(0, 0, 0, 0.22);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  touch-action: none;
}

.feedback-tab.dragging {
  cursor: grabbing;
  transition: none;
}

.feedback-tab:hover {
  background: linear-gradient(180deg, #33bbbb, #007777);
  box-shadow: -4px 0 20px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.feedback-tab-text {
  white-space: nowrap;
}

.feedback-panel {
  position: fixed;
  right: -360px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 121;
  width: 340px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border-radius: 20px 0 0 20px;
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-right: none;
  padding: 24px;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback-panel.open {
  right: 0;
}

.feedback-panel.open ~ #guideFloatBtn,
body:has(.feedback-panel.open) #guideFloatBtn {
  display: none !important;
}

.feedback-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feedback-panel-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.3px;
}

.feedback-panel-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-size: 22px;
  color: #86868b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.feedback-panel-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.feedback-tabs {
  display: flex;
  gap: 10px;
}

.feedback-tab-btn {
  flex: 1;
  padding: 12px 0;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #86868b;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.feedback-tab-btn:hover {
  border-color: rgba(0, 0, 0, 0.15);
  color: #1d1d1f;
}

.feedback-tab-btn.active[data-type="pain"] {
  background: #ff3b30;
  color: #fff;
  border-color: #ff3b30;
  box-shadow: 0 3px 12px rgba(255, 59, 48, 0.3);
}

.feedback-tab-btn.active[data-type="highlight"] {
  background: #34c759;
  color: #fff;
  border-color: #34c759;
  box-shadow: 0 3px 12px rgba(52, 199, 89, 0.3);
}

.feedback-desc {
  font-size: 13px;
  color: #86868b;
  line-height: 1.5;
  padding: 0 2px;
}

.feedback-textarea {
  width: 100%;
  min-height: 110px;
  padding: 14px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #f5f5f7;
  font-size: 14px;
  color: #1d1d1f;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
  line-height: 1.6;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--joy-primary);
  background: #fff;
}

.feedback-counter {
  text-align: right;
  font-size: 12px;
  color: #c7c7cc;
  margin-top: -6px;
}

.feedback-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #33bbbb, #007777);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px var(--joy-primary-25);
}

.feedback-submit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.feedback-submit-btn:active {
  transform: scale(0.98);
}

.feedback-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.feedback-hint {
  font-size: 12px;
  color: #86868b;
  line-height: 1.6;
  margin: 0;
  padding: 0 2px;
}

/* ===== 签到板块 ===== */
.checkin-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,245,247,0.5));
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.checkin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.checkin-btn {
  padding: 7px 20px;
  border: none;
  border-radius: 999px;
  background: var(--joy-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px var(--joy-primary-25);
}

.checkin-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.checkin-btn:disabled {
  background: var(--joy-primary);
  cursor: default;
  opacity: 1;
  box-shadow: 0 2px 8px var(--joy-primary-25);
}

.checkin-btn.checked {
  background: var(--joy-primary);
  color: #fff;
}

.checkin-calendar {
  margin-top: 4px;
}

.checkin-month {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkin-month::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--joy-primary);
}

.checkin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.checkin-weekday {
  text-align: center;
  font-size: 11px;
  color: #86868b;
  padding: 3px 0;
  font-weight: 600;
}

.checkin-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #86868b;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  font-weight: 500;
}

.checkin-day.empty {
  background: transparent;
  border: none;
}

.checkin-day.checked {
  background: var(--joy-primary);
  color: #fff;
  border-color: var(--joy-primary);
  font-weight: 700;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.checkin-day.today {
  border: 2px solid var(--joy-primary);
  font-weight: 700;
  color: var(--joy-primary);
}

.checkin-day.today.checked {
  border-color: var(--joy-primary);
  color: #fff;
}

.checkin-hint {
  font-size: 12px;
  color: #86868b;
  margin: 10px 0 0;
  text-align: center;
}

/* ===== 言值黑金色 ===== */
.points-gold {
  background: linear-gradient(135deg, #1d1d1f, #5a4a2a) !important;
  color: #ffd700 !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== 言值兑换 ===== */
.points-exchange-form {
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-exchange-form .pc-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(18, 18, 23, 0.72);
}

.points-exchange-form input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.points-exchange-preview {
  font-size: 13px;
  color: var(--joy-primary);
  font-weight: 600;
  padding: 8px 12px;
  background: var(--joy-primary-06);
  border-radius: 10px;
}

.points-exchange-other {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.points-exchange-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f5f5f7;
}

.points-exchange-name {
  font-size: 13px;
  color: #1d1d1f;
  font-weight: 500;
}

.points-exchange-tag {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #86868b;
  font-weight: 600;
}

/* ===== 我的言值页面 ===== */
.points-page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: calc(64px + 40px) 0 80px;
}

.points-header {
  margin-bottom: 32px;
}

.points-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1d1d1f;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.points-header > p {
  font-size: 15px;
  color: #86868b;
  margin: 0;
}

.points-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* ===== 左侧边栏 ===== */
.points-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 4px;
}

.points-sidebar::-webkit-scrollbar {
  width: 4px;
}

.points-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.points-balance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #33bbbb, #007777);
  color: #fff;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}

.points-balance-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.points-balance-value {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.points-balance-value.gold {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 侧边栏导航 */
.points-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border-radius: 16px;
  padding: 8px;
  border: 1px solid var(--line);
}

.points-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(18, 18, 23, 0.72);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}

.points-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
}

.points-nav-item.active {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  font-weight: 600;
}

.points-nav-item svg {
  flex-shrink: 0;
}

/* 侧边栏提示 */
.points-sidebar-tips {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--line);
}

.points-sidebar-tips h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 12px;
}

.points-sidebar-tips ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.points-sidebar-tips li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(18, 18, 23, 0.72);
}

.points-tips-link {
  display: inline-block;
  color: var(--joy-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.points-tips-link:hover {
  opacity: 0.7;
}

/* ===== 右侧主内容区 ===== */
.points-content {
  min-width: 0;
}

.points-tab-panel {
  display: none;
}

.points-tab-panel.active {
  display: block;
}

.points-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 4px;
}

.points-panel-desc {
  font-size: 13px;
  color: #86868b;
  margin: 0 0 20px;
}

/* ===== 兑换商品卡片 ===== */
.exchange-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .exchange-products {
    grid-template-columns: 1fr;
  }
}

.exchange-product-card {
  border-radius: 20px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exchange-product-card.available {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.exchange-product-card.available:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.exchange-product-card.locked {
  opacity: 0.65;
  background: #f5f5f7;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--joy-primary) 10%, transparent), color-mix(in srgb, var(--joy-primary) 10%, transparent));
  color: var(--joy-primary);
  margin-bottom: 14px;
}

.exchange-product-card.locked .product-icon {
  background: rgba(0, 0, 0, 0.05);
  color: #86868b;
}

.exchange-product-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 8px;
}

.product-desc {
  font-size: 13px;
  color: #86868b;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.product-exchange-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-input-row label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(18, 18, 23, 0.72);
  white-space: nowrap;
}

.product-input-row input {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  background: #fff;
}

.product-input-row input:focus {
  outline: none;
  border-color: var(--joy-primary);
}

.product-preview {
  font-size: 13px;
  color: var(--joy-primary);
  font-weight: 600;
  padding: 8px 14px;
  background: var(--joy-primary-06);
  border-radius: 10px;
  text-align: center;
}

.product-exchange-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #33bbbb, #007777);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.product-exchange-btn:hover {
  opacity: 0.9;
}

.product-exchange-btn:active {
  transform: scale(0.98);
}

.product-exchange-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-locked-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #86868b;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  align-self: flex-start;
}

/* ===== 言值变化（历史记录） ===== */
.points-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.points-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: box-shadow 0.15s ease;
}

.points-history-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.points-history-info {
  flex: 1;
  min-width: 0;
}

.points-history-reason {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.points-history-detail {
  font-size: 12px;
  color: #86868b;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-history-time {
  font-size: 11px;
  color: rgba(134, 134, 139, 0.7);
}

.points-history-amount {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.points-history-amount.positive {
  color: #30d158;
}

.points-history-amount.negative {
  color: #ff3b30;
}

/* ===== 个人中心言值徽标 ===== */
.pc-points-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-points-history-link {
  font-size: 12px;
  color: var(--joy-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--joy-primary-06);
  transition: background 0.15s ease;
}

.pc-points-history-link:hover {
  background: var(--joy-primary-12);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .points-grid {
    grid-template-columns: 1fr;
  }
  .points-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* ============================================================
   黑金主题（言值 > 500 用户专属）
   ============================================================ */
.gold-theme {
  --joy-primary: #b8943f;
  --gold-grad: linear-gradient(135deg, #3d3420 0%, #6b5a38 35%, #a8894f 70%, #d4af5f 100%);
  --gold-soft: rgba(184, 148, 63, 0.12);
  --gold-glow: rgba(255, 190, 80, 0.25);
  --gold-text: #b8943f;
  --gold-light: #d4af5f;
}

/* --- 按钮 --- */
.gold-theme .btn-primary,
.gold-theme .checkin-btn,
.gold-theme .checkin-btn:disabled,
.gold-theme .checkin-btn.checked,
.gold-theme .pc-save-btn,
.gold-theme .product-exchange-btn {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  border: none !important;
  box-shadow: 0 2px 10px var(--gold-glow), inset 0 1px 0 rgba(255, 235, 150, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}
.gold-theme .btn-primary:hover:not(:disabled),
.gold-theme .checkin-btn:hover,
.gold-theme .pc-save-btn:hover,
.gold-theme .product-exchange-btn:hover {
  opacity: 0.95;
  box-shadow: 0 4px 16px rgba(255, 190, 80, 0.35), inset 0 1px 0 rgba(255, 235, 150, 0.4) !important;
}

/* 次要/边框按钮 */
.gold-theme .btn-secondary,
.gold-theme .secondary-button,
.gold-theme .tab-btn.active {
  color: var(--gold-text) !important;
  border-color: var(--gold-text) !important;
  background: var(--gold-soft) !important;
}
.gold-theme .btn-secondary:hover,
.gold-theme .secondary-button:hover {
  background: rgba(184, 148, 63, 0.18) !important;
}

/* --- 文字 / 链接 --- */
.gold-theme .brand-text,
.gold-theme .brand-name,
.gold-theme .collapsible-toggle-btn,
.gold-theme .user-info-badge-points,
.gold-theme .suborg-row-status.joined,
.gold-theme .suborg-status-badge.joined {
  color: var(--gold-text) !important;
}
.gold-theme .nav-links a:hover,
.gold-theme .footer-links a:hover,
.gold-theme a:hover {
  color: var(--gold-text) !important;
}

/* 言值徽章文字（在非黑金徽章场景下） */
.gold-theme .points-gold:not(.user-info-badge-points) {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
}

/* 黑金主题下，言值徽章（带金色背景）的文字保持纯白色 */
.gold-theme .user-info-badge-points.points-gold {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* --- 边框 / 背景 --- */
.gold-theme .avatar-large {
  background: var(--gold-grad) !important;
  box-shadow: 0 4px 15px var(--gold-glow) !important;
}

.gold-theme .info-callout,
.gold-theme .transcript-entry[data-speaker="1"] {
  border-color: var(--gold-text) !important;
}

.gold-theme .transcript-entry[data-speaker="1"] .speaker-avatar,
.gold-theme .speaker-chip[data-speaker="1"] {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
}

.gold-theme .summary-dot {
  background: var(--gold-text) !important;
  box-shadow: 0 0 6px var(--gold-glow) !important;
}

/* 进度条 */
.gold-theme progress[value]::-webkit-progress-value,
.gold-theme .progress-bar-fill {
  background: var(--gold-grad) !important;
}

/* 输入框聚焦 */
.gold-theme input:focus,
.gold-theme select:focus,
.gold-theme textarea:focus {
  border-color: var(--gold-text) !important;
  box-shadow: 0 0 0 3px var(--gold-soft) !important;
}

/* 复选框 */
.gold-theme input[type="checkbox"] {
  accent-color: var(--gold-text) !important;
}

/* --- 个人中心特定 --- */
.gold-theme .checkin-day.checked {
  background: var(--gold-grad) !important;
  border-color: transparent !important;
  color: #fff8dc !important;
  box-shadow: 0 1px 4px var(--gold-glow) !important;
}
.gold-theme .checkin-day.today {
  border-color: var(--gold-text) !important;
  color: var(--gold-text) !important;
}
.gold-theme .checkin-month::before {
  background: var(--gold-grad) !important;
}

.gold-theme .points-balance-card {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 4px 20px var(--gold-glow) !important;
}

/* 子组织管理 */
.gold-theme .suborg-row-status.joined,
.gold-theme .suborg-status-badge.joined {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
}

.gold-theme .suborg-mode-toggle {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
  border-color: var(--gold-text) !important;
}

/* 折叠按钮 */
.gold-theme .collapsible-toggle-btn {
  color: var(--gold-text) !important;
  border-top-color: transparent !important;
}
.gold-theme .collapsible-toggle-btn:hover {
  background: linear-gradient(to bottom, rgba(184, 148, 63, 0), rgba(184, 148, 63, 0.08)) !important;
  border-color: rgba(184, 148, 63, 0.3) !important;
  border-top-color: transparent !important;
}

/* --- 会议界面特定 --- */
.gold-theme .meeting-sidebar .tab-btn.active {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
  border-bottom-color: var(--gold-text) !important;
}

.gold-theme .control-btn.primary {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 2px 10px var(--gold-glow) !important;
}

.gold-theme .lang-pill.active {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
  border-color: var(--gold-text) !important;
}

/* 通知徽标 */
.gold-theme .notification-dot,
.gold-theme .badge-dot {
  background: var(--gold-text) !important;
  box-shadow: 0 0 4px var(--gold-glow) !important;
}

/* --- 套餐与余量 --- */
.gold-theme .pc-subscription-item.active {
  border-color: rgba(184, 148, 63, 0.35) !important;
  background: rgba(184, 148, 63, 0.06) !important;
}
.gold-theme .pc-sub-status.active {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
}

/* --- 内容资产（词条术语） --- */
.gold-theme .term-tab-btn.active {
  background: var(--gold-grad) !important;
  border-color: transparent !important;
  color: #fff8dc !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme .term-add-btn {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 1px 6px var(--gold-glow) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme .term-batch-btn.primary {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  border-color: transparent !important;
  box-shadow: 0 1px 6px var(--gold-glow) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme .term-input:focus,
.gold-theme .term-search-box input:focus,
.gold-theme .term-sort-select:focus {
  border-color: var(--gold-text) !important;
  box-shadow: 0 0 0 3px var(--gold-soft) !important;
}
.gold-theme .term-edit-input,
.gold-theme .term-edit-select {
  border-color: var(--gold-text) !important;
}
.gold-theme .term-item-translation.editable:hover {
  background: var(--gold-soft) !important;
}
.gold-theme .term-item-source.editable:hover {
  background: rgba(184, 148, 63, 0.18) !important;
}

/* --- 言值兑换 --- */
.gold-theme .points-balance-card {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 8px 32px var(--gold-glow) !important;
}
.gold-theme .points-balance-value.gold {
  background: linear-gradient(135deg, #ffecb3, #ffd54f) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.gold-theme .points-nav-item.active {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
}
.gold-theme .points-tips-link,
.gold-theme .points-exchange-preview,
.gold-theme .product-preview {
  color: var(--gold-text) !important;
  background: var(--gold-soft) !important;
}
.gold-theme .product-icon {
  background: linear-gradient(135deg, rgba(184, 148, 63, 0.15), rgba(212, 175, 95, 0.2)) !important;
  color: var(--gold-text) !important;
}
.gold-theme .product-input-row input:focus {
  border-color: var(--gold-text) !important;
  box-shadow: 0 0 0 3px var(--gold-soft) !important;
}
.gold-theme .product-exchange-btn {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 2px 12px var(--gold-glow), inset 0 1px 0 rgba(255, 235, 150, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme .product-exchange-btn:hover {
  opacity: 0.95 !important;
  box-shadow: 0 4px 18px rgba(255, 190, 80, 0.35), inset 0 1px 0 rgba(255, 235, 150, 0.4) !important;
}

/* --- 信息/指南页面 --- */
.gold-theme .info-callout {
  background: rgba(184, 148, 63, 0.06) !important;
  border-left-color: var(--gold-text) !important;
}
.gold-theme .info-step::before {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 2px 8px var(--gold-glow) !important;
}
.gold-theme .info-card:hover {
  border-color: rgba(184, 148, 63, 0.4) !important;
}
.gold-theme .info-card-icon {
  background: rgba(184, 148, 63, 0.12) !important;
  color: var(--gold-text) !important;
}
.gold-theme .info-back,
.gold-theme .info-content a,
.gold-theme .info-content ol li::before {
  color: var(--gold-text) !important;
}
.gold-theme .info-content a:hover {
  color: var(--gold-light) !important;
}

/* --- 会议界面补充 --- */
.gold-theme .speaker-row-self {
  background: rgba(184, 148, 63, 0.06) !important;
  border-color: rgba(184, 148, 63, 0.2) !important;
}
.gold-theme .speaker-row-self .speaker-row-label {
  color: var(--gold-text) !important;
}
.gold-theme .summary-speaker-label[data-speaker="1"] .dot-sm {
  background: var(--gold-text) !important;
  box-shadow: 0 0 4px var(--gold-glow) !important;
}
.gold-theme .feedback-tab:hover {
  background: var(--gold-grad) !important;
  box-shadow: -4px 0 20px var(--gold-glow) !important;
}

/* --- 品牌变量覆盖（统一兜底） --- */
.gold-theme {
  --joy-emerald-500: var(--gold-text);
  --joy-state-success: var(--gold-text);
  --blue: var(--gold-text);
  --joy-emerald-400: var(--gold-light);
  --joy-emerald-600: #9a7a30;
  --joy-emerald-300: rgba(184, 148, 63, 0.4);
  --joy-emerald-50: var(--gold-soft);
}

/* --- 功能引导 --- */
.gold-theme #guide-highlight {
  border-color: var(--gold-text) !important;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55), 0 0 20px var(--gold-glow) !important;
}
.gold-theme .guide-btn-primary {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 2px 10px var(--gold-glow) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme .guide-btn-primary:hover {
  opacity: 0.95 !important;
}
.gold-theme .guide-dot.active {
  background: var(--gold-text) !important;
}
.gold-theme .guide-demo-speaker {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 1px 4px var(--gold-glow) !important;
}
.gold-theme #guideFloatBtn {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 2px 12px var(--gold-glow) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme #guideFloatBtn:hover {
  box-shadow: 0 4px 20px var(--gold-glow) !important;
}
.gold-theme #guideReplayLink:hover {
  color: var(--gold-text) !important;
}

/* --- 悬浮功能引导按钮 --- */
.gold-theme .guide-float-btn {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 2px 12px var(--gold-glow) !important;
}

/* --- 状态指示器：保持原有颜色（蓝/绿/红/灰），不随黑金主题改变 --- */

/* --- 会议底部按钮：开始翻译 / 纠词 / 添加 --- */
.gold-theme .meeting-bottom-bar .meeting-btn.start,
.gold-theme .meeting-bottom-bar .terminology-save-btn {
  background: var(--gold-grad) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px var(--gold-glow), inset 0 1px 0 rgba(255, 235, 150, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme .meeting-bottom-bar .meeting-btn.start:hover,
.gold-theme .meeting-bottom-bar .terminology-save-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(255, 190, 80, 0.35), inset 0 1px 0 rgba(255, 235, 150, 0.4) !important;
}

/* 音量指示条（黑金渐变替代绿橙红） */
.gold-theme .volume-level {
  background: linear-gradient(90deg, #6b5a38, #a8894f, #d4af5f) !important;
  background-size: 200% 100% !important;
}

/* 内容更新倒计时胶囊（黑金色） */
.gold-theme .summary-countdown {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
  border: 1px solid rgba(184, 148, 63, 0.2) !important;
}
.gold-theme .self-speaker .speaker-avatar {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 1px 4px var(--gold-glow) !important;
}

/* --- 子组织管理补充 --- */
.gold-theme .suborg-row-mode {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
}

/* === 组织子组织拉帘（浮动紧凑面板，参照会议翻译子组织面板） === */
#terminologyCard {
  position: relative;
  z-index: 10;
}
.term-source-tabs {
  position: relative;
}
.org-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: var(--joy-z-drawer);
  max-width: 420px;
  max-height: 420px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
}
.org-drawer.open {
  display: flex;
  flex-direction: column;
  animation: orgDrawerSlideDown 0.2s ease;
}
@keyframes orgDrawerSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.org-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}
.org-drawer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.org-drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #86868b;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: background 0.15s;
}
.org-drawer-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}
.org-drawer-body {
  padding: 8px 10px 10px;
  flex: 1;
  overflow-y: auto;
}
.org-drawer-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0 8px;
}
.org-drawer-input {
  flex: 1;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}
.org-drawer-input:focus {
  border-color: var(--joy-primary);
}
.org-drawer-btn {
  white-space: nowrap;
  padding: 0 12px;
  min-height: 34px;
  font-size: 13px;
}
.org-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.org-drawer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.org-drawer-item:hover {
  border-color: color-mix(in srgb, var(--joy-primary) 30%, transparent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.org-drawer-item.active {
  border-color: var(--joy-primary);
  background: color-mix(in srgb, var(--joy-primary) 4%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--joy-primary) 10%, transparent);
}
.org-drawer-item.not-joined {
  cursor: default;
  opacity: 0.85;
}
.org-drawer-item.not-joined:hover {
  border-color: var(--line);
  box-shadow: none;
}
.org-drawer-item-name {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-drawer-pencil {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #aeaeb5;
  padding: 2px 4px;
  opacity: 0.4;
  transition: opacity 0.15s, color 0.15s;
  flex-shrink: 0;
}
.org-drawer-pencil:hover {
  opacity: 1;
  color: var(--joy-primary);
}
.org-drawer-members-panel {
  position: absolute;
  top: 36px;
  right: 12px;
  width: 280px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: var(--joy-z-dropdown);
  display: none;
  animation: orgDrawerSlideDown 0.2s ease;
}
.org-drawer-members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.org-drawer-members-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  padding: 2px 6px;
  border-radius: 4px;
}
.org-drawer-members-close:hover {
  background: #f0f0f2;
  color: var(--text);
}
.org-drawer-members-list {
  display: flex;
  flex-direction: column;
}
.org-drawer-member-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #f5f5f7;
}
.org-drawer-member-item:last-child {
  border-bottom: none;
}
.org-drawer-member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.org-drawer-member-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-drawer-member-email {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.org-drawer-member-date {
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}
.org-drawer-item-status {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.org-drawer-mode,
.org-drawer-mode-static {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  white-space: nowrap;
}
.org-drawer-mode {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.06);
  color: #86868b;
}
.org-drawer-mode-static {
  background: rgba(0, 0, 0, 0.06);
  color: #86868b;
}
.org-drawer-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.org-drawer-action {
  padding: 3px 8px;
  min-height: 26px;
  font-size: 11px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.org-drawer-action:hover {
  background: rgba(0, 0, 0, 0.06);
}
.org-drawer-hide-btn {
  font-size: 13px !important;
  line-height: 1;
  padding: 3px 6px !important;
  opacity: 0.5;
}
.org-drawer-hide-btn:hover {
  opacity: 1;
  color: #ff3b30 !important;
}
.org-drawer-empty {
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.org-drawer-main-org {
  margin-bottom: 2px;
}
.org-drawer-main-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.org-drawer-sub-org-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.org-drawer-add {
  display: flex;
  gap: 6px;
  align-items: center;
}
.org-drawer-checkbox-label {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.org-drawer-checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.org-drawer-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  text-align: center;
}
.org-drawer-search-area {
  margin-bottom: 0;
}
.org-drawer-search-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.org-drawer-search-btn:hover {
  background: #f0f0f2;
}
.org-drawer-search-results {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.org-drawer-search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f5f5f7;
  border-radius: 8px;
}
.org-drawer-pending-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.org-drawer-pending-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}
.org-drawer-pending-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
}
/* 黑金主题下拉帘 */
.gold-theme .org-drawer {
  background: linear-gradient(160deg, rgba(255, 254, 248, 0.98), rgba(255, 248, 230, 0.98));
  border-color: rgba(184, 148, 63, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 0 30px rgba(184, 148, 63, 0.08);
}
.gold-theme .org-drawer-header {
  border-color: rgba(184, 148, 63, 0.12);
}
.gold-theme .org-drawer-title {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-theme .org-drawer-item.active {
  border-color: var(--gold-text);
  background: var(--gold-soft);
  box-shadow: 0 0 0 2px rgba(184, 148, 63, 0.15);
}
.gold-theme .org-drawer-item:hover {
  border-color: rgba(184, 148, 63, 0.3);
}

/* --- 组织按钮与子组织胶囊：统一高度、底部叠放 --- */
.term-tab-org-wrapper .term-tab-btn {
  position: relative;
  z-index: 2;
  height: 33px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

/* --- 组织选中胶囊（子组织选中后与"组织"按钮同高、右侧叠放 --- */
.org-selection-capsule {
  position: absolute;
  top: 0;
  left: calc(100% - 39px);
  display: none;
  align-items: center;
  gap: 4px;
  background: var(--joy-primary-soft);
  border: 1px solid var(--joy-primary-25);
  border-radius: 14px;
  padding: 5px 8px 5px 45px;
  font-size: 13px;
  font-weight: 500;
  box-sizing: border-box;
  height: 33px;
  color: var(--joy-primary);
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  line-height: normal;
}
.org-capsule-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  justify-content: flex-end;
  width: 100%;
}
.org-capsule-sub span {
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.org-capsule-close {
  border: none;
  background: transparent;
  color: var(--joy-primary);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.org-capsule-close:hover {
  opacity: 1;
}
/* 言值≥500 黑金色主题 */
.gold-theme .org-selection-capsule {
  background: rgba(212, 175, 95, 0.1);
  border-color: rgba(212, 175, 95, 0.3);
  color: #8a6d2f;
}
.gold-theme .org-capsule-close {
  color: #8a6d2f;
}
.org-drawer-header {
  cursor: grab;
}
.org-drawer-header:active {
  cursor: grabbing;
}

/* --- 悬浮反馈按钮 --- */
.gold-theme .feedback-tab {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: -2px 0 12px var(--gold-glow) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

/* --- BYOK 页面标题区 --- */
.gold-theme .pc-header h1 {
  background: var(--gold-grad) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.gold-theme .pc-header p {
  color: rgba(184, 148, 63, 0.8) !important;
}
.gold-theme .pc-header a[href="/personal-center/"] {
  color: var(--gold-text) !important;
}

/* --- 添加关联按钮 --- */
.gold-theme .share-add-btn {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 2px 10px var(--gold-glow), inset 0 1px 0 rgba(255, 235, 150, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme .share-add-btn:hover:not(:disabled) {
  opacity: 0.95 !important;
  box-shadow: 0 4px 16px rgba(255, 190, 80, 0.35), inset 0 1px 0 rgba(255, 235, 150, 0.4) !important;
}

/* --- BYOK 页面内部元素 --- */
.gold-theme #byokMtUsageBar {
  background: var(--gold-grad) !important;
}
.gold-theme #byokMtEnabledBox,
.gold-theme #byokMtAutoStopBox {
  border-left-color: var(--gold-text) !important;
  background: rgba(184, 148, 63, 0.04) !important;
}

/* 胶囊开关 - 黑金版（仅开启状态显示金色） */
.gold-theme #byokMtEnabledSlider.active,
.gold-theme #byokMtAutoStopSlider.active {
  background: var(--gold-grad) !important;
  box-shadow: 0 1px 4px var(--gold-glow), inset 0 1px 0 rgba(255, 235, 150, 0.3) !important;
}

/* 胶囊开关 - 黑金版（关闭状态显示灰色） */
.gold-theme #byokMtAutoStopSlider:not(.active) {
  background: #e9e9eb !important;
  box-shadow: none !important;
}

/* 指导书链接 - 金色发光 */
.gold-theme .byok-guide-toggle {
  color: var(--gold-text) !important;
  text-shadow: 0 0 8px var(--gold-glow) !important;
  transition: all 0.2s ease !important;
}
.gold-theme .byok-guide-toggle:hover {
  color: var(--gold-light) !important;
  text-shadow: 0 0 12px rgba(255, 200, 80, 0.5) !important;
}

/* 个人中心 BYOK 入口链接 - 金色 */
.gold-theme .byok-entry-link,
.gold-theme .byok-entry-link small {
  color: var(--gold-text) !important;
}
.gold-theme .byok-entry-link:hover {
  color: var(--gold-light) !important;
}
.gold-theme .byok-entry-link:hover small {
  color: var(--gold-light) !important;
}

/* === BYOK 密钥管理确认弹窗 === */
.byok-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--joy-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: byokModalFadeIn 0.2s ease;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.byok-modal-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.byok-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 8px;
}

.byok-modal-desc {
  font-size: 13px;
  color: #86868b;
  line-height: 1.5;
  margin: 0 0 20px;
}

.byok-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.byok-modal-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.byok-modal-btn-change {
  background: linear-gradient(135deg, #33bbbb, #007777);
  color: #fff;
  box-shadow: 0 2px 10px var(--joy-primary-25);
}
.byok-modal-btn-change:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.byok-modal-btn-delete {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}
.byok-modal-btn-delete:hover {
  background: rgba(255, 59, 48, 0.15);
}

.byok-modal-cancel {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: #86868b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}
.byok-modal-cancel:hover {
  color: #505050;
}

/* 黑金主题下的弹窗 */
.gold-theme .byok-modal-card {
  background: linear-gradient(160deg, #fffef8, #fff8e6);
  border: 1px solid rgba(184, 148, 63, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(184, 148, 63, 0.1);
}
.gold-theme .byok-modal-title {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-theme .byok-modal-btn-change {
  background: var(--gold-grad) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px var(--gold-glow), inset 0 1px 0 rgba(255, 235, 150, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}
.gold-theme .byok-modal-btn-delete {
  background: rgba(184, 148, 63, 0.08) !important;
  color: var(--gold-text) !important;
  border: 1px solid rgba(184, 148, 63, 0.2) !important;
}

/* ===== 测试阶段横幅 ===== */
.site-testing-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #33bbbb, #007777);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-testing-banner.visible {
  opacity: 1;
}
.site-testing-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-testing-banner-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.site-testing-banner-text {
  flex: 1;
  text-align: center;
}
.site-testing-banner-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  line-height: 1;
}
.site-testing-banner-close:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .site-testing-banner-inner {
    padding: 8px 12px;
  }
  .site-testing-banner-text {
    font-size: 12px;
    text-align: left;
  }
}

/* ===== 翻译悬浮窗 ===== */
.float-window {
  position: fixed;
  bottom: 6vh;
  right: 3vw;
  width: calc(100vw / 5);
  height: calc(100vh / 5);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  z-index: var(--joy-z-max);
  overflow: hidden;
  user-select: none;
  transition: box-shadow 0.2s, opacity 0.2s;
  opacity: 0.85;
  backdrop-filter: blur(6px);
}
.float-window:hover {
  opacity: 1;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16), 0 3px 10px rgba(0,0,0,0.1);
}

.float-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(65,118,144,0.85), rgba(44,91,110,0.85));
  color: #fff;
  cursor: move;
}

.float-lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
}

.float-lang-source,
.float-lang-target {
  min-width: 28px;
  text-align: center;
  padding: 2px 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.float-lang-source:hover,
.float-lang-target:hover {
  background: rgba(255,255,255,0.35);
}

.float-lang-arrow {
  font-size: 10px;
  opacity: 0.8;
}

.float-close-btn {
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.float-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.float-window-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  min-height: 0;
}

.float-control-group {
  display: flex;
  gap: 6px;
}

.float-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.2s;
  opacity: 0.85;
}

.float-play-btn {
  background: linear-gradient(135deg, rgba(65,118,144,0.85), rgba(44,91,110,0.85));
  color: #fff;
  box-shadow: 0 2px 8px rgba(65,118,144,0.25);
}
.float-play-btn:hover {
  opacity: 1;
  transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(65,118,144,0.35);
}
.float-play-btn.paused {
  background: linear-gradient(135deg, rgba(243,156,18,0.85), rgba(230,126,34,0.85));
  box-shadow: 0 2px 8px rgba(243,156,18,0.25);
}

.float-stop-btn {
  background: rgba(245,245,245,0.85);
  color: #666;
}
.float-stop-btn:hover {
  background: #e8e8e8;
  color: #e74c3c;
}

.float-mic-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #999;
  opacity: 0.85;
}
.float-mic-indicator.active {
  color: #417690;
}
.float-mic-indicator.muted {
  color: #e74c3c;
}

.float-mic-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.float-mic-wave span {
  display: block;
  width: 2px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.4;
  transition: height 0.1s;
}
.float-mic-indicator.active .float-mic-wave span {
  opacity: 1;
  animation: micWave 1s ease-in-out infinite;
}
.float-mic-indicator.active .float-mic-wave span:nth-child(1) { animation-delay: 0s; }
.float-mic-indicator.active .float-mic-wave span:nth-child(2) { animation-delay: 0.1s; }
.float-mic-indicator.active .float-mic-wave span:nth-child(3) { animation-delay: 0.2s; }
.float-mic-indicator.active .float-mic-wave span:nth-child(4) { animation-delay: 0.3s; }
.float-mic-indicator.active .float-mic-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes micWave {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

.float-window-status {
  padding: 4px 10px 8px;
  text-align: center;
  font-size: 10px;
  color: #999;
}

/* 语言选择下拉 */
.float-lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: var(--joy-z-tooltip);
  display: none;
}
.float-lang-menu.show { display: block; }

.float-lang-item {
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
}
.float-lang-item:hover {
  background: #f0f7f9;
  color: #417690;
}
.float-lang-item.active {
  background: #e3f2fd;
  color: #417690;
  font-weight: 600;
}

/* ===== 悬浮窗模式：隐藏主页面 ===== */
body.pip-mode .site-header,
body.pip-mode .meeting-full-toolbar,
body.pip-mode .meeting-page,
body.pip-mode #historyDrawer,
body.pip-mode .history-divider,
body.pip-mode .toast {
  display: none !important;
}
body.pip-mode::before {
  content: "JoySpeech 悬浮窗已开启";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #aaa;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

/* ===== 主题色系 ===== */

/* ---- 深海蓝 (Ocean) ---- */
[data-theme="ocean"] {
  --joy-primary: #2563eb; --joy-primary-light: #60a5fa; --joy-primary-dark: #1d4ed8;
  --joy-primary-foreground: #fff;
  --joy-primary-soft: color-mix(in srgb, #2563eb 8%, transparent);
  --joy-primary-glow: color-mix(in srgb, #2563eb 25%, transparent);
  --joy-emerald-50: #eff6ff; --joy-emerald-100: #dbeafe;
  --joy-emerald-200: #bfdbfe; --joy-emerald-300: #93c5fd;
  --joy-emerald-400: #60a5fa; --joy-emerald-500: #3b82f6;
  --joy-emerald-600: #2563eb; --joy-emerald-700: #1d4ed8;
  --joy-emerald-800: #1e40af; --joy-emerald-900: #1e3a8a; --joy-emerald-950: #172554;
  --joy-ring: #60a5fa; --joy-state-info: #1d4ed8;
  --joy-state-info-soft: color-mix(in srgb, #2563eb 10%, transparent);
  --blue: #2563eb; --blue-dark: #1d4ed8;
}

/* ---- 日落橙 (Sunset) ---- */
[data-theme="sunset"] {
  --joy-primary: #ea580c; --joy-primary-light: #fb923c; --joy-primary-dark: #c2410c;
  --joy-primary-foreground: #fff;
  --joy-primary-soft: color-mix(in srgb, #ea580c 8%, transparent);
  --joy-primary-glow: color-mix(in srgb, #ea580c 25%, transparent);
  --joy-emerald-50: #fff7ed; --joy-emerald-100: #ffedd5;
  --joy-emerald-200: #fed7aa; --joy-emerald-300: #fdba74;
  --joy-emerald-400: #fb923c; --joy-emerald-500: #f97316;
  --joy-emerald-600: #ea580c; --joy-emerald-700: #c2410c;
  --joy-emerald-800: #9a3412; --joy-emerald-900: #7c2d12; --joy-emerald-950: #431407;
  --joy-ring: #fb923c; --joy-state-info: #c2410c;
  --joy-state-info-soft: color-mix(in srgb, #ea580c 10%, transparent);
  --blue: #ea580c; --blue-dark: #c2410c;
}

/* ---- 森林绿 (Forest) ---- */
[data-theme="forest"] {
  --joy-primary: #16a34a; --joy-primary-light: #4ade80; --joy-primary-dark: #15803d;
  --joy-primary-foreground: #fff;
  --joy-primary-soft: color-mix(in srgb, #16a34a 8%, transparent);
  --joy-primary-glow: color-mix(in srgb, #16a34a 25%, transparent);
  --joy-emerald-50: #f0fdf4; --joy-emerald-100: #dcfce7;
  --joy-emerald-200: #bbf7d0; --joy-emerald-300: #86efac;
  --joy-emerald-400: #4ade80; --joy-emerald-500: #22c55e;
  --joy-emerald-600: #16a34a; --joy-emerald-700: #15803d;
  --joy-emerald-800: #166534; --joy-emerald-900: #14532d; --joy-emerald-950: #052e16;
  --joy-ring: #4ade80; --joy-state-info: #15803d;
  --joy-state-info-soft: color-mix(in srgb, #16a34a 10%, transparent);
  --blue: #16a34a; --blue-dark: #15803d;
}

/* ---- 典雅紫 (Purple) ---- */
[data-theme="purple"] {
  --joy-primary: #7c3aed; --joy-primary-light: #a78bfa; --joy-primary-dark: #6d28d9;
  --joy-primary-foreground: #fff;
  --joy-primary-soft: color-mix(in srgb, #7c3aed 8%, transparent);
  --joy-primary-glow: color-mix(in srgb, #7c3aed 25%, transparent);
  --joy-emerald-50: #f5f3ff; --joy-emerald-100: #ede9fe;
  --joy-emerald-200: #ddd6fe; --joy-emerald-300: #c4b5fd;
  --joy-emerald-400: #a78bfa; --joy-emerald-500: #8b5cf6;
  --joy-emerald-600: #7c3aed; --joy-emerald-700: #6d28d9;
  --joy-emerald-800: #5b21b6; --joy-emerald-900: #4c1d95; --joy-emerald-950: #2e1065;
  --joy-ring: #a78bfa; --joy-state-info: #6d28d9;
  --joy-state-info-soft: color-mix(in srgb, #7c3aed 10%, transparent);
  --blue: #7c3aed; --blue-dark: #6d28d9;
}

/* ---- 玫瑰红 (Rose) ---- */
[data-theme="rose"] {
  --joy-primary: #e11d48; --joy-primary-light: #fb7185; --joy-primary-dark: #be123c;
  --joy-primary-foreground: #fff;
  --joy-primary-soft: color-mix(in srgb, #e11d48 8%, transparent);
  --joy-primary-glow: color-mix(in srgb, #e11d48 25%, transparent);
  --joy-emerald-50: #fff1f2; --joy-emerald-100: #ffe4e6;
  --joy-emerald-200: #fecdd3; --joy-emerald-300: #fda4af;
  --joy-emerald-400: #fb7185; --joy-emerald-500: #f43f5e;
  --joy-emerald-600: #e11d48; --joy-emerald-700: #be123c;
  --joy-emerald-800: #9f1239; --joy-emerald-900: #881337; --joy-emerald-950: #4c0519;
  --joy-ring: #fb7185; --joy-state-info: #be123c;
  --joy-state-info-soft: color-mix(in srgb, #e11d48 10%, transparent);
  --blue: #e11d48; --blue-dark: #be123c;
}

/* ---- 黑金尊享 (Black Gold) ---- */
[data-theme="black-gold"] {
  --joy-primary: #b8943f; --joy-primary-light: #d4af5f; --joy-primary-dark: #9a7a30;
  --joy-primary-foreground: #fff;
  --joy-primary-soft: color-mix(in srgb, #b8943f 8%, transparent);
  --joy-primary-glow: color-mix(in srgb, #b8943f 25%, transparent);
  --joy-emerald-50: #faf6e8; --joy-emerald-100: #f0e6c8;
  --joy-emerald-200: #e0d0a0; --joy-emerald-300: #d4af5f;
  --joy-emerald-400: #c8a050; --joy-emerald-500: #b8943f;
  --joy-emerald-600: #9a7a30; --joy-emerald-700: #856328;
  --joy-emerald-800: #6b5020; --joy-emerald-900: #5e4a0a; --joy-emerald-950: #3d3408;
  --joy-ring: #f0d670; --joy-state-info: #9a7a30;
  --joy-state-info-soft: color-mix(in srgb, #b8943f 10%, transparent);
  --blue: #b8943f; --blue-dark: #9a7a30;
}

/* ===== 调色盘 UI ===== */
.theme-palette {
  position: fixed; top: 12px; right: 12px; z-index: 9999;
}
.theme-palette-btn {
  width: 36px; height: 36px; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%; background: rgba(255,255,255,0.9); cursor: grab;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.2s;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.theme-palette-btn:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.theme-palette-btn:active { cursor: grabbing; transform: scale(0.95); }
.theme-palette-dropdown {
  position: absolute; top: 42px; right: 0;
  background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 8px;
  display: none; min-width: 180px; gap: 4px;
}
.theme-palette-dropdown.show { display: flex; flex-direction: column; }
.theme-palette-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
  font-size: 13px; color: #333;
}
.theme-palette-item:hover { background: rgba(0,0,0,0.05); }
.theme-palette-item.active { background: rgba(0,0,0,0.06); font-weight: 600; }
.theme-swatch {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1); flex-shrink: 0;
}
.theme-palette-item .theme-lock {
  margin-left: auto; font-size: 10px; color: #999;
}
.theme-palette-divider {
  height: 1px; background: rgba(0,0,0,0.08); margin: 4px 0;
}

/* ===== 黑金主题：浅色金色点缀（非暗色翻转） ===== */
[data-theme="black-gold"] .footer {
  background: #FAF6E8 !important;
}
[data-theme="black-gold"] .footer-column h4 {
  color: #8a6d2a !important;
}
[data-theme="black-gold"] .footer-column a:hover {
  color: #b8943f !important;
}
[data-theme="black-gold"] .footer-bottom {
  border-top-color: rgba(184,148,63,0.15) !important;
}

[data-theme="black-gold"] .nav a:hover,
[data-theme="black-gold"] .nav button:hover {
  color: #b8943f !important;
}

/* 首页按钮金色化 */
[data-theme="black-gold"] .btn-primary {
  background: linear-gradient(135deg, #d4af5f 0%, #b8943f 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(184,148,63,0.25), inset 0 1px 0 rgba(255,235,150,0.3) !important;
}
[data-theme="black-gold"] .btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 16px rgba(184,148,63,0.35), inset 0 1px 0 rgba(255,235,150,0.4) !important;
}
[data-theme="black-gold"] .btn-secondary {
  color: #b8943f !important;
  border-color: rgba(184,148,63,0.4) !important;
  background: rgba(184,148,63,0.08) !important;
}
[data-theme="black-gold"] .btn-secondary:hover {
  background: rgba(184,148,63,0.15) !important;
  border-color: #b8943f !important;
}

/* 调色盘金色高亮 */
[data-theme="black-gold"] .theme-palette-btn {
  border-color: rgba(184,148,63,0.3) !important;
}
[data-theme="black-gold"] .theme-palette-item.active {
  background: rgba(184,148,63,0.12) !important;
}

/* 顶部测试横幅金色化 */
[data-theme="black-gold"] .site-testing-banner {
  background: linear-gradient(135deg, #d4af5f 0%, #b8943f 100%) !important;
}
[data-theme="black-gold"] .site-testing-banner-text {
  color: #fff !important;
}

/* 痛点/爽点反馈按钮金色化 */
[data-theme="black-gold"] .feedback-tab {
  background: linear-gradient(135deg, #d4af5f 0%, #b8943f 100%) !important;
  color: #fff !important;
  box-shadow: -2px 4px 16px rgba(184,148,63,0.3) !important;
}
[data-theme="black-gold"] .feedback-tab:hover {
  box-shadow: -2px 6px 20px rgba(184,148,63,0.45) !important;
}
[data-theme="black-gold"] .feedback-submit-btn {
  background: linear-gradient(135deg, #d4af5f 0%, #b8943f 100%) !important;
  color: #fff !important;
}
[data-theme="black-gold"] .feedback-tab-btn.active[data-type="highlight"] {
  background: rgba(184,148,63,0.12) !important;
  color: #b8943f !important;
  border-color: rgba(184,148,63,0.3) !important;
}

/* 特性卡片图标金色化 */
[data-theme="black-gold"] .feature-icon {
  background: linear-gradient(135deg, #d4af5f 0%, #b8943f 100%) !important;
  box-shadow: 0 8px 20px rgba(184,148,63,0.25) !important;
}

/* 使用流程步骤数字金色化 */
[data-theme="black-gold"] .step-number {
  background: linear-gradient(135deg, #d4af5f 0%, #b8943f 100%) !important;
  box-shadow: 0 4px 12px rgba(184,148,63,0.25) !important;
}

/* 套餐卡片推荐标签金色化 */
[data-theme="black-gold"] .pricing-card.recommended {
  border-color: rgba(184,148,63,0.5) !important;
  box-shadow: 0 12px 40px rgba(184,148,63,0.15) !important;
}
[data-theme="black-gold"] .pricing-badge {
  background: linear-gradient(135deg, #d4af5f 0%, #b8943f 100%) !important;
}

/* 品牌Logo金色化 */
[data-theme="black-gold"] .brand-logo .brand-dot {
  background: #b8943f !important;
}
[data-theme="black-gold"] .brand-name {
  color: #b8943f !important;
}

/* ========================================
   UI Enhancement Additions
   ======================================== */

/* ===== Form Inputs ===== */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--joy-foreground);
  background-color: var(--joy-surface);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius);
  transition: all var(--joy-transition-fast);
  font-family: inherit;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--joy-neutral-300);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--joy-neutral-400);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--joy-muted);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--joy-neutral-700);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-error {
  font-size: 13px;
  color: var(--joy-state-error);
  margin-top: 6px;
}

.form-hint {
  font-size: 13px;
  color: var(--joy-neutral-500);
  margin-top: 6px;
}

/* ===== Card Base ===== */
.card {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  padding: var(--joy-s-6);
  transition: all var(--joy-transition);
}

.card-hover:hover {
  border-color: var(--joy-primary);
  box-shadow: var(--joy-shadow-lg);
  transform: translateY(-2px);
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--joy-radius-full);
  line-height: 1.2;
}

.badge-primary {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
}

.badge-success {
  background: var(--joy-state-success-soft);
  color: var(--joy-state-success);
}

.badge-warning {
  background: var(--joy-state-warning-soft);
  color: var(--joy-state-warning);
}

.badge-error {
  background: var(--joy-state-error-soft);
  color: var(--joy-state-error);
}

.badge-muted {
  background: var(--joy-muted);
  color: var(--joy-neutral-600);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in { animation: fadeIn 0.3s ease both; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease both; }
.animate-fade-in-down { animation: fadeInDown 0.4s ease both; }
.animate-scale-in { animation: scaleIn 0.3s ease both; }
.animate-slide-in-right { animation: slideInRight 0.3s ease both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* ===== Utility Classes ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.divider-y {
  width: 1px;
  height: 100%;
  background: var(--joy-border);
}

.divider-x {
  height: 1px;
  width: 100%;
  background: var(--joy-border);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--joy-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--joy-neutral-300);
  border-radius: 4px;
  transition: background var(--joy-transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--joy-neutral-400);
}

/* ===== Selection ===== */
::selection {
  background: var(--joy-primary-soft);
  color: var(--joy-primary-dark);
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid var(--joy-primary);
  outline-offset: 2px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   ===== 会议页面 UI 优化 (Meeting Page UI Enhancement) =====
   ============================================================ */

/* ------------------------------------------------------------
   1. 顶部工具栏美化 —— 更现代的玻璃拟态外观
   ------------------------------------------------------------ */
.meeting-full-toolbar {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(250, 250, 250, 0.88) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--joy-neutral-200);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
              0 4px 20px rgba(0, 0, 0, 0.04);
}

.meeting-toolbar-inner {
  padding: 10px 0;
  gap: 16px;
}

/* 工具栏中心区域 —— 音频源容器 */
.meeting-toolbar-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.toolbar-audio-source {
  padding: 8px 14px;
  border-radius: var(--joy-radius-xl);
  background: var(--joy-surface);
  border: 1px solid var(--joy-neutral-200);
  box-shadow: var(--joy-shadow-xs);
  transition: all var(--joy-transition);
}

.toolbar-audio-source:hover {
  border-color: var(--joy-primary-soft);
  box-shadow: var(--joy-shadow-sm);
}

.meeting-toolbar-center .toolbar-audio-source {
  border-color: var(--joy-primary-15);
  background: linear-gradient(135deg,
    var(--joy-primary-06) 0%,
    rgba(51, 201, 201, 0.04) 100%);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.meeting-toolbar-center .toolbar-audio-source .mic-select {
  min-height: 28px;
  height: 28px;
  padding: 2px 24px 2px 8px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 12px;
  line-height: 1;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.meeting-toolbar-center .audio-source-label {
  color: var(--joy-primary);
  font-weight: 600;
  font-size: 12px;
}

.audio-source-name {
  font-size: 11px;
  color: var(--joy-neutral-500);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   2. 服务状态指示器美化 —— 精致的状态灯效果
   ------------------------------------------------------------ */
.service-status {
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--joy-radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  transition: all var(--joy-transition);
  backdrop-filter: blur(8px);
}

.service-status-dot {
  width: 7px;
  height: 7px;
  position: relative;
}

/* idle 状态 */
.service-status.idle {
  background: var(--joy-neutral-100);
  border-color: var(--joy-neutral-200);
  color: var(--joy-neutral-500);
}
.service-status.idle .service-status-dot {
  background: var(--joy-neutral-400);
}

/* connecting 状态 */
.service-status.connecting {
  background: var(--joy-state-info-soft);
  border-color: color-mix(in srgb, var(--joy-primary) 20%, transparent);
  color: var(--joy-primary);
}
.service-status.connecting .service-status-dot {
  background: var(--joy-primary);
  box-shadow: 0 0 0 4px var(--joy-primary-glow);
}

/* system 运行中状态（青绿色） */
.service-status.system {
  background: linear-gradient(135deg,
    var(--joy-primary-12) 0%,
    rgba(51, 201, 201, 0.08) 100%);
  border-color: var(--joy-primary-25);
  color: var(--joy-emerald-700);
}
.service-status.system .service-status-dot {
  background: var(--joy-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--joy-primary) 20%, transparent),
              0 0 12px var(--joy-primary-50);
}

/* user 运行中状态（绿色） */
.service-status.user {
  background: var(--joy-state-success-soft);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}
.service-status.user .service-status-dot {
  background: var(--joy-state-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2),
              0 0 12px rgba(16, 185, 129, 0.4);
}

/* error 状态 */
.service-status.error {
  background: var(--joy-state-error-soft);
  border-color: rgba(239, 68, 68, 0.25);
  color: #DC2626;
}
.service-status.error .service-status-dot {
  background: var(--joy-state-error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

/* paused 状态 */
.service-status.paused {
  background: var(--joy-state-warning-soft);
  border-color: rgba(245, 158, 11, 0.25);
  color: #D97706;
}
.service-status.paused .service-status-dot {
  background: var(--joy-state-warning);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

/* 试用计时器美化 */
.trial-timer {
  padding: 8px 14px;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(135deg,
    var(--joy-primary-soft) 0%,
    rgba(51, 201, 201, 0.05) 100%);
  border: 1px solid var(--joy-primary-15);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--joy-shadow-xs);
  transition: all var(--joy-transition);
}

.trial-timer:hover {
  border-color: var(--joy-primary-25);
  box-shadow: var(--joy-shadow-sm);
}

.trial-timer .timer-icon { font-size: 14px; }
.trial-timer .timer-text {
  font-weight: 700;
  color: var(--joy-primary);
  font-variant-numeric: tabular-nums;
}

.trial-timer.expired {
  background: var(--joy-state-error-soft);
  border-color: rgba(239, 68, 68, 0.2);
}
.trial-timer.expired .timer-text { color: var(--joy-state-error); }

/* ------------------------------------------------------------
   3. 音量指示器美化 —— 精致的渐变色条与发光效果
   ------------------------------------------------------------ */
.volume-meter {
  width: 80px;
  height: 6px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-neutral-200);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.volume-meter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.volume-level {
  height: 100%;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(90deg,
    var(--joy-emerald-400) 0%,
    var(--joy-primary) 50%,
    var(--joy-emerald-700) 100%);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.12s ease-out;
  position: relative;
  box-shadow: 0 0 8px color-mix(in srgb, var(--joy-primary) 40%, transparent);
}

.volume-level::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  border-radius: 0 var(--joy-radius-full) var(--joy-radius-full) 0;
}

.toolbar-audio-source .volume-meter {
  width: 60px;
  height: 5px;
}

.toolbar-audio-source .volume-level {
  box-shadow: 0 0 6px var(--joy-primary-30);
}

/* ------------------------------------------------------------
   4. 聊天/转录区域美化 —— 卡片式消息与视觉层次
   ------------------------------------------------------------ */
.meeting-page {
  padding-top: 16px;
  gap: 0;
}

.meeting-panel {
  border-radius: var(--joy-radius-xl);
  background: var(--joy-card);
  border: 1px solid var(--joy-neutral-200);
  box-shadow: var(--joy-shadow-sm);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: box-shadow var(--joy-transition), border-color var(--joy-transition);
}

.meeting-panel:hover {
  box-shadow: var(--joy-shadow-md);
}

.panel-header {
  padding: 8px 16px;
  border-bottom: 1px solid var(--joy-neutral-200);
  background: linear-gradient(180deg,
    var(--joy-neutral-50) 0%,
    var(--joy-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--joy-neutral-900);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header h3::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: var(--joy-radius-sm);
  background: linear-gradient(180deg, var(--joy-primary), var(--joy-emerald-400));
}

.translation-mode-bar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.translation-toggle-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--joy-neutral-500);
  background: var(--joy-surface);
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-full);
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  white-space: nowrap;
}

.translation-toggle-btn:hover {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  border-color: var(--joy-primary-soft);
  transform: translateY(-1px);
}

.translation-toggle-btn.active {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-500));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--joy-primary-25);
}

/* 聊天窗口毛玻璃效果（仅限面板内部，细腻渐变） */
#chatPanel.meeting-panel,
#summaryPanel.meeting-panel {
  background: linear-gradient(135deg,
    rgba(0, 176, 176, 0.03) 0%,
    rgba(255, 255, 255, 0.58) 30%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(255, 255, 255, 0.58) 70%,
    rgba(51, 201, 201, 0.02) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* 转写消息卡片 */
.transcript-area {
  padding: 20px;
  gap: 14px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.transcript-entry {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--joy-radius-lg);
  background: var(--joy-card);
  border: 1px solid var(--joy-neutral-200);
  box-shadow: var(--joy-shadow-xs);
  animation: meetingMsgFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transition: box-shadow var(--joy-transition-fast), transform var(--joy-transition-fast);
}

.transcript-entry:hover {
  box-shadow: var(--joy-shadow-sm);
}

.transcript-entry.other-speaker {
  align-self: flex-start;
  border-left: 3px solid var(--joy-primary);
  border-top-left-radius: var(--joy-radius-sm);
}

.transcript-entry.self-speaker {
  align-self: flex-end;
  background: linear-gradient(135deg,
    var(--joy-primary-06) 0%,
    rgba(51, 201, 201, 0.04) 100%);
  border: 1px solid var(--joy-primary-15);
  border-right: 3px solid var(--joy-state-success);
  border-top-right-radius: var(--joy-radius-sm);
}

.transcript-entry.speaking-entry {
  border-style: solid;
  opacity: 1;
  background: linear-gradient(135deg,
    var(--joy-primary-soft) 0%,
    rgba(51, 201, 201, 0.05) 100%);
  animation: meetingMsgFadeIn 0.3s ease, meetingMsgPulse 2s ease-in-out infinite;
}

.transcript-entry.other-speaker.speaking-entry {
  border-left: 3px solid var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-soft), var(--joy-shadow-xs);
}

@keyframes meetingMsgFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes meetingMsgPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--joy-primary-soft), var(--joy-shadow-xs); }
  50% { box-shadow: 0 0 0 6px var(--joy-primary-06), var(--joy-shadow-xs); }
}

/* 发言者信息行 */
.transcript-speaker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--joy-neutral-700);
}

.transcript-time {
  color: var(--joy-neutral-400);
  font-weight: 400;
  margin-left: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.transcript-original {
  font-size: 14px;
  line-height: 1.65;
  color: var(--joy-neutral-900);
  margin-bottom: 8px;
  word-break: break-word;
}

.transcript-translation {
  font-size: 13px;
  line-height: 1.6;
  color: var(--joy-emerald-700);
  font-weight: 500;
  padding-top: 8px;
  border-top: 1px dashed var(--joy-neutral-200);
  word-break: break-word;
}

.transcript-entry.self-speaker .transcript-translation {
  color: #059669;
  border-top-color: rgba(16, 185, 129, 0.2);
}

/* 空状态美化 */
.transcript-empty {
  color: var(--joy-neutral-400);
  font-size: 14px;
  align-self: center;
  width: 100%;
  padding: 80px 20px;
}

.transcript-empty .icon {
  display: block;
  margin: 0 auto 20px;
  color: var(--joy-emerald-400);
  opacity: 0.7;
}

/* 消息操作按钮 */
.transcript-actions {
  gap: 4px;
  margin-top: 8px;
}

.transcript-action-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--joy-radius-sm);
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-500);
  transition: all var(--joy-transition-fast);
}

.transcript-action-btn:hover {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  transform: scale(1.05);
}

/* 跳转最新按钮 */
.jump-to-latest-btn {
  bottom: 80px;
  padding: 8px 20px;
  border: 1px solid color-mix(in srgb, var(--joy-primary) 20%, transparent);
  border-radius: var(--joy-radius-full);
  background: rgba(255, 255, 255, 0.95);
  color: var(--joy-primary);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  box-shadow: var(--joy-shadow-md);
  transition: all var(--joy-transition);
  z-index: 20;
}

.jump-to-latest-btn:hover {
  background: var(--joy-primary);
  color: #fff;
  border-color: var(--joy-primary);
  transform: translateX(-50%) translateY(-1px);
  box-shadow: var(--joy-shadow-primary);
}

/* ------------------------------------------------------------
   5. 发言者头像美化 —— 渐变色与更好的识别度
   ------------------------------------------------------------ */
.transcript-speaker .speaker-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--joy-radius-md);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.transcript-speaker .speaker-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Speaker 1 - 品牌青绿渐变 */
.transcript-speaker[data-speaker="1"] .speaker-avatar,
.transcript-speaker[data-speaker="0"] .speaker-avatar {
  background: linear-gradient(135deg, var(--joy-primary-light) 0%, var(--joy-primary-dark) 100%);
}
.transcript-entry[data-speaker="1"] { border-left-color: var(--joy-primary); }

/* Speaker 2 - 琥珀橙渐变 */
.transcript-speaker[data-speaker="2"] .speaker-avatar {
  background: linear-gradient(135deg, #FFB547 0%, #FF8C00 100%);
}
.transcript-entry[data-speaker="2"] { border-left-color: #FF8C00; }

/* Speaker 3 - 紫晶渐变 */
.transcript-speaker[data-speaker="3"] .speaker-avatar {
  background: linear-gradient(135deg, #C084FC 0%, #9333EA 100%);
}
.transcript-entry[data-speaker="3"] { border-left-color: #9333EA; }

/* Speaker 4 - 翠绿渐变 */
.transcript-speaker[data-speaker="4"] .speaker-avatar {
  background: linear-gradient(135deg, #34D399 0%, #059669 100%);
}
.transcript-entry[data-speaker="4"] { border-left-color: #059669; }

/* Speaker 5 - 玫红渐变 */
.transcript-speaker[data-speaker="5"] .speaker-avatar {
  background: linear-gradient(135deg, #FB7185 0%, #E11D48 100%);
}
.transcript-entry[data-speaker="5"] { border-left-color: #E11D48; }

/* Speaker 6 - 靛蓝渐变 */
.transcript-speaker[data-speaker="6"] .speaker-avatar {
  background: linear-gradient(135deg, #818CF8 0%, #4F46E5 100%);
}

/* Speaker 7 - 青色渐变 */
.transcript-speaker[data-speaker="7"] .speaker-avatar {
  background: linear-gradient(135deg, #22D3EE 0%, #0891B2 100%);
}

/* Speaker 8 - 粉红渐变 */
.transcript-speaker[data-speaker="8"] .speaker-avatar {
  background: linear-gradient(135deg, #FDA4AF 0%, #F43F5E 100%);
}

/* Speaker 9 - 草绿渐变 */
.transcript-speaker[data-speaker="9"] .speaker-avatar {
  background: linear-gradient(135deg, #86EFAC 0%, #16A34A 100%);
}

/* Speaker 10 - 天蓝渐变 */
.transcript-speaker[data-speaker="10"] .speaker-avatar {
  background: linear-gradient(135deg, #7DD3FC 0%, #0284C7 100%);
}

/* Speaker 11 - 金黄渐变 */
.transcript-speaker[data-speaker="11"] .speaker-avatar {
  background: linear-gradient(135deg, #FDE047 0%, #EAB308 100%);
}

/* Speaker 12 - 紫粉渐变 */
.transcript-speaker[data-speaker="12"] .speaker-avatar {
  background: linear-gradient(135deg, #E879F9 0%, #C026D3 100%);
}

/* ------------------------------------------------------------
   6. 底部控制栏美化 —— 清晰的按钮分组与精致的交互
   ------------------------------------------------------------ */
.meeting-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(250, 250, 250, 0.92) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--joy-neutral-200);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.8) inset,
              0 -4px 20px rgba(0, 0, 0, 0.03);
  font-size: 12px;
  color: var(--joy-neutral-800);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  overflow: visible;
  min-height: 60px;
}

.bottom-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.bottom-center-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.meeting-bottom-bar .bottom-separator {
  width: 1px;
  height: 24px;
  background: var(--joy-neutral-200);
  color: transparent !important;
  font-size: 0 !important;
  margin: 0 4px;
  flex-shrink: 0;
}

/* 底部按钮统一美化 */
.meeting-bottom-bar .meeting-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--joy-radius-lg);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--joy-transition-fast);
  position: relative;
  overflow: hidden;
}

.meeting-bottom-bar .meeting-btn.secondary {
  background: var(--joy-surface);
  border: 1px solid var(--joy-neutral-200);
  color: var(--joy-neutral-700);
  box-shadow: var(--joy-shadow-xs);
}

.meeting-bottom-bar .meeting-btn.secondary:hover {
  background: var(--joy-primary-soft);
  border-color: var(--joy-primary-soft);
  color: var(--joy-primary);
  transform: translateY(-1px);
  box-shadow: var(--joy-shadow-sm);
}

.meeting-bottom-bar .meeting-btn.secondary:active {
  transform: translateY(0);
}

/* 开始/停止翻译按钮 */
.meeting-bottom-bar .meeting-btn.start {
  background: linear-gradient(135deg, var(--joy-emerald-500) 0%, var(--joy-primary) 100%);
  color: white;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--joy-primary) 30%, transparent);
  border: none;
  padding: 0 18px;
  font-weight: 700;
}

.meeting-bottom-bar .meeting-btn.start:hover {
  background: linear-gradient(135deg, var(--joy-primary) 0%, var(--joy-emerald-700) 100%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--joy-primary) 40%, transparent);
  transform: translateY(-1px);
}

.meeting-bottom-bar .meeting-btn.stop {
  background: linear-gradient(135deg, #F87171 0%, #DC2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  border: none;
  padding: 0 18px;
  font-weight: 700;
}

.meeting-bottom-bar .meeting-btn.stop:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

/* 语言选择器美化 */
.meeting-bottom-bar .meeting-lang-select {
  min-height: 34px;
  padding: 0 24px 0 8px;
  border-radius: var(--joy-radius-lg);
  background: var(--joy-surface);
  border: 1px solid var(--joy-neutral-200);
  color: var(--joy-neutral-700);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: var(--joy-shadow-xs);
  transition: all var(--joy-transition-fast);
  text-align: left;
  width: 8em;
  min-width: 8em;
  max-width: 8em;
}

.meeting-bottom-bar .meeting-lang-select:hover {
  border-color: var(--joy-primary-soft);
  background-color: var(--joy-primary-soft);
  color: var(--joy-primary);
}

.meeting-bottom-bar .meeting-lang-select:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-12), var(--joy-shadow-xs);
}

.lang-arrow {
  color: var(--joy-neutral-400);
  font-size: 12px;
  flex-shrink: 0;
  font-weight: 600;
}

/* 麦克风按钮美化 */
.meeting-bottom-bar .mute-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--joy-radius-lg);
  background: var(--joy-surface);
  border: 1px solid var(--joy-neutral-200);
  color: var(--joy-neutral-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  flex-shrink: 0;
  box-shadow: var(--joy-shadow-xs);
}

.meeting-bottom-bar .mute-btn:hover {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--joy-state-error);
  background: var(--joy-state-error-soft);
  transform: translateY(-1px);
  box-shadow: var(--joy-shadow-sm);
}

.meeting-bottom-bar .mute-btn.active {
  background: linear-gradient(135deg, #F87171 0%, #DC2626 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.meeting-bottom-bar .mute-btn.active:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.mute-btn.compact {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 术语输入区域美化 */
.bottom-dual-input-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--joy-neutral-100);
  border-radius: var(--joy-radius-lg);
  border: 1px solid var(--joy-neutral-200);
  transition: all var(--joy-transition-fast);
}

.bottom-dual-input-box:focus-within {
  border-color: var(--joy-primary);
  background: var(--joy-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--joy-primary) 10%, transparent);
}

.bottom-dual-input-box .terminology-input.compact-input {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  font-size: 12px;
  color: var(--joy-neutral-800);
  transition: all var(--joy-transition-fast);
}

.bottom-dual-input-box .terminology-input.compact-input:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 2px var(--joy-primary-12);
}

.terminology-save-btn.compact-btn {
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--joy-radius-md);
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  color: white;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}

.terminology-save-btn.compact-btn:hover {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-700));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

/* ------------------------------------------------------------
   7. 总结面板美化 —— 精致的标签页与底部操作栏
   ------------------------------------------------------------ */
#summaryPanel .summary-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.summary-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--joy-neutral-200);
  background: linear-gradient(180deg,
    var(--joy-neutral-50) 0%,
    var(--joy-surface) 100%);
  gap: 12px;
}

.summary-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--joy-neutral-900);
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-header h3::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: var(--joy-radius-sm);
  background: linear-gradient(180deg, var(--joy-primary), var(--joy-emerald-400));
}

.summary-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.summary-lang-select {
  height: 30px;
  padding: 0 26px 0 10px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-surface);
  border: 1px solid var(--joy-neutral-200);
  font-size: 11px;
  color: var(--joy-neutral-700);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  font-weight: 500;
  transition: all var(--joy-transition-fast);
  min-width: 110px;
}

.summary-lang-select:hover {
  border-color: var(--joy-primary-soft);
  background-color: var(--joy-primary-soft);
  color: var(--joy-primary);
}

.summary-lang-select:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-12);
}

/* 总结内容区 */
.summary-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  background: var(--joy-surface-2);
}

.summary-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--joy-neutral-200);
}

.summary-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.summary-speaker-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--joy-neutral-700);
}

.summary-speaker-label .dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--joy-primary-15);
}

.summary-speaker-label[data-speaker="1"] .dot-sm {
  background: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-15);
}
.summary-speaker-label[data-speaker="2"] .dot-sm {
  background: #FF8C00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.15);
}
.summary-speaker-label[data-speaker="3"] .dot-sm {
  background: #9333EA;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}
.summary-speaker-label[data-speaker="4"] .dot-sm {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.summary-speaker-label[data-speaker="5"] .dot-sm {
  background: #E11D48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.summary-content {
  font-size: 13px;
  line-height: 1.65;
  color: var(--joy-neutral-700);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.summary-action {
  padding: 12px 14px;
  border-radius: var(--joy-radius-md);
  background: linear-gradient(135deg,
    var(--joy-primary-06) 0%,
    rgba(51, 201, 201, 0.04) 100%);
  border: 1px solid var(--joy-primary-12);
}

.summary-action-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--joy-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.summary-empty {
  color: var(--joy-neutral-400);
  font-size: 13px;
  text-align: center;
  padding: 40px 10px;
}

/* 总结底部操作栏 */
.summary-footer-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-top: 1px solid var(--joy-neutral-200);
  background: linear-gradient(0deg,
    var(--joy-neutral-50) 0%,
    var(--joy-surface) 100%);
  gap: 8px;
}

.summary-footer-left,
.summary-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 聊天窗口底部功能条 */
.transcript-footer-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 12px;
  background: var(--joy-surface);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--joy-border);
}
.transcript-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.transcript-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.meeting-name-input {
  border: 1px solid transparent;
  border-radius: var(--joy-radius-md);
  background: transparent;
  font-size: 12px;
  color: var(--joy-text);
  padding: 4px 8px;
  flex: 0 0 240px;
  width: 240px;
  min-width: 80px;
  outline: none;
  cursor: text;
  transition: border-color 0.15s, background 0.15s;
}
.meeting-name-input:hover { border-color: var(--joy-border); background: rgba(0,0,0,0.02); }
.meeting-name-input:focus { border-color: var(--joy-primary); background: white; }
.footer-separator { color: var(--joy-neutral-400, #999); font-size: 12px; }
.participant-count-group { display: flex; align-items: center; gap: 4px; }
.participant-label { font-size: 12px; color: var(--joy-neutral-500, #666); white-space: nowrap; }
.participant-count-input {
  width: 36px;
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-sm);
  font-size: 12px;
  text-align: center;
  padding: 2px 2px;
  min-height: 26px;
  background: white;
  color: var(--joy-text);
  outline: none;
}
.participant-count-input:focus { border-color: var(--joy-primary); }
.transcript-export-btn {
  min-height: 28px;
  font-size: 11px;
  padding: 2px 12px;
  border-radius: var(--joy-radius-md);
  white-space: nowrap;
}

.summary-countdown {
  padding: 4px 10px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.summary-btn {
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--joy-radius-md);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.meeting-btn.secondary.summary-btn {
  background: var(--joy-surface);
  border: 1px solid var(--joy-neutral-200);
  color: var(--joy-neutral-700);
  box-shadow: none;
}

.meeting-btn.secondary.summary-btn:hover {
  background: var(--joy-primary-soft);
  border-color: var(--joy-primary-soft);
  color: var(--joy-primary);
  transform: translateY(-1px);
}

.summary-pause-btn {
  min-width: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------
   8. 历史对话面板美化 —— 卡片式列表
   ------------------------------------------------------------ */
.history-drawer {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(250, 250, 250, 0.94) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid var(--joy-neutral-200);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.08);
  border-radius: 0 var(--joy-radius-2xl) var(--joy-radius-2xl) 0;
}

.history-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--joy-neutral-200);
  background: linear-gradient(180deg,
    var(--joy-neutral-50) 0%,
    rgba(255, 255, 255, 0.9) 100%);
  flex-shrink: 0;
}

.history-drawer-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--joy-neutral-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-drawer-header h3::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: var(--joy-radius-sm);
  background: linear-gradient(180deg, var(--joy-primary), var(--joy-emerald-400));
}

.history-hint {
  padding: 8px 16px 10px;
  text-align: center;
  color: var(--joy-neutral-400);
  font-size: 11px;
  line-height: 1.5;
  border-bottom: 1px solid var(--joy-neutral-100);
  flex-shrink: 0;
  background: var(--joy-surface-2);
}

.history-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--joy-surface-2);
}

.history-empty {
  color: var(--joy-neutral-400);
  text-align: center;
  padding: 40px 12px;
  font-size: 13px;
}

/* 历史记录卡片 */
.history-item {
  border-radius: var(--joy-radius-lg);
  border: 1px solid var(--joy-neutral-200);
  background: var(--joy-card);
  overflow: hidden;
  transition: all var(--joy-transition-fast);
  box-shadow: var(--joy-shadow-xs);
}

.history-item:hover {
  border-color: var(--joy-primary-soft);
  box-shadow: var(--joy-shadow-sm);
  transform: translateY(-1px);
}

.history-item-main {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background var(--joy-transition-fast);
}

.history-item-main:hover {
  background: var(--joy-primary-soft);
}

.history-item.expanded .history-item-main {
  background: linear-gradient(135deg,
    var(--joy-primary-soft) 0%,
    rgba(51, 201, 201, 0.05) 100%);
}

.history-title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-title {
  color: var(--joy-neutral-800);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-subtitle {
  color: var(--joy-neutral-500);
  font-size: 11px;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-icon-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: var(--joy-radius-sm);
  background: transparent;
  color: var(--joy-neutral-400);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--joy-transition-fast);
}

.history-icon-btn:hover {
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-700);
}

.history-icon-btn.delete:hover {
  background: var(--joy-state-error-soft);
  color: var(--joy-state-error);
}

.history-icon-btn svg {
  width: 13px;
  height: 13px;
}

.history-detail {
  border-top: 1px solid transparent;
  padding: 0 12px;
  background: var(--joy-surface);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}

.history-item.expanded .history-detail {
  border-top-color: var(--joy-neutral-100);
  padding: 10px 12px 12px;
}

/* 历史分割条 */
.history-divider::after {
  width: 3px;
  height: 40px;
  border-radius: var(--joy-radius-sm);
  background: var(--joy-neutral-300);
  transition: all var(--joy-transition);
}

.history-divider:hover::after,
.history-divider.dragging::after {
  background: var(--joy-primary);
  width: 4px;
}

/* ------------------------------------------------------------
   9. Speaker 面板与子组织面板美化
   ------------------------------------------------------------ */
.speaker-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-xl);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(24px);
}

.speaker-panel-header {
  padding: 14px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--joy-neutral-800);
  border-bottom: 1px solid var(--joy-neutral-100);
}

.speaker-panel-close {
  width: 24px;
  height: 24px;
  border-radius: var(--joy-radius-sm);
  background: transparent;
  font-size: 16px;
  color: var(--joy-neutral-400);
  display: grid;
  place-items: center;
  transition: all var(--joy-transition-fast);
  line-height: 1;
}

.speaker-panel-close:hover {
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-700);
}

.speaker-panel-list {
  padding: 10px 12px 12px;
  gap: 6px;
}

.speaker-panel-empty {
  color: var(--joy-neutral-400);
  font-size: 12px;
  padding: 24px 0;
}

.speaker-row {
  padding: 6px 10px;
  border-radius: var(--joy-radius-md);
  background: var(--joy-neutral-50);
  border: 1px solid var(--joy-neutral-100);
  transition: all var(--joy-transition-fast);
}

.speaker-row:hover {
  border-color: var(--joy-primary-soft);
  background: var(--joy-primary-soft);
}

.speaker-row-self {
  background: linear-gradient(135deg,
    var(--joy-primary-06) 0%,
    rgba(51, 201, 201, 0.04) 100%);
  border: 1px solid var(--joy-primary-15);
}

.speaker-row-self .speaker-row-label {
  color: var(--joy-primary);
}

.speaker-row-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--joy-neutral-700);
  min-width: 60px;
}

.speaker-row-input {
  border: 1px solid var(--joy-primary-soft);
  border-radius: var(--joy-radius-sm);
  padding: 4px 8px;
  font-size: 12px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--joy-primary-soft);
}

.speaker-row-name {
  font-size: 12px;
  color: var(--joy-neutral-500);
  padding: 4px 8px;
}

.speaker-row-edit-btn {
  width: 22px;
  height: 22px;
  border-radius: var(--joy-radius-sm);
  background: transparent;
  color: var(--joy-neutral-400);
  transition: all var(--joy-transition-fast);
}

.speaker-row-edit-btn:hover {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
}

/* Speaker 面板分割线 */
.speaker-panel-divider {
  font-size: 10px;
  color: var(--joy-neutral-400);
  padding: 6px 0 4px;
}

.speaker-panel-divider::before,
.speaker-panel-divider::after {
  background: var(--joy-neutral-100);
}

/* 子组织面板美化 */
.suborg-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-xl);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(24px);
}

.suborg-panel-header {
  padding: 14px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--joy-neutral-800);
  border-bottom: 1px solid var(--joy-neutral-100);
}

.suborg-panel-close {
  width: 24px;
  height: 24px;
  border-radius: var(--joy-radius-sm);
  background: transparent;
  font-size: 16px;
  color: var(--joy-neutral-400);
  display: grid;
  place-items: center;
  transition: all var(--joy-transition-fast);
  line-height: 1;
}

.suborg-panel-close:hover {
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-700);
}

.suborg-name-input {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  font-size: 12px;
  color: var(--joy-neutral-800);
  transition: all var(--joy-transition-fast);
}

.suborg-name-input:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-12);
}

.pc-save-btn {
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--joy-radius-md);
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}

.pc-save-btn:hover {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-700));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
  opacity: 1;
}

/* ------------------------------------------------------------
   10. 反馈面板美化
   ------------------------------------------------------------ */
.feedback-tab {
  background: linear-gradient(180deg, var(--joy-emerald-500), var(--joy-primary));
  color: white;
  border-radius: var(--joy-radius-lg) 0 0 var(--joy-radius-lg);
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  box-shadow: -4px 0 16px var(--joy-primary-25);
  transition: all var(--joy-transition);
  border: none;
  letter-spacing: 0.05em;
}

.feedback-tab:hover {
  padding-right: 14px;
  box-shadow: -6px 0 24px var(--joy-primary-30);
}

.feedback-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translate(100%, -50%);
  z-index: 60;
  width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-xl) 0 0 var(--joy-radius-xl);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  padding: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-panel.open {
  transform: translate(0, -50%);
}

.feedback-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feedback-panel-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--joy-neutral-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-panel-header h3::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: var(--joy-radius-sm);
  background: linear-gradient(180deg, var(--joy-primary), var(--joy-emerald-400));
}

.feedback-panel-close {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--joy-neutral-400);
  cursor: pointer;
  border-radius: var(--joy-radius-sm);
  display: grid;
  place-items: center;
  transition: all var(--joy-transition-fast);
  line-height: 1;
}

.feedback-panel-close:hover {
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-700);
}

.feedback-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: var(--joy-neutral-100);
  padding: 4px;
  border-radius: var(--joy-radius-lg);
}

.feedback-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: var(--joy-radius-md);
  background: transparent;
  color: var(--joy-neutral-500);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
}

.feedback-tab-btn:hover {
  color: var(--joy-neutral-700);
}

.feedback-tab-btn.active[data-type="pain"] {
  background: var(--joy-card);
  color: var(--joy-state-error);
  box-shadow: var(--joy-shadow-xs);
}

.feedback-tab-btn.active[data-type="highlight"] {
  background: var(--joy-card);
  color: var(--joy-state-success);
  box-shadow: var(--joy-shadow-xs);
}

.feedback-desc {
  font-size: 12px;
  color: var(--joy-neutral-500);
  margin-bottom: 10px;
}

.feedback-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  font-size: 13px;
  color: var(--joy-neutral-800);
  resize: none;
  font-family: inherit;
  line-height: 1.5;
  transition: all var(--joy-transition-fast);
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-12);
}

.feedback-counter {
  text-align: right;
  font-size: 11px;
  color: var(--joy-neutral-400);
  margin-top: 6px;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.feedback-submit-btn {
  width: 100%;
  min-height: 36px;
  border: none;
  border-radius: var(--joy-radius-lg);
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--joy-transition);
  box-shadow: 0 4px 14px var(--joy-primary-25);
}

.feedback-submit-btn:hover {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-700));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--joy-primary-30);
}

.feedback-submit-btn:active {
  transform: translateY(0);
}

.feedback-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.feedback-hint {
  font-size: 11px;
  color: var(--joy-neutral-400);
  margin-top: 10px;
  text-align: center;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   11. 导出弹窗美化
   ------------------------------------------------------------ */
.summary-export-modal .export-format-grid {
  gap: 10px;
  margin: 20px 0;
}

.export-format-option {
  min-height: 52px;
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-lg);
  background: var(--joy-card);
  color: var(--joy-neutral-700);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  box-shadow: var(--joy-shadow-xs);
}

.export-format-option:hover {
  border-color: var(--joy-primary-soft);
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  transform: translateY(-2px);
  box-shadow: var(--joy-shadow-sm);
}

.export-format-option.active {
  color: white;
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  border-color: transparent;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

/* 导出选项行 */
.export-options-row {
  display: flex;
  gap: 20px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.export-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--joy-neutral-700);
  cursor: pointer;
}
.export-check input { width: 16px; height: 16px; cursor: pointer; }

.export-actions-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
.export-actions-row .primary-button { min-width: 120px; }

/* 社区引导链接 */
.community-guide-link {
  position: relative;
  margin-top: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--joy-primary-soft), var(--joy-emerald-50, #ecfdf5));
  border-radius: var(--joy-radius-md);
  border: 1px solid var(--joy-primary-soft);
  animation: fadeIn 0.3s ease;
}
.community-guide-link a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--joy-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.community-guide-link a:hover { opacity: 0.8; }
.community-guide-icon { font-size: 16px; }
.community-guide-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--joy-neutral-400, #999);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--joy-radius-sm);
  transition: color 0.15s, background 0.15s;
}
.community-guide-close:hover {
  color: var(--joy-neutral-700, #333);
  background: rgba(0,0,0,0.06);
}

/* ------------------------------------------------------------
   12. 麦克风选择器美化
   ------------------------------------------------------------ */
.mic-select {
  min-height: 30px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  font-size: 11px;
  color: var(--joy-neutral-700);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  max-width: 160px;
  font-weight: 500;
  transition: all var(--joy-transition-fast);
}

.mic-select:hover {
  border-color: var(--joy-primary-soft);
  background-color: var(--joy-primary-soft);
  color: var(--joy-primary);
}

.mic-select:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-12);
}

/* ------------------------------------------------------------
   13. 分割条美化
   ------------------------------------------------------------ */
.split-divider {
  width: 6px;
  margin: 0 4px;
  border-radius: var(--joy-radius-sm);
  transition: background var(--joy-transition);
}

.split-divider::after {
  width: 3px;
  height: 40px;
  border-radius: var(--joy-radius-sm);
  background: var(--joy-neutral-300);
  transition: all var(--joy-transition);
}

.split-divider:hover::after,
.split-divider.dragging::after {
  background: var(--joy-primary);
  width: 4px;
}

/* ------------------------------------------------------------
   14. 响应式适配
   ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .meeting-toolbar-center {
    flex-wrap: wrap;
  }

  .meeting-bottom-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 16px;
  }

  .bottom-group {
    flex-wrap: nowrap;
  }
}

@media (max-width: 760px) {
  .meeting-full-toolbar {
    top: 56px;
  }

  .meeting-toolbar-inner {
    padding: 8px 0;
    gap: 8px;
  }

  .service-status {
    font-size: 10px;
    padding: 0 8px;
    min-height: 26px;
  }

  .volume-meter {
    width: 50px;
  }

  .transcript-entry {
    max-width: 90%;
  }
}

/* ================================================================
   ===== 个人中心页面 UI 优化 (.pc- prefix) ======================
   ================================================================ */

/* ---------- 1. 页面头部优化 ---------- */
.pc-container .pc-header {
  position: relative;
  padding: 32px 36px;
  margin-bottom: 36px;
  border-radius: var(--joy-radius-2xl);
  background:
    radial-gradient(ellipse at top right, rgba(51, 201, 201, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(0, 122, 122, 0.1), transparent 50%),
    linear-gradient(135deg, var(--joy-emerald-50), #ffffff);
  border: 1px solid var(--joy-emerald-100);
  overflow: hidden;
}

.pc-container .pc-header::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(51, 201, 201, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pc-container .pc-header::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 10%;
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, var(--joy-primary-soft), transparent 70%);
  pointer-events: none;
}

.pc-container .pc-header h1 {
  position: relative;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--joy-emerald-700), var(--joy-emerald-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.pc-container .pc-header p {
  position: relative;
  color: var(--joy-neutral-500);
  font-size: 15px;
  font-weight: 400;
}

/* ---------- 2. 整体布局与卡片风格统一 ---------- */
.pc-container .pc-grid {
  gap: 28px;
  align-items: start;
}

.pc-container .pc-card {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-xl);
  padding: 28px;
  box-shadow: var(--joy-shadow-sm);
  backdrop-filter: none;
  transition: box-shadow var(--joy-transition), border-color var(--joy-transition);
}

.pc-container .pc-card:hover {
  box-shadow: var(--joy-shadow-md);
  border-color: var(--joy-neutral-300);
}

.pc-container .pc-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--joy-foreground);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-container .pc-card-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--joy-emerald-400), var(--joy-primary));
}

/* 带右侧操作区的标题：竖线+标题靠左，操作区靠右（用margin-left:auto推到右边） */
.pc-container .pc-card-title[style*="space-between"] {
  justify-content: flex-start;
  gap: 10px;
}
.pc-container .pc-card-title[style*="space-between"]::before {
  flex-shrink: 0;
}
.pc-container .pc-card-title[style*="space-between"] > *:last-child {
  margin-left: auto;
}

/* 左栏卡片（整体一张大卡片内的子卡片）间距优化 */
.pc-container .pc-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
  max-height: none;
  overflow-y: visible;
}

/* 左栏内子卡片（profile-card、security-card）风格统一 */
.pc-container .pc-left-col .profile-card {
  background: var(--joy-surface-2);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  box-shadow: none;
}

.pc-container .pc-left-col .profile-card:hover {
  box-shadow: var(--joy-shadow-xs);
  border-color: var(--joy-neutral-300);
}

.pc-container .profile-title-bar {
  padding: 14px 20px;
  background: var(--joy-surface);
  border-bottom: 1px solid var(--joy-border);
  margin-bottom: 0;
  justify-content: flex-start;
}

.pc-container .profile-title-bar .profile-title-action {
  margin-left: auto;
}

.pc-container .profile-title-action {
  padding: 6px 14px;
  border-radius: var(--joy-radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
  transition: all var(--joy-transition-fast);
}

.pc-container .profile-title-action:hover {
  background: var(--joy-primary);
  color: var(--joy-primary-foreground);
}

.pc-container .profile-title-action.saving {
  background: var(--joy-primary) !important;
  color: #fff !important;
}

/* ---------- 3. 头像区美化 ---------- */
.pc-container .avatar-display {
  margin-bottom: 20px;
  padding-top: 8px;
}

.pc-container .avatar-large {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: var(--joy-radius-2xl);
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--joy-emerald-400) 0%, var(--joy-primary) 50%, var(--joy-emerald-700) 100%);
  color: white;
  box-shadow:
    0 8px 24px var(--joy-primary-25),
    0 2px 8px var(--joy-primary-15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--joy-transition-bounce);
  z-index: 1;
}

.pc-container .avatar-large::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: calc(var(--joy-radius-2xl) + 6px);
  border: 2px solid var(--joy-emerald-200);
  opacity: 0.6;
  z-index: -1;
  transition: all var(--joy-transition);
}

.pc-container .avatar-large::after {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: calc(var(--joy-radius-2xl) + 12px);
  border: 1px dashed var(--joy-emerald-300);
  opacity: 0;
  z-index: -2;
  transition: all var(--joy-transition-slow);
  animation: pcAvatarPulse 3s ease-in-out infinite;
}

@keyframes pcAvatarPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.03); }
}

.pc-container .avatar-large:hover {
  transform: scale(1.05);
  box-shadow:
    0 16px 40px var(--joy-primary-30),
    0 4px 12px color-mix(in srgb, var(--joy-primary) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pc-container .avatar-large:hover::before {
  opacity: 1;
  border-color: var(--joy-emerald-300);
}

.pc-container .avatar-large:hover::after {
  opacity: 0.5;
}

.pc-container .avatar-large img {
  border-radius: var(--joy-radius-2xl);
}

/* 头像菜单美化 */
.pc-container .avatar-menu {
  top: calc(100% + 12px);
  min-width: 160px;
  background: var(--joy-surface);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  box-shadow: var(--joy-shadow-lg);
  backdrop-filter: blur(20px);
  padding: 8px;
}

.pc-container .avatar-menu::before {
  background: var(--joy-surface);
  border-left: 1px solid var(--joy-border);
  border-top: 1px solid var(--joy-border);
}

.pc-container .avatar-menu-item {
  padding: 12px 14px;
  border-radius: var(--joy-radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--joy-foreground);
  gap: 12px;
}

.pc-container .avatar-menu-item:hover {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
}

.pc-container .avatar-menu-icon {
  font-size: 18px;
}

.pc-container .avatar-menu-arrow {
  color: var(--joy-neutral-400);
  font-size: 18px;
  font-weight: 500;
}

/* ---------- 4. 用户信息徽章美化 ---------- */
.pc-container .user-info-badge {
  position: relative;
  padding: 18px 20px 16px;
  background:
    radial-gradient(ellipse at top left, var(--joy-emerald-50), transparent 60%),
    var(--joy-surface-2);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  transition: all var(--joy-transition);
}

.pc-container .user-info-badge:hover {
  border-color: var(--joy-emerald-200);
  box-shadow: 0 4px 16px var(--joy-primary-soft);
}

.pc-container .user-info-badge-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--joy-foreground);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.pc-container .user-info-badge-email {
  font-size: 13px;
  color: var(--joy-neutral-500);
}

/* 言值徽章美化 */
.pc-container .user-info-badge-points {
  top: 6px;
  right: 10px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

.pc-container .user-info-badge-points:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow:
    0 6px 18px var(--joy-primary-30),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- 5. 签到板块美化 ---------- */
.pc-container .checkin-section {
  background:
    radial-gradient(ellipse at top right, rgba(51, 201, 201, 0.1), transparent 55%),
    var(--joy-surface-2);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  padding: 20px;
  box-shadow: none;
  transition: all var(--joy-transition);
}

.pc-container .checkin-section:hover {
  border-color: var(--joy-emerald-200);
  box-shadow: 0 4px 16px var(--joy-primary-06);
}

.pc-container .checkin-header {
  margin-bottom: 16px;
}

.pc-container .checkin-header .pc-card-title {
  margin-bottom: 0;
  font-size: 16px;
}

.pc-container .checkin-btn {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  border-radius: var(--joy-radius-full);
  box-shadow:
    0 4px 12px var(--joy-primary-25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all var(--joy-transition);
}

.pc-container .checkin-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px var(--joy-primary-30),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pc-container .checkin-btn:disabled {
  background: var(--joy-neutral-200);
  color: var(--joy-neutral-500);
  box-shadow: none;
  cursor: default;
}

.pc-container .checkin-btn.checked {
  background: var(--joy-primary);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
  color: #fff;
}

/* 签到日历美化 */
.pc-container .checkin-calendar {
  margin-top: 8px;
}

.pc-container .checkin-month {
  font-size: 13px;
  font-weight: 600;
  color: var(--joy-neutral-600);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.pc-container .checkin-month::before {
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--joy-emerald-400), var(--joy-primary));
}

.pc-container .checkin-grid {
  gap: 4px;
}

.pc-container .checkin-weekday {
  font-size: 11px;
  color: var(--joy-neutral-400);
  font-weight: 600;
  padding: 4px 0;
}

.pc-container .checkin-day {
  aspect-ratio: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--joy-neutral-500);
  border-radius: var(--joy-radius-sm);
  background: var(--joy-surface);
  border: 1px solid var(--joy-border);
  transition: all var(--joy-transition-fast);
  position: relative;
}

.pc-container .checkin-day:hover:not(.empty) {
  border-color: var(--joy-emerald-300);
  color: var(--joy-primary);
  transform: scale(1.05);
}

.pc-container .checkin-day.empty {
  background: transparent;
  border: none;
}

.pc-container .checkin-day.checked {
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-primary));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.pc-container .checkin-day.checked::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.pc-container .checkin-day.today {
  border: 2px solid var(--joy-primary);
  color: var(--joy-primary);
  font-weight: 700;
  background: var(--joy-primary-soft);
}

.pc-container .checkin-day.today.checked {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-primary));
}

/* ============================================================
   BYOK (Bring Your Own Key) 页面 UI 优化样式
   作用域：#byokUnifiedCard 及 byok 相关组件
   ============================================================ */

/* ---------- 1. 页面顶部说明区增强 ---------- */

/* 折扣百分比高亮 */
[data-byok-discount-text] {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 2px;
  font-weight: 700;
  font-size: 0.95em;
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
  border-radius: var(--joy-radius-full);
  letter-spacing: -0.01em;
}

/* ---------- 2. 主卡片整体优化 ---------- */

#byokUnifiedCard {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-xl);
  padding: 28px;
  box-shadow: var(--joy-shadow-lg);
  backdrop-filter: blur(18px);
  transition: box-shadow var(--joy-transition), border-color var(--joy-transition);
}

#byokUnifiedCard:hover {
  box-shadow: var(--joy-shadow-xl);
  border-color: var(--joy-emerald-200);
}

#byokUnifiedCard .pc-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--joy-foreground);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--joy-neutral-100);
}

#byokUnifiedCard .pc-card-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(180deg, var(--joy-emerald-400), var(--joy-primary));
}

/* ---------- 3. 翻译引擎密钥卡片（MT Section） ---------- */

#byokMtSection {
  border-radius: var(--joy-radius-lg);
  overflow: hidden;
  background: var(--joy-neutral-50);
  border: 1px solid var(--joy-neutral-100);
  margin-bottom: 4px;
}

#byokMtSection .pc-subscription-item {
  background: linear-gradient(135deg, var(--joy-primary-soft), rgba(51, 201, 201, 0.04));
  border: none;
  border-radius: 0;
  padding: 20px 24px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--joy-neutral-100);
}

#byokMtSection .pc-sub-header {
  margin-bottom: 10px;
}

#byokMtSection .pc-sub-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--joy-foreground);
  display: flex;
  align-items: center;
  gap: 8px;
}

#byokMtSection .pc-sub-name::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--joy-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat center / contain;
}

#byokMtSection .pc-sub-status {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--joy-radius-full);
  transition: all var(--joy-transition-fast);
}

#byokMtSection .pc-sub-status.cancelled {
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-500);
}

#byokMtSection .pc-sub-status.active {
  background: var(--joy-state-success-soft);
  color: var(--joy-state-success);
}

#byokMtSection .pc-sub-meta {
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--joy-muted-foreground);
}

#byokMtSection .pc-sub-meta > span:first-child {
  font-size: 14px;
  color: var(--joy-foreground);
}

#byokMtSection .pc-sub-meta > span:first-child b {
  color: var(--joy-state-warning);
  font-weight: 700;
}

/* 四点说明文字 */
#byokMtSection .pc-sub-meta > span:last-child {
  font-size: 12px !important;
  color: var(--joy-neutral-500) !important;
  padding: 10px 14px;
  background: var(--joy-surface);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-md);
  line-height: 1.8;
}

/* ---------- 4. 输入框区域美化 ---------- */

#byokMtSection > div:nth-child(2) {
  padding: 20px 24px !important;
}

#byokMtSection > div:nth-child(2) > div:first-child {
  gap: 20px !important;
}

/* 输入框外层容器 */
#byokMtSecretIdInput,
#byokMtSecretKeyInput {
  min-height: 44px !important;
  padding: 0 14px !important;
  border: 1.5px solid var(--joy-border) !important;
  border-radius: var(--joy-radius-md) !important;
  background: var(--joy-surface) !important;
  font-size: 13px !important;
  color: var(--joy-foreground) !important;
  transition: all var(--joy-transition-fast) !important;
  font-family: var(--joy-font-mono);
  letter-spacing: 0.02em;
}

#byokMtSecretIdInput::placeholder,
#byokMtSecretKeyInput::placeholder {
  color: var(--joy-neutral-400);
  font-family: var(--joy-font-sans);
  letter-spacing: normal;
}

#byokMtSecretIdInput:hover,
#byokMtSecretKeyInput:hover {
  border-color: var(--joy-neutral-300) !important;
}

#byokMtSecretIdInput:focus,
#byokMtSecretKeyInput:focus {
  outline: none !important;
  border-color: var(--joy-primary) !important;
  box-shadow: 0 0 0 4px var(--joy-primary-soft) !important;
  background: var(--joy-surface) !important;
}

/* 输入框标签 */
label[for="byokMtSecretIdInput"],
label[for="byokMtSecretKeyInput"] {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--joy-neutral-600) !important;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

label[for="byokMtSecretIdInput"]::before,
label[for="byokMtSecretKeyInput"]::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--joy-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.8;
}

/* ---------- 5. 按钮优化 ---------- */

/* 保存密钥按钮 - 渐变主按钮 */
#byokMtSaveBtn.pc-save-btn {
  min-height: 44px !important;
  min-width: 120px !important;
  border-radius: var(--joy-radius-md) !important;
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-primary)) !important;
  color: var(--joy-primary-foreground) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  margin-top: 0 !important;
  transition: all var(--joy-transition-fast) !important;
  box-shadow: var(--joy-shadow-primary);
  border: none !important;
  position: relative;
  overflow: hidden;
}

#byokMtSaveBtn.pc-save-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

#byokMtSaveBtn.pc-save-btn:hover {
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: var(--joy-shadow-primary-lg);
}

#byokMtSaveBtn.pc-save-btn:hover::before {
  left: 100%;
}

#byokMtSaveBtn.pc-save-btn:active {
  transform: translateY(0);
  box-shadow: var(--joy-shadow-primary);
}

#byokMtSaveBtn.pc-save-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 更换/删除按钮 - 次要按钮 */
#byokMtManageBtn.secondary-button {
  min-height: 44px !important;
  min-width: 120px !important;
  border-radius: var(--joy-radius-md) !important;
  background: var(--joy-surface) !important;
  color: var(--joy-neutral-600) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  border: 1.5px solid var(--joy-border) !important;
  transition: all var(--joy-transition-fast) !important;
}

#byokMtManageBtn.secondary-button:hover {
  border-color: var(--joy-neutral-400) !important;
  color: var(--joy-foreground) !important;
  background: var(--joy-neutral-50) !important;
}

/* 错误提示文字 */
#byokMtErrorText {
  color: var(--joy-state-error) !important;
  font-size: 12px;
  margin-top: 8px !important;
  padding: 8px 12px;
  background: var(--joy-state-error-soft);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--joy-radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

#byokMtErrorText::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: var(--joy-state-error);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- 6. 用量显示卡片 ---------- */

#byokMtUsageBox.pc-subscription-item {
  margin: 16px 24px !important;
  padding: 20px !important;
  border-radius: var(--joy-radius-lg) !important;
  background: linear-gradient(135deg, var(--joy-surface), var(--joy-neutral-50)) !important;
  border: 1px solid var(--joy-border) !important;
  box-shadow: var(--joy-shadow-xs);
  width: calc(100% - 48px);
  box-sizing: border-box;
}

#byokMtUsageBox .pc-sub-header {
  margin-bottom: 12px !important;
}

#byokMtUsageBox .pc-sub-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--joy-neutral-700) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

#byokMtUsageBox .pc-sub-name::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--joy-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 16V9.5a2.5 2.5 0 0 1 5 0V16'/%3E%3Cpath d='M12 13.5V7a2.5 2.5 0 0 1 5 0v9'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 16V9.5a2.5 2.5 0 0 1 5 0V16'/%3E%3Cpath d='M12 13.5V7a2.5 2.5 0 0 1 5 0v9'/%3E%3C/svg%3E") no-repeat center / contain;
}

#byokMtUsageBox .pc-sub-status.active {
  background: var(--joy-state-success-soft) !important;
  color: var(--joy-state-success) !important;
  font-weight: 600 !important;
}

#byokMtUsageText {
  font-size: 14px;
  font-weight: 600;
  color: var(--joy-foreground);
  margin-bottom: 8px;
}

/* 进度条美化 */
#byokMtUsageBox > div > div:nth-child(2) {
  background: var(--joy-neutral-100) !important;
  border-radius: var(--joy-radius-full) !important;
  height: 10px !important;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

#byokMtUsageBar {
  height: 100%;
  border-radius: var(--joy-radius-full) !important;
  background: linear-gradient(90deg, var(--joy-emerald-400), var(--joy-primary)) !important;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

#byokMtUsageBar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: var(--joy-radius-full) var(--joy-radius-full) 0 0;
}

#byokMtUsageHint {
  color: var(--joy-neutral-500) !important;
  font-size: 12px !important;
  margin-top: 8px;
}

/* ---------- 7. 自动停止开关 ---------- */

#byokMtAutoStopBox.pc-subscription-item {
  margin: 0 24px 16px !important;
  padding: 18px 20px !important;
  border-radius: var(--joy-radius-lg) !important;
  border-left: 4px solid var(--joy-state-success) !important;
  background: linear-gradient(90deg, var(--joy-state-success-soft), var(--joy-surface)) !important;
  border-top: 1px solid rgba(16, 185, 129, 0.15) !important;
  border-right: 1px solid var(--joy-border) !important;
  border-bottom: 1px solid var(--joy-border) !important;
  width: calc(100% - 48px);
  box-sizing: border-box;
}

#byokMtAutoStopBox .pc-sub-header {
  margin-bottom: 6px !important;
}

#byokMtAutoStopBox .pc-sub-name {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--joy-foreground) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

#byokMtAutoStopBox .pc-sub-name::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--joy-state-success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V4a3 3 0 0 1 6 0v4'/%3E%3Crect x='3' y='8' width='18' height='14' rx='2'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V4a3 3 0 0 1 6 0v4'/%3E%3Crect x='3' y='8' width='18' height='14' rx='2'/%3E%3C/svg%3E") no-repeat center / contain;
}

#byokMtAutoStopBox .pc-sub-meta {
  font-size: 12px !important;
  color: var(--joy-neutral-500) !important;
  line-height: 1.6;
}

/* 开关滑块美化 */
#byokMtAutoStopBox label {
  width: 48px !important;
  height: 28px !important;
}

#byokMtAutoStopSlider {
  background: var(--joy-state-success) !important;
  border-radius: var(--joy-radius-full) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#byokMtAutoStopSlider > span {
  height: 22px !important;
  width: 22px !important;
  left: 24px !important;
  bottom: 3px !important;
  border-radius: 50% !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* ---------- 8. 指南折叠区 ---------- */

#byokMtSection > div:last-child {
  padding: 0 24px 20px !important;
}

.byok-guide-toggle {
  width: 100%;
  text-align: center !important;
  background: var(--joy-primary-soft) !important;
  border: 1px solid var(--joy-emerald-200) !important;
  font-size: 13px !important;
  color: var(--joy-primary) !important;
  cursor: pointer;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  border-radius: var(--joy-radius-md) !important;
  transition: all var(--joy-transition-fast) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
}

.byok-guide-toggle:hover {
  background: var(--joy-emerald-100) !important;
  border-color: var(--joy-primary) !important;
  color: var(--joy-primary-dark) !important;
}

.byok-guide-toggle:active {
  transform: scale(0.98);
}

/* 指南内容区 */
#byokMtGuideContent {
  padding: 16px 0 4px !important;
}

/* ---------- 9. 模态框美化 ---------- */

.byok-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: byokModalFadeIn 0.2s ease;
}

@keyframes byokModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.byok-modal-card {
  background: var(--joy-card);
  border-radius: var(--joy-radius-xl);
  padding: 32px 28px 24px;
  max-width: 400px;
  width: calc(100% - 40px);
  box-shadow: var(--joy-shadow-2xl);
  text-align: center;
  animation: byokModalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--joy-border);
}

@keyframes byokModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.byok-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--joy-state-warning-soft);
  border-radius: var(--joy-radius-full);
  border: 2px solid rgba(245, 158, 11, 0.2);
}

.byok-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--joy-foreground);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.byok-modal-desc {
  font-size: 14px;
  color: var(--joy-neutral-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.byok-modal-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.byok-modal-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--joy-radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--joy-transition-fast);
}

.byok-modal-btn-change {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  border: 1.5px solid var(--joy-emerald-200);
}

.byok-modal-btn-change:hover {
  background: var(--joy-emerald-100);
  border-color: var(--joy-primary);
}

.byok-modal-btn-delete {
  background: var(--joy-state-error-soft);
  color: var(--joy-state-error);
  border: 1.5px solid rgba(239, 68, 68, 0.2);
}

.byok-modal-btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--joy-state-error);
}

.byok-modal-cancel {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--joy-neutral-500);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--joy-radius-sm);
  transition: all var(--joy-transition-fast);
}

.byok-modal-cancel:hover {
  color: var(--joy-neutral-700);
  background: var(--joy-neutral-100);
}

/* ---------- 10. ASR 区域（暂未开放） ---------- */

#byokUnifiedCard > div:nth-child(3) + .pc-subscription-item {
  margin-top: 16px;
  padding: 20px 24px !important;
  border-radius: var(--joy-radius-lg) !important;
  background: var(--joy-neutral-50) !important;
  border: 1px dashed var(--joy-neutral-200) !important;
  opacity: 0.7;
}

#byokUnifiedCard > div:nth-child(3) + .pc-subscription-item .pc-sub-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--joy-neutral-500);
}

#byokUnifiedCard > div:nth-child(3) + .pc-subscription-item .pc-sub-name::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--joy-neutral-400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' x2='12.01' y1='19' y2='22'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' x2='12.01' y1='19' y2='22'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.6;
}

#byokUnifiedCard > div:nth-child(3) + .pc-subscription-item .pc-sub-status.cancelled {
  background: var(--joy-neutral-100) !important;
  color: var(--joy-neutral-400) !important;
}

/* ---------- 11. TMT 指南向导增强 ---------- */

.tmt-guide-wrap {
  background: var(--joy-surface) !important;
  border: 1px solid var(--joy-border) !important;
  border-radius: var(--joy-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--joy-shadow-sm);
}

.tmt-guide-header {
  padding: 16px 20px 12px !important;
  border-bottom: 1px solid var(--joy-neutral-100) !important;
  background: linear-gradient(135deg, var(--joy-primary-soft), var(--joy-surface));
}

.tmt-guide-body {
  padding: 20px !important;
  min-height: 240px !important;
}

.tmt-guide-footer {
  padding: 12px 20px !important;
  border-top: 1px solid var(--joy-neutral-100) !important;
  background: var(--joy-neutral-50) !important;
}

.tmt-guide-step-title {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: var(--joy-foreground) !important;
  margin-bottom: 14px !important;
}

.tmt-guide-step-num {
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-primary)) !important;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.tmt-guide-substep-num {
  font-weight: 700 !important;
}

.tmt-guide-note {
  background: var(--joy-state-warning-soft) !important;
  border: 1px solid rgba(245, 158, 11, 0.2) !important;
  border-radius: var(--joy-radius-md) !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  color: #92400e !important;
  line-height: 1.6;
}

.tmt-guide-tip {
  background: var(--joy-state-success-soft) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  border-radius: var(--joy-radius-md) !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  color: #065f46 !important;
  line-height: 1.6;
}

.tmt-guide-link {
  color: var(--joy-primary) !important;
  font-weight: 600 !important;
}

.tmt-guide-link:hover {
  color: var(--joy-primary-dark) !important;
}

.tmt-guide-btn {
  padding: 8px 20px !important;
  border-radius: var(--joy-radius-md) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all var(--joy-transition-fast) !important;
}

.tmt-guide-btn-prev {
  background: var(--joy-neutral-100) !important;
  color: var(--joy-neutral-600) !important;
}

.tmt-guide-btn-prev:hover:not(:disabled) {
  background: var(--joy-neutral-200) !important;
  opacity: 1 !important;
}

.tmt-guide-btn-next {
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-primary)) !important;
  box-shadow: 0 2px 8px var(--joy-primary-25);
}

.tmt-guide-btn-next:hover:not(:disabled) {
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--joy-primary-30);
}

.tmt-guide-dot {
  transition: all 0.3s ease !important;
}

.tmt-guide-dot.active {
  background: var(--joy-primary) !important;
}

/* ---------- 12. 响应式适配 ---------- */

@media (max-width: 640px) {
  #byokUnifiedCard {
    padding: 20px;
    border-radius: var(--joy-radius-lg);
  }

  #byokMtSection .pc-subscription-item {
    padding: 16px;
  }

  #byokMtSection > div:nth-child(2) {
    padding: 16px !important;
  }

  #byokMtSection > div:nth-child(2) > div:first-child {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  #byokMtSection > div:nth-child(2) > div:first-child > div:last-child {
    flex-direction: row !important;
  }

  #byokMtSaveBtn.pc-save-btn,
  #byokMtManageBtn.secondary-button {
    flex: 1;
    min-width: auto !important;
  }

  #byokMtUsageBox.pc-subscription-item,
  #byokMtAutoStopBox.pc-subscription-item {
    margin: 12px 16px !important;
    width: calc(100% - 32px);
  }

  #byokMtSection > div:last-child {
    padding: 0 16px 16px !important;
  }

  .byok-modal-card {
    padding: 24px 20px 16px;
    margin: 20px;
  }

  .byok-modal-actions {
    flex-direction: column;
  }
}

.pc-container .checkin-hint {
  font-size: 12px;
  color: var(--joy-neutral-400);
  margin-top: 12px;
  text-align: center;
  font-weight: 500;
}

/* ---------- 6. 表单字段美化 ---------- */
.pc-container .pc-form {
  gap: 20px;
  padding: 20px !important;
}

.pc-container .pc-form-row {
  gap: 16px;
}

.pc-container .pc-field {
  gap: 8px;
}

.pc-container .pc-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--joy-neutral-700);
  display: flex;
  align-items: center;
  gap: 4px;
}

.pc-container .pc-field label .required {
  color: var(--joy-state-error);
  margin-left: 2px;
  font-weight: 700;
}

.pc-container .pc-field input,
.pc-container .pc-field select,
.pc-container .pc-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--joy-border);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  font-size: 14px;
  color: var(--joy-foreground);
  transition: all var(--joy-transition-fast);
}

.pc-container .pc-field textarea {
  min-height: 90px;
  padding: 12px 16px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

.pc-container .pc-field input:hover:not(:focus):not(:disabled),
.pc-container .pc-field select:hover:not(:focus):not(:disabled),
.pc-container .pc-field textarea:hover:not(:focus):not(:disabled) {
  border-color: var(--joy-neutral-300);
}

.pc-container .pc-field input:focus,
.pc-container .pc-field select:focus,
.pc-container .pc-field textarea:focus {
  outline: none;
  border-color: var(--joy-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--joy-primary-soft);
}

.pc-container .pc-field input::placeholder,
.pc-container .pc-field textarea::placeholder {
  color: var(--joy-neutral-400);
}

.pc-container .pc-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.pc-container .pc-field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23009999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 标签输入美化 */
.pc-container .tag-input {
  min-height: 50px;
  padding: 8px 10px;
  border: 1.5px solid var(--joy-border);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  gap: 8px;
  transition: all var(--joy-transition-fast);
}

.pc-container .tag-input:hover {
  border-color: var(--joy-neutral-300);
}

.pc-container .tag-input:focus-within {
  border-color: var(--joy-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--joy-primary-soft);
}

.pc-container .hobby-tag {
  padding: 6px 12px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  transition: all var(--joy-transition-fast);
}

.pc-container .hobby-tag:hover {
  background: var(--joy-primary-15);
}

.pc-container .hobby-tag button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--joy-primary) 20%, transparent);
  color: var(--joy-primary);
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all var(--joy-transition-fast);
}

.pc-container .hobby-tag button:hover {
  background: var(--joy-primary);
  color: #fff;
  transform: rotate(90deg);
}

.pc-container #hobbyInput {
  flex: 1 1 200px;
  min-height: 32px;
  padding: 0 6px;
  font-size: 14px;
}

/* 保存按钮美化 */
.pc-container .pc-save-btn {
  min-height: 44px;
  border-radius: var(--joy-radius-md);
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  box-shadow:
    0 4px 12px var(--joy-primary-25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--joy-transition);
}

.pc-container .pc-save-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 8px 20px var(--joy-primary-30),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pc-container .pc-save-btn:active {
  transform: translateY(0);
}

/* profile-actions 按钮区美化 */
.pc-container .profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 0 0;
}

.pc-container .profile-actions .secondary-button {
  min-height: 42px;
  border-radius: var(--joy-radius-md);
  font-weight: 500;
  font-size: 14px;
  border: 1.5px solid var(--joy-border);
  background: var(--joy-surface);
  color: var(--joy-neutral-700);
  transition: all var(--joy-transition-fast);
}

.pc-container .profile-actions .secondary-button:hover {
  border-color: var(--joy-primary);
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
}

/* ---------- 7. 套餐与进度条美化 ---------- */
.pc-container .pc-subscription-item {
  padding: 20px;
  border-radius: var(--joy-radius-lg);
  background: var(--joy-surface-2);
  border: 1px solid var(--joy-border);
  margin-bottom: 12px;
  transition: all var(--joy-transition);
}

.pc-container .pc-subscription-item:hover {
  border-color: var(--joy-neutral-300);
  box-shadow: var(--joy-shadow-xs);
}

.pc-container .pc-subscription-item.active {
  border-color: var(--joy-emerald-200);
  background:
    radial-gradient(ellipse at top right, rgba(16, 185, 129, 0.08), transparent 60%),
    var(--joy-state-success-soft);
}

.pc-container .pc-sub-header {
  margin-bottom: 10px;
}

.pc-container .pc-sub-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--joy-foreground);
  letter-spacing: -0.01em;
}

.pc-container .pc-sub-status {
  padding: 5px 14px;
  border-radius: var(--joy-radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pc-container .pc-sub-status.active {
  background: var(--joy-state-success-soft);
  color: var(--joy-state-success);
}

.pc-container .pc-sub-status.expired {
  background: var(--joy-state-error-soft);
  color: var(--joy-state-error);
}

.pc-container .pc-sub-status.cancelled {
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-500);
}

.pc-container .pc-sub-meta {
  color: var(--joy-neutral-500);
  font-size: 13px;
  gap: 16px;
}

/* 免费体验卡片美化 */
.pc-container .pc-trial-box {
  padding: 22px;
  border-radius: var(--joy-radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(51, 201, 201, 0.2), transparent 60%),
    linear-gradient(135deg, var(--joy-emerald-50), #fff);
  border: 1px solid var(--joy-emerald-200);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.pc-container .pc-trial-box::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(51, 201, 201, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pc-container .pc-trial-box .pc-sub-name {
  color: var(--joy-primary);
  font-weight: 700;
  font-size: 16px;
}

.pc-container .pc-trial-bar {
  height: 10px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-emerald-100);
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}

.pc-container .pc-trial-bar-fill {
  height: 100%;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(90deg, var(--joy-emerald-400), var(--joy-primary));
  position: relative;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-container .pc-trial-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: pcProgressShine 2s ease-in-out infinite;
}

@keyframes pcProgressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 语音包余额框 — pc-container 增强样式 */
.pc-container .pc-topup-box {
  padding: 22px;
  border-radius: var(--joy-radius-lg);
  background:
    radial-gradient(ellipse at top right, rgba(255, 149, 0, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(255, 247, 230, 0.9), #fff);
  border: 1px solid rgba(255, 149, 0, 0.15);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.pc-container .pc-topup-box .pc-sub-name {
  color: #c77c00;
}
.pc-container .pc-topup-bar-fill {
  height: 100%;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(90deg, #ffb300, #ff9500);
  position: relative;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 套餐升级卡片美化 */
.pc-container .pc-upgrade-grid {
  gap: 14px;
  margin-top: 16px;
}

.pc-container .pc-upgrade-card {
  padding: 18px;
  border-radius: var(--joy-radius-lg);
  background: var(--joy-surface-2);
  border: 1.5px solid var(--joy-border);
  transition: all var(--joy-transition);
  position: relative;
  overflow: hidden;
}

.pc-container .pc-upgrade-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--joy-emerald-400), var(--joy-primary));
  opacity: 0;
  transition: opacity var(--joy-transition);
}

.pc-container .pc-upgrade-card:hover {
  border-color: var(--joy-primary);
  transform: translateY(-3px);
  box-shadow: var(--joy-shadow-md);
}

.pc-container .pc-upgrade-card:hover::before {
  opacity: 1;
}

.pc-container .pc-upgrade-card .plan-name {
  font-size: 13px;
  color: var(--joy-neutral-500);
  font-weight: 500;
}

.pc-container .pc-upgrade-card h4 {
  font-size: 24px;
  margin: 8px 0;
  letter-spacing: -0.02em;
  color: var(--joy-foreground);
  font-weight: 700;
}

.pc-container .pc-upgrade-card h4 span {
  font-size: 13px;
  opacity: 0.5;
  font-weight: 500;
}

/* 空状态美化 */
.pc-container .pc-empty {
  color: var(--joy-neutral-400);
  font-size: 13px;
  padding: 10px 0;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
}

.pc-container .pc-empty::before {
  content: none;
  display: none;
}

/* 省钱测算开关美化 */
.pc-container .savings-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.pc-container .savings-toggle-wrapper span:first-of-type {
  font-size: 13px;
  color: var(--joy-neutral-600);
  font-weight: 500;
}

.pc-container .savings-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--joy-neutral-200);
  border-radius: var(--joy-radius-full);
  transition: all var(--joy-transition);
}

.pc-container .savings-toggle-slider > span {
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--joy-transition-bounce);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pc-container .savings-toggle-wrapper input:checked + .savings-toggle-slider {
  background: var(--joy-primary) !important;
}

.pc-container .savings-toggle-wrapper input:checked + .savings-toggle-slider > span {
  transform: translateX(20px);
}

/* BYOK 链接美化 */
.pc-container .byok-entry-link {
  font-size: 12px;
  color: var(--joy-primary);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  text-align: right;
  transition: color var(--joy-transition-fast);
}

.pc-container .byok-entry-link:hover {
  color: var(--joy-emerald-700);
}

.pc-container .byok-entry-link small {
  display: block;
  font-size: 10px;
  color: var(--joy-neutral-400);
  font-weight: normal;
  margin-top: 2px;
}

/* ---------- 8. 词条术语区域美化 ---------- */
.pc-container .pc-section-desc {
  color: var(--joy-neutral-500);
  font-size: 13px;
  margin: -8px 0 16px;
  line-height: 1.6;
}

/* 导出按钮 */
.pc-container .pc-export-btn {
  padding: 6px 14px;
  min-height: 32px;
  border-radius: var(--joy-radius-md);
  border: 1px solid var(--joy-border);
  background: var(--joy-surface);
  color: var(--joy-neutral-600);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
}

.pc-container .pc-export-btn:hover {
  border-color: var(--joy-primary);
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
}

/* 标签页美化 */
.pc-container .term-source-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  position: relative;
  padding: 4px;
  background: var(--joy-surface-2);
  border-radius: var(--joy-radius-md);
  border: 1px solid var(--joy-border);
}

.pc-container .term-tab-btn {
  padding: 8px 18px;
  border-radius: var(--joy-radius-sm);
  border: none;
  background: transparent;
  color: var(--joy-neutral-500);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  white-space: nowrap;
  position: relative;
}

.pc-container .term-tab-btn:hover {
  color: var(--joy-neutral-700);
  background: var(--joy-surface);
}

.pc-container .term-tab-btn.active {
  background: #fff;
  color: var(--joy-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pc-container .term-tab-all {
  margin-left: auto;
}

/* 词条添加表单美化 */
.pc-container .term-add-form {
  margin-bottom: 14px;
}

.pc-container .term-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.pc-container .term-input {
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--joy-border);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  font-size: 13px;
  color: var(--joy-foreground);
  transition: all var(--joy-transition-fast);
}

.pc-container .term-input:hover:not(:focus) {
  border-color: var(--joy-neutral-300);
}

.pc-container .term-input:focus {
  outline: none;
  border-color: var(--joy-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--joy-primary-soft);
}

.pc-container .term-input::placeholder {
  color: var(--joy-neutral-400);
}

.pc-container .term-add-btn {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--joy-radius-md);
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 20%, transparent);
  transition: all var(--joy-transition);
}

.pc-container .term-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

/* 搜索与排序美化 */
.pc-container .term-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.pc-container .term-search-box {
  flex: 1;
  position: relative;
}

.pc-container .term-search-box input {
  width: 100%;
  min-height: 38px;
  padding: 0 14px 0 38px;
  border: 1.5px solid var(--joy-border);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  font-size: 13px;
  color: var(--joy-foreground);
  transition: all var(--joy-transition-fast);
}

.pc-container .term-search-box::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.3-4.3'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  opacity: 0.7;
}

.pc-container .term-search-box input:hover:not(:focus) {
  border-color: var(--joy-neutral-300);
}

.pc-container .term-search-box input:focus {
  outline: none;
  border-color: var(--joy-primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--joy-primary-soft);
}

.pc-container .term-sort-select {
  min-height: 38px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--joy-border);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
  color: var(--joy-foreground);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.pc-container .term-sort-select:hover {
  border-color: var(--joy-neutral-300);
}

.pc-container .term-sort-select:focus {
  outline: none;
  border-color: var(--joy-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--joy-primary-soft);
}

/* 词条列表美化 */
.pc-container .term-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
  background: var(--joy-surface-2);
  border-radius: var(--joy-radius-md);
  border: 1px solid var(--joy-border);
}

.pc-container .term-list::-webkit-scrollbar {
  width: 6px;
}

.pc-container .term-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.pc-container .term-list::-webkit-scrollbar-thumb {
  background: var(--joy-neutral-300);
  border-radius: 3px;
}

.pc-container .term-list::-webkit-scrollbar-thumb:hover {
  background: var(--joy-neutral-400);
}

.pc-container .term-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--joy-radius-sm);
  background: var(--joy-surface);
  border: 1px solid transparent;
  transition: all var(--joy-transition-fast);
}

.pc-container .term-item:hover {
  background: #fff;
  border-color: var(--joy-emerald-100);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pc-container .term-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pc-container .term-item-term {
  font-weight: 600;
  font-size: 13px;
  color: var(--joy-foreground);
  flex-shrink: 0;
  min-width: 80px;
}

.pc-container .term-item-translation {
  font-size: 13px;
  color: var(--joy-neutral-500);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-container .term-item-translation.term-empty {
  color: var(--joy-neutral-400);
  font-style: italic;
}

.pc-container .term-item-source {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--joy-radius-full);
  font-size: 11px;
  font-weight: 500;
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-600);
  flex-shrink: 0;
  white-space: nowrap;
}

.pc-container .term-item-creator {
  font-size: 11px;
  color: var(--joy-neutral-400);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- 9. 折叠展开组件美化 ---------- */
.pc-container .collapsible-section {
  position: relative;
  overflow: hidden;
  max-height: 100px;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-container .collapsible-section.expanded {
  max-height: none;
}

.pc-container .collapsible-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--joy-card));
  pointer-events: none;
  transition: opacity var(--joy-transition);
}

.pc-container .collapsible-section.expanded .collapsible-fade {
  opacity: 0;
}

.pc-container .collapsible-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  background: var(--joy-surface-2);
  border: 1px solid var(--joy-border);
  border-top: none;
  border-radius: 0 0 var(--joy-radius-lg) var(--joy-radius-lg);
  color: var(--joy-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--joy-transition-fast);
  margin-top: 0;
}

.pc-container .collapsible-toggle-btn:hover {
  background: var(--joy-primary-soft);
  border-color: var(--joy-emerald-200);
  border-top-color: transparent;
  color: var(--joy-emerald-700);
}

.pc-container .collapsible-toggle-btn .toggle-arrow {
  display: inline-block;
  transition: transform var(--joy-transition);
  font-size: 12px;
  font-weight: 700;
}

.pc-container .collapsible-toggle-btn.expanded .toggle-arrow {
  transform: rotate(180deg);
}

/* ---------- 10. 设备使用记录美化 ---------- */
.pc-container .device-usage-summary {
  padding: 14px 16px;
  background:
    linear-gradient(135deg, var(--joy-emerald-50), #fff);
  border: 1px solid var(--joy-emerald-100);
  border-radius: var(--joy-radius-md);
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--joy-neutral-600);
}

.pc-container .device-usage-summary b {
  color: var(--joy-primary);
  font-weight: 700;
}

.pc-container .device-usage-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow-y: visible;
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-md);
  background: var(--joy-surface);
}

.pc-container .device-usage-list::-webkit-scrollbar {
  width: 6px;
}

.pc-container .device-usage-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.pc-container .device-usage-list::-webkit-scrollbar-thumb {
  background: var(--joy-neutral-300);
  border-radius: 3px;
}

.pc-container .device-usage-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--joy-border);
  transition: background var(--joy-transition-fast);
}

.pc-container .device-usage-item:last-child {
  border-bottom: none;
}

.pc-container .device-usage-item:hover {
  background: var(--joy-surface-2);
}

.pc-container .device-usage-item.active {
  background: var(--joy-state-success-soft);
}

/* ---------- 11. 账号安全卡片美化 ---------- */
.pc-container #securityCard.pc-card {
  background: var(--joy-surface-2);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  box-shadow: none;
  overflow: hidden;
}

.pc-container #securityCard .pc-card-title {
  padding: 14px 20px;
  background: var(--joy-surface);
  border-bottom: 1px solid var(--joy-border);
  margin-bottom: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.pc-container .security-content {
  padding: 20px !important;
}

.pc-container .security-content .pc-subscription-item {
  margin-bottom: 0;
  background: var(--joy-surface);
}

/* ---------- 12. 组织抽屉美化 ---------- */
.pc-container .org-drawer {
  background: var(--joy-surface);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  box-shadow: var(--joy-shadow-xl);
  backdrop-filter: blur(20px);
}

.pc-container .org-drawer-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--joy-border);
}

.pc-container .org-drawer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--joy-foreground);
}

.pc-container .org-drawer-toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--joy-radius-sm);
  color: var(--joy-neutral-400);
  font-size: 18px;
  transition: all var(--joy-transition-fast);
}

.pc-container .org-drawer-toggle:hover {
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-600);
}

.pc-container .org-drawer-body {
  padding: 10px 12px 12px;
}

.pc-container .org-drawer-input {
  min-height: 36px;
  padding: 0 12px;
  border: 1.5px solid var(--joy-border);
  border-radius: var(--joy-radius-sm);
  background: var(--joy-surface);
  font-size: 13px;
  transition: all var(--joy-transition-fast);
}

.pc-container .org-drawer-input:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 3px var(--joy-primary-soft);
}

.pc-container .org-drawer-btn {
  padding: 0 14px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--joy-radius-sm);
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--joy-transition);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}

.pc-container .org-drawer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.pc-container .org-drawer-item {
  padding: 10px 12px;
  border-radius: var(--joy-radius-sm);
  border: 1px solid var(--joy-border);
  transition: all var(--joy-transition-fast);
}

.pc-container .org-drawer-item:hover {
  border-color: var(--joy-emerald-200);
  background: var(--joy-primary-soft);
}

.pc-container .org-drawer-item.active {
  border-color: var(--joy-primary);
  background: var(--joy-primary-soft);
  box-shadow: 0 0 0 2px var(--joy-primary-soft);
}

.pc-container .org-drawer-item-name {
  font-size: 13px;
  color: var(--joy-foreground);
  font-weight: 500;
}

/* ---------- 13. 响应式优化 ---------- */
@media (max-width: 900px) {
  .pc-container .pc-grid {
    grid-template-columns: 1fr;
  }

  .pc-container .pc-header {
    padding: 24px 24px;
    margin-bottom: 24px;
  }

  .pc-container .pc-form-row {
    grid-template-columns: 1fr;
  }

  .pc-container .pc-upgrade-grid {
    grid-template-columns: 1fr;
  }

  .pc-container .profile-actions {
    grid-template-columns: 1fr;
  }

  .pc-container .term-add-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- 14. 收到的共享卡片美化 ---------- */
.pc-container #receivedShareSection .pc-subscription-item {
  background:
    radial-gradient(ellipse at top right, rgba(16, 185, 129, 0.08), transparent 60%),
    var(--joy-state-success-soft);
  border-color: rgba(16, 185, 129, 0.25);
}

/* ================================================================
   ===== 个人中心页面 UI 优化 END =================================
   ================================================================ */

/* ============================================================
   Plan Comparison Page - UI Optimization
   价格套餐对比页面 UI 优化
   ============================================================ */

/* ---------- 1. Hero 区优化 - 与首页风格一致 ---------- */
.info-page .info-hero {
  position: relative;
  overflow: hidden;
  background: var(--joy-background);
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--joy-border);
}

.info-page .info-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--joy-primary-12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(51, 201, 201, 0.08), transparent);
  pointer-events: none;
}

.info-page .info-hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--joy-emerald-400), transparent 70%);
  top: -15%;
  right: -8%;
  opacity: 0.22;
  filter: blur(70px);
  animation: pricing-blob-float 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pricing-blob-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-24px) scale(1.06); }
}

.info-page .info-hero .container {
  position: relative;
  z-index: 1;
}

.info-page .info-badge {
  background: color-mix(in srgb, var(--joy-primary) 10%, transparent);
  color: var(--joy-primary);
  border: 1px solid color-mix(in srgb, var(--joy-primary) 20%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.info-page .info-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--joy-emerald-800) 0%, var(--joy-primary) 40%, var(--joy-emerald-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.info-page .info-hero .info-subtitle {
  font-size: 18px;
  color: var(--joy-neutral-500);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- 2. 内容区优化 ---------- */
.info-page .info-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.info-page .info-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--joy-foreground);
  margin-top: 64px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: none;
  position: relative;
}

.info-page .info-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--joy-primary), var(--joy-emerald-400));
  border-radius: 2px;
}

.info-page .info-content h2:first-child {
  margin-top: 0;
}

.info-page .info-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--joy-foreground);
  margin-top: 36px;
  margin-bottom: 12px;
  padding-left: 14px;
  position: relative;
}

.info-page .info-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--joy-primary), var(--joy-emerald-400));
  border-radius: 2px;
}

.info-page .info-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--joy-neutral-700);
}

/* ---------- 3. 套餐对比表格优化 ---------- */
.info-page .info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  font-size: 14px;
  background: var(--joy-card);
  border-radius: var(--joy-radius-xl);
  box-shadow: var(--joy-shadow-md);
  border: 1px solid var(--joy-border);
  overflow: hidden;
}

/* 表头渐变背景 */
.info-page .info-table thead {
  background: linear-gradient(135deg, var(--joy-emerald-700) 0%, var(--joy-primary) 100%);
}

.info-page .info-table th {
  padding: 18px 16px;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border-bottom: none;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.info-page .info-table th:first-child {
  padding-left: 24px;
}

.info-page .info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--joy-neutral-100);
  color: var(--joy-neutral-700);
  vertical-align: middle;
}

.info-page .info-table td:first-child {
  padding-left: 24px;
  font-weight: 500;
  color: var(--joy-neutral-800);
}

.info-page .info-table tbody tr:last-child td {
  border-bottom: none;
}

/* 斑马纹优化 */
.info-page .info-table tbody tr:nth-child(even) {
  background: var(--joy-neutral-50);
}

.info-page .info-table tbody tr:hover {
  background: var(--joy-emerald-50);
  transition: background var(--joy-transition-fast);
}

/* ---------- 4. 推荐套餐列高亮（个人进阶版 - 第3列） ---------- */
.info-page .info-table th:nth-child(3) {
  background: linear-gradient(135deg, var(--joy-emerald-600) 0%, var(--joy-emerald-400) 100%);
  position: relative;
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.1);
}

.info-page .info-table th:nth-child(3)::after {
  content: '最受欢迎';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--joy-state-warning);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 0 0 var(--joy-radius-full) var(--joy-radius-full);
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.info-page .info-table tbody td:nth-child(3) {
  background: color-mix(in srgb, var(--joy-primary) 4%, transparent);
  font-weight: 500;
  color: var(--joy-emerald-800);
  position: relative;
}

.info-page .info-table tbody tr:nth-child(even) td:nth-child(3) {
  background: color-mix(in srgb, var(--joy-primary) 7%, transparent);
}

.info-page .info-table tbody tr:hover td:nth-child(3) {
  background: color-mix(in srgb, var(--joy-primary) 10%, transparent);
}

/* ---------- 5. 价格行醒目展示 ---------- */
.info-page .info-table tbody tr:first-child td:not(:first-child) {
  font-size: 24px;
  font-weight: 700;
  color: var(--joy-primary);
  letter-spacing: -0.02em;
  padding-top: 16px;
  padding-bottom: 16px;
}

.info-page .info-table tbody tr:first-child td:nth-child(3) {
  font-size: 28px;
  color: var(--joy-emerald-700);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--joy-primary) 10%, transparent);
}

/* 赠送时长行高亮 */
.info-page .info-table tbody tr:nth-child(4) td:nth-child(3),
.info-page .info-table tbody tr:nth-child(4) td:nth-child(5) {
  color: var(--joy-state-warning) !important;
  font-weight: 600;
}

/* ---------- 6. 分组行样式（功能分类） ---------- */
.info-page .info-table tbody td[colspan] {
  background: linear-gradient(90deg, var(--joy-emerald-50) 0%, var(--joy-neutral-50) 100%);
  font-size: 14px;
  font-weight: 700;
  color: var(--joy-emerald-800);
  padding: 14px 24px;
  border-bottom: 1px solid var(--joy-emerald-100);
  border-top: 1px solid var(--joy-emerald-100);
  letter-spacing: 0.01em;
}

.info-page .info-table tbody td[colspan] strong {
  color: var(--joy-emerald-800);
}

/* ---------- 7. 勾选/叉号样式优化 ---------- */
.info-page .info-table .check {
  color: var(--joy-state-success);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--joy-state-success-soft);
  border-radius: 50%;
  line-height: 1;
}

.info-page .info-table .cross {
  color: var(--joy-neutral-300);
  font-weight: 400;
  font-size: 18px;
}

/* ---------- 8. 套餐详细介绍卡片化 ---------- */
.info-page .info-content ul {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  padding: 16px 20px 16px 40px;
  margin: 12px 0 24px;
  list-style: none;
  box-shadow: var(--joy-shadow-xs);
  transition: box-shadow var(--joy-transition);
}

.info-page .info-content ul:hover {
  box-shadow: var(--joy-shadow-sm);
}

.info-page .info-content ul li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--joy-neutral-700);
  margin-bottom: 6px;
  padding-left: 0;
  position: relative;
}

.info-page .info-content ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--joy-primary);
}

/* ---------- 9. Callout 提示框优化 ---------- */
.info-page .info-callout {
  border-radius: var(--joy-radius-lg);
  border: 1px solid var(--joy-emerald-200);
  background: linear-gradient(135deg, color-mix(in srgb, var(--joy-primary) 4%, transparent) 0%, rgba(51, 201, 201, 0.02) 100%);
  border-left: 4px solid var(--joy-primary);
  padding: 20px 24px;
  margin: 28px 0;
  transition: all var(--joy-transition);
}

.info-page .info-callout:hover {
  border-color: var(--joy-emerald-300);
  box-shadow: var(--joy-shadow-sm);
}

.info-page .info-callout p {
  margin-bottom: 0;
  font-size: 15px;
}

.info-page .info-callout strong {
  color: var(--joy-emerald-800);
  font-weight: 600;
}

/* ---------- 10. 底部 CTA 渐变区域（最后一个 callout） ---------- */
.info-page .info-content .info-callout:last-of-type {
  background: linear-gradient(135deg, var(--joy-emerald-700) 0%, var(--joy-primary) 50%, var(--joy-emerald-400) 100%);
  border: none;
  border-left: none;
  color: #ffffff;
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--joy-radius-2xl);
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  box-shadow: var(--joy-shadow-primary-lg);
}

.info-page .info-content .info-callout:last-of-type::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(ellipse 40% 60% at 80% 50%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.info-page .info-content .info-callout:last-of-type::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  top: -50%;
  right: -10%;
  filter: blur(40px);
  pointer-events: none;
}

.info-page .info-content .info-callout:last-of-type p {
  color: #ffffff;
  font-size: 17px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.info-page .info-content .info-callout:last-of-type strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  display: inline;
}

.info-page .info-content .info-callout:last-of-type a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  background: #ffffff;
  color: var(--joy-primary);
  border-radius: var(--joy-radius-full);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--joy-transition-bounce);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-page .info-content .info-callout:last-of-type a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* ---------- 11. 语音包说明旁注文字优化 ---------- */
.info-page .info-content > p[style] {
  color: var(--joy-neutral-500) !important;
  font-size: 14px !important;
  margin-top: 8px !important;
  padding-left: 4px;
}

/* ---------- 12. 响应式适配 ---------- */
@media (max-width: 900px) {
  .info-page .info-content {
    max-width: 100%;
    padding: 48px 16px 72px;
  }

  .info-page .info-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }

  .info-page .info-table th,
  .info-page .info-table td {
    padding: 10px 12px;
  }

  .info-page .info-table th:first-child,
  .info-page .info-table td:first-child {
    padding-left: 12px;
    position: sticky;
    left: 0;
    background: var(--joy-card);
    z-index: 2;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
  }

  .info-page .info-table tbody tr:nth-child(even) td:first-child {
    background: var(--joy-neutral-50);
  }

  .info-page .info-table tbody td:nth-child(3) {
    position: sticky;
  }

  .info-page .info-table th:nth-child(3)::after {
    font-size: 10px;
    padding: 2px 8px;
  }

  .info-page .info-table tbody tr:first-child td:not(:first-child) {
    font-size: 18px;
  }

  .info-page .info-table tbody tr:first-child td:nth-child(3) {
    font-size: 20px;
  }

  .info-page .info-hero {
    padding: 72px 0 48px;
  }

  .info-page .info-hero h1 {
    font-size: clamp(28px, 6vw, 40px);
  }

  .info-page .info-hero .info-subtitle {
    font-size: 16px;
  }

  .info-page .info-content h2 {
    font-size: 24px;
    margin-top: 48px;
  }

  .info-page .info-content .info-callout:last-of-type {
    padding: 32px 24px;
    margin-top: 40px;
  }

  .info-page .info-content .info-callout:last-of-type strong {
    font-size: 18px;
  }
}

/* ============================================================
   言值兑换页面 UI 优化（Exchange Page UI Enhancement）
   ============================================================ */

/* ===== 页面头部增强 ===== */
.points-header {
  position: relative;
  margin-bottom: var(--joy-s-7);
  padding: var(--joy-s-6) var(--joy-s-7);
  background: linear-gradient(135deg, var(--joy-emerald-50) 0%, var(--joy-neutral-50) 100%);
  border-radius: var(--joy-radius-2xl);
  border: 1px solid var(--joy-emerald-100);
  overflow: hidden;
}

.points-header::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--joy-primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.points-header::after {
  content: "✦";
  position: absolute;
  top: 20px;
  right: 32px;
  font-size: 20px;
  color: var(--joy-emerald-300);
  opacity: 0.6;
  animation: points-sparkle 3s ease-in-out infinite;
}

.points-header h1 {
  position: relative;
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--joy-emerald-800) 0%, var(--joy-primary) 50%, var(--joy-emerald-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--joy-s-2);
  letter-spacing: -0.5px;
}

.points-header > p {
  position: relative;
  font-size: 15px;
  color: var(--joy-neutral-500);
  margin: 0;
  font-weight: 500;
}

/* ===== 余额卡片升级 ===== */
.points-balance-card {
  position: relative;
  padding: 36px 28px 32px;
  border-radius: var(--joy-radius-2xl);
  background: linear-gradient(145deg, var(--joy-emerald-500) 0%, var(--joy-primary) 40%, var(--joy-emerald-700) 100%) !important;
  color: var(--joy-primary-foreground);
  box-shadow: var(--joy-shadow-primary-lg), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
  transition: transform var(--joy-transition), box-shadow var(--joy-transition);
}

.points-balance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px var(--joy-primary-50), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* 卡片装饰光斑 */
.points-balance-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: points-glow 4s ease-in-out infinite alternate;
}

/* 卡片装饰线条 */
.points-balance-card::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.points-balance-label {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--joy-s-2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.points-balance-label::before {
  content: "💎";
  font-size: 14px;
  opacity: 0.9;
}

.points-balance-value {
  position: relative;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  animation: points-count-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.points-balance-value.gold {
  background: linear-gradient(135deg, #fff7d6 0%, #ffd700 40%, #ffb347 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(255, 193, 7, 0.4));
}

/* ===== 侧边栏导航增强 ===== */
.points-nav {
  background: var(--joy-card);
  border-radius: var(--joy-radius-xl);
  padding: var(--joy-s-2);
  border: 1px solid var(--joy-border);
  box-shadow: var(--joy-shadow-xs);
  gap: 2px;
}

.points-nav-item {
  position: relative;
  padding: 14px 18px;
  border-radius: var(--joy-radius-lg);
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  transition: all var(--joy-transition);
}

.points-nav-item:hover {
  background: var(--joy-emerald-50);
  color: var(--joy-primary);
  transform: translateX(2px);
}

.points-nav-item.active {
  background: linear-gradient(135deg, var(--joy-primary-soft) 0%, rgba(51, 201, 201, 0.12) 100%);
  color: var(--joy-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px var(--joy-primary-soft);
}

.points-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: linear-gradient(to bottom, var(--joy-emerald-400), var(--joy-primary));
  border-radius: 0 3px 3px 0;
}

.points-nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform var(--joy-transition-bounce);
}

.points-nav-item:hover svg {
  transform: scale(1.1);
}

/* ===== 侧边栏积分获取说明（步骤式卡片） ===== */
.points-sidebar-tips {
  position: relative;
  background: var(--joy-card);
  border-radius: var(--joy-radius-xl);
  padding: var(--joy-s-6) var(--joy-s-5);
  border: 1px solid var(--joy-border);
  box-shadow: var(--joy-shadow-xs);
}

.points-sidebar-tips h4 {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--joy-foreground);
  margin-bottom: var(--joy-s-5);
  padding-bottom: var(--joy-s-3);
  border-bottom: 2px solid var(--joy-emerald-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.points-sidebar-tips h4::before {
  content: "🎁";
  font-size: 16px;
}

.points-sidebar-tips ul {
  gap: var(--joy-s-3);
  margin-bottom: var(--joy-s-5);
}

.points-sidebar-tips li {
  position: relative;
  padding: 12px 14px 12px 44px;
  background: var(--joy-emerald-50);
  border-radius: var(--joy-radius-md);
  font-size: 13px;
  color: var(--joy-neutral-700);
  font-weight: 500;
  border: 1px solid var(--joy-emerald-100);
  transition: all var(--joy-transition);
  counter-increment: tip-counter;
}

.points-sidebar-tips ul {
  counter-reset: tip-counter;
}

.points-sidebar-tips li::before {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-primary));
  color: white;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  content: counter(tip-counter);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.points-sidebar-tips li:hover {
  background: var(--joy-emerald-100);
  transform: translateX(3px);
  border-color: var(--joy-emerald-200);
}

.points-sidebar-tips li > span {
  display: none;
}

.points-tips-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--joy-emerald-50), var(--joy-neutral-50));
  border: 1px solid var(--joy-emerald-200);
  border-radius: var(--joy-radius-full);
  color: var(--joy-primary);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--joy-transition);
}

.points-tips-link:hover {
  background: linear-gradient(135deg, var(--joy-emerald-100), var(--joy-emerald-50));
  border-color: var(--joy-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--joy-primary-15);
  opacity: 1;
}

.points-tips-link::after {
  content: "→";
  font-size: 14px;
  transition: transform var(--joy-transition);
}

.points-tips-link:hover::after {
  transform: translateX(3px);
}

/* ===== 面板标题增强 ===== */
.points-panel-title {
  position: relative;
  font-size: 22px;
  font-weight: 800;
  color: var(--joy-foreground);
  margin-bottom: var(--joy-s-2);
  padding-left: var(--joy-s-4);
  letter-spacing: -0.3px;
}

.points-panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--joy-emerald-400), var(--joy-primary));
  border-radius: var(--joy-radius-full);
}

.points-panel-desc {
  font-size: 14px;
  color: var(--joy-neutral-500);
  margin-bottom: var(--joy-s-6);
  padding-left: var(--joy-s-4);
}

/* ===== 兑换商品网格 ===== */
.exchange-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--joy-s-5);
  margin-top: var(--joy-s-4);
}

/* ===== 商品卡片升级 ===== */
.exchange-product-card {
  position: relative;
  border-radius: var(--joy-radius-2xl);
  padding: var(--joy-s-6) var(--joy-s-5);
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  box-shadow: var(--joy-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--joy-transition-slow);
  overflow: hidden;
}

.exchange-product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--joy-emerald-400), var(--joy-primary), var(--joy-emerald-500));
  opacity: 0;
  transition: opacity var(--joy-transition);
}

.exchange-product-card.available {
  box-shadow: var(--joy-shadow-sm);
  border-color: var(--joy-emerald-100);
}

.exchange-product-card.available:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--joy-shadow-primary-lg);
  border-color: var(--joy-emerald-300);
}

.exchange-product-card.available:hover::before {
  opacity: 1;
}

/* 锁定/待开放状态 */
.exchange-product-card.locked {
  opacity: 1;
  background: linear-gradient(135deg, var(--joy-neutral-50) 0%, var(--joy-neutral-100) 100%);
  border: 1px dashed var(--joy-neutral-300);
  position: relative;
  overflow: hidden;
}

.exchange-product-card.locked::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(161, 161, 170, 0.05) 8px,
    rgba(161, 161, 170, 0.05) 16px
  );
  pointer-events: none;
  opacity: 0.5;
}

.exchange-product-card.locked::after {
  content: "🔒";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  opacity: 0.7;
  filter: grayscale(0.3);
}

.exchange-product-card.locked:hover {
  transform: translateY(-2px);
  box-shadow: var(--joy-shadow-md);
  border-color: var(--joy-neutral-400);
}

/* 商品图标升级 */
.product-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--joy-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--joy-emerald-100) 0%, var(--joy-primary-soft) 100%);
  color: var(--joy-primary);
  margin-bottom: var(--joy-s-4);
  transition: all var(--joy-transition-bounce);
}

.product-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--joy-emerald-300), var(--joy-primary));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--joy-transition);
}

.exchange-product-card.available:hover .product-icon {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, var(--joy-emerald-200) 0%, var(--joy-emerald-100) 100%);
}

.exchange-product-card.available:hover .product-icon::before {
  opacity: 0.3;
  filter: blur(8px);
}

.exchange-product-card.locked .product-icon {
  background: linear-gradient(135deg, var(--joy-neutral-100) 0%, var(--joy-neutral-200) 100%);
  color: var(--joy-neutral-400);
}

.exchange-product-card.locked .product-icon svg {
  opacity: 0.7;
}

.product-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}

/* 商品标题和描述 */
.exchange-product-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--joy-foreground);
  margin-bottom: var(--joy-s-2);
  letter-spacing: -0.2px;
}

.exchange-product-card.locked h3 {
  color: var(--joy-neutral-500);
}

.product-desc {
  font-size: 13px;
  color: var(--joy-neutral-500);
  line-height: 1.6;
  margin-bottom: var(--joy-s-5);
  flex: 1;
}

.exchange-product-card.locked .product-desc {
  color: var(--joy-neutral-400);
}

/* 商品价格标签（通用样式，供后续JS动态添加 .product-price 时使用） */
.product-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--joy-emerald-50), var(--joy-primary-soft));
  border: 1px solid var(--joy-emerald-200);
  border-radius: var(--joy-radius-full);
  font-size: 15px;
  font-weight: 800;
  color: var(--joy-primary);
  margin-bottom: var(--joy-s-4);
  align-self: flex-start;
}

.product-price::before {
  content: "💎";
  font-size: 14px;
}

/* 锁定标签升级 */
.product-locked-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(135deg, var(--joy-neutral-200) 0%, var(--joy-neutral-300) 100%);
  color: var(--joy-neutral-600);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  align-self: stretch;
  letter-spacing: 0.3px;
  transition: all var(--joy-transition);
  z-index: 1;
}

.product-locked-tag::before {
  content: "⏳";
  font-size: 14px;
}

.exchange-product-card.locked:hover .product-locked-tag {
  background: linear-gradient(135deg, var(--joy-neutral-300) 0%, var(--joy-neutral-400) 100%);
  color: var(--joy-neutral-700);
}

/* 兑换按钮增强 */
.product-exchange-btn {
  position: relative;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--joy-radius-xl);
  background: linear-gradient(135deg, var(--joy-emerald-400) 0%, var(--joy-primary) 50%, var(--joy-emerald-700) 100%) !important;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--joy-transition);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--joy-primary) 30%, transparent);
  overflow: hidden;
  letter-spacing: 0.3px;
}

.product-exchange-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.5s ease;
}

.product-exchange-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--joy-primary) 40%, transparent);
  opacity: 1;
}

.product-exchange-btn:hover::before {
  left: 100%;
}

.product-exchange-btn:active {
  transform: translateY(0) scale(0.98);
}

.product-exchange-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-exchange-btn:disabled::before {
  display: none;
}

/* 兑换预览区域 */
.product-preview {
  position: relative;
  font-size: 13px;
  color: var(--joy-primary);
  font-weight: 700;
  padding: 10px 16px;
  background: var(--joy-primary-soft);
  border-radius: var(--joy-radius-lg);
  text-align: center;
  border: 1px solid var(--joy-emerald-200);
  transition: all var(--joy-transition);
}

.product-preview:hover {
  background: var(--joy-emerald-100);
  border-color: var(--joy-emerald-300);
}

/* 输入行增强 */
.product-input-row {
  gap: 12px;
}

.product-input-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--joy-neutral-600);
}

.product-input-row input {
  padding: 10px 14px;
  border: 1.5px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: var(--joy-card);
  transition: all var(--joy-transition);
  color: var(--joy-foreground);
}

.product-input-row input:focus {
  outline: none;
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 4px var(--joy-primary-soft);
}

/* ===== 历史记录列表增强 ===== */
.points-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--joy-s-3);
  margin-top: var(--joy-s-4);
}

.points-history-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--joy-s-5);
  padding: 18px 24px;
  background: var(--joy-card);
  border-radius: var(--joy-radius-xl);
  border: 1px solid var(--joy-border);
  box-shadow: var(--joy-shadow-xs);
  transition: all var(--joy-transition);
  overflow: hidden;
}

.points-history-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--joy-emerald-300), var(--joy-primary));
  opacity: 0;
  transition: opacity var(--joy-transition);
  border-radius: var(--joy-radius-full);
}

.points-history-item:hover {
  box-shadow: var(--joy-shadow-md);
  border-color: var(--joy-emerald-200);
  transform: translateX(4px);
}

.points-history-item:hover::before {
  opacity: 1;
}

.points-history-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.points-history-reason {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--joy-foreground);
  margin-bottom: 0;
  padding-left: 28px;
}

.points-history-reason::before {
  content: "📋";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.points-history-detail {
  font-size: 13px;
  color: var(--joy-neutral-500);
  margin-bottom: 0;
  padding-left: 28px;
}

.points-history-time {
  font-size: 12px;
  color: var(--joy-neutral-400);
  padding-left: 28px;
  font-weight: 500;
}

.points-history-amount {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--joy-radius-full);
  letter-spacing: -0.3px;
}

.points-history-amount.positive {
  color: var(--joy-state-success);
  background: var(--joy-state-success-soft);
}

.points-history-amount.negative {
  color: var(--joy-state-error);
  background: var(--joy-state-error-soft);
}

/* ===== 空状态样式增强 ===== */
.pc-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--joy-neutral-400);
  font-size: 14px;
  background: var(--joy-neutral-50);
  border-radius: var(--joy-radius-xl);
  border: 2px dashed var(--joy-neutral-200);
  transition: all var(--joy-transition);
}

.pc-empty::before {
  content: "📭";
  display: block;
  font-size: 40px;
  margin-bottom: var(--joy-s-3);
  opacity: 0.7;
}

/* ===== 弹窗/表单美化（通用兑换弹窗样式） ===== */
.exchange-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: points-fade-in 0.2s ease;
}

.exchange-modal {
  width: min(440px, calc(100% - 40px));
  background: var(--joy-card);
  border-radius: var(--joy-radius-2xl);
  box-shadow: var(--joy-shadow-2xl);
  overflow: hidden;
  animation: points-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exchange-modal-header {
  padding: var(--joy-s-6);
  background: linear-gradient(135deg, var(--joy-emerald-500) 0%, var(--joy-primary) 100%);
  color: white;
  text-align: center;
}

.exchange-modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: var(--joy-s-2);
}

.exchange-modal-header p {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 500;
}

.exchange-modal-body {
  padding: var(--joy-s-6);
}

.exchange-modal-footer {
  padding: var(--joy-s-5) var(--joy-s-6) var(--joy-s-6);
  display: flex;
  gap: var(--joy-s-3);
}

.exchange-modal-footer button {
  flex: 1;
  padding: 14px;
  border-radius: var(--joy-radius-xl);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--joy-transition);
  border: none;
}

.exchange-btn-cancel {
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-700);
}

.exchange-btn-cancel:hover {
  background: var(--joy-neutral-200);
}

.exchange-btn-confirm {
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-primary));
  color: white;
  box-shadow: 0 4px 14px var(--joy-primary-30);
}

.exchange-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--joy-primary-40);
}

/* ===== 成功/状态徽章 ===== */
.points-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--joy-radius-full);
  font-size: 12px;
  font-weight: 700;
}

.points-status-badge.success {
  background: var(--joy-state-success-soft);
  color: var(--joy-state-success);
}

.points-status-badge.pending {
  background: var(--joy-state-warning-soft);
  color: var(--joy-state-warning);
}

.points-status-badge.failed {
  background: var(--joy-state-error-soft);
  color: var(--joy-state-error);
}

/* ===== 动画关键帧 ===== */
@keyframes points-sparkle {
  0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.2) rotate(15deg); }
}

@keyframes points-glow {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes points-count-in {
  0% { opacity: 0; transform: translateY(10px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes points-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes points-modal-in {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes points-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== 响应式适配 ===== */
@media (max-width: 900px) {
  .points-header {
    padding: var(--joy-s-5);
    margin-bottom: var(--joy-s-6);
  }

  .points-header h1 {
    font-size: 28px;
  }

  .points-balance-card {
    padding: 28px 24px;
  }

  .points-balance-value {
    font-size: 44px;
  }

  .exchange-products {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--joy-s-4);
  }
}

@media (max-width: 600px) {
  .exchange-products {
    grid-template-columns: 1fr;
  }

  .points-history-item {
    padding: 16px;
    flex-wrap: wrap;
  }

  .points-history-amount {
    width: 100%;
    text-align: center;
    margin-top: var(--joy-s-2);
  }
}

/* ===== 黑金主题兼容 - 兑换页优化 ===== */
.gold-theme .points-header {
  background: linear-gradient(135deg, rgba(184, 148, 63, 0.08) 0%, var(--joy-neutral-50) 100%) !important;
  border-color: rgba(184, 148, 63, 0.2) !important;
}

.gold-theme .points-header::before {
  background: radial-gradient(circle, rgba(255, 190, 80, 0.2) 0%, transparent 70%) !important;
}

.gold-theme .points-header h1 {
  background: linear-gradient(135deg, #6b5a38 0%, #b8943f 50%, #d4af5f 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.gold-theme .points-header::after {
  color: var(--gold-light) !important;
}

.gold-theme .points-balance-card {
  background: var(--gold-grad) !important;
  box-shadow: 0 15px 40px -10px rgba(184, 148, 63, 0.5), 0 0 0 1px rgba(255, 235, 150, 0.2) inset !important;
}

.gold-theme .points-balance-card::before {
  background: radial-gradient(circle, rgba(255, 235, 150, 0.3) 0%, transparent 70%) !important;
}

.gold-theme .points-balance-card::after {
  border-color: rgba(255, 235, 150, 0.15) !important;
}

.gold-theme .points-balance-label::before {
  content: "👑" !important;
}

.gold-theme .points-nav-item.active {
  background: var(--gold-soft) !important;
  color: var(--gold-text) !important;
  box-shadow: 0 2px 8px rgba(184, 148, 63, 0.12) !important;
}

.gold-theme .points-nav-item.active::before {
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-text)) !important;
}

.gold-theme .points-sidebar-tips h4 {
  border-bottom-color: rgba(184, 148, 63, 0.2) !important;
}

.gold-theme .points-sidebar-tips li {
  background: var(--gold-soft) !important;
  border-color: rgba(184, 148, 63, 0.2) !important;
  color: var(--joy-neutral-700) !important;
}

.gold-theme .points-sidebar-tips li::before {
  background: var(--gold-grad) !important;
  box-shadow: 0 2px 6px rgba(184, 148, 63, 0.3) !important;
}

.gold-theme .points-sidebar-tips li:hover {
  background: rgba(184, 148, 63, 0.18) !important;
  border-color: rgba(184, 148, 63, 0.35) !important;
}

.gold-theme .points-tips-link {
  background: linear-gradient(135deg, var(--gold-soft), rgba(255, 190, 80, 0.05)) !important;
  border-color: rgba(184, 148, 63, 0.3) !important;
  color: var(--gold-text) !important;
}

.gold-theme .points-tips-link:hover {
  background: linear-gradient(135deg, rgba(184, 148, 63, 0.18), var(--gold-soft)) !important;
  border-color: var(--gold-text) !important;
  box-shadow: 0 4px 12px rgba(184, 148, 63, 0.2) !important;
}

.gold-theme .points-panel-title::before {
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-text)) !important;
}

.gold-theme .exchange-product-card.available {
  border-color: rgba(184, 148, 63, 0.2) !important;
}

.gold-theme .exchange-product-card.available:hover {
  border-color: var(--gold-light) !important;
  box-shadow: 0 20px 40px -15px rgba(184, 148, 63, 0.4) !important;
}

.gold-theme .exchange-product-card::before {
  background: linear-gradient(90deg, var(--gold-light), var(--gold-text), #d4af5f) !important;
}

.gold-theme .product-icon {
  background: linear-gradient(135deg, rgba(184, 148, 63, 0.15), rgba(212, 175, 95, 0.2)) !important;
  color: var(--gold-text) !important;
}

.gold-theme .exchange-product-card.available:hover .product-icon {
  background: linear-gradient(135deg, rgba(184, 148, 63, 0.25), rgba(212, 175, 95, 0.3)) !important;
}

.gold-theme .product-exchange-btn {
  background: var(--gold-grad) !important;
  color: #fff8dc !important;
  box-shadow: 0 4px 14px rgba(184, 148, 63, 0.4) !important;
}

.gold-theme .product-exchange-btn:hover {
  box-shadow: 0 8px 24px rgba(184, 148, 63, 0.5) !important;
}

.gold-theme .product-preview {
  color: var(--gold-text) !important;
  background: var(--gold-soft) !important;
  border-color: rgba(184, 148, 63, 0.2) !important;
}

.gold-theme .product-price {
  background: linear-gradient(135deg, var(--gold-soft), rgba(255, 190, 80, 0.08)) !important;
  border-color: rgba(184, 148, 63, 0.3) !important;
  color: var(--gold-text) !important;
}

.gold-theme .points-history-item {
  border-color: rgba(184, 148, 63, 0.15) !important;
}

.gold-theme .points-history-item:hover {
  border-color: rgba(184, 148, 63, 0.3) !important;
}

.gold-theme .points-history-item::before {
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-text)) !important;
}

.gold-theme .points-history-amount.positive {
  color: #d4af5f !important;
  background: var(--gold-soft) !important;
}

.gold-theme .points-history-amount.negative {
  color: #c0392b !important;
  background: rgba(231, 76, 60, 0.1) !important;
}

.gold-theme .exchange-btn-confirm {
  background: var(--gold-grad) !important;
  box-shadow: 0 4px 14px rgba(184, 148, 63, 0.4) !important;
}

.gold-theme .exchange-modal-header {
  background: var(--gold-grad) !important;
}

/* ============================================================
   Community Page UI Optimization
   Prefix: .community-  (scoped via .info-page for specificity)
   ============================================================ */

/* ---------- 1. Community Hero Section ---------- */
.info-page .community-hero {
  position: relative;
  background: var(--joy-background);
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.info-page .community-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, color-mix(in srgb, var(--joy-primary) 14%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(51, 201, 201, 0.1), transparent),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(0, 122, 122, 0.06), transparent);
  pointer-events: none;
}

.info-page .community-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--joy-primary) 3%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--joy-primary) 3%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center top, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 25%, transparent 70%);
  pointer-events: none;
}

.info-page .community-hero .container {
  position: relative;
  z-index: 1;
}

.info-page .community-hero .community-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid var(--joy-primary-15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.info-page .community-hero .community-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--joy-primary);
  box-shadow: 0 0 0 4px var(--joy-primary-15);
  animation: community-pulse 2s ease-in-out infinite;
}

@keyframes community-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--joy-primary-15); }
  50% { box-shadow: 0 0 0 8px var(--joy-primary-soft); }
}

.info-page .community-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--joy-neutral-900);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.info-page .community-hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--joy-primary), var(--joy-emerald-400));
  margin: 20px auto 0;
}

.info-page .community-hero p {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--joy-neutral-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- 2. Coming Soon Section ---------- */
.info-page .community-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px 24px;
  position: relative;
}

.info-page .community-coming-soon .icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: var(--joy-radius-2xl);
  background: linear-gradient(135deg, var(--joy-primary-soft), var(--joy-emerald-100));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--joy-transition-bounce);
}

.info-page .community-coming-soon .icon-wrap:hover {
  transform: scale(1.05);
}

.info-page .community-coming-soon .icon-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--joy-radius-2xl) + 4px);
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  opacity: 0.15;
  z-index: -1;
  filter: blur(12px);
}

.info-page .community-coming-soon .icon-wrap svg {
  width: 40px;
  height: 40px;
  stroke: var(--joy-primary);
}

.info-page .community-coming-soon h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--joy-neutral-900);
  margin: 0;
  letter-spacing: -0.01em;
}

.info-page .community-coming-soon .coming-soon-text {
  font-size: 16px;
  color: var(--joy-neutral-500);
  line-height: 1.7;
  text-align: center;
  max-width: 520px;
}

/* ---------- 3. Topic Cards ---------- */
.info-page .community-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--joy-s-5);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.info-page .community-topic-card {
  position: relative;
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-xl);
  padding: 32px 24px;
  text-align: center;
  transition:
    transform var(--joy-transition-bounce),
    box-shadow var(--joy-transition),
    border-color var(--joy-transition);
  cursor: pointer;
  overflow: hidden;
}

.info-page .community-topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--joy-primary), var(--joy-emerald-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--joy-transition-slow);
}

.info-page .community-topic-card::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--joy-primary-soft), transparent 70%);
  opacity: 0;
  transition: opacity var(--joy-transition-slow);
  pointer-events: none;
}

.info-page .community-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--joy-shadow-lg), var(--joy-shadow-primary);
  border-color: var(--joy-emerald-200);
}

.info-page .community-topic-card:hover::before {
  transform: scaleX(1);
}

.info-page .community-topic-card:hover::after {
  opacity: 1;
}

.info-page .community-topic-card:hover .topic-icon {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  transform: scale(1.1);
}

.info-page .community-topic-card:hover .topic-icon svg {
  stroke: #fff;
}

.info-page .community-topic-card .topic-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--joy-radius-lg);
  background: var(--joy-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition:
    background var(--joy-transition),
    transform var(--joy-transition-bounce);
  position: relative;
  z-index: 1;
}

.info-page .community-topic-card .topic-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--joy-primary);
  transition: stroke var(--joy-transition);
}

.info-page .community-topic-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--joy-neutral-800);
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.info-page .community-topic-card p {
  font-size: 13px;
  color: var(--joy-neutral-500);
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ---------- 4. Category / Tag Pills (future-ready) ---------- */
.community-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--joy-s-2);
  justify-content: center;
  padding: var(--joy-s-6) 24px;
  max-width: 900px;
  margin: 0 auto;
}

.community-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  color: var(--joy-neutral-600);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--joy-transition);
  user-select: none;
}

.community-tag:hover {
  border-color: var(--joy-emerald-300);
  color: var(--joy-primary);
  background: var(--joy-primary-soft);
}

.community-tag.is-active {
  background: linear-gradient(135deg, var(--joy-primary) 0%, var(--joy-emerald-400) 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--joy-shadow-primary);
}

.community-tag .tag-count {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-500);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--joy-transition);
}

.community-tag.is-active .tag-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ---------- 5. Post List Cards (future-ready) ---------- */
.community-posts {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--joy-s-6) 24px;
  display: flex;
  flex-direction: column;
  gap: var(--joy-s-4);
}

.community-post-card {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-xl);
  padding: var(--joy-s-6);
  transition:
    box-shadow var(--joy-transition),
    border-color var(--joy-transition),
    transform var(--joy-transition);
  cursor: pointer;
}

.community-post-card:hover {
  box-shadow: var(--joy-shadow-md);
  border-color: var(--joy-emerald-200);
  transform: translateY(-1px);
}

.community-post-header {
  display: flex;
  align-items: center;
  gap: var(--joy-s-3);
  margin-bottom: var(--joy-s-4);
}

.community-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.community-avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.community-avatar--lg { width: 48px; height: 48px; font-size: 16px; }

.community-post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.community-post-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--joy-neutral-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

.community-post-author .badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.community-post-time {
  font-size: 12px;
  color: var(--joy-neutral-400);
}

.community-post-category-tag {
  padding: 4px 10px;
  border-radius: var(--joy-radius-full);
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.community-post-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--joy-neutral-900);
  margin: 0 0 var(--joy-s-2);
  line-height: 1.4;
  transition: color var(--joy-transition);
}

.community-post-card:hover .community-post-title {
  color: var(--joy-primary);
}

.community-post-excerpt {
  font-size: 14px;
  color: var(--joy-neutral-500);
  line-height: 1.6;
  margin-bottom: var(--joy-s-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-post-footer {
  display: flex;
  align-items: center;
  gap: var(--joy-s-5);
  padding-top: var(--joy-s-3);
  border-top: 1px solid var(--joy-neutral-100);
}

.community-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--joy-neutral-500);
  transition: color var(--joy-transition);
}

.community-post-stat:hover {
  color: var(--joy-primary);
}

.community-post-stat svg {
  width: 16px;
  height: 16px;
}

/* ---------- 6. Comments Section (future-ready) ---------- */
.community-comments {
  padding: var(--joy-s-6) 0;
}

.community-comment {
  display: flex;
  gap: var(--joy-s-3);
  padding: var(--joy-s-4) 0;
  border-bottom: 1px solid var(--joy-neutral-100);
}

.community-comment:last-child {
  border-bottom: none;
}

.community-comment-body {
  flex: 1;
  min-width: 0;
}

.community-comment-header {
  display: flex;
  align-items: center;
  gap: var(--joy-s-2);
  margin-bottom: 6px;
}

.community-comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--joy-neutral-800);
}

.community-comment-time {
  font-size: 12px;
  color: var(--joy-neutral-400);
}

.community-comment-text {
  font-size: 14px;
  color: var(--joy-neutral-700);
  line-height: 1.6;
  margin-bottom: var(--joy-s-2);
}

.community-comment-actions {
  display: flex;
  gap: var(--joy-s-4);
}

.community-comment-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--joy-neutral-500);
  cursor: pointer;
  transition: color var(--joy-transition);
  background: none;
  border: none;
  padding: 0;
}

.community-comment-action:hover {
  color: var(--joy-primary);
}

.community-comment-action.is-liked {
  color: var(--joy-state-error);
}

.community-comment-action svg {
  width: 14px;
  height: 14px;
}

/* Nested replies */
.community-comment-replies {
  margin-left: var(--joy-s-7);
  margin-top: var(--joy-s-2);
  padding-left: var(--joy-s-4);
  border-left: 2px solid var(--joy-neutral-100);
}

.community-comment-replies .community-comment {
  padding: var(--joy-s-3) 0;
}

/* ---------- 7. Floating Publish Button ---------- */
.community-publish-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--joy-radius-full);
  background: linear-gradient(135deg, var(--joy-primary) 0%, var(--joy-emerald-400) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--joy-shadow-primary-lg);
  transition: all var(--joy-transition-bounce);
  white-space: nowrap;
}

.community-publish-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--joy-primary) 60%, transparent);
}

.community-publish-btn:active {
  transform: translateY(0) scale(0.98);
}

.community-publish-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- 8. Community Section Title ---------- */
.community-section-header {
  text-align: center;
  padding: var(--joy-s-8) 24px var(--joy-s-5);
}

.community-section-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--joy-neutral-900);
  margin-bottom: var(--joy-s-2);
  letter-spacing: -0.01em;
}

/* ============================================================
   夜览模式 (Dark Mode) — data-night="true" on <html>
   独立于主题色系，可与任意 data-theme 叠加使用
   ============================================================ */

/* ---- 1. CSS 变量覆盖 ---- */
html[data-night="true"] {
  --joy-background: #0D1117;
  --joy-foreground: #E6EDF3;
  --joy-card: #161B22;
  --joy-card-foreground: #E6EDF3;
  --joy-muted: #21262D;
  --joy-muted-foreground: #8B949E;
  --joy-border: #30363D;
  --joy-input: #30363D;
  --joy-ring: #2DD4D4;
  --joy-surface: #161B22;
  --joy-surface-2: #21262D;
  --joy-surface-3: #283044;

  --joy-neutral-0: #161B22;
  --joy-neutral-50: #0D1117;
  --joy-neutral-100: #21262D;
  --joy-neutral-200: #30363D;
  --joy-neutral-300: #484F58;
  --joy-neutral-400: #8B949E;
  --joy-neutral-500: #B1BAC4;
  --joy-neutral-600: #CED4DA;
  --joy-neutral-700: #E6EDF3;
  --joy-neutral-800: #F0F6FC;
  --joy-neutral-900: #F0F6FC;
  --joy-neutral-950: #FFFFFF;

  --joy-primary-soft: rgba(45, 212, 212, 0.12);
  --joy-primary-glow: rgba(45, 212, 212, 0.3);

  --joy-shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.4);
  --joy-shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.4),0 1px 2px -1px rgba(0,0,0,0.3);
  --joy-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5),0 2px 4px -2px rgba(0,0,0,0.3);
  --joy-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5),0 4px 6px -4px rgba(0,0,0,0.3);
  --joy-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5),0 8px 10px -6px rgba(0,0,0,0.3);
  --joy-shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.6);

  --joy-state-success: #3FB950;
  --joy-state-success-soft: rgba(63,185,80,0.15);
  --joy-state-warning: #D29922;
  --joy-state-warning-soft: rgba(210,153,34,0.15);
  --joy-state-error: #F85149;
  --joy-state-error-soft: rgba(248,81,73,0.15);
}

/* ---- 2. 导航栏 & 全局框架 ---- */
html[data-night="true"] body {
  background-color: #0D1117;
  background-image: none !important;
  color: #E6EDF3;
}
html[data-night="true"] .site-header {
  background: rgba(13,17,23,0.75);
  border-bottom-color: #30363D;
}
html[data-night="true"] .site-header.scrolled {
  background: rgba(13,17,23,0.9);
}
html[data-night="true"] .nav-toggle span {
  background: #E6EDF3;
}

/* ---- 3. Logo 适配（黑字→白字） ---- */
html[data-night="true"] .brand-logo {
  filter: invert(1) hue-rotate(180deg);
}

/* ---- 4. 毛玻璃面板（聊天/总结/历史） ---- */
html[data-night="true"] #chatPanel.meeting-panel,
html[data-night="true"] #summaryPanel.meeting-panel {
  background: linear-gradient(135deg,
    rgba(45,212,212,0.05) 0%,
    rgba(22,27,34,0.65) 30%,
    rgba(22,27,34,0.7) 50%,
    rgba(22,27,34,0.65) 70%,
    rgba(51,201,201,0.03) 100%);
}
html[data-night="true"] .history-drawer {
  background: linear-gradient(135deg,
    rgba(45,212,212,0.05) 0%,
    rgba(22,27,34,0.65) 30%,
    rgba(22,27,34,0.7) 50%,
    rgba(22,27,34,0.65) 70%,
    rgba(51,201,201,0.03) 100%);
  border-right-color: #30363D;
}

/* ---- 5. 面板头部 & 卡片 ---- */
html[data-night="true"] .panel-header {
  background: linear-gradient(180deg,#21262D 0%,#161B22 100%);
  border-bottom-color: #30363D;
}
html[data-night="true"] .panel-header h3 {
  color: #E6EDF3;
}
html[data-night="true"] .transcript-entry {
  background: #161B22;
  border-color: #30363D;
}
html[data-night="true"] .meeting-panel {
  background: #161B22;
  border-color: #30363D;
}

/* ---- 6. 输入框 & 表单 ---- */
html[data-night="true"] input,
html[data-night="true"] textarea,
html[data-night="true"] select {
  background-color: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] input::placeholder,
html[data-night="true"] textarea::placeholder {
  color: #6E7681;
}
html[data-night="true"] input:focus,
html[data-night="true"] textarea:focus,
html[data-night="true"] select:focus {
  border-color: var(--joy-ring) !important;
}

/* ---- 7. 按钮 ---- */
html[data-night="true"] .btn-start {
  color: #0D1117;
}
html[data-night="true"] .btn-login {
  color: #B1BAC4;
}
html[data-night="true"] .meeting-btn.secondary {
  background: #21262D;
  border-color: #30363D;
  color: #E6EDF3;
}

/* ---- 8. 下拉菜单 & 弹窗 ---- */
html[data-night="true"] .theme-palette-dropdown {
  background: #161B22;
  border-color: #30363D;
}
html[data-night="true"] .toast {
  background: #21262D;
  color: #E6EDF3;
}

/* ---- 9. 页脚 ---- */
html[data-night="true"] .footer {
  background: #0D1117;
  color: #8B949E;
}
html[data-night="true"] .footer-column h4 {
  color: #E6EDF3;
}
html[data-night="true"] .footer-column a {
  color: #8B949E;
}
html[data-night="true"] .footer-column a:hover {
  color: var(--joy-primary);
}
html[data-night="true"] .footer-bottom {
  color: #6E7681;
}

/* ---- 10. 个人中心卡片 ---- */
html[data-night="true"] .pc-card {
  background: #161B22;
  border-color: #30363D;
}
html[data-night="true"] .pc-card-title {
  color: #E6EDF3;
}
html[data-night="true"] .pc-empty {
  color: #6E7681;
}

/* ---- 11. 通用硬编码白色背景覆盖 ---- */
html[data-night="true"] .mic-select,
html[data-night="true"] .history-drawer-header,
html[data-night="true"] .summary-panel,
html[data-night="true"] .summary-header,
html[data-night="true"] .summary-body,
html[data-night="true"] .term-item,
html[data-night="true"] .term-search-box input,
html[data-night="true"] .terminology-input,
html[data-night="true"] .term-edit-input,
html[data-night="true"] .term-edit-select,
html[data-night="true"] .term-input,
html[data-night="true"] .speaker-panel,
html[data-night="true"] .speaker-item,
html[data-night="true"] .modal-content,
html[data-night="true"] .dropdown-menu,
html[data-night="true"] .card,
html[data-night="true"] .pricing-card,
html[data-night="true"] .plan-card {
  background: #161B22;
  color: #E6EDF3;
}

/* ---- 12. 滚动条 ---- */
html[data-night="true"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html[data-night="true"] ::-webkit-scrollbar-track {
  background: #0D1117;
}
html[data-night="true"] ::-webkit-scrollbar-thumb {
  background: #30363D;
  border-radius: 4px;
}
html[data-night="true"] ::-webkit-scrollbar-thumb:hover {
  background: #484F58;
}

/* ---- 13. 测试横幅 ---- */
html[data-night="true"] .site-testing-banner-inner {
  background: #21262D;
  color: #E6EDF3;
}

/* ---- 14. 空状态图标 ---- */
html[data-night="true"] .transcript-empty .icon {
  color: var(--joy-emerald-400);
  opacity: 0.5;
}
html[data-night="true"] .transcript-empty {
  color: #6E7681;
}

/* ---- 15. 夜览切换按钮 ---- */
.night-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--joy-border);
  background: var(--joy-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--joy-neutral-600);
  flex-shrink: 0;
  padding: 0;
}
.night-toggle:hover {
  border-color: var(--joy-primary);
  color: var(--joy-primary);
  transform: rotate(15deg);
}
html[data-night="true"] .night-toggle {
  background: rgba(45,212,212,0.1);
  border-color: rgba(45,212,212,0.3);
  color: #F0D070;
}
html[data-night="true"] .night-toggle:hover {
  background: rgba(45,212,212,0.2);
  transform: rotate(-15deg);
}
.night-toggle svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   深色模式补充覆盖 — 修复遗漏的亮色元素
   ============================================================ */

/* ---- 16. 页脚补充（覆盖 !important） ---- */
html[data-night="true"] .footer {
  background: #0D1117 !important;
}
html[data-night="true"] .footer::before {
  opacity: 0.3;
}
html[data-night="true"] .footer-socials a {
  background: #21262D !important;
}
html[data-night="true"] .footer-socials a:hover {
  color: #E6EDF3 !important;
}
html[data-night="true"] .footer-bottom-links a {
  color: #8B949E !important;
}

/* ---- 17. 会议翻译顶部状态栏 ---- */
html[data-night="true"] .meeting-full-toolbar {
  background: linear-gradient(180deg, rgba(22,27,34,0.95) 0%, rgba(13,17,23,0.92) 100%) !important;
  border-bottom-color: #30363D !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.3) inset, 0 1px 3px rgba(0,0,0,0.2) !important;
}
html[data-night="true"] .toolbar-audio-source {
  background: rgba(22,27,34,0.8) !important;
  border-color: #30363D !important;
}
html[data-night="true"] .audio-source-label {
  color: #8B949E !important;
}
html[data-night="true"] .audio-source-name {
  color: #E6EDF3 !important;
}
html[data-night="true"] .service-status {
  background: rgba(48,54,61,0.5) !important;
  color: #8B949E !important;
}
html[data-night="true"] .service-status-text {
  color: #E6EDF3 !important;
}
html[data-night="true"] .service-status .live-dot {
  border-color: #30363D !important;
}
html[data-night="true"] .trial-timer {
  background: rgba(48,54,61,0.5) !important;
  color: #E6EDF3 !important;
}
html[data-night="true"] .trial-timer .timer-icon {
  color: #F0D070 !important;
}
html[data-night="true"] .volume-meter {
  background: rgba(48,54,61,0.5) !important;
}
html[data-night="true"] .mic-select {
  background: rgba(13,17,23,0.9) !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}

/* ---- 18. 会议翻译底部功能栏 ---- */
html[data-night="true"] .meeting-bottom-bar {
  background: linear-gradient(180deg, rgba(22,27,34,0.95) 0%, rgba(13,17,23,0.92) 100%) !important;
  border-top-color: #30363D !important;
  box-shadow: 0 -1px 0 rgba(0,0,0,0.3) inset, 0 -2px 8px rgba(0,0,0,0.15) !important;
  color: #E6EDF3 !important;
}
html[data-night="true"] .meeting-bottom-bar .bottom-separator {
  color: rgba(139,148,158,0.4) !important;
}
html[data-night="true"] .meeting-bottom-bar .meeting-lang-select {
  background: rgba(22,27,34,0.9) !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .meeting-bottom-bar .mute-btn {
  background: rgba(22,27,34,0.9) !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .meeting-bottom-bar .meeting-btn.secondary {
  background: rgba(22,27,34,0.9) !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pip-btn-float {
  background: rgba(22,27,34,0.9) !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .meeting-lang-select {
  background: rgba(13,17,23,0.9) !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}

/* 夜间模式：跳到最新信息按钮 */
html[data-night="true"] .jump-to-latest-btn {
  background: rgba(22, 27, 34, 0.95) !important;
  color: #5EEAE8 !important;
  border-color: #30363D !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
html[data-night="true"] .jump-to-latest-btn:hover {
  background: var(--joy-primary) !important;
  color: #fff !important;
  border-color: var(--joy-primary) !important;
}

/* ---- 19. 个人中心大标题 ---- */
html[data-night="true"] .pc-container .pc-header {
  background:
    radial-gradient(ellipse at top right, rgba(51,201,201,0.15), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(0,122,122,0.08), transparent 50%),
    linear-gradient(135deg, #161B22, #0D1117) !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pc-container .pc-header h1 {
  background: linear-gradient(135deg, var(--joy-emerald-400), #5EEAE8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html[data-night="true"] .pc-container .pc-header p {
  color: #8B949E !important;
}

/* ---- 20. 个人中心免费体验窗 ---- */
html[data-night="true"] .pc-container .pc-trial-box {
  background:
    radial-gradient(ellipse at top right, rgba(51,201,201,0.15), transparent 60%),
    linear-gradient(135deg, #161B22, #0D1117) !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pc-trial-box {
  background: linear-gradient(135deg, rgba(45,212,212,0.08), rgba(22,27,34,0.6)) !important;
  border-color: rgba(48,54,61,0.8) !important;
}
html[data-night="true"] .pc-trial-bar {
  background: rgba(48,54,61,0.8) !important;
}
html[data-night="true"] .pc-topup-box {
  background: linear-gradient(135deg, rgba(255,149,0,0.08), rgba(22,27,34,0.6)) !important;
  border-color: rgba(48,54,61,0.8) !important;
}
html[data-night="true"] .pc-topup-box .pc-sub-name {
  color: #ffb300 !important;
}
html[data-night="true"] .pc-container .pc-topup-box {
  background:
    radial-gradient(ellipse at top right, rgba(255,149,0,0.1), transparent 60%),
    linear-gradient(135deg, #161B22, #0D1117) !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pc-sub-status.pending { background: rgba(255,149,0,0.18) !important; color: #ffb300 !important; }
html[data-night="true"] .pc-source-in-use { background: rgba(48,209,88,0.1) !important; border-color: rgba(48,209,88,0.25) !important; }
html[data-night="true"] .pc-source-pending { background: rgba(255,149,0,0.08) !important; border-color: rgba(255,149,0,0.2) !important; }
html[data-night="true"] .pc-source-exhausted { background: rgba(48,209,88,0.06) !important; border-color: rgba(48,209,88,0.15) !important; }

/* ---- 21. 个人中心使用记录 ---- */
html[data-night="true"] .usage-record {
  color: #8B949E !important;
}
html[data-night="true"] .usage-history-toggle {
  color: var(--joy-emerald-400) !important;
}

/* ---- 22. 注册/登录卡片 ---- */
html[data-night="true"] .modal-card {
  background: rgba(22,27,34,0.96) !important;
  border-color: #30363D !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(48,54,61,0.5) !important;
  scrollbar-color: #30363D transparent !important;
}
html[data-night="true"] .auth-form input {
  background: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .auth-form label {
  color: #B1BAC4 !important;
}
html[data-night="true"] .modal-backdrop {
  background: rgba(0,0,0,0.6) !important;
}

/* ---- 23. 2FA认证卡片 ---- */
html[data-night="true"] .verify-container .verify-card {
  background: rgba(22,27,34,0.9) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border-color: #30363D !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(48,54,61,0.5), inset 0 1px 0 rgba(48,54,61,0.3) !important;
}
html[data-night="true"] .verify-container .verify-logo {
  border-bottom-color: #30363D !important;
}
html[data-night="true"] .verify-container h1,
html[data-night="true"] .verify-container h2,
html[data-night="true"] .verify-container p {
  color: #E6EDF3 !important;
}
html[data-night="true"] .verify-container label {
  color: #B1BAC4 !important;
}
html[data-night="true"] .verify-container input {
  background: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .verify-container a {
  color: var(--joy-emerald-400) !important;
}
html[data-night="true"] .verify-container .verify-card form {
  background: transparent !important;
}

/* ---- 24. PIP悬浮窗深色模式 ---- */
html[data-night="true"] body.pip-active .pip-host-bg {
  background: #0D1117;
}

/* ---- 25. 补充覆盖：审计遗漏的硬编码白色值 ---- */

/* 个人中心：按钮/标签内的硬编码白色文字 → 深色适配 */
html[data-night="true"] .pc-container .avatar-large { color: #E6EDF3; }
html[data-night="true"] .pc-container .checkin-day.checked { color: #E6EDF3; }
html[data-night="true"] .pc-container .checkin-day.today.checked { color: #E6EDF3; }
html[data-night="true"] .pc-container .pc-save-btn { color: #E6EDF3; }
html[data-night="true"] .pc-container .term-add-btn { color: #E6EDF3; }
html[data-night="true"] .pc-container .org-drawer-btn { color: #E6EDF3; }
html[data-night="true"] .pc-container .checkin-btn { color: #E6EDF3; }
html[data-night="true"] .pc-container .term-batch-btn.primary { color: #E6EDF3; }
html[data-night="true"] .pc-container .term-batch-btn.primary {
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary)) !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 25%, rgba(0,0,0,0.2)) !important;
}

/* 个人中心：硬编码白色背景 → 深色适配 */
html[data-night="true"] .pc-container .term-batch-bar {
  background: color-mix(in srgb, var(--joy-primary) 10%, rgba(22,27,34,0.4)) !important;
}
html[data-night="true"] .pc-container .term-batch-btn {
  background: var(--joy-surface-2) !important;
  color: #E6EDF3 !important;
  border-color: rgba(255,255,255,0.12) !important;
}
html[data-night="true"] .pc-container .term-batch-btn:hover {
  background: var(--joy-surface) !important;
}
html[data-night="true"] .pc-container .term-tab-btn.active {
  background: var(--joy-surface-2) !important;
  color: var(--joy-primary) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
html[data-night="true"] .pc-container .term-item:hover {
  background: var(--joy-surface) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}
html[data-night="true"] .pc-container .device-usage-summary {
  background: linear-gradient(135deg, rgba(22,27,34,0.8), rgba(13,17,23,0.6)) !important;
  border-color: rgba(48,54,61,0.8) !important;
  color: #8B949E !important;
}
html[data-night="true"] .pc-container .device-usage-summary span {
  background: rgba(48, 54, 61, 0.6) !important;
  color: #B1BAC4 !important;
}
html[data-night="true"] .pc-container .device-usage-summary b {
  color: #5DD4D4 !important;
}
html[data-night="true"] .pc-container .term-add-btn,
html[data-night="true"] .pc-container .org-drawer-btn,
html[data-night="true"] .pc-container .pc-save-btn {
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-emerald-600)) !important;
}

/* 注册/登录：硬编码白色 → 深色适配 */
html[data-night="true"] .tab.active,
html[data-night="true"] .pay-tab.active {
  background: var(--joy-surface-2) !important;
  color: var(--joy-foreground) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}
html[data-night="true"] .qr-box {
  background: var(--joy-surface) !important;
}
html[data-night="true"] .stripe-pay-btn {
  color: #E6EDF3;
}
html[data-night="true"] .modal-card::-webkit-scrollbar-thumb {
  background: #30363D;
}

/* 2FA认证：硬编码白色 → 深色适配 */
html[data-night="true"] .verify-container .error-msg::before {
  color: #E6EDF3;
}
html[data-night="true"] .verify-container .btn-verify {
  color: #E6EDF3;
}
html[data-night="true"] .verify-container .btn-verify::before {
  background: rgba(255,255,255,0.12);
}

/* 个人中心：focus 状态的白色背景 → 深色适配 */
html[data-night="true"] .pc-container .pc-field input:focus,
html[data-night="true"] .pc-container .term-input:focus,
html[data-night="true"] .pc-container .term-search-box input:focus,
html[data-night="true"] .pc-container .term-sort-select:focus,
html[data-night="true"] .pc-container .tag-input:focus-within {
  background-color: #0D1117 !important;
}
html[data-night="true"] .pc-container .hobby-tag button:hover {
  color: #E6EDF3;
}

/* ---- 26. 账号激活弹窗（script.js动态生成，内联白色样式覆盖） ---- */
html[data-night="true"] #activation-pending-modal > div {
  background: rgba(22,27,34,0.96) !important;
  border: 1px solid #30363D !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(48,54,61,0.5) !important;
}
html[data-night="true"] #activation-pending-modal h2 {
  color: #E6EDF3 !important;
}
html[data-night="true"] #activation-pending-modal p {
  color: #8B949E !important;
}
html[data-night="true"] #activation-pending-modal #activation-polling-hint {
  color: var(--joy-emerald-400) !important;
}
html[data-night="true"] #activation-pending-modal #homeResendActivationLink {
  color: var(--joy-emerald-400) !important;
}
html[data-night="true"] #activation-pending-modal #homeResendStatus {
  color: #8B949E !important;
}

/* ---- 27. 2FA验证页面补充 & 2FA设置页面 ---- */
html[data-night="true"] .verify-container .error-msg {
  background: rgba(248,81,73,0.1) !important;
  border-color: rgba(248,81,73,0.3) !important;
  color: #F87171 !important;
}
html[data-night="true"] .verify-container .mode-toggle,
html[data-night="true"] .verify-container .verify-footer,
html[data-night="true"] .verify-container .user-info {
  color: #8B949E !important;
}
html[data-night="true"] .verify-container .form-input::placeholder {
  color: #6E7681 !important;
}
html[data-night="true"] .setup-card {
  background: rgba(22,27,34,0.9) !important;
  border: 1px solid #30363D !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}
html[data-night="true"] .setup-title {
  color: #E6EDF3 !important;
}
html[data-night="true"] .setup-subtitle {
  color: #8B949E !important;
}
html[data-night="true"] .step-dot {
  background: #30363D !important;
}
html[data-night="true"] .qr-box {
  background: #FFFFFF !important;
  border-color: #30363D !important;
}
html[data-night="true"] .secret-display {
  background: #0D1117 !important;
  border-color: #30363D !important;
  color: #C9D1D9 !important;
}
html[data-night="true"] .secret-display label {
  color: #6E7681 !important;
}
html[data-night="true"] .instructions {
  background: rgba(22,27,34,0.6) !important;
  color: #C9D1D9 !important;
}
html[data-night="true"] .setup-card .form-label,
html[data-night="true"] .setup-card label {
  color: #B1BAC4 !important;
}
html[data-night="true"] .setup-card .form-input,
html[data-night="true"] .setup-card input {
  background: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .setup-card .form-input::placeholder {
  color: #6E7681 !important;
}

/* ---- 27-2. 头像下拉菜单 & 用户信息徽章 夜览模式 ---- */
html[data-night="true"] .user-info-badge {
  background: linear-gradient(135deg, rgba(22,27,34,0.95), rgba(13,17,23,0.85)) !important;
  border: 1px solid #30363D !important;
}
html[data-night="true"] .user-info-badge-name {
  color: #E6EDF3 !important;
}
html[data-night="true"] .user-info-badge-email {
  color: #8B949E !important;
}
html[data-night="true"] .avatar-menu {
  background: rgba(22,27,34,0.96) !important;
  border-color: #30363D !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
}
html[data-night="true"] .avatar-menu-item {
  color: #E6EDF3 !important;
  border-bottom-color: #21262D !important;
}
html[data-night="true"] .avatar-menu-item:hover {
  background: rgba(45,212,212,0.08) !important;
}
html[data-night="true"] .avatar-menu-arrow {
  color: #6E7681 !important;
}

/* ---- 28. 个人中心：兴趣爱好标签 & 使用记录补充 ---- */
html[data-night="true"] .pc-container .tag-input {
  background: #161B22 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pc-container .tag-input:hover {
  border-color: #484F58 !important;
}
html[data-night="true"] .pc-container .hobby-tag {
  background: rgba(45, 212, 212, 0.15) !important;
  color: #5DD4D4 !important;
}
html[data-night="true"] .pc-container .hobby-tag button {
  background: rgba(45, 212, 212, 0.25) !important;
  color: #5DD4D4 !important;
}

/* Onboarding弹窗：内联白色背景覆盖（首次登录完善信息） */
html[data-night="true"] #onboardingModal .modal-card,
html[data-night="true"] .onboarding-modal .modal-card {
  background: rgba(22,27,34,0.96) !important;
}
html[data-night="true"] #onboardingHobbiesContainer,
html[data-night="true"] .tag-input-container {
  background: #161B22 !important;
  border-color: #30363D !important;
}
html[data-night="true"] #onboardingModal input,
html[data-night="true"] .onboarding-modal input {
  background: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] #onboardingModal input::placeholder,
html[data-night="true"] .onboarding-modal input::placeholder {
  color: #6E7681 !important;
}
html[data-night="true"] #onboardingModal label,
html[data-night="true"] .onboarding-modal label {
  color: #B1BAC4 !important;
}

html[data-night="true"] .pc-container .device-usage-item {
  border-bottom-color: #21262D !important;
}
html[data-night="true"] .pc-container .device-usage-account {
  color: #E6EDF3 !important;
}
html[data-night="true"] .pc-container .device-usage-item:hover {
  background: #21262D !important;
}
html[data-night="true"] .pc-container .device-usage-item.active {
  background: rgba(46, 160, 67, 0.1) !important;
}
html[data-night="true"] .pc-container .device-usage-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12) !important;
}
html[data-night="true"] .pc-container .device-usage-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25) !important;
}

/* ---- 29. 子组织面板（拉帘）夜览模式 ---- */
html[data-night="true"] .suborg-panel {
  background: rgba(22,27,34,0.96) !important;
  border-color: #30363D !important;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
}
html[data-night="true"] .suborg-panel-header {
  color: #E6EDF3 !important;
  border-bottom-color: #30363D !important;
}
html[data-night="true"] .suborg-panel-close {
  color: #8B949E !important;
}
html[data-night="true"] .suborg-panel-close:hover {
  background: #21262D !important;
  color: #E6EDF3 !important;
}
html[data-night="true"] .suborg-name-input {
  background: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .suborg-name-input:focus {
  border-color: var(--joy-emerald-400) !important;
  box-shadow: 0 0 0 3px rgba(45,212,212,0.15) !important;
}
html[data-night="true"] .suborg-row {
  border-bottom-color: #21262D !important;
}
html[data-night="true"] .suborg-row:hover {
  background: rgba(48,54,61,0.5) !important;
}
html[data-night="true"] .suborg-row-name {
  color: #E6EDF3 !important;
}
html[data-night="true"] .suborg-row-delete {
  color: #6E7681 !important;
}
html[data-night="true"] .suborg-row-status {
  color: #8B949E !important;
}
html[data-night="true"] .suborg-row-status.joined {
  color: #5DD4D4 !important;
}
html[data-night="true"] .suborg-invitation {
  background: rgba(45,212,212,0.08) !important;
  border-color: rgba(45,212,212,0.2) !important;
}
html[data-night="true"] .suborg-invitation-text {
  color: #C9D1D9 !important;
}
html[data-night="true"] .suborg-panel-empty {
  color: #6E7681 !important;
}
html[data-night="true"] .suborg-search-item {
  color: #E6EDF3 !important;
}
html[data-night="true"] .suborg-search-item:hover {
  background: #21262D !important;
}
html[data-night="true"] .suborg-row-mode {
  color: #8B949E !important;
}
html[data-night="true"] .suborg-row-mode-btn {
  background: transparent !important;
  color: #8B949E !important;
}
html[data-night="true"] .suborg-row-mode-btn:hover {
  background: #21262D !important;
  color: #E6EDF3 !important;
}
html[data-night="true"] .suborg-row-members {
  color: #8B949E !important;
}
html[data-night="true"] .suborg-row-members:hover {
  color: #5DD4D4 !important;
}

/* ---- 30. 痛点爽点反馈面板（拉帘）夜览模式 ---- */
html[data-night="true"] .feedback-panel {
  background: rgba(22,27,34,0.96) !important;
  border-color: #30363D !important;
  box-shadow: -8px 0 32px rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
}
html[data-night="true"] .feedback-panel-header h3 {
  color: #E6EDF3 !important;
}
html[data-night="true"] .feedback-panel-close {
  color: #8B949E !important;
}
html[data-night="true"] .feedback-panel-close:hover {
  background: #21262D !important;
  color: #E6EDF3 !important;
}
html[data-night="true"] .feedback-tabs {
  background: #21262D !important;
}
html[data-night="true"] .feedback-tab-btn {
  color: #8B949E !important;
}
html[data-night="true"] .feedback-tab-btn:hover {
  color: #C9D1D9 !important;
}
html[data-night="true"] .feedback-tab-btn.active[data-type="pain"],
html[data-night="true"] .feedback-tab-btn.active[data-type="highlight"] {
  background: #161B22 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}
html[data-night="true"] .feedback-tab-btn.active[data-type="pain"] {
  color: #F87171 !important;
}
html[data-night="true"] .feedback-tab-btn.active[data-type="highlight"] {
  color: #4ADE80 !important;
}
html[data-night="true"] .feedback-desc {
  color: #8B949E !important;
}
html[data-night="true"] .feedback-textarea {
  background: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .feedback-textarea:focus {
  border-color: var(--joy-emerald-400) !important;
  box-shadow: 0 0 0 3px rgba(45,212,212,0.15) !important;
}
html[data-night="true"] .feedback-counter {
  color: #6E7681 !important;
}

/* ---- 31. 注册/登录输入框补充（覆盖更宽范围） ---- */
html[data-night="true"] .auth-form input,
html[data-night="true"] .auth-form input[type="text"],
html[data-night="true"] .auth-form input[type="password"],
html[data-night="true"] .auth-form input[type="email"],
html[data-night="true"] .modal-card input,
html[data-night="true"] .auth-card input {
  background: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .auth-form input:focus,
html[data-night="true"] .modal-card input:focus {
  border-color: var(--joy-emerald-400) !important;
  box-shadow: 0 0 0 3px rgba(45,212,212,0.15) !important;
  background: #0D1117 !important;
}
html[data-night="true"] .auth-form input::placeholder,
html[data-night="true"] .modal-card input::placeholder {
  color: #6E7681 !important;
}
html[data-night="true"] .auth-form label,
html[data-night="true"] .modal-card label {
  color: #B1BAC4 !important;
}
html[data-night="true"] .modal-subtitle {
  color: #8B949E !important;
}
html[data-night="true"] .form-note {
  color: #6E7681 !important;
}

/* ---- 32. 套餐包/语音包/共享组件夜览模式（参照免费体验框样式） ---- */
/* 已购套餐、语音包、共享组件统一使用深色渐变背景，与免费体验框保持一致 */
html[data-night="true"] .pc-container .pc-subscription-item {
  background: linear-gradient(135deg, rgba(45,212,212,0.06), rgba(22,27,34,0.6)) !important;
  border-color: rgba(48,54,61,0.8) !important;
}
html[data-night="true"] .pc-container .pc-subscription-item.active {
  background: linear-gradient(135deg, rgba(46,160,67,0.12), rgba(22,27,34,0.6)) !important;
  border-color: rgba(46,160,67,0.3) !important;
}
html[data-night="true"] .pc-container .pc-sub-name {
  color: #E6EDF3 !important;
}
html[data-night="true"] .pc-container .pc-sub-meta {
  color: #8B949E !important;
}
html[data-night="true"] .pc-container .pc-sub-meta span {
  color: #8B949E !important;
}

/* 语音包余额框（topup）*/
html[data-night="true"] .pc-container #topupBox {
  background: linear-gradient(135deg, rgba(45,212,212,0.06), rgba(22,27,34,0.6)) !important;
  border-color: rgba(48,54,61,0.8) !important;
}

/* 收到的共享区块（覆盖内联绿色背景）*/
html[data-night="true"] .pc-container #receivedShareSection .pc-subscription-item {
  background: linear-gradient(135deg, rgba(46,160,67,0.1), rgba(22,27,34,0.6)) !important;
  border-color: rgba(46,160,67,0.25) !important;
}

/* 共享用户列表项 */
html[data-night="true"] .pc-container .share-user-item {
  background: rgba(22,27,34,0.6) !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pc-container .share-user-item.pending {
  background: rgba(255,149,0,0.06) !important;
  border-color: rgba(255,149,0,0.2) !important;
}
html[data-night="true"] .pc-container .share-user-item.active {
  background: rgba(46,160,67,0.06) !important;
  border-color: rgba(46,160,67,0.2) !important;
}
html[data-night="true"] .pc-container .share-user-item .share-user-name {
  color: #E6EDF3 !important;
}
html[data-night="true"] .pc-container .share-user-item .share-user-email {
  color: #8B949E !important;
}

/* 收到的共享项 */
html[data-night="true"] .pc-container .share-received-item {
  background: rgba(22,27,34,0.8) !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pc-container .share-received-item.pending {
  background: rgba(255,149,0,0.06) !important;
  border-color: rgba(255,149,0,0.25) !important;
}
html[data-night="true"] .pc-container .share-received-item.active {
  background: rgba(46,160,67,0.06) !important;
  border-color: rgba(46,160,67,0.25) !important;
}
html[data-night="true"] .pc-container .share-received-item .share-plan-name {
  color: #E6EDF3 !important;
}
html[data-night="true"] .pc-container .share-received-item .share-from {
  color: #8B949E !important;
}

/* 共享添加按钮 */
html[data-night="true"] .pc-container .share-add-btn {
  background: rgba(45,212,212,0.1) !important;
  border-color: rgba(45,212,212,0.3) !important;
  color: #5DD4D4 !important;
}
html[data-night="true"] .pc-container .share-add-btn:hover {
  background: rgba(45,212,212,0.2) !important;
}

/* 共享添加区域（share-add-area）*/
html[data-night="true"] .pc-container .share-add-area {
  background: rgba(13,17,23,0.6) !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pc-container .share-add-label {
  color: #8B949E !important;
}
html[data-night="true"] .pc-container .share-email-input,
html[data-night="true"] .pc-container .share-duration-input {
  background: #0D1117 !important;
  color: #E6EDF3 !important;
  border-color: #30363D !important;
}
html[data-night="true"] .pc-container .share-email-input:focus,
html[data-night="true"] .pc-container .share-duration-input:focus {
  border-color: var(--joy-emerald-400) !important;
  box-shadow: 0 0 0 3px rgba(45,212,212,0.15) !important;
  background: #0D1117 !important;
}
html[data-night="true"] .pc-container .share-email-input::placeholder,
html[data-night="true"] .pc-container .share-duration-input::placeholder {
  color: #6E7681 !important;
}
html[data-night="true"] .pc-container .share-duration-unit {
  color: #8B949E !important;
}

.community-section-subtitle {
  font-size: 15px;
  color: var(--joy-neutral-500);
}

/* ---------- 9. Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .info-page .community-hero {
    padding: 72px 20px 56px;
  }

  .info-page .community-hero h1 {
    font-size: 32px;
  }

  .info-page .community-coming-soon {
    padding: 56px 20px;
    gap: 20px;
  }

  .info-page .community-coming-soon .icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: var(--joy-radius-xl);
  }

  .info-page .community-coming-soon .icon-wrap svg {
    width: 32px;
    height: 32px;
  }

  .info-page .community-topics {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--joy-s-3);
    padding: 0 16px 64px;
  }

  .info-page .community-topic-card {
    padding: 24px 16px;
    border-radius: var(--joy-radius-lg);
  }

  .info-page .community-topic-card .topic-icon {
    width: 44px;
    height: 44px;
  }

  .info-page .community-topic-card .topic-icon svg {
    width: 20px;
    height: 20px;
  }

  .info-page .community-topic-card h3 {
    font-size: 14px;
  }

  .info-page .community-topic-card p {
    font-size: 12px;
  }

  .community-posts {
    padding: var(--joy-s-4) 16px;
  }

  .community-post-card {
    padding: var(--joy-s-4);
    border-radius: var(--joy-radius-lg);
  }

  .community-post-title {
    font-size: 15px;
  }

  .community-comment-replies {
    margin-left: var(--joy-s-5);
    padding-left: var(--joy-s-3);
  }

  .community-publish-btn {
    right: 20px;
    bottom: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .community-categories {
    padding: var(--joy-s-4) 16px;
    gap: var(--joy-s-2);
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .community-categories::-webkit-scrollbar {
    display: none;
  }

  .community-tag {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .info-page .community-topics {
    grid-template-columns: 1fr;
  }

  .community-publish-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .community-publish-btn span {
    display: none;
  }

  .community-publish-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* ================================================================
   2FA 双因素认证页面 UI 优化
   admin-2fa-setup.html & admin-2fa-verify.html
   ================================================================ */

/* ---------- 通用：背景增强 ---------- */
.setup-container,
.verify-container {
  position: relative;
}

/* 背景装饰光斑 - 增加安全感氛围 */
.setup-container::before,
.setup-container::after,
.verify-container::before,
.verify-container::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.setup-container::before,
.verify-container::before {
  width: 400px;
  height: 400px;
  background: var(--joy-emerald-200);
  top: -100px;
  right: -100px;
}

.setup-container::after,
.verify-container::after {
  width: 300px;
  height: 300px;
  background: var(--joy-emerald-100);
  bottom: -80px;
  left: -80px;
}

/* 确保卡片在装饰层之上 */
.setup-container > *,
.verify-container > * {
  position: relative;
  z-index: 1;
}

/* ---------- 卡片：毛玻璃质感 + 大圆角 + 强阴影 ---------- */
.setup-container .setup-card,
.verify-container .verify-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: var(--joy-radius-2xl) !important;
  box-shadow:
    var(--joy-shadow-2xl),
    0 0 0 1px color-mix(in srgb, var(--joy-primary) 5%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  padding: 48px 44px !important;
  position: relative;
  overflow: hidden;
}

/* 卡片顶部装饰线 */
.setup-container .setup-card::before,
.verify-container .verify-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--joy-emerald-400), var(--joy-primary), var(--joy-emerald-400));
  opacity: 0.8;
}

/* ---------- Logo 区域 ---------- */
.setup-container .setup-logo,
.verify-container .verify-logo {
  margin-bottom: 28px !important;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--joy-neutral-100);
}

/* ---------- 盾牌图标：渐变 + 发光 + 安全感 ---------- */
.setup-container .shield-icon,
.verify-container .shield-icon {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 20px !important;
  background: linear-gradient(135deg, var(--joy-emerald-500) 0%, var(--joy-primary) 50%, var(--joy-emerald-700) 100%) !important;
  border-radius: 20px !important;
  box-shadow:
    0 8px 24px var(--joy-primary-30),
    0 0 0 4px var(--joy-emerald-50),
    inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
  position: relative;
  animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { box-shadow: 0 8px 24px var(--joy-primary-40), 0 0 0 4px var(--joy-emerald-50), inset 0 2px 4px rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 8px 32px var(--joy-primary-40), 0 0 0 6px var(--joy-primary-soft), inset 0 2px 4px rgba(255, 255, 255, 0.3); }
}

.setup-container .shield-icon svg,
.verify-container .shield-icon svg {
  width: 36px !important;
  height: 36px !important;
  fill: #ffffff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* ---------- 标题和说明文字：层次优化 ---------- */
.setup-container .setup-title,
.verify-container .verify-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--joy-neutral-900) !important;
  text-align: center !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.02em;
}

.setup-container .setup-subtitle,
.verify-container .verify-subtitle {
  font-size: 15px !important;
  color: var(--joy-neutral-500) !important;
  text-align: center !important;
  margin-bottom: 32px !important;
  line-height: 1.7 !important;
  font-weight: 400;
}

/* ---------- 用户信息 ---------- */
.verify-container .user-info {
  color: var(--joy-neutral-400) !important;
  margin-bottom: 24px !important;
  font-size: 13px !important;
}

.verify-container .user-info a {
  color: var(--joy-primary) !important;
}

/* ---------- 步骤指示器：设置页 ---------- */
.setup-container .step-indicator {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 36px !important;
}

.setup-container .step-dot {
  width: 40px !important;
  height: 6px !important;
  border-radius: 3px !important;
  background: var(--joy-neutral-200) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
}

.setup-container .step-dot.active {
  background: linear-gradient(90deg, var(--joy-primary), var(--joy-emerald-400)) !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 30%, transparent) !important;
}

/* ---------- 二维码区域：卡片式容器 ---------- */
.setup-container .qr-section {
  text-align: center !important;
  margin-bottom: 32px !important;
}

.setup-container .qr-box {
  display: inline-block !important;
  padding: 24px !important;
  border: none !important;
  border-radius: var(--joy-radius-xl) !important;
  background: linear-gradient(145deg, #ffffff 0%, var(--joy-neutral-50) 100%) !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--joy-neutral-100),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.setup-container .qr-box:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px var(--joy-neutral-100),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* 二维码四角装饰 */
.setup-container .qr-box::before,
.setup-container .qr-box::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--joy-primary);
  opacity: 0.6;
}

.setup-container .qr-box::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
  border-radius: 8px 0 0 0;
}

.setup-container .qr-box::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 8px 0;
}

/* ---------- 密钥显示区 ---------- */
.setup-container .secret-display {
  margin: 20px auto 0 !important;
  max-width: 320px !important;
  padding: 14px 20px !important;
  background: var(--joy-neutral-50) !important;
  border: 1px solid var(--joy-neutral-200) !important;
  border-radius: var(--joy-radius-lg) !important;
  font-family: var(--joy-font-mono) !important;
  font-size: 14px !important;
  color: var(--joy-neutral-700) !important;
  word-break: break-all !important;
  text-align: center !important;
  line-height: 1.6 !important;
  letter-spacing: 1px;
  transition: all var(--joy-transition-fast);
  position: relative;
}

.setup-container .secret-display:hover {
  border-color: var(--joy-primary) !important;
  background: var(--joy-emerald-50) !important;
}

.setup-container .secret-display label {
  display: block !important;
  font-size: 12px !important;
  color: var(--joy-neutral-400) !important;
  margin-bottom: 6px !important;
  font-family: var(--joy-font-sans) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- 设置说明 ---------- */
.setup-container .instructions {
  margin-bottom: 28px !important;
  padding: 18px 20px !important;
  background: linear-gradient(135deg, var(--joy-emerald-50) 0%, #ffffff 100%) !important;
  border: 1px solid var(--joy-emerald-100) !important;
  border-radius: var(--joy-radius-lg) !important;
  font-size: 14px !important;
  color: var(--joy-neutral-700) !important;
  line-height: 1.8 !important;
  position: relative;
}

.setup-container .instructions ol {
  padding-left: 24px !important;
  margin: 0;
}

.setup-container .instructions li {
  margin-bottom: 6px !important;
  padding-left: 4px;
}

.setup-container .instructions li:last-child {
  margin-bottom: 0 !important;
}

/* ---------- 表单标签 ---------- */
.setup-container .form-label,
.verify-container .form-label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--joy-neutral-700) !important;
  margin-bottom: 10px !important;
}

/* ---------- 输入框：美化 + focus发光 ---------- */
.setup-container .form-input,
.verify-container .form-input {
  width: 100% !important;
  padding: 16px 20px !important;
  border: 2px solid var(--joy-neutral-200) !important;
  border-radius: var(--joy-radius-lg) !important;
  font-size: 20px !important;
  font-family: var(--joy-font-mono) !important;
  font-weight: 600 !important;
  color: var(--joy-neutral-900) !important;
  background: var(--joy-neutral-50) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  outline: none !important;
  letter-spacing: 8px !important;
  text-align: center !important;
}

.setup-container .form-input:focus,
.verify-container .form-input:focus {
  border-color: var(--joy-primary) !important;
  box-shadow:
    0 0 0 4px var(--joy-primary-glow),
    0 4px 12px color-mix(in srgb, var(--joy-primary) 10%, transparent) !important;
  background: #ffffff !important;
  transform: translateY(-1px);
}

.setup-container .form-input::placeholder,
.verify-container .form-input::placeholder {
  color: var(--joy-neutral-300) !important;
  letter-spacing: normal !important;
  font-weight: 400;
  font-size: 15px;
  font-family: var(--joy-font-sans);
}

/* ---------- 主按钮：渐变 + hover上移 ---------- */
.setup-container .btn-primary,
.verify-container .btn-verify {
  width: 100% !important;
  padding: 16px !important;
  background: linear-gradient(135deg, var(--joy-primary) 0%, var(--joy-emerald-400) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--joy-radius-lg) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: var(--joy-font-sans) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-top: 8px !important;
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--joy-primary) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  position: relative;
  overflow: hidden;
}

.setup-container .btn-primary::before,
.verify-container .btn-verify::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.setup-container .btn-primary:hover:not(:disabled),
.verify-container .btn-verify:hover:not(:disabled) {
  transform: translateY(-3px) !important;
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--joy-primary) 40%, transparent),
    0 4px 12px color-mix(in srgb, var(--joy-primary) 20%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.setup-container .btn-primary:hover:not(:disabled)::before,
.verify-container .btn-verify:hover:not(:disabled)::before {
  left: 100%;
}

.setup-container .btn-primary:active:not(:disabled),
.verify-container .btn-verify:active:not(:disabled) {
  transform: translateY(-1px) !important;
}

.setup-container .btn-primary:disabled,
.verify-container .btn-verify:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ---------- 次按钮 ---------- */
.setup-container .btn-secondary {
  display: block !important;
  width: 100% !important;
  padding: 14px !important;
  background: transparent !important;
  color: var(--joy-primary) !important;
  border: 2px solid var(--joy-primary) !important;
  border-radius: var(--joy-radius-lg) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: var(--joy-font-sans) !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  margin-top: 12px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.setup-container .btn-secondary:hover {
  background: var(--joy-primary-soft) !important;
  border-color: var(--joy-primary-dark) !important;
  color: var(--joy-primary-dark) !important;
  transform: translateY(-1px);
}

/* ---------- 错误提示：状态色变量 ---------- */
.setup-container .error-msg,
.verify-container .error-msg {
  background: var(--joy-state-error-soft) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: var(--joy-state-error) !important;
  padding: 14px 18px !important;
  border-radius: var(--joy-radius-lg) !important;
  font-size: 14px !important;
  margin-bottom: 24px !important;
  text-align: center !important;
  font-weight: 500;
  animation: errorShake 0.4s ease;
  position: relative;
  padding-left: 44px !important;
}

.setup-container .error-msg::before,
.verify-container .error-msg::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--joy-state-error);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------- 成功图标：设置页 ---------- */
.setup-container .success-icon {
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto 24px !important;
  background: linear-gradient(135deg, var(--joy-state-success) 0%, #059669 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow:
    0 8px 24px rgba(16, 185, 129, 0.35),
    0 0 0 6px rgba(16, 185, 129, 0.1) !important;
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.setup-container .success-icon svg {
  width: 40px !important;
  height: 40px !important;
  fill: #ffffff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* ---------- 备用码区域：列表美化 ---------- */
.setup-container .backup-codes-section {
  margin: 32px 0 !important;
  padding: 24px;
  background: var(--joy-neutral-50);
  border-radius: var(--joy-radius-xl);
  border: 1px solid var(--joy-neutral-100);
}

.setup-container .backup-codes-section h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--joy-neutral-800) !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}

.setup-container .backup-codes-section p {
  font-size: 13px !important;
  color: var(--joy-neutral-500) !important;
  text-align: center !important;
  margin-bottom: 20px !important;
  line-height: 1.6;
}

.setup-container .backup-codes-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

.setup-container .backup-code-item {
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid var(--joy-neutral-200) !important;
  border-radius: var(--joy-radius-md) !important;
  font-family: var(--joy-font-mono) !important;
  font-size: 13px !important;
  text-align: center !important;
  color: var(--joy-neutral-700) !important;
  font-weight: 500;
  transition: all var(--joy-transition-fast);
  cursor: pointer;
  position: relative;
}

.setup-container .backup-code-item:hover {
  border-color: var(--joy-primary) !important;
  background: var(--joy-emerald-50) !important;
  color: var(--joy-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--joy-primary-15);
}

/* 复制提示 */
.setup-container .backup-code-item::after {
  content: "点击复制";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--joy-neutral-800);
  color: #fff;
  font-size: 11px;
  font-family: var(--joy-font-sans);
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 6px;
}

.setup-container .backup-code-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* ---------- 警告框 ---------- */
.setup-container .warning-box {
  margin-top: 20px !important;
  padding: 14px 18px !important;
  background: var(--joy-state-warning-soft) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: var(--joy-radius-lg) !important;
  font-size: 13px !important;
  color: #92400E !important;
  line-height: 1.6 !important;
  position: relative;
  padding-left: 44px !important;
}

.setup-container .warning-box::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--joy-state-warning);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* ---------- 模式切换：验证页 ---------- */
.verify-container .mode-toggle {
  text-align: center !important;
  margin-top: 28px !important;
  font-size: 14px !important;
  color: var(--joy-neutral-500) !important;
  padding-top: 20px;
  border-top: 1px solid var(--joy-neutral-100);
}

.verify-container .mode-toggle a {
  color: var(--joy-primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: color var(--joy-transition-fast);
}

.verify-container .mode-toggle a:hover {
  color: var(--joy-primary-dark) !important;
  text-decoration: underline !important;
}

/* ---------- 页脚 ---------- */
.setup-container .setup-footer,
.verify-container .verify-footer {
  text-align: center !important;
  margin-top: 36px !important;
  font-size: 13px !important;
  color: var(--joy-neutral-400) !important;
  padding-top: 20px;
  border-top: 1px solid var(--joy-neutral-100);
}

.setup-container .setup-footer a,
.verify-container .verify-footer a {
  color: var(--joy-primary) !important;
  text-decoration: none !important;
  transition: color var(--joy-transition-fast);
}

.setup-container .setup-footer a:hover,
.verify-container .verify-footer a:hover {
  color: var(--joy-primary-dark) !important;
  text-decoration: underline !important;
}

/* ---------- 响应式适配 ---------- */
@media (max-width: 520px) {
  .setup-container .setup-card,
  .verify-container .verify-card {
    padding: 36px 24px !important;
    border-radius: var(--joy-radius-xl) !important;
  }

  .setup-container .setup-title,
  .verify-container .verify-title {
    font-size: 22px !important;
  }

  .setup-container .shield-icon,
  .verify-container .shield-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .setup-container .shield-icon svg,
  .verify-container .shield-icon svg {
    width: 30px !important;
    height: 30px !important;
  }

  .setup-container .backup-codes-grid {
    grid-template-columns: 1fr !important;
  }

  .setup-container .form-input,
  .verify-container .form-input {
    font-size: 18px !important;
    letter-spacing: 6px !important;
  }
}

/* ============================================================
   Guide / Document Pages - UI Optimization
   指南/文档类页面 UI 优化
   ============================================================ */

/* ---------- 1. Hero 区增强 ---------- */
.info-page .info-hero {
  padding: 100px 0 80px;
  position: relative;
}

.info-page .info-hero::before {
  background:
    radial-gradient(ellipse 70% 60% at 30% 0%, color-mix(in srgb, var(--joy-primary) 14%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(51, 201, 201, 0.1), transparent);
}

.info-page .info-hero::after {
  width: 380px;
  height: 380px;
  top: -10%;
  right: -5%;
  opacity: 0.18;
  filter: blur(80px);
}

.info-page .info-badge {
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-page .info-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 18px;
}

.info-page .info-hero .info-subtitle {
  font-size: 17px;
  line-height: 1.75;
  max-width: 620px;
  color: var(--joy-neutral-600);
}

.info-page .info-hero .info-meta {
  margin-top: 24px;
  font-size: 13px;
  color: var(--joy-neutral-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--joy-radius-full);
  border: 1px solid color-mix(in srgb, var(--joy-primary) 10%, transparent);
}

.info-page .info-hero .info-meta::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--joy-emerald-400);
}

/* ---------- 2. 内容排版优化 ---------- */
.info-page .info-content {
  max-width: 980px;
  padding: 72px 24px 120px;
}

.info-page .info-content p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--joy-neutral-700);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.info-page .info-content strong {
  color: var(--joy-emerald-800);
  font-weight: 600;
}

.info-page .info-content a {
  color: var(--joy-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.info-page .info-content a:hover {
  color: var(--joy-emerald-700);
  border-bottom-color: var(--joy-emerald-300);
  text-decoration: none;
}

.info-page .info-content ul,
.info-page .info-content ol {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 0 4px;
  margin: 0 0 20px 0;
  box-shadow: none;
  list-style: none;
}

.info-page .info-content ul:hover,
.info-page .info-content ol:hover {
  box-shadow: none;
}

.info-page .info-content ul li,
.info-page .info-content ol li {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--joy-neutral-700);
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.info-page .info-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  box-shadow: 0 0 0 3px var(--joy-emerald-50);
}

.info-page .info-content ol li::before {
  counter-increment: info-ol;
  content: counter(info-ol);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--joy-emerald-50);
  color: var(--joy-primary);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 3. 标题层次增强 ---------- */
.info-page .info-content h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--joy-foreground);
  margin-top: 72px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  padding-left: 20px;
  border-bottom: none;
  position: relative;
}

.info-page .info-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 16px;
  width: 5px;
  background: linear-gradient(180deg, var(--joy-primary), var(--joy-emerald-400));
  border-radius: 3px;
}

.info-page .info-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--joy-emerald-200), var(--joy-emerald-100) 40%, transparent);
}

.info-page .info-content h2:first-child {
  margin-top: 0;
}

.info-page .info-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--joy-foreground);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-left: 16px;
  position: relative;
}

.info-page .info-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--joy-emerald-500), var(--joy-emerald-300));
  border-radius: 2px;
}

/* ---------- 4. 侧边目录 (TOC) 优化 ---------- */
.info-page .info-toc {
  background: linear-gradient(135deg, var(--joy-emerald-50) 0%, var(--joy-card) 100%);
  border: 1px solid var(--joy-emerald-100);
  border-radius: var(--joy-radius-xl);
  padding: 28px 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.info-page .info-toc::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--joy-primary-06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.info-page .info-toc h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--joy-emerald-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 28px;
  position: relative;
}

.info-page .info-toc h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--joy-primary);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.info-page .info-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc-counter;
}

.info-page .info-toc li {
  margin-bottom: 0;
  padding: 0;
  counter-increment: toc-counter;
}

.info-page .info-toc li::before {
  display: none;
}

.info-page .info-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--joy-neutral-600);
  padding: 10px 14px;
  border-radius: var(--joy-radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
  font-weight: 400;
  border-bottom: none;
  position: relative;
}

.info-page .info-toc a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  color: var(--joy-emerald-400);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
  transition: color 0.2s ease;
}

.info-page .info-toc a:hover {
  background: var(--joy-primary-06);
  color: var(--joy-primary);
  transform: translateX(4px);
  border-bottom: none;
}

.info-page .info-toc a:hover::before {
  color: var(--joy-primary);
}

/* ---------- 5. 步骤卡片优化 ---------- */
.info-page .info-step-list {
  counter-reset: info-step;
  margin: 32px 0;
  position: relative;
}

.info-page .info-step-list::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 50px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--joy-emerald-200), var(--joy-emerald-100) 80%, transparent);
}

.info-page .info-step {
  position: relative;
  padding: 24px 28px 24px 80px;
  margin-bottom: 20px;
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-xl);
  transition: all 0.25s ease;
}

.info-page .info-step:hover {
  border-color: var(--joy-emerald-300);
  box-shadow: var(--joy-shadow-md);
  transform: translateX(4px);
}

.info-page .info-step::before {
  counter-increment: info-step;
  content: counter(info-step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
  z-index: 1;
}

.info-page .info-step h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--joy-foreground);
  padding-left: 0;
}

.info-page .info-step h3::before {
  display: none;
}

.info-page .info-step p {
  margin-bottom: 0;
  font-size: 14.5px;
  color: var(--joy-neutral-600);
  line-height: 1.7;
}

/* ---------- 6. 提示框 / Callout 增强 ---------- */
.info-page .info-callout {
  border-radius: var(--joy-radius-xl);
  border: 1px solid var(--joy-emerald-200);
  background: linear-gradient(135deg, color-mix(in srgb, var(--joy-primary) 3%, transparent) 0%, rgba(51, 201, 201, 0.02) 100%);
  border-left: 4px solid var(--joy-primary);
  padding: 20px 24px 20px 60px;
  margin: 28px 0;
  position: relative;
  transition: all 0.25s ease;
}

.info-page .info-callout::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 22px;
  width: 24px;
  height: 24px;
  background: var(--joy-primary);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.info-page .info-callout:hover {
  border-color: var(--joy-emerald-300);
  box-shadow: var(--joy-shadow-sm);
  transform: translateY(-1px);
}

.info-page .info-callout p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--joy-neutral-700);
}

.info-page .info-callout strong {
  color: var(--joy-emerald-800);
  font-weight: 600;
}

/* Warning callout */
.info-page .info-callout.warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
  border-left-color: var(--joy-state-warning);
}

.info-page .info-callout.warning::before {
  background: var(--joy-state-warning);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

.info-page .info-callout.warning:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.info-page .info-callout.warning strong {
  color: var(--joy-state-warning);
}

/* Success callout */
.info-page .info-callout.success {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-left-color: var(--joy-state-success);
}

.info-page .info-callout.success::before {
  background: var(--joy-state-success);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}

.info-page .info-callout.success:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.info-page .info-callout.success strong {
  color: var(--joy-state-success);
}

/* 修正：最后一个 callout 不再强制 CTA 渐变样式，恢复为普通 callout */
.info-page .info-content .info-callout:last-of-type {
  background: linear-gradient(135deg, color-mix(in srgb, var(--joy-primary) 3%, transparent) 0%, rgba(51, 201, 201, 0.02) 100%);
  border: 1px solid var(--joy-emerald-200);
  border-left: 4px solid var(--joy-primary);
  color: inherit;
  text-align: left;
  padding: 20px 24px 20px 60px;
  border-radius: var(--joy-radius-xl);
  position: relative;
  overflow: visible;
  margin-top: 28px;
  box-shadow: none;
}

.info-page .info-content .info-callout:last-of-type::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 22px;
  width: 24px;
  height: 24px;
  background: var(--joy-primary);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  inset: auto;
  border-radius: 0;
  filter: none;
  animation: none;
}

.info-page .info-content .info-callout:last-of-type::after {
  display: none;
}

.info-page .info-content .info-callout:last-of-type p {
  color: var(--joy-neutral-700);
  font-size: 15px;
  position: static;
  z-index: auto;
  line-height: 1.75;
}

.info-page .info-content .info-callout:last-of-type strong {
  color: var(--joy-emerald-800);
  font-size: inherit;
  font-weight: 600;
  display: inline;
}

.info-page .info-content .info-callout.warning:last-of-type {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(245, 158, 11, 0.02) 100%);
  border-left-color: var(--joy-state-warning);
}

.info-page .info-content .info-callout.warning:last-of-type::before {
  background: var(--joy-state-warning);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

.info-page .info-content .info-callout.warning:last-of-type strong {
  color: var(--joy-state-warning);
}

/* ---------- 7. 信息卡片增强 ---------- */
.info-page .info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.info-page .info-card {
  background: var(--joy-card);
  border-radius: var(--joy-radius-xl);
  padding: 28px;
  border: 1px solid var(--joy-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-page .info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--joy-primary), var(--joy-emerald-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-page .info-card:hover {
  border-color: var(--joy-emerald-200);
  box-shadow: var(--joy-shadow-lg);
  transform: translateY(-4px);
}

.info-page .info-card:hover::before {
  opacity: 1;
}

.info-page .info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--joy-emerald-50), var(--joy-emerald-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--joy-primary);
  transition: all 0.3s ease;
}

.info-page .info-card:hover .info-card-icon {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-500));
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

.info-page .info-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--joy-foreground);
  padding-left: 0;
}

.info-page .info-card h3::before {
  display: none;
}

.info-page .info-card p {
  font-size: 14.5px;
  margin-bottom: 0;
  color: var(--joy-neutral-500);
  line-height: 1.7;
}

/* ---------- 8. 表格美化 ---------- */
.info-page .info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0;
  font-size: 14px;
  background: var(--joy-card);
  border-radius: var(--joy-radius-xl);
  box-shadow: var(--joy-shadow-sm);
  border: 1px solid var(--joy-border);
  overflow: hidden;
}

.info-page .info-table thead {
  background: linear-gradient(135deg, var(--joy-emerald-700) 0%, var(--joy-primary) 100%);
}

.info-page .info-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border-bottom: none;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.info-page .info-table th:first-child {
  padding-left: 24px;
}

.info-page .info-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--joy-neutral-100);
  color: var(--joy-neutral-700);
  vertical-align: middle;
  line-height: 1.6;
}

.info-page .info-table td:first-child {
  padding-left: 24px;
  font-weight: 500;
  color: var(--joy-neutral-800);
}

.info-page .info-table tbody tr:last-child td {
  border-bottom: none;
}

.info-page .info-table tbody tr:nth-child(even) {
  background: var(--joy-neutral-50);
}

.info-page .info-table tbody tr:hover {
  background: var(--joy-emerald-50);
  transition: background 0.2s ease;
}

/* ---------- 9. 代码块样式 ---------- */
.info-page .info-content code {
  font-family: var(--joy-font-mono);
  font-size: 0.9em;
  padding: 2px 8px;
  background: var(--joy-neutral-100);
  color: var(--joy-emerald-700);
  border-radius: var(--joy-radius-sm);
  font-weight: 500;
}

.info-page .info-content pre {
  background: linear-gradient(135deg, var(--joy-neutral-900) 0%, var(--joy-neutral-800) 100%);
  color: var(--joy-neutral-100);
  padding: 24px;
  border-radius: var(--joy-radius-lg);
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--joy-font-mono);
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid var(--joy-neutral-700);
  box-shadow: var(--joy-shadow-md);
  position: relative;
}

.info-page .info-content pre::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.info-page .info-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
}

/* ---------- 10. FAQ 问答样式增强 ---------- */
.info-page .info-content h3 + p {
  margin-top: 8px;
}

/* ---------- 11. 响应式适配 ---------- */
@media (max-width: 900px) {
  .info-page .info-hero {
    padding: 72px 0 56px;
  }

  .info-page .info-hero h1 {
    font-size: clamp(28px, 6vw, 40px);
  }

  .info-page .info-hero .info-subtitle {
    font-size: 16px;
  }

  .info-page .info-content {
    max-width: 100%;
    padding: 48px 16px 80px;
  }

  .info-page .info-content h2 {
    font-size: 22px;
    margin-top: 56px;
    padding-left: 16px;
  }

  .info-page .info-content h3 {
    font-size: 18px;
    padding-left: 14px;
  }

  .info-page .info-content p,
  .info-page .info-content ul li,
  .info-page .info-content ol li {
    font-size: 15px;
  }

  .info-page .info-toc {
    padding: 20px 24px;
    margin-bottom: 36px;
  }

  .info-page .info-toc a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .info-page .info-step {
    padding: 20px 20px 20px 64px;
  }

  .info-page .info-step::before {
    left: 14px;
    top: 18px;
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .info-page .info-step-list::before {
    left: 23px;
    top: 42px;
  }

  .info-page .info-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-page .info-card {
    padding: 24px;
  }

  .info-page .info-callout {
    padding: 18px 20px 18px 52px;
  }

  .info-page .info-callout::before {
    left: 18px;
    top: 20px;
    width: 20px;
    height: 20px;
  }

  .info-page .info-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }

  .info-page .info-table th,
  .info-page .info-table td {
    padding: 10px 14px;
  }

  .info-page .info-table th:first-child,
  .info-page .info-table td:first-child {
    padding-left: 14px;
  }

  .info-page .info-content pre {
    padding: 18px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .info-page .info-hero {
    padding: 56px 0 44px;
  }

  .info-page .info-hero h1 {
    font-size: 26px;
  }

  .info-page .info-hero .info-subtitle {
    font-size: 15px;
    line-height: 1.6;
  }

  .info-page .info-content {
    padding: 36px 14px 64px;
  }

  .info-page .info-content h2 {
    font-size: 20px;
    margin-top: 44px;
  }

  .info-page .info-step {
    padding: 18px 16px 18px 56px;
  }

  .info-page .info-step::before {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .info-page .info-card {
    padding: 20px;
  }

  .info-page .info-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }
}

/* ============================================================
   浮窗UI全面优化 — Modal / Toast / Menu / Drawer
   ============================================================ */

/* ---------- 1. 通用模态框增强 ---------- */
.modal {
  z-index: 1000;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.modal-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 25px 80px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 30px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  animation: modalFloatIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* 有 header 的结构化模态框：移除默认 padding，用 header/body/footer 各自的 padding */
.modal-card:has(.modal-header) {
  padding: 0;
}

@keyframes modalFloatIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--joy-emerald-400), var(--joy-primary), var(--joy-emerald-300));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show .modal-card::before {
  opacity: 1;
}

.modal-close {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: var(--joy-neutral-100);
  color: var(--joy-neutral-500);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.modal-close:hover {
  background: var(--joy-state-error-soft);
  color: var(--joy-state-error);
  transform: rotate(90deg) scale(1.08);
}

/* 模态框头部 */
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--joy-neutral-100);
  position: relative;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--joy-foreground);
  letter-spacing: -0.01em;
  margin: 0;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--joy-neutral-500);
  margin-top: 4px;
  line-height: 1.5;
}

/* 模态框内容区 */
.modal-body {
  padding: 24px 28px;
}

/* 模态框底部操作区 */
.modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--joy-neutral-100);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-footer .btn {
  min-width: 100px;
}

/* ---------- 2. Toast 提示增强 ---------- */
.toast {
  padding: 12px 24px;
  border-radius: var(--joy-radius-full);
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 40px -8px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--joy-emerald-400);
  box-shadow: 0 0 8px var(--joy-emerald-400);
  flex-shrink: 0;
}

.toast.toast-success::before {
  background: var(--joy-state-success);
  box-shadow: 0 0 8px var(--joy-state-success);
}

.toast.toast-error::before {
  background: var(--joy-state-error);
  box-shadow: 0 0 8px var(--joy-state-error);
}

.toast.toast-warning::before {
  background: var(--joy-state-warning);
  box-shadow: 0 0 8px var(--joy-state-warning);
}

.toast.toast-info::before {
  background: var(--joy-primary);
  box-shadow: 0 0 8px var(--joy-primary);
}

.toast.show {
  animation: toastPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes toastPopIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* ---------- 3. 头像下拉菜单增强 ---------- */
.avatar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--joy-neutral-200);
  border-radius: var(--joy-radius-xl);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 8px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.avatar-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 30px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--joy-neutral-200);
  border-top: 1px solid var(--joy-neutral-200);
  transform: rotate(45deg);
  backdrop-filter: blur(20px);
}

.avatar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--joy-radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--joy-neutral-700);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.avatar-menu-item:hover {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  transform: translateX(2px);
}

.avatar-menu-item:active {
  transform: translateX(2px) scale(0.97);
}

.avatar-menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.avatar-menu-arrow {
  margin-left: auto;
  color: var(--joy-neutral-400);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.avatar-menu-item:hover .avatar-menu-arrow {
  color: var(--joy-primary);
  transform: translateX(3px);
}

.avatar-menu-divider {
  height: 1px;
  background: var(--joy-neutral-100);
  margin: 6px 6px;
}

/* ---------- 4. 组织抽屉增强 ---------- */
.org-drawer {
  box-shadow: -8px 0 40px -10px rgba(0, 0, 0, 0.12);
}

.org-drawer-header {
  background: linear-gradient(135deg, var(--joy-emerald-50), var(--joy-primary-soft));
  border-bottom: 1px solid var(--joy-neutral-200);
  padding: 20px 24px;
}

.org-drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--joy-emerald-800);
}

.org-drawer-body {
  padding: 16px;
}

.org-drawer-input {
  transition: all 0.2s ease;
}

.org-drawer-input:focus {
  border-color: var(--joy-primary);
  box-shadow: 0 0 0 4px var(--joy-primary-soft);
}

.org-drawer-item {
  padding: 12px 14px;
  border-radius: var(--joy-radius-md);
  transition: all 0.15s ease;
  cursor: pointer;
}

.org-drawer-item:hover {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
  transform: translateX(3px);
}

/* ---------- 5. 历史对话抽屉增强 ---------- */
.history-drawer {
  background: linear-gradient(135deg,
    rgba(0, 176, 176, 0.03) 0%,
    rgba(255, 255, 255, 0.58) 30%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(255, 255, 255, 0.58) 70%,
    rgba(51, 201, 201, 0.02) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-right: 1px solid var(--joy-neutral-200);
}

.history-drawer-header {
  padding: 8px 16px;
  border-bottom: 1px solid var(--joy-neutral-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-item {
  padding: 14px 16px;
  border-radius: var(--joy-radius-lg);
  margin: 4px 8px;
  background: var(--joy-neutral-50);
  border: 1px solid var(--joy-neutral-100);
  transition: all 0.2s ease;
  cursor: pointer;
}

.history-item:hover {
  background: var(--joy-primary-soft);
  border-color: var(--joy-primary);
  transform: translateX(4px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 10%, transparent);
}

/* ---------- 6. 反馈面板浮窗增强 ---------- */
.feedback-panel {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -8px 0 50px -10px rgba(0, 0, 0, 0.15);
}

.feedback-panel-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--joy-neutral-100);
}

.feedback-panel-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--joy-foreground);
}

/* ---------- 7. 小浮窗/悬浮按钮通用样式 ---------- */
.float-btn {
  position: fixed;
  z-index: 500;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--joy-emerald-400), var(--joy-primary));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--joy-primary-30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px var(--joy-primary-40);
}

.float-btn:active {
  transform: translateY(-1px) scale(0.97);
}

/* ---------- 8. 功能引导浮层增强 ---------- */
#guideFloatBtn {
  border-radius: var(--joy-radius-full);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px var(--joy-primary-30);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#guideFloatBtn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 36px var(--joy-primary-40);
}

/* ---------- 9. 模态框通用变体 ---------- */
/* 小模态框 */
.modal-card.small {
  width: min(100%, 360px);
}

/* 大模态框 */
.modal-card.large {
  width: min(100%, 640px);
}

/* 确认模态框 */
.modal-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}

.modal-confirm-icon.warning {
  background: var(--joy-state-warning-soft);
  color: var(--joy-state-warning);
}

.modal-confirm-icon.error {
  background: var(--joy-state-error-soft);
  color: var(--joy-state-error);
}

.modal-confirm-icon.success {
  background: var(--joy-state-success-soft);
  color: var(--joy-state-success);
}

.modal-confirm-icon.info {
  background: var(--joy-primary-soft);
  color: var(--joy-primary);
}

/* ---------- 10. 响应式适配 ---------- */
@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-height: 90vh;
    border-radius: var(--joy-radius-2xl) var(--joy-radius-2xl) 0 0;
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes modalSlideUp {
    0% {
      opacity: 0;
      transform: translateY(100%);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .modal-header {
    padding: 20px 20px 16px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 14px 20px 28px;
  }

  .modal-footer .btn {
    flex: 1;
    min-width: 0;
  }

  .toast {
    bottom: 80px;
    min-width: 200px;
    padding: 10px 20px;
    font-size: 13px;
  }

  .avatar-menu {
    min-width: 160px;
  }
}

/* ===== Phase 2.2 社区重构样式 ===== */
.community-hero-compact {
  background: linear-gradient(135deg, var(--joy-emerald-50) 0%, #f0f5fa 100%);
  padding: 48px 24px 32px;
  text-align: center;
}
.community-hero-compact h1 { font-size: 28px; font-weight: 700; color: var(--joy-foreground); margin: 0 0 8px; }
.community-hero-compact .community-badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: var(--joy-primary-soft); color: var(--joy-primary);
  font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.community-hero-compact p { font-size: 14px; color: var(--joy-neutral-500); max-width: 480px; margin: 0 auto; line-height: 1.6; }

.community-app { max-width: 960px; margin: 0 auto; padding: 24px 20px 80px; }

/* Toolbar */
.comm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.comm-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.comm-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--joy-neutral-600); background: transparent; border: 1px solid transparent;
  text-decoration: none; transition: all var(--joy-transition); white-space: nowrap;
}
.comm-tab:hover { background: var(--joy-neutral-100); color: var(--joy-foreground); }
.comm-tab.active { background: var(--joy-primary); color: #fff; }
.comm-toolbar-right { display: flex; align-items: center; gap: 8px; }
.comm-sort { display: flex; gap: 2px; }
.comm-sort-btn {
  padding: 5px 10px; border: none; background: transparent; border-radius: 6px;
  font-size: 12px; color: var(--joy-neutral-500); cursor: pointer; transition: all var(--joy-transition);
}
.comm-sort-btn:hover { background: var(--joy-neutral-100); }
.comm-sort-btn.active { background: var(--joy-primary-soft); color: var(--joy-primary); font-weight: 600; }
.comm-search input {
  width: 160px; padding: 6px 12px; border: 1px solid var(--joy-border);
  border-radius: 8px; font-size: 13px; outline: none; transition: border var(--joy-transition);
}
.comm-search input:focus { border-color: var(--joy-primary); }
.comm-new-btn {
  padding: 6px 16px; border: none; border-radius: 8px; background: var(--joy-primary);
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--joy-transition);
}
.comm-new-btn:hover { background: var(--joy-primary-dark); }

/* View toggle */
.comm-view-toggle { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--joy-border); }
.comm-view-btn {
  padding: 8px 16px; border: none; background: transparent; font-size: 13px;
  color: var(--joy-neutral-500); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all var(--joy-transition);
}
.comm-view-btn:hover { color: var(--joy-foreground); }
.comm-view-btn.active { color: var(--joy-primary); border-bottom-color: var(--joy-primary); font-weight: 600; }

/* Community main navigation */
.comm-main-nav {
  display: flex; align-items: stretch; gap: 0; margin-bottom: 16px;
  border-bottom: 1px solid var(--joy-border); padding: 0 4px;
}
.comm-nav-inner { display: flex; align-items: stretch; gap: 0; width: 100%; }
.comm-nav-group { display: flex; align-items: center; gap: 4px; }
.comm-nav-label {
  font-size: 11px; font-weight: 600; color: var(--joy-neutral-400);
  padding: 0 8px 0 4px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px;
}
.comm-nav-btn {
  padding: 10px 16px; border: none; background: transparent; font-size: 13px;
  color: var(--joy-neutral-500); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all var(--joy-transition); white-space: nowrap;
}
.comm-nav-btn:hover { color: var(--joy-foreground); }
.comm-nav-btn.active { color: var(--joy-primary); border-bottom-color: var(--joy-primary); font-weight: 600; }
.comm-nav-divider {
  width: 1px; background: var(--joy-border); margin: 6px 12px; flex-shrink: 0;
}
.comm-nav-spacer { flex: 1; }
.comm-nav-learning {
  display: inline-flex !important; align-items: center; gap: 6px;
  color: var(--joy-primary) !important; font-weight: 500 !important;
  text-decoration: none;
}
.comm-nav-learning:hover { color: var(--joy-primary-dark) !important; }
[data-night] .comm-main-nav { border-bottom-color: #38383a; }
[data-night] .comm-nav-divider { background: #38383a; }
@media (max-width: 768px) {
  .comm-main-nav { overflow-x: auto; }
  .comm-nav-btn { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
  .comm-nav-label { font-size: 10px; padding: 0 4px; }
  .comm-nav-divider { margin: 6px 8px; }
}

/* Content area */
.comm-content { display: flex; flex-direction: column; gap: 12px; }
.comm-loading { text-align: center; padding: 60px 0; color: var(--joy-neutral-400); font-size: 14px; }
.comm-error { text-align: center; padding: 40px 0; color: var(--joy-state-error); font-size: 14px; }
.comm-error a { color: var(--joy-primary); text-decoration: underline; }
.comm-empty { text-align: center; padding: 60px 0; color: var(--joy-neutral-400); }
.comm-empty-icon { margin-bottom: 12px; color: var(--joy-neutral-300); }
.comm-empty p { font-size: 14px; }
.comm-empty-mini { text-align: center; padding: 24px 0; color: var(--joy-neutral-400); font-size: 13px; }

/* Topic card */
.comm-topic-card {
  background: var(--joy-card); border: 1px solid var(--joy-border); border-radius: 12px;
  padding: 16px 20px; cursor: pointer; transition: all var(--joy-transition);
}
.comm-topic-card:hover { border-color: var(--joy-primary-light); box-shadow: var(--joy-shadow-sm); }
.comm-topic-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comm-topic-meta { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.comm-topic-author { font-size: 13px; font-weight: 500; color: var(--joy-foreground); }
.comm-topic-time { font-size: 11px; color: var(--joy-neutral-400); }
.comm-topic-title { font-size: 15px; font-weight: 600; color: var(--joy-foreground); margin: 0 0 6px; line-height: 1.5; }
.comm-topic-card:hover .comm-topic-title { color: var(--joy-primary); }
.comm-topic-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.comm-tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px;
  background: var(--joy-neutral-100); color: var(--joy-neutral-600);
}
.comm-topic-stats { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--joy-neutral-400); }
.comm-stat { display: inline-flex; align-items: center; gap: 3px; }
.comm-like-btn {
  display: inline-flex; align-items: center; gap: 4px; border: none; background: transparent;
  color: var(--joy-neutral-400); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 6px;
  transition: all var(--joy-transition);
}
.comm-like-btn:hover { background: var(--joy-neutral-100); }
.comm-like-btn.liked { color: var(--joy-state-error); }

/* Badges */
.comm-section-badge, .comm-pin-badge, .comm-essence-badge {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.comm-section-badge { background: var(--joy-primary-soft); color: var(--joy-primary); }
.comm-pin-badge { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.comm-essence-badge { background: rgba(16, 185, 129, 0.1); color: #059669; }

/* Avatar */
.comm-avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--joy-primary-gradient, linear-gradient(135deg, var(--joy-emerald-400), var(--joy-emerald-600)));
  color: #fff; font-weight: 600; flex-shrink: 0; overflow: hidden;
}

/* Pager */
.comm-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 0; }
.comm-pager button {
  padding: 6px 16px; border: 1px solid var(--joy-border); border-radius: 8px; background: var(--joy-card);
  color: var(--joy-foreground); font-size: 13px; cursor: pointer; transition: all var(--joy-transition);
}
.comm-pager button:hover:not(:disabled) { border-color: var(--joy-primary); color: var(--joy-primary); }
.comm-pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.comm-pager span { font-size: 13px; color: var(--joy-neutral-500); }

/* Topic detail */
.comm-detail { background: var(--joy-card); border: 1px solid var(--joy-border); border-radius: 12px; padding: 24px; }
.comm-back { display: inline-block; font-size: 13px; color: var(--joy-neutral-500); text-decoration: none; margin-bottom: 16px; }
.comm-back:hover { color: var(--joy-primary); }
.comm-detail-header { display: flex; gap: 6px; margin-bottom: 8px; }
.comm-detail-title { font-size: 22px; font-weight: 700; color: var(--joy-foreground); margin: 0 0 12px; line-height: 1.4; }
.comm-detail-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.comm-detail-author { font-size: 14px; font-weight: 500; color: var(--joy-foreground); }
.comm-detail-time { font-size: 12px; color: var(--joy-neutral-400); }
.comm-detail-stats { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--joy-neutral-400); }
.comm-detail-content { font-size: 15px; line-height: 1.8; color: var(--joy-foreground); }
.comm-detail-content h1, .comm-detail-content h2, .comm-detail-content h3 { margin: 16px 0 8px; }
.comm-detail-content p { margin: 8px 0; }
.comm-detail-content ul, .comm-detail-content ol { margin: 8px 0; padding-left: 20px; }
.comm-detail-content code { background: var(--joy-neutral-100); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.comm-detail-content pre { background: var(--joy-neutral-100); padding: 12px; border-radius: 8px; overflow-x: auto; }
.comm-detail-content blockquote { border-left: 3px solid var(--joy-primary); padding-left: 12px; color: var(--joy-neutral-500); margin: 8px 0; }

/* Posts */
.comm-posts-section { margin-top: 32px; border-top: 1px solid var(--joy-border); padding-top: 20px; }
.comm-posts-title { font-size: 16px; font-weight: 600; color: var(--joy-foreground); margin: 0 0 16px; }
.comm-post { padding: 14px 16px; border: 1px solid var(--joy-border); border-radius: 10px; margin-bottom: 10px; }
.comm-post.best-answer { border-color: var(--joy-state-success); background: rgba(16, 185, 129, 0.03); }
.comm-best-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--joy-state-success); color: #fff; margin-bottom: 8px; }
.comm-post-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comm-post-author { font-size: 13px; font-weight: 500; color: var(--joy-foreground); }
.comm-post-time { font-size: 11px; color: var(--joy-neutral-400); }
.comm-post-content { font-size: 14px; line-height: 1.7; color: var(--joy-foreground); }
.comm-post-content h1, .comm-post-content h2 { font-size: 16px; margin: 8px 0 4px; }
.comm-post-content p { margin: 4px 0; }
.comm-post-content code { background: var(--joy-neutral-100); padding: 1px 4px; border-radius: 3px; font-size: 13px; }
.comm-post-content pre { background: var(--joy-neutral-100); padding: 10px; border-radius: 6px; overflow-x: auto; }
.comm-post-actions { display: flex; gap: 8px; margin-top: 8px; }
.comm-post-like {
  border: none; background: transparent; color: var(--joy-neutral-400); cursor: pointer;
  font-size: 12px; padding: 2px 6px; border-radius: 6px; transition: all var(--joy-transition);
}
.comm-post-like:hover { background: var(--joy-neutral-100); }
.comm-post-like.liked { color: var(--joy-state-error); }
.comm-best-btn {
  border: 1px solid var(--joy-state-success); background: transparent; color: var(--joy-state-success);
  font-size: 11px; padding: 2px 10px; border-radius: 6px; cursor: pointer; transition: all var(--joy-transition);
}
.comm-best-btn:hover { background: var(--joy-state-success); color: #fff; }

/* Reply box */
.comm-reply-box { margin-top: 20px; }
.comm-reply-box textarea {
  width: 100%; padding: 12px; border: 1px solid var(--joy-border); border-radius: 10px;
  font-size: 14px; resize: vertical; outline: none; transition: border var(--joy-transition);
  font-family: inherit;
}
.comm-reply-box textarea:focus { border-color: var(--joy-primary); }
.comm-reply-actions { margin-top: 8px; text-align: right; }
.comm-submit-btn {
  padding: 8px 20px; border: none; border-radius: 8px; background: var(--joy-primary);
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--joy-transition);
}
.comm-submit-btn:hover { background: var(--joy-primary-dark); }
.comm-cancel-btn {
  padding: 8px 16px; border: 1px solid var(--joy-border); border-radius: 8px; background: transparent;
  color: var(--joy-neutral-600); font-size: 13px; text-decoration: none; cursor: pointer; transition: all var(--joy-transition);
}
.comm-cancel-btn:hover { border-color: var(--joy-neutral-400); }

/* New topic form */
.comm-new-topic { background: var(--joy-card); border: 1px solid var(--joy-border); border-radius: 12px; padding: 24px; }
.comm-new-title { font-size: 20px; font-weight: 700; color: var(--joy-foreground); margin: 0 0 20px; }
.comm-form-group { margin-bottom: 16px; }
.comm-form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--joy-foreground); margin-bottom: 6px; }
.comm-required { color: var(--joy-state-error); }
.comm-form-hint { font-weight: 400; color: var(--joy-neutral-400); font-size: 12px; }
.comm-form-input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--joy-border); border-radius: 8px;
  font-size: 14px; outline: none; transition: border var(--joy-transition); font-family: inherit; box-sizing: border-box;
}
.comm-form-input:focus { border-color: var(--joy-primary); }
.comm-filter-select { width: auto; min-width: 140px; }
.comm-form-row { display: flex; gap: 12px; }
.comm-form-row .comm-form-group { flex: 1; }
.comm-form-actions { display: flex; gap: 12px; margin-top: 20px; }

/* Editor */
.comm-editor { border: 1px solid var(--joy-border); border-radius: 10px; overflow: hidden; }
.comm-editor-tabs { display: flex; border-bottom: 1px solid var(--joy-border); }
.comm-editor-tab {
  padding: 8px 16px; border: none; background: transparent; font-size: 13px;
  color: var(--joy-neutral-500); cursor: pointer; border-bottom: 2px solid transparent;
}
.comm-editor-tab.active { color: var(--joy-primary); border-bottom-color: var(--joy-primary); }
.comm-editor-textarea {
  width: 100%; border: none; padding: 12px; font-size: 14px; outline: none;
  resize: vertical; min-height: 200px; font-family: inherit; box-sizing: border-box;
}
.comm-editor-preview { padding: 12px; min-height: 200px; font-size: 14px; line-height: 1.7; }

/* Term library */
.comm-terms-header { margin-bottom: 16px; }
.comm-section-title { font-size: 20px; font-weight: 700; color: var(--joy-foreground); margin: 0 0 4px; }
.comm-section-desc { font-size: 13px; color: var(--joy-neutral-500); margin: 0; }
.comm-terms-toolbar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.comm-terms-toolbar .comm-form-input { width: auto; }
.comm-terms-toolbar #termSearchInput, .comm-terms-toolbar #tplSearchInput { flex: 1; min-width: 180px; }

.comm-term-card {
  display: flex; align-items: flex-start; gap: 16px; background: var(--joy-card);
  border: 1px solid var(--joy-border); border-radius: 12px; padding: 16px 20px; transition: all var(--joy-transition);
}
.comm-term-card:hover { border-color: var(--joy-primary-light); box-shadow: var(--joy-shadow-sm); }
.comm-term-main { flex: 1; min-width: 0; }
.comm-term-word { font-size: 16px; font-weight: 700; color: var(--joy-foreground); margin-bottom: 2px; }
.comm-term-translation { font-size: 14px; color: var(--joy-neutral-600); margin-bottom: 6px; }
.comm-term-industry {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px;
  background: rgba(0, 122, 255, 0.1); color: #007aff; margin-right: 6px;
}
.comm-term-lang {
  display: inline-block; padding: 2px 6px; border-radius: 6px; font-size: 11px;
  background: rgba(88, 86, 214, 0.1); color: #5856d6; font-weight: 500;
}
.comm-term-desc { font-size: 12px; color: var(--joy-neutral-400); margin-top: 6px; }
.comm-term-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--joy-neutral-400); white-space: nowrap; }
.comm-term-votes { display: flex; flex-direction: column; gap: 4px; }
.comm-vote-btn {
  padding: 4px 10px; border: 1px solid var(--joy-border); border-radius: 6px; background: transparent;
  color: var(--joy-neutral-500); font-size: 12px; cursor: pointer; transition: all var(--joy-transition);
}
.comm-vote-btn:hover { border-color: var(--joy-primary); }
.comm-vote-btn.active[data-vote="upvote"] { background: rgba(16, 185, 129, 0.1); border-color: var(--joy-state-success); color: var(--joy-state-success); }
.comm-vote-btn.active[data-vote="downvote"] { background: rgba(239, 68, 68, 0.1); border-color: var(--joy-state-error); color: var(--joy-state-error); }

/* Templates */
.comm-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.comm-tpl-card {
  background: var(--joy-card); border: 1px solid var(--joy-border); border-radius: 12px; padding: 16px;
  transition: all var(--joy-transition);
}
.comm-tpl-card:hover { border-color: var(--joy-primary-light); box-shadow: var(--joy-shadow-sm); }
.comm-tpl-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comm-tpl-scenario { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--joy-primary-soft); color: var(--joy-primary); }
.comm-tpl-lang { font-size: 11px; color: var(--joy-neutral-400); }
.comm-tpl-title { font-size: 15px; font-weight: 600; color: var(--joy-foreground); margin: 0 0 6px; }
.comm-tpl-desc { font-size: 12px; color: var(--joy-neutral-500); margin: 0 0 12px; line-height: 1.5; min-height: 36px; }
.comm-tpl-footer { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--joy-neutral-400); }
.comm-tpl-creator { font-weight: 500; color: var(--joy-neutral-600); }
.comm-tpl-stats { margin-left: auto; }
.comm-tpl-apply {
  padding: 4px 12px; border: none; border-radius: 6px; background: var(--joy-primary); color: #fff;
  font-size: 12px; font-weight: 500; cursor: pointer; transition: all var(--joy-transition);
}
.comm-tpl-apply:hover { background: var(--joy-primary-dark); }

/* Modal */
.comm-modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px);
}
.comm-modal {
  background: var(--joy-card); border-radius: 16px; width: 100%; max-width: 520px; max-height: 85vh;
  overflow-y: auto; box-shadow: var(--joy-shadow-2xl);
}
.comm-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--joy-border); }
.comm-modal-header h3 { font-size: 16px; font-weight: 700; color: var(--joy-foreground); margin: 0; }
.comm-modal-close { border: none; background: transparent; font-size: 18px; color: var(--joy-neutral-400); cursor: pointer; padding: 4px; }
.comm-modal-body { padding: 20px; }
.comm-modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--joy-border); }

/* ===== 夜览模式 ===== */
[data-night] .community-hero-compact { background: linear-gradient(135deg, #1a2a2a 0%, #1a1a2e 100%); }
[data-night] .community-hero-compact h1 { color: #f5f5f7; }
[data-night] .community-hero-compact p { color: var(--joy-neutral-400); }
[data-night] .comm-topic-card,
[data-night] .comm-detail,
[data-night] .comm-new-topic,
[data-night] .comm-term-card,
[data-night] .comm-tpl-card { background: #1c1c1e; border-color: #38383a; }
[data-night] .comm-topic-title,
[data-night] .comm-detail-title,
[data-night] .comm-new-title,
[data-night] .comm-section-title,
[data-night] .comm-term-word { color: #f5f5f7; }
[data-night] .comm-tab { color: var(--joy-neutral-400); }
[data-night] .comm-tab:hover { background: #2c2c2e; color: #f5f5f7; }
[data-night] .comm-sort-btn { color: var(--joy-neutral-400); }
[data-night] .comm-sort-btn:hover { background: #2c2c2e; }
[data-night] .comm-search input,
[data-night] .comm-form-input { background: #2c2c2e; border-color: #38383a; color: #f5f5f7; }
[data-night] .comm-editor { border-color: #38383a; }
[data-night] .comm-editor-textarea { background: #1c1c1e; color: #f5f5f7; }
[data-night] .comm-tag { background: #2c2c2e; color: var(--joy-neutral-400); }
[data-night] .comm-post { background: #1c1c1e; border-color: #38383a; }
[data-night] .comm-post.best-answer { background: rgba(16, 185, 129, 0.06); }
[data-night] .comm-detail-content,
[data-night] .comm-post-content { color: #e5e5e7; }
[data-night] .comm-detail-content code,
[data-night] .comm-post-content code,
[data-night] .comm-detail-content pre,
[data-night] .comm-post-content pre { background: #2c2c2e; }
[data-night] .comm-modal { background: #1c1c1e; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
[data-night] .comm-modal-header,
[data-night] .comm-modal-footer { border-color: #38383a; }
[data-night] .comm-reply-box textarea { background: #1c1c1e; border-color: #38383a; color: #f5f5f7; }
[data-night] .comm-vote-btn { border-color: #38383a; }
[data-night] .comm-empty,
[data-night] .comm-loading { color: var(--joy-neutral-500); }

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
  .community-hero-compact { padding: 32px 16px 24px; }
  .community-hero-compact h1 { font-size: 22px; }
  .community-app { padding: 16px 12px 60px; }
  .comm-toolbar { gap: 8px; }
  .comm-tabs { gap: 2px; }
  .comm-tab { padding: 4px 10px; font-size: 12px; }
  .comm-toolbar-right { width: 100%; justify-content: space-between; }
  .comm-search input { width: 100%; }
  .comm-view-toggle { overflow-x: auto; }
  .comm-view-btn { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
  .comm-topic-card { padding: 12px 14px; }
  .comm-topic-title { font-size: 14px; }
  .comm-detail { padding: 16px; }
  .comm-detail-title { font-size: 18px; }
  .comm-detail-meta { flex-wrap: wrap; }
  .comm-detail-stats { margin-left: 0; width: 100%; justify-content: flex-start; margin-top: 8px; }
  .comm-post { padding: 12px; }
  .comm-post[style*="margin-left"] { margin-left: 16px !important; }
  .comm-form-row { flex-direction: column; gap: 0; }
  .comm-terms-toolbar { flex-direction: column; }
  .comm-terms-toolbar .comm-form-input { width: 100%; }
  .comm-filter-select { width: 100%; }
  .comm-tpl-grid { grid-template-columns: 1fr; }
  .comm-term-card { flex-direction: column; gap: 8px; }
  .comm-term-votes { flex-direction: row; }
  .comm-modal { max-height: 90vh; }
  .comm-pager { gap: 8px; }
  .comm-pager button { padding: 4px 12px; font-size: 12px; }
}

/* ===== 社区每日一句 ===== */
.comm-top-bar { margin-bottom: 16px; }

.comm-announcements { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.comm-announcement-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 16px; border-radius: var(--joy-radius);
  font-size: 14px; line-height: 1.5;
}
.comm-announcement-icon { flex-shrink: 0; margin-top: 1px; }
.comm-announcement-content { flex: 1; min-width: 0; }
.comm-announcement-title { font-weight: 600; color: var(--joy-foreground); margin-right: 8px; }
.comm-announcement-text { color: var(--joy-neutral-500); }

.comm-daily-quote-wrapper { margin-bottom: 20px; }
.comm-daily-quote-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--joy-primary-soft) 0%, var(--joy-neutral-50) 100%);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  transition: box-shadow 0.2s ease;
}
.comm-daily-quote-card:hover { box-shadow: var(--joy-shadow-md); }
.comm-daily-quote-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--joy-primary-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--joy-primary);
}
.comm-daily-quote-body { flex: 1; min-width: 0; }
.comm-daily-quote-text {
  font-size: 16px; line-height: 1.7; color: var(--joy-foreground);
  margin: 0 0 8px 0; font-weight: 500;
}
.comm-daily-quote-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.comm-daily-quote-author { color: var(--joy-neutral-500); font-style: italic; }
.comm-daily-quote-date { color: var(--joy-neutral-400); }

/* ===== 翻译挑战赛 ===== */
.comm-challenge-card {
  background: var(--joy-card);
  border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-lg);
  padding: 24px; margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}
.comm-challenge-card:hover { box-shadow: var(--joy-shadow-md); }
.comm-challenge-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.comm-challenge-title { font-size: 18px; font-weight: 600; color: var(--joy-foreground); margin: 0; display: flex; align-items: center; gap: 8px; }
.comm-challenge-status {
  font-size: 12px; font-weight: 600; padding: 2px 10px;
  border-radius: var(--joy-radius-full); white-space: nowrap;
}
.comm-challenge-status.ongoing { background: var(--joy-state-success-soft); color: var(--joy-state-success); }
.comm-challenge-status.ended { background: var(--joy-neutral-100); color: var(--joy-neutral-400); }
.comm-challenge-desc { font-size: 14px; color: var(--joy-neutral-500); margin: 4px 0 0 0; line-height: 1.5; }
.comm-challenge-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; color: var(--joy-neutral-400); white-space: nowrap; }
.comm-challenge-participants { color: var(--joy-primary); font-weight: 600; }

.comm-challenge-source {
  background: var(--joy-surface-2); border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius); padding: 16px; margin-bottom: 16px;
}
.comm-challenge-source-label { font-size: 12px; color: var(--joy-neutral-400); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.comm-challenge-source-text { font-size: 15px; line-height: 1.7; color: var(--joy-foreground); white-space: pre-wrap; }

.comm-challenge-submit-area { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.comm-challenge-textarea { min-height: 80px; resize: vertical; }
.comm-challenge-submit-btn { align-self: flex-start; }
.comm-challenge-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.comm-challenge-leaderboard { border-top: 1px solid var(--joy-border); padding-top: 16px; }
.comm-challenge-leaderboard-title { font-size: 14px; font-weight: 600; color: var(--joy-foreground); margin: 0 0 12px 0; }
.comm-challenge-leaderboard-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--joy-surface-3);
}
.comm-challenge-leaderboard-item:last-child { border-bottom: none; }
.comm-challenge-rank { flex-shrink: 0; width: 28px; text-align: center; font-weight: 600; color: var(--joy-neutral-400); }
.comm-medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700;
}
.comm-medal-1 { background: #FFD700; color: #8B6914; }
.comm-medal-2 { background: #C0C0C0; color: #555; }
.comm-medal-3 { background: #CD7F32; color: #fff; }
.comm-challenge-submitter { font-weight: 600; color: var(--joy-foreground); font-size: 14px; flex-shrink: 0; }
.comm-challenge-submission-text { flex: 1; font-size: 14px; color: var(--joy-neutral-500); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.comm-vote-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border: 1px solid var(--joy-border);
  border-radius: var(--joy-radius-full); background: transparent;
  cursor: pointer; transition: all 0.15s ease; font-size: 13px;
  color: var(--joy-neutral-500); flex-shrink: 0;
}
.comm-vote-btn:hover { border-color: var(--joy-primary); color: var(--joy-primary); }
.comm-vote-btn.voted { background: var(--joy-primary-soft); border-color: var(--joy-primary); color: var(--joy-primary); }
.comm-vote-count { font-weight: 600; }

[data-night] .comm-daily-quote-card { background: linear-gradient(135deg, rgba(0,153,153,0.06) 0%, var(--joy-neutral-900) 100%); }
[data-night] .comm-challenge-card { background: var(--joy-neutral-900); border-color: var(--joy-neutral-800); }
[data-night] .comm-challenge-source { background: var(--joy-neutral-950); border-color: var(--joy-neutral-800); }
[data-night] .comm-announcement-item { color: var(--joy-neutral-300); }
[data-night] .comm-announcement-title { color: var(--joy-neutral-100); }
[data-night] .comm-announcement-text { color: var(--joy-neutral-400); }

/* ===== 言值打赏 ===== */
.comm-tip-btn {
  background: none; border: 1px solid var(--joy-neutral-300); color: var(--joy-text-secondary);
  padding: 2px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: all .15s;
}
.comm-tip-btn:hover { border-color: var(--joy-state-warning); color: var(--joy-state-warning); }
.comm-tip-recipient { margin-bottom: 12px; }
.comm-tip-recipient p { margin: 0 0 4px; font-size: 14px; color: var(--joy-foreground); }
.comm-tip-hint { font-size: 12px; color: var(--joy-text-secondary); }
.comm-tip-amount-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comm-tip-unit { font-size: 14px; color: var(--joy-text-secondary); }
.comm-tip-quick { display: flex; gap: 4px; }
.comm-tip-quick-btn {
  background: var(--joy-neutral-100); border: 1px solid var(--joy-neutral-300); border-radius: 6px;
  padding: 4px 12px; font-size: 13px; cursor: pointer; transition: all .15s; color: var(--joy-foreground);
}
.comm-tip-quick-btn:hover { border-color: var(--joy-state-warning); color: var(--joy-state-warning); }
.comm-tip-range { font-size: 12px; color: var(--joy-text-secondary); margin-top: 4px; }

/* ===== 等级权益 ===== */
.comm-perk-level-card {
  border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; transition: transform .15s;
}
.comm-perk-level-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comm-perk-level-badge {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.comm-perk-level-name { font-size: 18px; font-weight: 700; color: var(--joy-foreground); margin: 0; }
.comm-perk-list { display: flex; flex-direction: column; gap: 10px; }
.comm-perk-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  background: rgba(255,255,255,0.6); border-radius: 8px; border: 1px solid var(--joy-neutral-200);
}
.comm-perk-icon { flex-shrink: 0; margin-top: 2px; }
.comm-perk-body { flex: 1; }
.comm-perk-name { font-weight: 600; font-size: 14px; color: var(--joy-foreground); margin-bottom: 2px; }
.comm-perk-desc { font-size: 13px; color: var(--joy-text-secondary); line-height: 1.5; }
.comm-perk-type {
  font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--joy-neutral-100);
  color: var(--joy-text-secondary); flex-shrink: 0; white-space: nowrap;
}

/* ===== 达人徽章 (社区页面) ===== */
.comm-badge-card {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 12px;
  border: 1px solid var(--joy-neutral-200); margin-bottom: 12px; transition: transform .15s;
}
.comm-badge-card.earned { background: rgba(16, 185, 129, 0.04); border-color: var(--joy-state-success); }
.comm-badge-card.locked { opacity: .7; }
.comm-badge-icon-wrap {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--joy-neutral-100); color: var(--joy-neutral-400); flex-shrink: 0;
}
.comm-badge-body { flex: 1; }
.comm-badge-name { font-size: 16px; font-weight: 700; color: var(--joy-foreground); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.comm-badge-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--joy-state-success); color: #fff;
}
.comm-badge-tag.locked { background: var(--joy-neutral-300); color: var(--joy-neutral-700); }
.comm-badge-desc { font-size: 13px; color: var(--joy-text-secondary); margin: 0 0 8px; }
.comm-badge-progress { height: 6px; background: var(--joy-neutral-100); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.comm-badge-progress-bar { height: 100%; background: var(--joy-primary); border-radius: 3px; transition: width .3s; }
.comm-badge-stats { font-size: 12px; color: var(--joy-text-secondary); margin: 0; }
.comm-badge-date { font-size: 12px; color: var(--joy-text-secondary); margin: 2px 0 0; }

/* ===== 个人中心达人徽章 ===== */
.pc-card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pc-badge-check-btn {
  background: var(--joy-primary); color: #fff; border: none; border-radius: 6px;
  padding: 4px 12px; font-size: 13px; cursor: pointer; transition: background .15s;
}
.pc-badge-check-btn:hover { background: var(--joy-primary-dark); }
.pc-badge-check-btn:disabled { opacity: .6; cursor: default; }
.pc-badge-list { display: flex; flex-direction: column; gap: 12px; }
.pc-badge-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 10px;
  border: 1px solid var(--joy-neutral-200); transition: transform .15s;
}
.pc-badge-card.earned { background: rgba(16, 185, 129, 0.04); border-color: var(--joy-state-success); }
.pc-badge-card.locked { opacity: .7; }
.pc-badge-icon {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--joy-neutral-100); color: var(--joy-neutral-400); flex-shrink: 0;
}
.pc-badge-info { flex: 1; min-width: 0; }
.pc-badge-name { font-size: 14px; font-weight: 600; color: var(--joy-foreground); margin: 0 0 2px; display: flex; align-items: center; gap: 6px; }
.pc-badge-tag { font-size: 10px; padding: 1px 6px; border-radius: 3px; background: var(--joy-state-success); color: #fff; }
.pc-badge-tag.locked { background: var(--joy-neutral-300); color: var(--joy-neutral-700); }
.pc-badge-desc { font-size: 12px; color: var(--joy-text-secondary); margin: 0 0 6px; }
.pc-badge-progress { height: 4px; background: var(--joy-neutral-100); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.pc-badge-progress-fill { height: 100%; background: var(--joy-primary); border-radius: 2px; transition: width .3s; }
.pc-badge-count { font-size: 11px; color: var(--joy-text-secondary); margin: 0; }

/* ===== 夜间模式 - 新增组件 ===== */
[data-night] .comm-tip-btn { border-color: var(--joy-neutral-700); color: var(--joy-neutral-400); }
[data-night] .comm-tip-quick-btn { background: var(--joy-neutral-800); border-color: var(--joy-neutral-700); color: var(--joy-neutral-200); }
[data-night] .comm-perk-item { background: rgba(255,255,255,0.04); border-color: var(--joy-neutral-800); }
[data-night] .comm-perk-name { color: var(--joy-neutral-100); }
[data-night] .comm-perk-desc { color: var(--joy-neutral-400); }
[data-night] .comm-perk-type { background: var(--joy-neutral-800); color: var(--joy-neutral-400); }
[data-night] .comm-perk-level-name { color: var(--joy-neutral-100); }
[data-night] .comm-badge-card { border-color: var(--joy-neutral-800); }
[data-night] .comm-badge-card.earned { background: rgba(16, 185, 129, 0.08); }
[data-night] .comm-badge-icon-wrap { background: var(--joy-neutral-800); }
[data-night] .comm-badge-name { color: var(--joy-neutral-100); }
[data-night] .comm-badge-desc { color: var(--joy-neutral-400); }
[data-night] .comm-badge-progress { background: var(--joy-neutral-800); }
[data-night] .comm-badge-stats { color: var(--joy-neutral-400); }
[data-night] .comm-badge-date { color: var(--joy-neutral-400); }
[data-night] .pc-badge-card { border-color: var(--joy-neutral-800); }
[data-night] .pc-badge-card.earned { background: rgba(16, 185, 129, 0.08); }
[data-night] .pc-badge-icon { background: var(--joy-neutral-800); }
[data-night] .pc-badge-name { color: var(--joy-neutral-100); }
[data-night] .pc-badge-desc { color: var(--joy-neutral-400); }
[data-night] .pc-badge-progress { background: var(--joy-neutral-800); }
[data-night] .pc-badge-count { color: var(--joy-neutral-400); }

/* ===== 每日一句保存为图片按钮 ===== */
.comm-daily-quote-save {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--joy-primary-30);
  background: var(--joy-primary-06); color: var(--joy-primary);
  border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.comm-daily-quote-save:hover {
  background: var(--joy-primary-12);
  border-color: var(--joy-primary);
}
.comm-daily-quote-save svg { flex-shrink: 0; }

/* ===== 成就系统 ===== */
.pc-achievement-count {
  font-size: 13px; font-weight: 600; color: var(--joy-primary);
  background: var(--joy-primary-soft); padding: 4px 12px;
  border-radius: 12px;
}
.pc-achievement-grid { display: flex; flex-direction: column; gap: 16px; }
.pc-achievement-category {}
.pc-achievement-category-title {
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--joy-neutral-100);
}
.pc-achievement-category-items { display: flex; flex-direction: column; gap: 10px; }
.pc-achievement-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-radius: 14px; border: 1px solid var(--joy-neutral-100);
  background: var(--joy-neutral-50); transition: all 0.25s;
}
.pc-achievement-card.earned {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
}
.pc-achievement-card.earned:hover { box-shadow: var(--joy-shadow-sm); }
.pc-achievement-card.locked { opacity: 0.65; }
.pc-achievement-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--joy-neutral-100); transition: all 0.25s;
}
.pc-achievement-card.earned .pc-achievement-icon { color: #fff; }
.pc-achievement-info { flex: 1; min-width: 0; }
.pc-achievement-name {
  font-size: 14px; font-weight: 600; color: var(--joy-text-primary);
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.pc-achievement-tag {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 8px; background: rgba(16, 185, 129, 0.12);
  color: var(--joy-state-success);
}
.pc-achievement-tag.locked {
  background: var(--joy-neutral-100); color: var(--joy-neutral-400);
}
.pc-achievement-desc {
  font-size: 12px; color: var(--joy-text-secondary); line-height: 1.5;
  margin-bottom: 8px;
}
.pc-achievement-progress {
  height: 6px; background: var(--joy-neutral-100); border-radius: 3px;
  overflow: hidden; margin-bottom: 4px;
}
.pc-achievement-progress-fill {
  height: 100%; border-radius: 3px; transition: width 0.5s;
}
.pc-achievement-count {
  font-size: 11px; color: var(--joy-text-secondary); margin: 0;
}

/* 夜间模式 - 成就系统 */
[data-night] .pc-achievement-card { border-color: var(--joy-neutral-800); }
[data-night] .pc-achievement-card.earned { background: rgba(16, 185, 129, 0.06); }
[data-night] .pc-achievement-icon { background: var(--joy-neutral-800); }
[data-night] .pc-achievement-name { color: var(--joy-neutral-100); }
[data-night] .pc-achievement-desc { color: var(--joy-neutral-400); }
[data-night] .pc-achievement-progress { background: var(--joy-neutral-800); }
[data-night] .pc-achievement-count { color: var(--joy-neutral-400); }
[data-night] .pc-achievement-category-title { border-bottom-color: var(--joy-neutral-800); }

/* ========================================
   UI优化 v20260902v2 — 社区 + 个人中心
   ======================================== */

/* ===== 社区占位页：每日金句卡片 ===== */
.comm-daily-quote-wrapper {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
}
.comm-daily-quote-wrapper > div {
  background: linear-gradient(135deg, var(--joy-card) 0%, var(--joy-emerald-50) 100%) !important;
  border: 1px solid var(--joy-emerald-100) !important;
  border-radius: var(--joy-radius-xl) !important;
  padding: 28px 32px !important;
  box-shadow: var(--joy-shadow-sm) !important;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--joy-transition), transform var(--joy-transition);
}
.comm-daily-quote-wrapper > div:hover {
  box-shadow: var(--joy-shadow-md) !important;
  transform: translateY(-2px);
}
.comm-daily-quote-wrapper > div::before {
  content: '\201C';
  position: absolute; top: -8px; left: 20px;
  font-size: 72px; font-family: Georgia, serif;
  color: var(--joy-emerald-200); opacity: 0.5;
  line-height: 1; pointer-events: none;
}

/* ===== 社区占位页：Coming Soon 区段 ===== */
.info-page .community-coming-soon .icon-wrap {
  animation: comm-float 3s ease-in-out infinite;
}
@keyframes comm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.info-page .community-coming-soon h2 {
  letter-spacing: -0.01em;
}
.info-page .community-coming-soon .coming-soon-text {
  max-width: 520px; line-height: 1.8;
}

/* ===== 社区占位页：话题卡片增强 ===== */
.info-page .community-topic-card {
  border-radius: var(--joy-radius-xl);
}
.info-page .community-topic-card .topic-icon {
  position: relative;
}
.info-page .community-topic-card .topic-icon::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: inherit; background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  opacity: 0; transition: opacity var(--joy-transition);
  z-index: -1; filter: blur(8px);
}
.info-page .community-topic-card:hover .topic-icon::after {
  opacity: 0.3;
}
.info-page .community-topics {
  gap: var(--joy-s-4) var(--joy-s-5);
}

/* ===== 社区SPA：导航增强 ===== */
.comm-main-nav {
  background: var(--joy-surface);
  border-radius: var(--joy-radius-lg);
  padding: 6px 8px;
  border: 1px solid var(--joy-border);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--joy-border);
}
.comm-nav-group {
  border-radius: var(--joy-radius-md);
  padding: 2px;
}
.comm-nav-btn {
  border-radius: var(--joy-radius-md);
  border-bottom: none;
  padding: 8px 14px;
}
.comm-nav-btn.active {
  background: var(--joy-primary);
  color: var(--joy-primary-foreground);
  border-bottom: none;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--joy-primary-25);
}
.comm-nav-btn:hover:not(.active) {
  background: var(--joy-neutral-100);
}
.comm-nav-divider {
  margin: 4px 8px;
}
[data-night] .comm-main-nav {
  background: var(--joy-neutral-900);
  border-color: var(--joy-neutral-800);
}
[data-night] .comm-nav-btn:hover:not(.active) {
  background: var(--joy-neutral-800);
}

/* ===== 社区SPA：Tab增强 ===== */
.comm-tab {
  border-radius: var(--joy-radius-full);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.comm-tab.active {
  box-shadow: 0 2px 8px var(--joy-primary-25);
}
.comm-sort-btn {
  border-radius: var(--joy-radius-sm);
  padding: 6px 12px;
}
.comm-search input {
  border-radius: var(--joy-radius-md);
  transition: all 0.25s ease;
}
.comm-search input:focus {
  box-shadow: 0 0 0 3px var(--joy-primary-soft);
}
.comm-new-btn {
  border-radius: var(--joy-radius-md);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 20%, transparent);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.comm-new-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

/* ===== 社区SPA：内容卡片 ===== */
.comm-content {
  gap: 14px;
}

/* ===== 个人中心：Header增强 ===== */
.pc-container .pc-header {
  background: linear-gradient(135deg, var(--joy-emerald-50) 0%, var(--joy-card) 50%, var(--joy-emerald-50) 100%);
  border: 1px solid var(--joy-emerald-100);
  position: relative;
  overflow: hidden;
}
.pc-container .pc-header::after {
  content: ''; position: absolute;
  bottom: -30px; right: -20px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--joy-emerald-200), transparent 70%);
  opacity: 0.15; filter: blur(40px);
  pointer-events: none;
}

/* ===== 个人中心：头像增强 ===== */
.pc-container .avatar-large {
  position: relative;
}
.pc-container .avatar-large::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-400));
  opacity: 0; transition: opacity 0.3s ease;
  z-index: -1; filter: blur(6px);
}
.pc-container .avatar-large:hover::after {
  opacity: 0.4;
}

/* ===== 个人中心：用户信息徽章 ===== */
.pc-container .user-info-badge {
  background: linear-gradient(135deg, var(--joy-surface) 0%, var(--joy-emerald-50) 100%);
  border: 1px solid var(--joy-emerald-100);
  border-radius: var(--joy-radius-lg);
  position: relative;
  overflow: hidden;
}
.pc-container .user-info-badge::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--joy-primary), var(--joy-emerald-400));
  opacity: 0.6;
}
.pc-container .user-info-badge-points {
  box-shadow: 0 2px 6px color-mix(in srgb, var(--joy-primary) 20%, transparent);
  transition: all 0.25s ease;
}
.pc-container .user-info-badge-points:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

/* ===== 个人中心：签到日历增强 ===== */
.pc-container .checkin-day.checked {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-emerald-500));
  box-shadow: 0 2px 6px var(--joy-primary-25);
}
.pc-container .checkin-day.today {
  border: 2px solid var(--joy-primary);
  font-weight: 700;
}
.pc-container .checkin-btn {
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 20%, transparent);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pc-container .checkin-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}

/* ===== 个人中心：进度条增强 ===== */
/* 免费体验 / 套餐：浅色底 = 未使用，深色填充 = 已使用 */
.pc-container .pc-trial-bar-fill {
  background: linear-gradient(90deg, var(--joy-emerald-400), var(--joy-primary));
  position: relative;
  overflow: hidden;
}
.pc-container .pc-trial-bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progress-shimmer 2s linear infinite;
}
/* 语音包：浅色底 = 未使用，深色填充 = 已使用 */
.pc-container .pc-topup-box .pc-trial-bar {
  background: rgba(255, 149, 0, 0.12);
}
.pc-container .pc-topup-bar-fill {
  background: linear-gradient(90deg, #ffb300, #ff9500);
  position: relative;
  overflow: hidden;
}
.pc-container .pc-topup-bar-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progress-shimmer 2s linear infinite;
}
@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== 个人中心：套餐升级卡片 ===== */
.pc-container .pc-upgrade-card {
  border-radius: var(--joy-radius-xl);
}
.pc-container .pc-upgrade-card::before {
  border-radius: var(--joy-radius-xl) var(--joy-radius-xl) 0 0;
}

/* ===== 个人中心：术语Tab增强 ===== */
.pc-container .term-tab-btn {
  border-radius: var(--joy-radius-full);
  transition: all 0.25s ease;
}
.pc-container .term-tab-btn.active {
  box-shadow: 0 2px 6px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}
.pc-container .term-add-btn {
  border-radius: var(--joy-radius-md);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}
.pc-container .term-batch-btn.primary {
  background: linear-gradient(135deg, var(--joy-emerald-500), var(--joy-primary));
  border-color: transparent;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--joy-primary) 20%, transparent);
}
.pc-container .term-batch-btn.primary:hover {
  background: linear-gradient(135deg, var(--joy-primary), var(--joy-primary-dark, var(--joy-primary)));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--joy-primary) 30%, transparent);
}
.pc-container .term-input {
  border-radius: var(--joy-radius-sm);
}
.pc-container .term-search-box input {
  border-radius: var(--joy-radius-md) !important;
}

/* ===== 个人中心：徽章卡片增强 ===== */
.pc-badge-card {
  border-radius: var(--joy-radius-lg) !important;
  transition: all 0.25s ease !important;
}
.pc-badge-card.earned {
  border-color: var(--joy-emerald-300) !important;
  background: linear-gradient(135deg, var(--joy-emerald-50) 0%, var(--joy-card) 100%) !important;
}
.pc-badge-icon {
  border-radius: var(--joy-radius-full) !important;
  transition: all 0.25s ease;
}
.pc-badge-card.earned .pc-badge-icon {
  background: linear-gradient(135deg, var(--joy-emerald-100), var(--joy-emerald-200)) !important;
  color: var(--joy-emerald-700) !important;
  box-shadow: 0 2px 8px var(--joy-primary-15);
}
.pc-achievement-card {
  border-radius: var(--joy-radius-lg) !important;
  transition: all 0.25s ease !important;
}
.pc-achievement-card.earned {
  background: linear-gradient(135deg, var(--joy-emerald-50) 0%, var(--joy-card) 100%) !important;
  border-color: var(--joy-emerald-200) !important;
}
.pc-achievement-icon {
  border-radius: var(--joy-radius-full) !important;
}
.pc-achievement-card.earned .pc-achievement-icon {
  background: linear-gradient(135deg, var(--joy-emerald-100), var(--joy-emerald-200)) !important;
  color: var(--joy-emerald-700) !important;
}
.pc-achievement-progress-fill {
  background: linear-gradient(90deg, var(--joy-emerald-400), var(--joy-primary)) !important;
}

/* ===== 个人中心：折叠按钮增强 ===== */
.pc-container .collapsible-toggle-btn {
  border-radius: 0 0 var(--joy-radius-xl) var(--joy-radius-xl);
  transition: all 0.25s ease;
}
.pc-container .collapsible-toggle-btn:hover {
  background: var(--joy-emerald-50);
}

/* ===== 个人中心：表单字段增强 ===== */
.pc-container .pc-field input,
.pc-container .pc-field select {
  transition: all 0.25s ease !important;
}
.pc-container .pc-field input:hover:not(:focus),
.pc-container .pc-field select:hover:not(:focus) {
  border-color: var(--joy-neutral-300) !important;
}

/* ===== 个人中心：订阅项增强 ===== */
.pc-container .pc-subscription-item {
  border-radius: var(--joy-radius-lg) !important;
  transition: all 0.25s ease !important;
}
.pc-container .pc-subscription-item:hover {
  border-color: var(--joy-emerald-200) !important;
  box-shadow: var(--joy-shadow-xs) !important;
}
.pc-container .pc-sub-status {
  border-radius: var(--joy-radius-full) !important;
}

/* ===== 个人中心：导出按钮增强 ===== */
.pc-export-btn {
  border-radius: var(--joy-radius-md) !important;
  transition: all 0.25s ease !important;
}

/* ===== 个人中心：BYOK入口链接增强 ===== */
.byok-entry-link {
  transition: color 0.2s ease !important;
}
.byok-entry-link:hover {
  color: var(--joy-emerald-700) !important;
}

/* ===== 夜间模式适配 ===== */
[data-night] .comm-main-nav { background: var(--joy-neutral-900); }
[data-night] .pc-container .pc-header { background: linear-gradient(135deg, var(--joy-neutral-900) 0%, var(--joy-neutral-800) 50%, var(--joy-neutral-900) 100%); }
[data-night] .pc-container .user-info-badge { background: linear-gradient(135deg, var(--joy-neutral-900) 0%, var(--joy-neutral-800) 100%); }

/* ===== 响应式微调 ===== */
@media (max-width: 768px) {
  .comm-main-nav { border-radius: var(--joy-radius-md); }
  .comm-nav-btn { padding: 6px 10px; font-size: 12px; }
  .info-page .community-topics { gap: 12px; }
  .comm-daily-quote-wrapper > div { padding: 20px 24px !important; }
  .comm-daily-quote-wrapper > div::before { font-size: 48px; top: -4px; left: 12px; }
}

/* ========================================
   会议界面UI调整 v20260902v4
   ======================================== */

/* ===== 底部栏右侧控制组 ===== */
.bottom-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* ===== 浮窗按钮在对话导出右侧（相同样式） ===== */
.transcript-footer-right #floatWindowBtn {
  min-height: 28px;
  font-size: 11px;
  padding: 2px 12px;
  border-radius: var(--joy-radius-md);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* ===== 会议标题与参会人数可拖拽分隔条 ===== */
.footer-resize-group {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.footer-resize-handle {
  width: 6px;
  height: 22px;
  cursor: col-resize;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  margin: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.footer-resize-handle::before {
  content: '';
  width: 2px;
  height: 14px;
  background: var(--joy-neutral-300);
  border-radius: 1px;
  transition: background 0.15s ease, height 0.15s ease;
}

.footer-resize-handle:hover::before,
.footer-resize-handle.dragging::before {
  background: var(--joy-primary);
  height: 20px;
}

.footer-resize-handle::after {
  content: '';
  position: absolute;
  inset: -4px -2px;
}

/* When dragging, disable text selection globally */
.footer-resize-group.dragging {
  user-select: none;
  -webkit-user-select: none;
}

/* Meeting name input: flexible width, constrained */
.footer-resize-group .meeting-name-input {
  flex: 1 1 auto;
  min-width: 80px;
  max-width: none;
}

.footer-resize-group .participant-count-group {
  flex-shrink: 0;
}



/* ===== 社区板块开发中，暂时隐藏社区相关入口（超管可见） ===== */
/* 超管邮箱: perrytenn@hotmail.com — JS在body添加.super-admin类 */
body:not(.super-admin) .footer-column.community-col { display: none; }
body:not(.super-admin) .footer-bottom-links a[href="/community/"] { display: none; }
body:not(.super-admin) .footer-bottom-links a[href="/points-guide/"] { display: none; }
body:not(.super-admin) .nav-links a[href*="community"] { display: none; }
body:not(.super-admin) .nav-links a[href*="points-guide"] { display: none; }
body:not(.super-admin) .nav-actions a[href*="community"] { display: none; }
body:not(.super-admin) #achievementCard { display: none; }
body:not(.super-admin) #badgeCard { display: none; }
body:not(.super-admin) #shareToCommunityBtn { display: none; }


/* ===== 译文颜色：经典青 ===== */
.realtime-translation {
  color: #008B8B !important;
}
.transcript-translation {
  color: #008B8B;
}


/* 认证弹窗紧凑布局，确保一屏显示完整 */
.auth-card {
  padding: 22px 26px !important;
  max-width: 400px !important;
}
.auth-card .tab-switch {
  margin-bottom: 16px !important;
}
.auth-card .modal-subtitle {
  margin-bottom: 0 !important;
}
.auth-card .auth-form {
  gap: 12px !important;
  margin-top: 16px !important;
}
.auth-card .auth-form input {
  min-height: 42px !important;
}
.auth-card .form-note {
  margin-top: 10px !important;
  font-size: 12px !important;
}

/* ===== 2026-09-16 会议页新增：会议计时器（秒表） + 逐词高亮 ===== */
.meeting-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: #6b7280;
  background: rgba(0, 153, 153, 0.08);
  border: 1px solid transparent;
  white-space: nowrap;
}
.meeting-timer svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.75; }
.meeting-timer.running { color: var(--joy-primary); border-color: rgba(0, 153, 153, 0.28); }
.meeting-timer.running svg { opacity: 1; }
html[data-night="true"] .meeting-timer { background: rgba(0, 153, 153, 0.18); color: #cbd5e1; }
html[data-night="true"] .meeting-timer.running { color: #7fd8d8; }

/* 逐词高亮（2026-09-16，参考 MirrorCaption 的 word-level highlight） */
.transcript-original .wh { border-radius: 3px; transition: color 0.22s ease; }
.transcript-original .wh-new { color: var(--joy-primary); font-weight: 600; }
html[data-night="true"] .transcript-original .wh-new { color: #7fd8d8; }
.transcript-translation.wh-anim .wh { opacity: 0.26; transition: opacity 0.18s ease; }
.transcript-translation.wh-anim .wh.wh-on { opacity: 1; }
