/* ============ 同频 ToneLink · 白色主题（halo.run 视觉语言 + 微信通话交互） ============ */
:root {
  /* 中性色：halo 式白 / 浅灰画布 + gray 系文字 */
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink-deep: #111827;
  --ink: #1f2937;
  --charcoal: #374151;
  --steel: #6b7280;
  --stone: #9ca3af;
  --hairline: #e5e7eb;
  --hairline-soft: #f3f4f6;
  /* 品牌与语义色：blue 强调 + 微信绿 / 微信红 */
  --primary: #3b82f6;
  --primary-deep: #2563eb;
  --primary-soft: rgba(59, 130, 246, .08);
  --success: #07c160;
  --success-soft: rgba(7, 193, 96, .1);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, .12);
  --danger: #fa5151;
  --danger-soft: rgba(250, 81, 81, .08);
  --info: #0ea5e9;
  --info-soft: rgba(14, 165, 233, .1);
  --bubble: #95ec69;
  --chat-bg: #ededed;
  --btn-dark: #1f2937;
  /* 兼容旧变量名 */
  --color-indigo: #3b82f6;
  --color-mist: #f7f8fa;
  --color-cloud: #ffffff;
  --color-blossom: #d63d84;
  --color-mint: #07c160;
  --color-amber: #f59e0b;
  --indigo-deep: #2563eb;
  --indigo-tint: rgba(59, 130, 246, .08);
  --indigo-tint2: rgba(59, 130, 246, .16);
  --blossom-tint: rgba(214, 61, 132, .1);
  --mint-tint: rgba(7, 193, 96, .1);
  --amber-tint: rgba(245, 158, 11, .12);
  --danger-tint: rgba(250, 81, 81, .08);
  --info-tint: rgba(14, 165, 233, .1);
  --bg0: #f7f8fa;
  --bg1: #ffffff;
  --surface2: #f3f4f6;
  --surface3: #e5e7eb;
  --line: #f3f4f6;
  --line-strong: #e5e7eb;
  --violet: #8b5cf6;
  --cyan: #0ea5e9;
  --magenta: #d63d84;
  --amber: #f59e0b;
  --green: #07c160;
  --red: #fa5151;
  --blue: #3b82f6;
  --text: #374151;
  --text2: #6b7280;
  --text3: #9ca3af;
  --grad-brand: linear-gradient(90deg, #2563eb, #60a5fa);
  --grad-hot: linear-gradient(135deg, #fa5151, #ff7a45);
  --grad-cool: linear-gradient(135deg, #3b82f6, #07c160);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 20px;
  --r-full: 100px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-hover: 0 10px 28px -12px rgba(17, 24, 39, .18);
  --shadow-card: 0 16px 48px -16px rgba(17, 24, 39, .14);
  --shadow-inset: inset 0 2px 6px rgba(17, 24, 39, .06);
  --glow-v: 0 6px 20px -6px rgba(59, 130, 246, .35);
  --glow-c: 0 6px 20px -6px rgba(14, 165, 233, .3);
  --ease-soft: cubic-bezier(.2, .7, .3, 1);
  --t-fast: .16s;
  --t-med: .22s;
  --t-slow: .32s;
  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--charcoal);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -.14px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(59, 130, 246, .2); color: var(--ink-deep); }

/* 滚动条（取自本主题色板） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 100px; border: 2px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
* { scrollbar-width: thin; scrollbar-color: #d1d5db var(--canvas); }

/* ============ 背景层：浅色极光 + 细网格 + 波形 + 颗粒 ============ */
.bg-layer {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(1100px 520px at 72% -12%, rgba(59, 130, 246, .07), transparent 62%), radial-gradient(880px 480px at -8% 108%, rgba(7, 193, 96, .05), transparent 60%), var(--canvas);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .55; will-change: transform; }
.aurora.a1 { width: 46vw; height: 46vw; left: -12vw; top: -16vw; background: radial-gradient(circle at 40% 40%, rgba(59, 130, 246, .12), transparent 65%); animation: auroraDrift 26s ease-in-out infinite alternate; }
.aurora.a2 { width: 40vw; height: 40vw; right: -10vw; top: 4vh; background: radial-gradient(circle at 55% 45%, rgba(14, 165, 233, .1), transparent 65%); animation: auroraDrift 32s ease-in-out infinite alternate-reverse; }
.aurora.a3 { width: 36vw; height: 36vw; left: 28vw; bottom: -20vw; background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, .08), transparent 65%); animation: auroraDrift 38s ease-in-out infinite alternate; }
@keyframes auroraDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vw, 3vh, 0) scale(1.1); } }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17, 24, 39, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 39, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 480px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 480px at 50% 0%, #000 0%, transparent 78%);
}
.bg-wave { position: absolute; left: 0; right: 0; bottom: -6px; height: 160px; opacity: .5; }
.bg-wave svg { width: 200%; height: 100%; display: block; animation: waveSlide 26s linear infinite; }
@keyframes waveSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

#app { min-height: 100vh; }
.view { animation: fadeUp var(--t-slow) var(--ease-soft) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============ 基础组件 ============ */
.muted { color: var(--steel); }
.dim { color: var(--stone); }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .02em; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.spacer { flex: 1; }
.wrap { flex-wrap: wrap; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast) ease-out; }
a:hover { color: var(--primary-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; border: 1px solid var(--hairline);
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: -.14px; color: var(--charcoal);
  background: var(--surface); cursor: pointer; user-select: none;
  transition: background var(--t-fast) ease-out, border-color var(--t-fast) ease-out, color var(--t-fast) ease-out, transform var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out;
  white-space: nowrap;
}
.btn:hover { border-color: #d1d5db; background: var(--surface-soft); color: var(--ink-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--btn-dark); color: #fff; border-color: var(--btn-dark); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; box-shadow: var(--shadow-hover); }
.btn-hot { background: var(--success); border-color: var(--success); color: #fff; }
.btn-hot:hover { background: #06ad56; border-color: #06ad56; color: #fff; box-shadow: 0 8px 22px -8px rgba(7, 193, 96, .5); }
.btn-ghost { background: var(--surface); border: 1px solid var(--hairline); color: var(--steel); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-deep); background: var(--surface); }
.btn-danger { background: var(--danger-soft); border: 1px solid rgba(250, 81, 81, .35); color: var(--danger); }
.btn-danger:hover { background: rgba(250, 81, 81, .14); border-color: var(--danger); color: #e03e3e; box-shadow: 0 8px 22px -10px rgba(250, 81, 81, .4); }
.btn-success { background: var(--success-soft); border: 1px solid rgba(7, 193, 96, .35); color: #059048; }
.btn-success:hover { background: rgba(7, 193, 96, .16); border-color: var(--success); color: #059048; }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; }

.input, .select, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--hairline); color: var(--ink-deep);
  font-family: var(--font); font-size: 14px;
  transition: border-color var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out;
}
.input:hover, .select:hover, textarea.input:hover { border-color: #d1d5db; }
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}
.input::placeholder { color: var(--stone); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.field { margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-err { color: var(--danger); font-size: 13px; min-height: 20px; margin: 4px 0 8px; font-weight: 600; }
.form-hint { font-size: 12px; color: var(--stone); margin-top: 5px; }

.card {
  background: var(--surface);
  border: 1px solid #eceff4; border-radius: var(--r-xl);
  padding: 24px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 26px -18px rgba(16, 24, 40, .14);
}
.card-title { position: relative; font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-left: 13px; display: flex; align-items: center; gap: 9px; color: var(--ink-deep); }
.card-title::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), #60a5fa); }
.card-title svg { color: var(--primary); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px;
  border-radius: var(--r-full); font-size: 12.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--steel);
}
.chip-online { color: #059048; border-color: rgba(7, 193, 96, .35); background: var(--success-soft); }
.chip-live { color: var(--danger); border-color: rgba(250, 81, 81, .35); background: var(--danger-soft); }
.chip-warn { color: #b45309; border-color: rgba(245, 158, 11, .4); background: var(--warning-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.pulse { animation: blink 1.6s ease infinite; }

.seg { display: inline-flex; background: var(--surface2); border-radius: var(--r-full); padding: 4px; gap: 4px; }
.seg-item {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 18px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--steel);
  cursor: pointer; border: none; background: transparent; font-family: var(--font);
  transition: all var(--t-fast) ease-out;
}
.seg-item:hover { color: var(--ink-deep); }
.seg-item.active { background: var(--surface); color: var(--ink-deep); font-weight: 700; box-shadow: var(--shadow); }
.seg-block { display: flex; width: 100%; }
.seg-block .seg-item { flex: 1; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch-track {
  width: 44px; height: 24px; border-radius: 100px; background: var(--surface3);
  position: relative; transition: background var(--t-fast) ease-out; flex-shrink: 0;
}
.switch-track::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform var(--t-med) var(--ease-soft);
}
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch-label { font-size: 13.5px; font-weight: 600; color: var(--steel); }

.avatar { border-radius: 24%; object-fit: cover; flex-shrink: 0; display: block; background: var(--surface2); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  border-radius: var(--r-full); font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--surface2); border: 1px solid transparent; color: var(--charcoal);
  transition: all var(--t-fast) ease-out; font-family: var(--font);
}
.tag:hover { background: var(--primary-soft); color: var(--primary-deep); transform: translateY(-1px); }
.tag:active { transform: translateY(0); }
.tag.selected { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--glow-v); }
.tag.selected .cat-dot { background: #fff !important; }
.tag.static { cursor: default; }
.tag.static:hover { transform: none; background: var(--surface2); color: var(--charcoal); }
.tag.common { background: var(--primary-soft); border-color: rgba(59, 130, 246, .35); color: var(--primary-deep); }
.tag .cat-dot { width: 6px; height: 6px; border-radius: 2px; }
.tag-groups { display: flex; flex-direction: column; gap: 14px; }
.tag-group-name { font-size: 12px; font-weight: 700; color: var(--stone); letter-spacing: .12em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tag-group-name::after { content: ""; flex: 1; height: 1px; background: var(--hairline-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; }
.pill.ok { background: var(--success-soft); color: #059048; }
.pill.warn { background: var(--warning-soft); color: #b45309; }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.info { background: var(--primary-soft); color: var(--primary-deep); }
.pill.dim { background: var(--surface2); color: var(--steel); }

/* ============ Toast / Modal ============ */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  padding: 13px 18px; border-radius: var(--r-lg); font-size: 13.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--hairline); color: var(--ink);
  box-shadow: var(--shadow-card); animation: toastIn var(--t-fast) ease-out both;
  display: flex; align-items: flex-start; gap: 9px; line-height: 1.45;
}
.toast.ok { border-color: rgba(7, 193, 96, .4); }
.toast.ok svg { color: var(--success); }
.toast.err { border-color: rgba(250, 81, 81, .45); }
.toast.err svg { color: var(--danger); }
.toast.info svg { color: var(--primary); }
.toast.out { animation: toastOut .2s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1100; background: rgba(17, 24, 39, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeUp .2s ease both;
}
.modal {
  width: 100%; max-width: 460px; background: var(--surface);
  border: 1px solid var(--hairline-soft); border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-card); animation: popIn var(--t-fast) ease-out both;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: var(--ink-deep); }
.modal-title svg { color: var(--primary); }
.modal-body { color: var(--steel); font-size: 14px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ============ 公告条 ============ */
.ann-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 18px; background: var(--ink-deep); color: #e5e7eb; font-size: 13px; font-weight: 600; text-align: center;
}
.ann-bar svg { color: var(--amber); flex-shrink: 0; }
.ann-bar button {
  background: none; border: none; color: #93c5fd; font-family: var(--font); font-size: 13px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.ann-bar button:hover { color: #fff; }

/* ============ 落地页导航（halo 式吸顶白导航） ============ */
.top-nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline-soft); box-shadow: var(--shadow);
}
.top-nav-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 12px 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 13px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--charcoal);
  transition: all var(--t-fast) ease-out;
}
.nav-link:hover { background: #eef2ff; color: #2f6bff; }
.top-nav .btn { height: 32px; padding: 0 18px; font-size: 13px; }
.top-nav .btn.btn-sm { height: 32px; padding: 0 14px; gap: 6px; }

/* ============ 认证 / 落地页 ============ */
.auth-wrap { min-height: calc(100vh - 61px); }
.brand-logo { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--ink-deep); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--glow-v);
}
.brand-sub { font-size: 10px; font-weight: 700; color: var(--stone); letter-spacing: .24em; margin-top: 1px; font-family: var(--mono); }
.hero-center { max-width: 1160px; margin: 0 auto; padding: 72px 24px 8px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--r-full);
  background: var(--primary-soft); border: 1px solid rgba(59, 130, 246, .25); color: var(--primary-deep); font-size: 13px; font-weight: 700; margin-bottom: 22px;
}
.hero-center h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.15; font-weight: 800; letter-spacing: -1.4px; color: var(--ink-deep); }
.hero-center h1 .grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-center p.lead { margin: 18px auto 0; font-size: 16.5px; color: var(--steel); max-width: 620px; line-height: 1.8; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.news-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.news-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--hairline); font-size: 12.5px; font-weight: 600; color: var(--steel);
  box-shadow: var(--shadow);
}
.news-chip svg { flex-shrink: 0; }
.trust-dots { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 18px; font-size: 13px; color: var(--steel); font-weight: 500; }
.trust-dots span { display: inline-flex; align-items: center; gap: 6px; }
.trust-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* 产品演示卡（halo 式大截图卡） */
.demo-card {
  margin: 40px auto 0; max-width: 960px; background: var(--surface); text-align: left;
  border: 1px solid var(--hairline-soft); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card); position: relative;
}
.demo-chrome { display: flex; align-items: center; gap: 6px; padding: 11px 16px; background: var(--surface-soft); border-bottom: 1px solid var(--hairline-soft); }
.demo-chrome i { width: 10px; height: 10px; border-radius: 50%; }
.demo-chrome i:nth-child(1) { background: #ff5f57; }
.demo-chrome i:nth-child(2) { background: #febc2e; }
.demo-chrome i:nth-child(3) { background: #28c840; }
.demo-url { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--steel); }
.demo-live { margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--danger); }
.demo-body { padding: 22px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
.demo-left { min-width: 0; }
.demo-input {
  display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: var(--r-full);
  background: var(--surface2); border: 1px solid var(--hairline-soft); font-size: 12.5px; color: var(--steel); margin-bottom: 14px;
}
.demo-input svg { color: var(--stone); flex-shrink: 0; }
.demo-input .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-input em {
  margin-left: auto; flex-shrink: 0; font-style: normal; padding: 4px 12px; border-radius: var(--r-full);
  background: var(--btn-dark); color: #fff; font-size: 11px; font-weight: 700;
  animation: blink 1.6s ease infinite;
}
.demo-flow { font-family: var(--mono); font-size: 12px; line-height: 2.05; padding: 2px 4px 0; }
.demo-flow div { display: flex; align-items: center; gap: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-flow .ok { color: #059048; }
.demo-flow .run { color: var(--primary-deep); font-weight: 700; }
.demo-flow .wait { color: var(--stone); }
.demo-flow .mk { width: 12px; text-align: center; flex-shrink: 0; }
.demo-flow .spinner { width: 11px; height: 11px; border-width: 2px; }
.demo-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface2); border-radius: var(--r-full); margin-bottom: 12px; }
.demo-tabs span { flex: 1; text-align: center; padding: 5px 10px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 700; color: var(--steel); }
.demo-tabs span.active { background: var(--surface); color: var(--ink-deep); box-shadow: var(--shadow); }
.demo-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-tile { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .08); }
.demo-tile .demo-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.demo-tile .who {
  position: absolute; left: 7px; top: 7px; display: flex; align-items: center; gap: 5px;
  background: rgba(17, 24, 39, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 8px; padding: 3px 7px; font-size: 10px; font-weight: 700; color: #fff;
}
.demo-tile .who span { color: rgba(255, 255, 255, .65); font-weight: 500; }
.demo-tile .live { position: absolute; right: 7px; top: 7px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; background: rgba(250, 81, 81, .92); color: #fff; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; font-family: var(--mono); }
.demo-tile .ctl { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.demo-tile .ctl svg { width: 20px; height: 20px; padding: 4px; box-sizing: border-box; background: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 50%; color: #fff; }
.demo-tile .ctl svg:last-child { background: rgba(250, 81, 81, .92); color: #fff; }

.auth-stats { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; padding: 40px 24px 8px; max-width: 960px; margin: 0 auto; }
.auth-stats .stat { text-align: center; min-width: 96px; }
.auth-stats .stat-num { font-size: 32px; font-weight: 800; color: var(--ink-deep); line-height: 1; letter-spacing: -.8px; }
.auth-stats .stat-label { font-size: 13px; color: var(--steel); margin-top: 8px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; }
.auth-stats .stat-divider { width: 1px; height: 38px; background: var(--hairline); }

/* 卖点条目（认证页左栏） */
.pitch-item { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; }
.pitch-item .pi-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.pitch-item b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink-deep); }
.pitch-item span { font-size: 13px; color: var(--steel); }
.auth-side { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline-soft); box-shadow: var(--shadow); max-width: 460px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); border-radius: 50%; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }
.auth-side p { font-size: 12.5px; color: var(--steel); line-height: 1.5; }
.auth-side p b { color: var(--ink); }
/* ============ 独立认证页：左品牌展示 + 右表单 ============ */
.brand-btn { background: none; border: none; cursor: pointer; font-family: var(--font); }
#home-brand { cursor: pointer; }
.nav-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--steel); font-weight: 600; }
.nav-hint svg { color: var(--success); }
.auth-page { display: grid; grid-template-columns: minmax(400px, 46%) 1fr; min-height: calc(100vh - 61px); }
.auth-brand-panel {
  position: relative; overflow: hidden; display: flex;
  border-right: 1px solid var(--hairline-soft);
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 55%, #eefaf3 100%);
}
.abp-bg { position: absolute; inset: 0; pointer-events: none; }
.abp-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.abp-blob.b1 { width: 340px; height: 340px; left: -90px; top: -70px; background: radial-gradient(circle, rgba(59, 130, 246, .16), transparent 65%); animation: auroraDrift 24s ease-in-out infinite alternate; }
.abp-blob.b2 { width: 300px; height: 300px; right: -70px; top: 32%; background: radial-gradient(circle, rgba(7, 193, 96, .13), transparent 65%); animation: auroraDrift 30s ease-in-out infinite alternate-reverse; }
.abp-blob.b3 { width: 280px; height: 280px; left: 24%; bottom: -110px; background: radial-gradient(circle, rgba(139, 92, 246, .12), transparent 65%); animation: auroraDrift 34s ease-in-out infinite alternate; }
.abp-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(17, 24, 39, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 39, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 520px at 30% 20%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(700px 520px at 30% 20%, #000, transparent 80%);
}
.abp-inner { position: relative; margin: auto; padding: 40px 80px; max-width: 620px; width: 100%; display: flex; flex-direction: column; }
.abp-inner .hero-eyebrow { align-self: flex-start; }
.abp-title { font-size: clamp(30px, 3vw, 42px); line-height: 1.2; font-weight: 800; letter-spacing: -1px; color: var(--ink-deep); margin-top: 14px; }
.abp-title .grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.abp-lead { margin-top: 10px; color: var(--steel); font-size: 14.5px; line-height: 1.75; max-width: 440px; }
.abp-pitch { margin-top: 12px; }
.abp-pitch .pitch-item { padding: 7px 0; }
.auth-brand-panel .auth-side { margin-top: 12px; max-width: none; }
.abp-collage { position: relative; height: 176px; margin-top: 18px; }
.abp-card {
  --rot: 0deg;
  position: absolute; width: 124px; padding: 9px 9px 11px; text-align: center;
  background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: 14px; box-shadow: var(--shadow-card);
  transform: rotate(var(--rot)); animation: floatCard 7s ease-in-out infinite;
}
.abp-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 62%; border-radius: 10px; display: block; }
.abp-card b { display: block; margin-top: 7px; font-size: 12px; color: var(--ink-deep); }
.abp-card span { font-size: 10.5px; color: var(--stone); }
.abp-card.c1 { --rot: -6deg; left: 4%; top: 10px; z-index: 2; }
.abp-card.c2 { --rot: 3deg; left: 36%; top: 0; z-index: 3; animation-delay: -2.4s; }
.abp-card.c3 { --rot: -3deg; left: 66%; top: 18px; z-index: 1; animation-delay: -4.8s; }
@keyframes floatCard { 0%, 100% { transform: rotate(var(--rot)) translateY(0); } 50% { transform: rotate(var(--rot)) translateY(-9px); } }
.abp-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--r-full); background: rgba(255, 255, 255, .94); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-hover); font-size: 11px; font-weight: 700; color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: chipFloat 7s ease-in-out infinite;
}
.abp-chip.chip-live { right: 2%; top: -8px; color: var(--danger); animation-delay: -1.6s; }
.abp-chip.chip-live .dot { background: var(--danger); }
.abp-chip.chip-trans { left: 0; bottom: -6px; color: var(--primary-deep); animation-delay: -3.4s; }
.abp-chip.chip-trans svg { color: var(--info); }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.abp-stats { display: flex; gap: 36px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--hairline); }
.abp-stats b { display: block; font-size: 24px; font-weight: 800; color: var(--ink-deep); letter-spacing: -.5px; line-height: 1.1; }
.abp-stats span { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12px; color: var(--steel); font-weight: 500; }
.auth-form-side { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 56px 32px; }
.auth-form-side::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(480px, 100%); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(59, 130, 246, .07), transparent 65%); filter: blur(30px);
}
.auth-form-side .auth-card { position: relative; width: 100%; }
.auth-home-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--steel); transition: color var(--t-fast) ease-out; }
.auth-home-link:hover { color: var(--primary-deep); }
.auth-home-link svg { transform: rotate(180deg); }
.auth-brand-panel .hero-eyebrow { animation: fadeUp .4s var(--ease-soft) both; }
.abp-title { animation: fadeUp .4s var(--ease-soft) both .06s; }
.abp-lead { animation: fadeUp .4s var(--ease-soft) both .12s; }
.abp-pitch { animation: fadeUp .4s var(--ease-soft) both .18s; }
.auth-brand-panel .auth-side { animation: fadeUp .4s var(--ease-soft) both .24s; }
.abp-collage { animation: fadeUp .45s var(--ease-soft) both .3s; }
.abp-stats { animation: fadeUp .4s var(--ease-soft) both .36s; }
@media (max-height: 860px) and (min-width: 961px) {
  .abp-collage { display: none; }
  .abp-inner { padding: 36px 44px; }
}
.auth-card { width: 100%; max-width: 440px; border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 32px; border-color: var(--hairline-soft); }
.auth-card h2 { font-size: 23px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 6px; color: var(--ink-deep); }
.auth-card .sub { color: var(--steel); font-size: 14px; margin-bottom: 22px; }
.tabs { display: flex; gap: 4px; background: var(--surface2); padding: 4px; border-radius: var(--r-full); margin-bottom: 22px; }
.tab { flex: 1; padding: 9px; text-align: center; border-radius: var(--r-full); font-size: 14px; font-weight: 600; color: var(--steel); cursor: pointer; border: none; background: none; font-family: var(--font); transition: all var(--t-fast) ease-out; }
.tab:hover { color: var(--ink-deep); }
.tab.active { background: var(--surface); color: var(--ink-deep); font-weight: 700; box-shadow: var(--shadow); }
.dev-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--warning-soft); border: 1px solid rgba(245, 158, 11, .4); color: #92400e;
  font-size: 13px; margin-bottom: 16px; line-height: 1.5; font-weight: 600;
}
.dev-note svg { color: var(--warning); flex-shrink: 0; margin-top: 2px; }
.dev-note b { font-family: var(--mono); font-size: 17px; letter-spacing: .18em; color: #b45309; }
.dev-note.err { background: var(--danger-soft); border-color: rgba(250, 81, 81, .4); color: #b91c1c; }
.dev-note.err svg { color: var(--danger); }
.code-input { text-align: center; font-family: var(--mono); font-size: 24px; letter-spacing: .5em; font-weight: 700; }
.auth-foot { margin-top: 18px; font-size: 12.5px; color: var(--stone); text-align: center; }
.auth-foot a { display: inline-flex; align-items: center; gap: 5px; }

/* 首页尾部行动区 */
.land-cta { max-width: 1160px; margin: 0 auto; padding: 76px 24px 8px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; padding: 54px 32px;
  border-radius: var(--r-xxl); background: linear-gradient(150deg, #ffffff, #f2f7ff 55%, #effaf3);
  border: 1px solid var(--hairline-soft); box-shadow: var(--shadow-card);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(17, 24, 39, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 24, 39, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(620px 320px at 50% 0%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(620px 320px at 50% 0%, #000, transparent 80%);
}
.cta-card h2 { position: relative; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.8px; color: var(--ink-deep); }
.cta-card h2 .grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-card > p { position: relative; color: var(--steel); margin-top: 10px; }
.cta-card .hero-actions { position: relative; }
.cta-avatars { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; font-size: 13px; color: var(--steel); flex-wrap: wrap; }
.cta-avatars b { color: var(--ink-deep); font-weight: 800; }

/* 落地页分区（滚动揭示） */
.land-section { max-width: 1160px; margin: 0 auto; padding: 76px 24px 8px; scroll-margin-top: 76px; }
.land-head { margin-bottom: 30px; text-align: center; }
.land-eyebrow { font-family: var(--font); font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: .12em; color: var(--primary-deep); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.land-eyebrow::before, .land-eyebrow::after { content: ""; width: 26px; height: 1px; background: rgba(59, 130, 246, .4); }
.land-head h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.8px; color: var(--ink-deep); }
.land-head p { color: var(--steel); margin: 8px auto 0; max-width: 620px; }
.galaxy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.galaxy-card { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline-soft); box-shadow: var(--shadow); transition: all var(--t-med) ease-out; }
.galaxy-card:hover { transform: translateY(-3px); border-color: var(--gc, var(--primary)); box-shadow: var(--shadow-hover); }
.galaxy-card h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ink-deep); margin-bottom: 12px; }
.galaxy-card h4 i { width: 8px; height: 8px; border-radius: 3px; background: var(--gc, var(--primary)); }
.galaxy-card .tags { gap: 6px; }
.galaxy-card .tag { padding: 4px 11px; font-size: 12px; }
.land-pledge { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 860px; margin: 0 auto; }
.land-pledge .pledge-item { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline-soft); box-shadow: var(--shadow); }
.land-foot { max-width: 1160px; margin: 70px auto 0; padding: 26px 24px 40px; border-top: 1px solid var(--hairline-soft); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--stone); font-size: 12.5px; }
.land-foot .mono { letter-spacing: .18em; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft); }
.reveal.in { opacity: 1; transform: none; }

/* 分级入场 */
.hero-eyebrow { animation: fadeUp .4s var(--ease-soft) both; }
.hero-center h1 { animation: fadeUp .4s var(--ease-soft) both .06s; }
.hero-center p.lead { animation: fadeUp .4s var(--ease-soft) both .12s; }
.hero-actions { animation: fadeUp .4s var(--ease-soft) both .16s; }
.news-chips { animation: fadeUp .4s var(--ease-soft) both .22s; }
.demo-card { animation: fadeUp .45s var(--ease-soft) both .26s; }
.auth-stats { animation: fadeUp .4s var(--ease-soft) both .32s; }
.auth-card { animation: popIn .4s var(--ease-soft) both .1s; }

/* ============ 应用外壳 ============ */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid #eef0f5; background: var(--surface);
  padding: 22px 16px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; height: 100vh;
}
.side-logo { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; font-weight: 800; font-size: 17px; letter-spacing: -.3px; color: var(--ink-deep); }
.side-logo .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-radius: 12px;
  color: var(--steel); font-size: 14px; font-weight: 600; cursor: pointer; border: none;
  transition: all var(--t-fast) ease-out; background: none; font-family: var(--font); text-align: left; width: 100%;
}
.nav-item:hover { color: var(--ink-deep); background: #f3f6fb; }
.nav-item.active { color: #2f6bff; background: #eef2ff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .12); }
.nav-item.active svg { color: var(--primary); }
.nav-item .nav-badge { margin-left: auto; font-size: 11px; padding: 1px 8px; border-radius: var(--r-full); background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.side-user { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--hairline-soft); display: flex; align-items: center; gap: 11px; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-deep); }
.side-user .who span { font-size: 11.5px; color: var(--stone); font-family: var(--mono); }
.main { padding: 20px 24px 28px; min-width: 0; }
.main > * { width: 100%; max-width: 1160px; margin-left: auto; margin-right: auto; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.topbar-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--ink-deep); }
.topbar-sub { font-size: 13px; color: var(--stone); margin-top: 2px; }
.topbar > .chip { white-space: nowrap; flex-shrink: 0; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(7, 193, 96, .15); }
.conn-dot.off { background: var(--danger); box-shadow: 0 0 0 3px rgba(250, 81, 81, .15); animation: blink 1.2s ease infinite; }

/* ============ Onboarding ============ */
.onboard-wrap { max-width: 860px; margin: 0 auto; padding: 44px 24px 70px; }
.onboard-head { text-align: center; margin-bottom: 30px; }
.onboard-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.6px; color: var(--ink-deep); }
.onboard-head p { color: var(--steel); margin-top: 8px; }
.steps { display: flex; justify-content: center; gap: 8px; margin: 22px 0 30px; }
.step-dot { width: 34px; height: 5px; border-radius: 100px; background: var(--surface3); transition: background var(--t-med) ease-out; }
.step-dot.done { background: var(--primary); }
.onboard-section { margin-bottom: 22px; }
.gender-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gender-card {
  padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--hairline); cursor: pointer;
  background: var(--surface); display: flex; align-items: center; gap: 15px;
  transition: all var(--t-fast) ease-out; font-family: var(--font); color: var(--charcoal);
}
.gender-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.gender-card:active { transform: translateY(0); }
.gender-card.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(59, 130, 246, .14); }
.gender-emoji { width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; }
.gender-card b { font-size: 16px; font-weight: 700; display: block; color: var(--ink-deep); }
.gender-card span { font-size: 12.5px; color: var(--steel); }
.studio { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
.studio-stage { min-width: 0; }
.studio-preview { width: 100%; aspect-ratio: 1; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow); display: block; }
.studio-stage-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.studio-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sc-group { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; }
.sc-label { font-size: 12px; font-weight: 600; color: var(--steel); }
.sc-group input[type="range"] { width: 100%; accent-color: var(--primary); height: 22px; cursor: pointer; }
.swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.swatch { width: 24px; height: 24px; border-radius: 8px; border: 1px solid rgba(17, 24, 39, .14); cursor: pointer; transition: transform var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out; }
.swatch:hover { transform: translateY(-2px); }
.swatch.selected { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.studio-cands-wrap { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.studio-cands { display: flex; gap: 10px; overflow-x: auto; padding: 8px 8px 6px 2px; flex: 1; min-width: 0; scrollbar-width: thin; scrollbar-color: #c7d2fe var(--surface-soft); }
.studio-cands::-webkit-scrollbar { height: 8px; }
.studio-cands::-webkit-scrollbar-track { background: var(--surface-soft); border-radius: 100px; }
.studio-cands::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 100px; }
.studio-cands::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.studio-cands .avatar-option { flex: 0 0 60px; width: 60px; }
.avatar-option { border-radius: 20%; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; transition: all var(--t-fast) ease-out; position: relative; display: block; width: 100%; aspect-ratio: 1; }
.avatar-option .avatar { width: 100%; height: 100%; border-radius: inherit; }
.avatar-option:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.avatar-option.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.avatar-option.selected::after {
  content: ""; position: absolute; right: -5px; top: -5px; width: 20px; height: 20px; border-radius: 7px;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, .5);
}
.tag-counter { font-size: 13px; color: var(--steel); }
.tag-counter b { color: var(--primary-deep); font-size: 16px; font-weight: 800; }

/* ============ 匹配页 ============ */
.match-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.3fr); gap: 16px; align-items: stretch; }
.match-preview { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.match-preview > * { flex-shrink: 0; }
.match-preview .card-title, .match-preview .form-hint, .match-preview .how-it-works { margin: 0; }
.match-preview .match-cta { margin-top: auto; padding-top: 4px; }
.match-preview .how-step { min-width: 0; overflow-wrap: anywhere; }
.match-preview .how-step b { flex-wrap: wrap; }
.filter-row { margin-bottom: 20px; }
.filter-row .label { margin-bottom: 9px; }
.my-tags-box { padding: 14px; border-radius: var(--r-md); background: var(--surface-soft); border: 1px solid var(--hairline-soft); }
.match-filters { min-width: 0; display: flex; flex-direction: column; }
.match-filters .my-tags-box { margin-bottom: 22px; }
.match-filter-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.match-filter-head .card-title { margin: 0; font-size: 17px; }
.match-filter-head p { margin-top: 6px; color: var(--steel); font-size: 12px; }
.match-filters .btn-sm { gap: 5px; padding: 6px 8px; font-size: 12px; flex-shrink: 0; }
.match-filters .filter-row { margin-bottom: 18px; }
.match-filters .label { color: var(--charcoal); font-size: 12.5px; font-weight: 600; }
.match-genders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.match-genders .seg-item { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; padding: 10px 6px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 11px; color: var(--steel); font-size: 13px; }
.match-genders .seg-item.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-deep); box-shadow: 0 0 0 1px rgba(59, 130, 246, .08); }
.match-genders .seg-item:hover { border-color: var(--primary); }
.match-region { position: relative; }
.match-region > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.match-region .select { padding-left: 40px; min-height: 44px; }
.match-preferences { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); margin: 22px 0 16px; }
.match-preference { position: relative; display: flex; gap: 11px; align-items: center; padding: 16px 0; cursor: pointer; }
.match-preference + .match-preference { border-top: 1px solid var(--hairline-soft); }
.match-preference-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--hairline-soft); background: var(--surface); border-radius: 10px; color: var(--steel); flex-shrink: 0; }
.match-preference-copy { flex: 1; min-width: 0; }
.match-preference-copy b { display: block; color: var(--charcoal); font-size: 13px; font-weight: 600; }
.match-preference-copy > span { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: var(--steel); }
.match-preference input { position: absolute; right: 0; width: 40px; height: 24px; opacity: 0; margin: 0; cursor: pointer; }
.match-toggle-track { width: 40px; height: 24px; border-radius: 20px; background: #dce1e8; flex-shrink: 0; pointer-events: none; transition: background var(--t-fast); }
.match-toggle-track::after { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; margin: 3px; background: #fff; box-shadow: 0 1px 3px rgba(17, 24, 39, .16); transition: transform var(--t-fast); }
.match-preference input:checked + .match-toggle-track { background: var(--primary); }
.match-preference input:checked + .match-toggle-track::after { transform: translateX(16px); }
.match-preference input:focus-visible + .match-toggle-track { outline: 3px solid rgba(59, 130, 246, .4); outline-offset: 3px; }
.match-topic-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.match-topic-head .label { display: flex; align-items: center; gap: 8px; margin: 0; }
.match-topic-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; border: 1px solid var(--hairline-soft); background: var(--surface); border-radius: 6px; font-size: 11px; color: var(--steel); }
.match-filters .my-tags-box { background: transparent; border: 0; padding: 0; }
.match-filters .my-tags-box .tag { background: var(--surface); border-color: var(--hairline-soft); padding: 5px 10px; font-size: 12px; }
.match-filter-summary { margin-top: auto; padding: 14px; background: var(--surface-soft); border: 1px solid var(--hairline-soft); border-radius: 13px; }
.match-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--charcoal); }
.match-summary-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.match-summary-chips > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--hairline); border-radius: 7px; background: var(--surface); font-size: 11px; color: var(--steel); }
.match-summary-chips b { font-weight: 500; color: var(--charcoal); }
.preview-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-deep); aspect-ratio: 16 / 9; border: 1px solid var(--hairline-soft); box-shadow: var(--shadow); }
.preview-tile video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.preview-tile video.virtual { transform: none; }
.preview-status { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.match-cta { margin-top: 20px; }
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.how-step { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline-soft); box-shadow: var(--shadow); font-size: 12.5px; color: var(--steel); transition: all var(--t-fast) ease-out; }
.how-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgba(59, 130, 246, .4); }
.how-step b { display: flex; align-items: center; gap: 8px; color: var(--ink-deep); font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.how-num { width: 22px; height: 22px; border-radius: 7px; background: var(--primary-soft); color: var(--primary-deep); font-size: 11px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; font-family: var(--mono); }

/* ============ 等待页 ============ */
.waiting-wrap { max-width: 760px; margin: 0 auto; text-align: center; padding-top: 12px; }
.radar { position: relative; width: 240px; height: 240px; margin: 10px auto 26px; }
.radar-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(59, 130, 246, .45); animation: ringPulse 2.6s ease-out infinite; }
.radar-ring:nth-child(2) { animation-delay: .85s; border-color: rgba(14, 165, 233, .4); }
.radar-ring:nth-child(3) { animation-delay: 1.7s; border-color: rgba(7, 193, 96, .35); }
@keyframes ringPulse { from { transform: scale(.42); opacity: 1; } to { transform: scale(1.12); opacity: 0; } }
.radar-core {
  position: absolute; inset: 0; margin: auto; width: 108px; height: 108px; border-radius: 28%;
  background: var(--grad-brand); padding: 4px; box-shadow: var(--glow-v); animation: coreBreath 2.6s ease-in-out infinite;
}
.radar-core img { width: 100%; height: 100%; border-radius: 25%; }
@keyframes coreBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.radar-sat { position: absolute; inset: 0; animation: spin 9s linear infinite; }
.radar-sat i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); top: 8px; left: 50%; }
.radar-sat.s2 { animation-duration: 13s; animation-direction: reverse; }
.radar-sat.s2 i { background: var(--success); box-shadow: 0 0 0 4px rgba(7, 193, 96, .15); top: auto; bottom: 22px; }
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 26px; margin: 0 auto 14px; }
.eq i { width: 4px; border-radius: 4px; background: var(--grad-brand); animation: eqBar 1.1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 80%; animation-delay: .15s; }
.eq i:nth-child(3) { height: 100%; animation-delay: .3s; }
.eq i:nth-child(4) { height: 65%; animation-delay: .45s; }
.eq i:nth-child(5) { height: 90%; animation-delay: .6s; }
.eq i:nth-child(6) { height: 50%; animation-delay: .75s; }
.eq i:nth-child(7) { height: 75%; animation-delay: .9s; }
@keyframes eqBar { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.waiting-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; color: var(--ink-deep); }
.waiting-meta { display: flex; justify-content: center; gap: 12px; margin: 14px 0 24px; flex-wrap: wrap; }
.slogan-box { min-height: 64px; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.slogan { font-size: 17px; font-weight: 700; color: var(--ink); animation: sloganIn .4s ease both; line-height: 1.5; }
.slogan::before { content: "“"; color: var(--primary); margin-right: 2px; }
.slogan::after { content: "”"; color: var(--primary); margin-left: 2px; }
@keyframes sloganIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pledge { text-align: left; margin: 22px auto 26px; max-width: 560px; }
.pledge-item { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; font-size: 13.5px; color: var(--steel); }
.pledge-item svg { color: var(--success); flex-shrink: 0; margin-top: 3px; }

.shell-waiting { animation: none; }
.shell-waiting .waiting-wrap { max-width: 1160px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.waiting-status { min-width: 0; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.waiting-aside { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.shell-waiting .radar { width: clamp(140px, 24vh, 220px); height: clamp(140px, 24vh, 220px); margin: 0 auto; flex-shrink: 0; }
.shell-waiting .radar-core { width: 46%; height: 46%; }
.shell-waiting .eq { height: 20px; margin: 0; }
.shell-waiting .waiting-title { font-size: 22px; }
.shell-waiting .waiting-meta { margin: 0; gap: 8px; }
.shell-waiting .waiting-meta .chip { max-width: 100%; flex-wrap: wrap; justify-content: center; font-size: 11px; padding: 4px 10px; }
.shell-waiting .slogan-box { width: 100%; min-height: 4.5em; padding: 0; }
.shell-waiting .slogan { font-size: 14px; }
.shell-waiting .pledge { width: 100%; margin: 0; }
.shell-waiting .pledge .card-title { font-size: 14px; }
.shell-waiting .pledge-item { font-size: 12px; line-height: 1.7; }
.shell-waiting #w-cancel { width: 100%; margin-top: auto; min-height: 44px; }
@media (max-width: 960px) {
  .shell-waiting .main { padding: 16px 18px calc(96px + env(safe-area-inset-bottom)); }
  .shell-waiting .waiting-wrap { grid-template-columns: minmax(0, 1fr); }
  .waiting-status { min-height: 0; gap: 12px; }
  .shell-waiting .radar { width: 140px; height: 140px; }
  .shell-waiting .waiting-title { font-size: 20px; }
}

/* ============ 匹配成功 / 连接页（同频连接台） ============ */
.shell-intro { animation: none; }
.shell-intro .main { padding: 14px 24px 18px; }
.shell-intro .topbar { margin-bottom: 14px; gap: 10px; }
.shell-intro .topbar-title { font-size: 22px; }
.intro-wrap { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 23vw, 280px); gap: 14px; align-items: stretch; }
.link-stage {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(136px, 12vw, 156px) minmax(0, 1fr); grid-column: 1 / -1; column-gap: 12px; row-gap: 0; align-items: stretch;
  padding: clamp(12px, 1.8vh, 18px) 20px; border-radius: var(--r-xxl); overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 55%, #f0fbf5 100%);
  border: 1px solid var(--hairline-soft); box-shadow: var(--shadow-card);
}
.link-aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.link-aurora::before, .link-aurora::after {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.link-aurora::before { background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 65%); top: -180px; left: -120px; animation: auroraDrift 9s ease-in-out infinite alternate; }
.link-aurora::after { background: radial-gradient(circle, rgba(7, 193, 96, .3), transparent 65%); bottom: -200px; right: -120px; animation: auroraDrift 11s ease-in-out infinite alternate-reverse; }
@keyframes auroraDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(46px, 26px) scale(1.12); } }
.link-side { position: relative; z-index: 1; min-width: 0; text-align: center; padding: 0 8px; display: grid; grid-row: 1 / span 6; grid-template-rows: subgrid; justify-items: center; align-items: start; }
.link-side.me { grid-column: 1; }
.link-side.peer { grid-column: 3; }
.link-avatar { position: relative; width: clamp(76px, 11vh, 96px); height: clamp(76px, 11vh, 96px); display: grid; place-items: center; margin-bottom: 8px; padding: 5px; border: 1px solid #e2e7ee; border-radius: 24px; background: var(--surface); box-shadow: 0 4px 12px rgba(23, 42, 69, .06); }
.link-avatar .avatar { width: 100%; height: 100%; border-radius: 18px; position: relative; z-index: 1; }
.link-gender {
  position: absolute; right: 2px; bottom: 2px; z-index: 2; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; background: var(--gc); color: #fff; box-shadow: 0 4px 12px -3px var(--gc);
}
.link-name { max-width: 100%; font-size: 18px; font-weight: 700; color: var(--ink-deep); letter-spacing: -.3px; display: flex; align-items: center; gap: 7px; justify-content: center; }
.link-name > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.link-name .pill { flex-shrink: 0; }
.link-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; font-size: 12px; color: var(--steel); margin-top: 3px; }
.link-meta i { font-style: normal; color: var(--stone); }
.link-meta svg { color: var(--stone); }
.link-bio {
  margin-top: 7px; font-size: 12px; line-height: 1.5; color: var(--charcoal); max-width: 100%; overflow-wrap: anywhere;
  padding: 6px 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, .75); border: 1px dashed var(--hairline);
}
.link-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-top: 8px; max-width: 100%; }
.ltag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; color: var(--steel); background: var(--surface); border: 1px solid var(--hairline);
}
.ltag.hit { color: var(--primary-deep); border-color: rgba(59, 130, 246, .45); background: var(--primary-soft); box-shadow: 0 2px 10px -4px rgba(59, 130, 246, .4); }
.ltag.hit svg { color: var(--success); }
.link-peer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.link-peer-actions .link-dm { margin-top: 0; }
.link-bridge { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.link-summary { width: 100%; padding: 14px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid #e0e8f2; box-shadow: 0 8px 24px -16px rgba(35, 63, 103, .2); }
.link-symbol { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--primary); }
.link-symbol::before, .link-symbol::after { content: ''; flex: 1; height: 1px; background: #e4ebf5; }
.link-symbol > span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e4ebf5; border-radius: 12px; background: var(--surface); }
.link-interest-count { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.link-interest-count b { font-size: 40px; font-weight: 650; color: var(--ink-deep); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -1.5px; }
.link-interest-count span { font-size: 12px; font-weight: 500; color: var(--steel); }
.link-score { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hairline-soft); font-size: 11px; color: var(--steel); }
.link-score b { color: var(--primary-deep); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.link-hint { margin: 0; font-size: 11px; line-height: 1.5; color: var(--steel); text-align: center; }
.common-box { min-width: 0; padding: 14px 16px; }
.common-box .card-title { margin-bottom: 0; font-size: 14px; padding-left: 0; gap: 7px; flex-wrap: wrap; }
.common-box .card-title::before { display: none; }
.common-box .card-title .chip { font-size: 11px; padding: 2px 7px; margin-left: auto; }
.common-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.common-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px;
  font-size: 12px; font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1px solid var(--hairline);
  animation: chipPop .45s var(--ease-soft) both;
}
.common-chip .cat-dot { background: var(--cc); width: 8px; height: 8px; border-radius: 3px; }
.common-chip svg { color: var(--success); }
@keyframes chipPop { from { opacity: 0; transform: translateY(10px) scale(.85); } to { opacity: 1; transform: none; } }
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.topic-item { display: flex; gap: 7px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--hairline-soft); font-size: 12px; line-height: 1.5; color: var(--steel); text-align: left; overflow-wrap: anywhere; transition: all var(--t-fast) ease-out; }
.topic-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgba(59, 130, 246, .4); }
.topic-item svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.intro-ready-panel { min-width: 0; padding: 14px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--hairline-soft); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.intro-entry { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 44px; }
.intro-entry-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; border: 1px solid #dce7f5; color: var(--primary-deep); background: var(--surface); font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; }
.intro-entry-copy { display: grid; gap: 3px; min-width: 0; }
.intro-entry-copy b { font-size: 13px; line-height: 1.4; color: var(--ink-deep); }
.intro-entry-copy span { font-size: 10px; line-height: 1.5; color: var(--steel); }
.entry-toggle { align-self: stretch; padding: 0 3px; color: var(--steel); background: transparent; border: 0; font-size: 11px; cursor: pointer; }
.entry-toggle:hover { color: var(--primary-deep); }
.entry-toggle[hidden] { display: none; }
.entry-progress { height: 3px; margin: 10px 0 12px; border-radius: 3px; background: #edf1f7; overflow: hidden; }
.entry-progress i { display: block; height: 100%; width: 100%; background: #82ace6; }
.intro-ready-panel .ready-state { margin-top: auto; padding-top: 8px; }
.ready-dock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; align-items: stretch; }
.rlamp { display: grid; grid-template-columns: 24px minmax(0, 1fr) 6px; grid-template-rows: 1fr auto; align-items: center; gap: 2px 6px; min-height: 56px; padding: 7px 5px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--hairline-soft); transition: background .3s ease, border-color .3s ease; min-width: 0; }
.rlamp .avatar { grid-column: 1; grid-row: 1 / -1; width: 24px; height: 24px; }
.rlamp-txt { display: contents; }
.rlamp-txt b { grid-column: 2; grid-row: 1; align-self: start; font-size: 11px; line-height: 1.4; color: var(--ink-deep); overflow-wrap: anywhere; }
.rlamp-txt span { grid-column: 2 / -1; grid-row: 2; font-size: 11px; line-height: 16px; color: var(--stone); white-space: nowrap; }
.rlamp .rdot { grid-column: 3; grid-row: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--stone); animation: dotPulse 1.6s ease infinite; }
.rlamp.on { background: var(--success-soft); border-color: rgba(7, 193, 96, .4); }
.rlamp.on .rdot { background: var(--success); animation: none; box-shadow: 0 0 8px rgba(7, 193, 96, .6); }
.rlamp.on .rlamp-txt span { color: #059048; font-weight: 700; }
@keyframes dotPulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.ready-actions { display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.ready-actions > .btn { width: 100%; min-height: 44px; padding: 11px 10px; font-size: 13px; white-space: normal; }
.ready-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ready-alt .btn { width: 100%; min-height: 34px; padding: 7px 6px; font-size: 12px; white-space: normal; }
.btn-quiet { background: transparent; border: 1px solid transparent; color: var(--stone); }
.btn-quiet:hover { color: var(--danger); background: var(--danger-soft); border-color: rgba(250, 81, 81, .28); }
.ready-state { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--steel); min-height: 17px; text-align: center; }
.ready-state svg { flex-shrink: 0; }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(59, 130, 246, .2); border-top-color: var(--primary); animation: spin .8s linear infinite; }

/* ============ 通话 / 围观（微信式圆形控制键） ============ */
.call-wrap { max-width: 1320px; margin: 0 auto; }
.call-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.call-timer { font-family: var(--font); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: 17px; font-weight: 800; letter-spacing: .02em; color: var(--ink-deep); }
#w-elapsed { font-family: var(--font); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-weight: 800; color: var(--ink-deep); }
.quality-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; border: 1px solid var(--hairline); background: var(--surface); color: var(--steel); }
.quality-chip.good { color: #059048; border-color: rgba(7, 193, 96, .35); background: var(--success-soft); }
.quality-chip.ok { color: #b45309; border-color: rgba(245, 158, 11, .4); background: var(--warning-soft); }
.quality-chip.poor { color: var(--danger); border-color: rgba(250, 81, 81, .4); background: var(--danger-soft); }
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.video-tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--ink-deep); border: 1px solid var(--hairline-soft); box-shadow: var(--shadow-card);
}
.video-tile.self { border-color: rgba(59, 130, 246, .45); box-shadow: var(--shadow-card), 0 0 0 3px rgba(59, 130, 246, .12); }
.video-tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink-deep); }
.video-tile.self video { transform: scaleX(-1); }
.video-tile.self video.virtual { transform: none; }
.video-overlay {
  position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 10px; background: rgba(17, 24, 39, .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 3; max-width: calc(100% - 28px);
}
.video-overlay .avatar { border-radius: 8px; }
.video-overlay .vname { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.video-overlay .vsub { font-size: 11px; color: rgba(255, 255, 255, .68); display: flex; align-items: center; gap: 5px; }
.video-badges { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 3; }
.vbadge { padding: 5px 11px; border-radius: 8px; font-size: 11px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); letter-spacing: .06em; }
.vbadge.live { background: rgba(250, 81, 81, .92); color: #fff; animation: blink 2s ease infinite; }
.vbadge.muted { background: rgba(17, 24, 39, .7); color: #ff8a8a; }
.vbadge.seat { background: rgba(17, 24, 39, .7); color: rgba(255, 255, 255, .75); }
.video-off-cover {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--surface2); color: var(--stone); font-size: 13px;
}
.video-waiting-cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--surface2); color: var(--steel); font-size: 13.5px; }
.video-waiting-cover .spinner { width: 26px; height: 26px; border-width: 3px; }
.topic-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0; padding: 12px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline-soft); box-shadow: var(--shadow); }
.topic-strip .lbl { font-size: 12px; font-weight: 700; color: var(--stone); letter-spacing: .08em; margin-right: 4px; }
.call-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 16px 34px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--hairline-soft);
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.ctl-btn {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface2); color: var(--ink); display: grid; place-items: center;
  transition: all var(--t-fast) ease-out; position: relative;
}
.ctl-btn:hover { transform: translateY(-2px); background: var(--surface3); box-shadow: var(--shadow-hover); }
.ctl-btn:active { transform: scale(.94); }
.ctl-btn.off { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1.5px rgba(250, 81, 81, .45); }
.ctl-btn.on-air { background: var(--primary-soft); color: var(--primary-deep); box-shadow: inset 0 0 0 1.5px rgba(59, 130, 246, .45); }
.ctl-btn.danger { background: var(--danger); color: #fff; width: 62px; height: 62px; box-shadow: 0 8px 22px -8px rgba(250, 81, 81, .55); }
.ctl-btn.danger:hover { background: #e03e3e; box-shadow: 0 12px 28px -8px rgba(250, 81, 81, .6); }
.ctl-btn.next { background: var(--primary); color: #fff; width: 62px; height: 62px; box-shadow: var(--glow-v); }
.ctl-btn.next:hover { background: var(--primary-deep); }
.ctl-sep { width: 1px; height: 34px; background: var(--hairline); margin: 0 2px; }
.ctl-label { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--steel); white-space: nowrap; font-weight: 600; }
.reaction-bar { display: flex; gap: 8px; }
.react-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  transition: all var(--t-fast) ease-out;
}
.react-btn:hover { transform: translateY(-3px) scale(1.06); box-shadow: var(--shadow-hover); border-color: rgba(59, 130, 246, .4); }
.react-btn:active { transform: scale(.9); }
.reaction-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.reaction-float { position: absolute; bottom: 16px; display: grid; place-items: center; animation: floatUp 2.4s ease-out forwards; filter: drop-shadow(0 6px 14px rgba(17, 24, 39, .25)); }
.reaction-float svg { width: 36px; height: 36px; }
@keyframes floatUp {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: 1; transform: translateY(-20px) scale(1.15); }
  100% { transform: translateY(-320px) scale(1) rotate(var(--rot, 8deg)); opacity: 0; }
}
.watch-banner { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--r-md); background: var(--primary-soft); border: 1px solid rgba(59, 130, 246, .25); font-size: 13px; color: var(--charcoal); margin-bottom: 16px; }
.watch-banner svg { color: var(--primary); flex-shrink: 0; }

/* ============ 通话布局 + 聊天面板（微信式气泡） ============ */
.call-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: stretch; }
.call-left { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
#watch-layout > * { min-width: 0; min-height: 0; }
#watch-layout .topic-strip, #watch-layout .call-controls { margin: 0; flex-shrink: 0; }
#watch-layout .call-controls { padding: 16px; }
@media (min-width: 1181px) {
  #watch-layout { height: clamp(520px, calc(100dvh - 220px), 720px); }
  #watch-layout .call-grid { flex: 1; min-height: 0; }
  #watch-layout .video-tile { aspect-ratio: auto; min-width: 0; }
  #watch-layout .video-tile video { position: absolute; inset: 0; object-fit: contain; }
  #watch-layout .chat-panel { min-height: 0; }
}
.chat-panel {
  display: flex; flex-direction: column; min-height: 480px; height: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
}
.chat-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--hairline-soft); display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.chat-head-row { display: flex; align-items: center; gap: 9px; }
.chat-head-row b { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--ink-deep); }
.chat-head-row b svg { color: var(--primary); }
.chat-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trans-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-full);
  border: 1px solid var(--hairline); background: var(--surface); color: var(--steel);
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: all var(--t-fast) ease-out;
}
.trans-toggle:hover { border-color: var(--primary); color: var(--primary-deep); }
.trans-toggle.on { background: var(--primary-soft); border-color: rgba(59, 130, 246, .45); color: var(--primary-deep); }
.trans-target { padding: 6px 26px 6px 12px; font-size: 12px; border-radius: var(--r-full); width: auto; background-position: right 9px center; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 12px; min-height: 0; background: radial-gradient(120% 60% at 85% -10%, rgba(7, 193, 96, .07), transparent 60%), radial-gradient(90% 50% at -10% 110%, rgba(59, 130, 246, .06), transparent 60%), var(--chat-bg); }
.chat-sys { text-align: center; font-size: 11.5px; color: var(--stone); padding: 4px 10px; }
.chat-sys span { background: rgba(17, 24, 39, .06); padding: 4px 12px; border-radius: var(--r-full); display: inline-block; }
.chat-msg { display: flex; flex-direction: column; gap: 4px; animation: msgIn .22s cubic-bezier(.2, .9, .3, 1) both; max-width: 100%; }
.chat-msg .chat-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--stone); padding: 0 2px; }
.chat-msg .chat-meta .avatar { border-radius: 6px; }
.chat-msg .chat-meta b { color: var(--steel); font-size: 11.5px; font-weight: 700; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-msg.mine .chat-meta { flex-direction: row-reverse; }
.chat-bubble-row { display: flex; align-items: flex-end; gap: 6px; }
.chat-msg.mine .chat-bubble-row { flex-direction: row-reverse; }
.chat-bubble {
  padding: 10px 14px; border-radius: 4px 14px 14px 14px; font-size: 14px; line-height: 1.55; word-break: break-word;
  background: linear-gradient(180deg, #ffffff, #f7f9fb); color: var(--ink-deep); max-width: min(78%, 520px);
  border: 1px solid #e6ebf1; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 16px -10px rgba(15, 23, 42, .12);
  transition: box-shadow var(--t-fast) ease-out;
}
.chat-msg:hover .chat-bubble { box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 10px 22px -12px rgba(15, 23, 42, .18); }
.chat-msg.mine .chat-bubble {
  background: linear-gradient(135deg, #a8f07e, var(--bubble) 55%, #7fe356); color: #111827;
  border: 1px solid rgba(7, 193, 96, .35); border-radius: 14px 4px 14px 14px;
  box-shadow: 0 1px 2px rgba(7, 193, 96, .12), 0 6px 16px -10px rgba(7, 193, 96, .35);
}
.chat-msg.spec .chat-bubble { background: linear-gradient(180deg, #fffbeb, #fff7e6); border-color: rgba(245, 158, 11, .35); }
.chat-msg.spec .chat-meta b { color: #b45309; }
.chat-trans-btn {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--hairline);
  background: var(--surface); color: var(--stone); font-size: 11px; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; transition: all var(--t-fast) ease-out; font-family: var(--font);
  opacity: 0;
}
.chat-msg:hover .chat-trans-btn, .chat-trans-btn:focus-visible, .chat-trans-btn.done, .chat-trans-btn.busy { opacity: 1; }
@media (pointer: coarse) { .chat-trans-btn { opacity: .75; } }
.chat-trans-btn:hover { color: var(--primary-deep); border-color: var(--primary); transform: translateY(-1px); }
.chat-trans-btn.busy { color: var(--primary-deep); animation: blink 1s ease infinite; }
.chat-trans-btn.done { color: #059048; border-color: rgba(7, 193, 96, .4); background: rgba(7, 193, 96, .08); }
.chat-trans {
  margin: 2px 2px 0; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.55;
  background: linear-gradient(180deg, rgba(59, 130, 246, .07), rgba(59, 130, 246, .04));
  border: 1px solid rgba(59, 130, 246, .18);
  color: var(--primary-deep); word-break: break-word; max-width: min(78%, 520px);
  animation: fadeUp var(--t-fast) ease-out both;
}
.chat-msg.mine .chat-trans { margin-left: auto; }
.chat-trans .trans-text { white-space: pre-wrap; }
.chat-trans .trans-credit {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 4px 10px 4px 4px; border-radius: 100px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline-soft);
  font-size: 11px; font-weight: 600; color: var(--stone);
}
.chat-trans .trans-credit-ic {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #60a5fa); color: #fff; flex-shrink: 0;
}
.chat-trans .trans-credit-check { display: inline-flex; color: #059048; }
.chat-trans .trans-credit-tx { letter-spacing: .01em; }
.chat-panel { min-width: 0; }
.chat-head { flex-shrink: 0; }
.chat-head-row b { min-width: 0; overflow-wrap: anywhere; }
.chat-panel .trans-target { max-width: 100%; }
.chat-panel button:focus-visible, .chat-panel select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.chat-msg { flex-shrink: 0; }
.chat-bubble { min-width: 0; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chat-composer { flex: 0 0 auto; min-width: 0; border-top: 1px solid var(--hairline-soft); background: var(--surface-soft); padding-bottom: 8px; }
.chat-composer.drag-over { box-shadow: inset 0 0 0 2px var(--primary); }
.chat-input-row { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; }
.chat-input-row .input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13.5px; line-height: 20px; background: var(--surface); border-radius: 8px; resize: none; min-height: 42px; max-height: 132px; overflow-y: auto; }
.chat-composer-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 12px; font-size: 10.5px; line-height: 1.5; color: var(--steel); }
.chat-composer-meta #chat-char-count { flex-shrink: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chat-composer-status { padding: 4px 12px 0; font-size: 11.5px; line-height: 1.5; color: var(--steel); overflow-wrap: anywhere; }
.chat-composer-status:empty { display: none; }
.chat-composer-status.error { color: #b42318; }
.chat-attachment { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 10px 12px 0; padding: 6px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); }
.chat-attachment-thumb { flex: 0 0 auto; width: 48px; height: 48px; object-fit: contain; border-radius: 5px; }
.chat-attachment-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--steel); font-size: 12px; }
.chat-attachment-remove { flex-shrink: 0; min-height: 36px; padding: 4px 8px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface-soft); color: var(--charcoal); font: inherit; font-size: 12px; cursor: pointer; }
.chat-quick button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chat-send { width: 46px; height: 42px; border-radius: 8px; border: none; background: var(--success); color: #fff; cursor: pointer; display: grid; place-items: center; transition: all var(--t-fast) ease-out; flex-shrink: 0; }
.chat-send:hover { background: #06ad56; transform: translateY(-1px); }
.chat-send:active { transform: scale(.94); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chat-empty { margin: auto; text-align: center; color: var(--stone); font-size: 12.5px; padding: 20px; line-height: 1.7; }
.chat-empty svg { display: block; margin: 0 auto 10px; opacity: .6; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.chat-quick button {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: var(--r-full);
  border: 1px solid var(--hairline); background: var(--surface); color: var(--steel);
  font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer; transition: all var(--t-fast) ease-out;
}
.chat-quick button:hover { border-color: var(--primary); color: var(--primary-deep); transform: translateY(-1px); }
.chat-quick button:active { transform: translateY(0); }

body.in-call { background: var(--canvas); overflow: hidden; }
body.in-call .toast-wrap { pointer-events: none; }
.ft-stage {
  --ft-brd: var(--hairline);
  --ft-txt: var(--ink-deep);
  --ft-txt2: var(--steel);
  --ft-green: var(--success);
  --ft-accent: var(--primary-deep);
  --ft-red: var(--danger);
  --ft-chat-w: clamp(300px, 25vw, 360px);
  position: fixed; inset: 0; z-index: 60; overflow: hidden; overflow: clip;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 90% 5%, rgba(59, 130, 246, .06), transparent 48%), var(--canvas); color: var(--ft-txt); font-family: var(--font);
}
.ft-stage * { scrollbar-width: thin; scrollbar-color: #d1d5db transparent; }
.ft-top { position: relative; z-index: 6; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 14px 26px; }
.ft-workspace { position: relative; flex: 1; min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 14px; margin: 0 24px calc(24px + env(safe-area-inset-bottom)); padding: 12px; border: 1px solid var(--hairline-soft); border-radius: 24px; background: rgba(255, 255, 255, .72); box-shadow: var(--shadow); }
body.lang-menu-open .ft-stage .ft-top { z-index: 1000; }
.ft-call-status, .ft-top-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ft-call-status { flex-wrap: wrap; gap: 8px 12px; }
.ft-call-status > svg { color: var(--ft-green); }
.ft-call-status > b { font-size: 14px; font-weight: 600; }
.ft-timer { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ft-txt2); padding-left: 12px; border-left: 1px solid var(--ft-brd); }
.ft-top-right { gap: 8px; margin-left: auto; }
.ft-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--ft-txt2); background: none; }
.ft-chip b { color: var(--ft-txt); font-weight: 600; }
.ft-share-link { cursor: pointer; font-family: inherit; border-color: var(--ft-brd); background: var(--surface); }
.ft-share-link:hover, .ft-icon-btn:hover { background: var(--surface-soft); color: var(--ink-deep); }
.ft-icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; display: grid; place-items: center; cursor: pointer; color: var(--ft-txt2); background: transparent; }
.ft-stage button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ft-stage .quality-chip { padding: 0; border: none; font-size: 11px; background: none; color: var(--ft-txt2); }
.ft-stage .quality-chip.good { color: var(--ft-green); }
.ft-stage .quality-chip.ok { color: #b7791f; }
.ft-stage .quality-chip.poor { color: var(--danger); }
.ft-content { grid-area: 1 / 1; display: flex; min-height: 0; min-width: 0; }
.ft-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; flex: 1; min-height: 0; }
.ft-person { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ft-video { position: relative; flex: 1; min-height: 0; overflow: hidden; background: linear-gradient(160deg, #eef2f7, #e2e8f0); border: 1px solid var(--hairline); border-radius: 14px; }
.ft-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-video video.virtual { object-fit: contain; }
.ft-self video { transform: scaleX(-1); }
.ft-self video.virtual { transform: none; }
.ft-self.cam-off video, .ft-stage.peer-off .ft-remote { opacity: 0; }
.ft-person-info { position: absolute; z-index: 4; top: 12px; left: 12px; display: flex; align-items: center; gap: 7px; max-width: calc(100% - 24px); min-width: 0; padding: 5px 10px 5px 5px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 30px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(17, 24, 39, .08); backdrop-filter: blur(10px); }
.ft-person-avatar { flex-shrink: 0; border-radius: 50%; }
.ft-person-info b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-deep); }
.ft-person-role { flex-shrink: 0; font-size: 10px; color: var(--steel); border-left: 1px solid var(--hairline); padding-left: 7px; }
.ft-poster { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 16px; background: linear-gradient(160deg, #f8fafc, #eef2f7); }
.ft-poster span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--steel); }
.ft-poster span svg { flex-shrink: 0; }
.ft-poster-av { border-radius: 22px; }
.ft-video-badges { position: absolute; z-index: 3; bottom: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ft-stage .vbadge { padding: 5px 8px; border-radius: 7px; font-size: 10px; border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .9); color: var(--steel); box-shadow: var(--shadow); }
.ft-stage .vbadge.muted { color: #9a3412; }
.ft-stage .vbadge.live { color: var(--success); }
.ft-stage .spinner { width: 24px; height: 24px; border-width: 2px; border-color: var(--hairline); border-top-color: var(--primary); }
.ft-stage .btn-primary { background: var(--primary); border-color: transparent; color: #fff; }
.ft-stage .btn-primary:hover { background: var(--primary-deep); border-color: transparent; color: #fff; }
.ft-conversation { display: flex; align-items: center; gap: 16px; min-width: 0; flex-shrink: 0; }
.ft-topics { display: flex; flex: 1; align-items: center; gap: 8px; overflow-x: auto; min-width: 0; padding: 5px 0; }
.ft-topics > * { flex-shrink: 0; }
.ft-topics .lbl { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ft-txt2); }
.ft-topics .tag, .ft-topics .tag.common { padding: 3px 9px; font-size: 11px; background: var(--surface); border: 1px solid var(--ft-brd); border-radius: 7px; color: var(--charcoal); }
.ft-topics .tag.static:hover { background: var(--surface-soft); color: var(--ink-deep); transform: none; }
.ft-topic-free { font-size: 11px; color: var(--ft-txt2); }
.ft-stage .reaction-bar { display: flex; flex-shrink: 0; gap: 2px; padding: 0; }
.ft-stage .react-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; display: grid; place-items: center; cursor: pointer; }
.ft-stage .react-btn:hover { background: var(--surface); border-color: var(--hairline); transform: none; box-shadow: none; }
.ft-stage .reaction-layer { z-index: 4; }
.ft-stage .reaction-float { bottom: 132px; }
.ft-bottom { grid-area: 2 / 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.ft-bottom .ft-bar { width: 100%; }
.ft-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 980px; margin: 0 auto; }
.ft-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid #e3e5eb; border-radius: 12px; background: #fff; cursor: pointer; font-family: var(--font); color: #6b7280; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.ft-btn svg { flex-shrink: 0; width: 20px; height: 20px; color: currentColor; }
.ft-btn:hover { background: #f8fafb; border-color: #cbd0d9; color: #4b5563; }
.ft-btn .ctl-label { position: static; transform: none; font-size: 14px; font-weight: 600; color: inherit; white-space: nowrap; }
.ft-btn.off { background: #f1f3f5; border-color: #d9dde3; color: #596170; }
.ft-btn.active, .ft-btn.on-air { background: var(--primary-soft); border-color: rgba(59, 130, 246, .4); color: var(--primary-deep); }
.ft-btn.active:hover, .ft-btn.on-air:hover { background: rgba(59, 130, 246, .14); border-color: rgba(59, 130, 246, .6); }
.ft-btn.ft-end { color: #c84b4b; }
.ft-btn.ft-end svg { transform: rotate(135deg); }
.ft-btn.ft-end:hover { background: #fff4f3; border-color: #e7b8b5; color: #b83e3e; }
.ft-unread { position: absolute; top: -3px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 100px; background: var(--ft-red); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--canvas); }
.watch-error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#watch-share-status { margin-top: 12px; overflow-wrap: anywhere; }

.ft-chat { position: absolute; z-index: 8; top: 12px; right: 12px; bottom: 12px; width: var(--ft-chat-w); min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); visibility: hidden; transform: translateX(calc(100% + 24px)); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility .2s; }
.ft-stage.chat-open .ft-chat { visibility: visible; transform: none; opacity: 1; pointer-events: auto; }
.ft-chat-scrim { position: fixed; inset: 0; z-index: 7; background: rgba(17, 24, 39, .28); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.ft-chat-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-shrink: 0; background: var(--surface-soft); border-bottom: 1px solid var(--hairline-soft); }
.ft-chat-member { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; background: transparent; font-size: 12px; font-weight: 500; color: var(--steel); }
.ft-chat-member + .ft-chat-member { background: var(--primary-soft); color: var(--primary-deep); }
.ft-chat-member .avatar { border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(17, 24, 39, .06); }
.ft-chat #chat-slot { flex: 1; min-height: 0; display: flex; }
.ft-chat .chat-panel { width: 100%; height: 100%; min-height: 0; border-radius: 0; background: transparent; border: 0; box-shadow: none; }
.ft-chat .chat-head { background: transparent; border-bottom: 1px solid var(--hairline-soft); padding: 12px; }
.ft-chat .chat-head-row b { color: var(--ink-deep); font-size: 14px; }
.ft-chat .chat-head-row b svg { color: var(--primary); }
.ft-chat #chat-count { background: var(--surface-soft); border-color: var(--hairline); color: var(--steel); }
.ft-chat .chat-close { width: 28px; height: 28px; margin-left: 2px; border-radius: 9px; border: none; background: var(--surface-soft); color: var(--steel); display: grid; place-items: center; cursor: pointer; transition: all var(--t-fast) ease-out; }
.ft-chat .chat-close:hover { background: #eef1f5; color: var(--ink-deep); }
.ft-chat .trans-toggle { background: var(--surface); border-color: var(--hairline); color: var(--steel); }
.ft-chat .trans-toggle:hover { border-color: var(--primary); color: var(--primary-deep); }
.ft-chat .trans-toggle.on { background: var(--primary-soft); border-color: rgba(59, 130, 246, .45); color: var(--primary-deep); }
.ft-chat .trans-target { background-color: var(--surface); border-color: var(--hairline); color: var(--charcoal); }
.ft-chat .chat-list { background: var(--surface); padding: 14px 13px 8px; gap: 10px; }
.ft-chat .chat-sys { color: var(--steel); }
.ft-chat .chat-sys span { display: inline-block; background: #f3f4f6; padding: 9px 12px; border-radius: 12px; }
.ft-chat .chat-bubble {
  background: var(--surface); color: var(--ink-deep); border-radius: 4px 14px 14px 14px;
  max-width: min(258px, 82%); padding: 10px 13px; border: 1px solid var(--hairline); box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.ft-chat .chat-msg:hover .chat-bubble { box-shadow: 0 2px 6px rgba(15, 23, 42, .07); }
.ft-chat .chat-msg.mine .chat-bubble { background: var(--primary-soft); color: var(--primary-deep); border-color: rgba(59, 130, 246, .22); border-radius: 14px 4px 14px 14px; box-shadow: 0 1px 2px rgba(59, 130, 246, .06); }
.ft-chat .chat-msg .chat-bubble-img { border-radius: 16px; }
.ft-chat .chat-msg.spec .chat-bubble { background: linear-gradient(180deg, #fffbeb, #fff7e6); border-color: rgba(245, 158, 11, .35); color: #7a4a06; }
.ft-chat .chat-msg.spec .chat-meta b { color: #b45309; }
.ft-chat .chat-msg.grouped.peer .chat-bubble { border-radius: 18px 18px 18px 4px; }
.ft-chat .chat-msg.grouped.mine .chat-bubble { border-radius: 18px 18px 4px 18px; }
.ft-chat .chat-list::-webkit-scrollbar-thumb { background: rgba(17, 24, 39, .18); background-clip: padding-box; border: 2px solid transparent; }
.ft-chat .chat-list::-webkit-scrollbar-thumb:hover { background: rgba(17, 24, 39, .32); background-clip: padding-box; border: 2px solid transparent; }
.ft-chat .chat-composer { background: var(--surface-soft); border-top: 1px solid var(--hairline-soft); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.ft-chat .chat-composer.drag-over { box-shadow: inset 0 0 0 2px var(--primary); }
.ft-chat .chat-input-row { padding: 10px 12px 6px; }
.ft-chat .chat-composer-meta, .ft-chat .chat-composer-status, .ft-chat .chat-attachment-name { color: var(--steel); }
.ft-chat .chat-composer-status.error { color: #b42318; }
.ft-chat .chat-attachment { background: var(--surface); border-color: var(--hairline); }
.ft-chat .chat-attachment-remove, .ft-chat .chat-img-btn { background: var(--surface-soft); border-color: var(--hairline); color: var(--charcoal); }
.ft-chat .chat-attachment-remove:hover, .ft-chat .chat-img-btn:hover { background: #eef1f5; border-color: #d1d5db; color: var(--ink-deep); }
.ft-chat .chat-input-row .input { background: var(--surface); border-color: var(--hairline); color: var(--ink-deep); border-radius: 18px; padding: 10px 15px; }
.ft-chat .chat-input-row .input::placeholder { color: var(--stone); }
.ft-chat .chat-input-row .input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59, 130, 246, .14); }
.ft-chat .chat-send { width: 40px; height: 40px; border-radius: 8px; background: var(--success); align-self: flex-end; }
.ft-chat .chat-send:hover { background: #06ad56; transform: none; }

.ft-translate-bar { display: flex; align-items: center; gap: 12px; min-height: 40px; max-width: 980px; width: 100%; margin: 0 auto; padding: 5px 2px; border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); border-radius: 0; background: rgba(255, 255, 255, .56); box-shadow: none; color: var(--steel); }
.ft-translate-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-height: 30px; padding: 5px 10px; border: 1px solid #e3e5eb; border-radius: 9px; background: #fff; color: #6b7280; font: 600 12px var(--font); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.ft-translate-toggle:hover { background: #f8fafb; border-color: #cbd0d9; color: #4b5563; }
.ft-translate-toggle:disabled { opacity: .55; cursor: not-allowed; }
.ft-translate-toggle.on { background: var(--primary-soft); border-color: rgba(59, 130, 246, .4); color: var(--primary-deep); }
.ft-translate-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ft-translate-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-deep); font-size: 13px; font-weight: 600; unicode-bidi: plaintext; }
.ft-translate-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--steel); font-size: 11px; unicode-bidi: plaintext; }
.ft-translate-lang { flex: none; padding: 3px 6px; border-radius: 6px; color: var(--steel); font: 500 10px var(--mono); text-transform: uppercase; }
.ft-moderation-status { display: inline-flex; align-items: center; gap: 6px; flex: none; padding-left: 10px; border-left: 1px solid var(--hairline); font-size: 11px; color: var(--steel); }
.ft-moderation-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.ft-moderation-status.warn { color: #b45309; }
.ft-moderation-status.warn::before { background: var(--warning); }
.ft-block-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid rgba(245, 158, 11, .3); border-radius: 10px; background: var(--warning-soft); color: #92400e; font-size: 12px; line-height: 1.6; }

@media (min-width: 961px) {
  .ft-workspace { grid-template-columns: minmax(0, 1fr) 0; column-gap: 0; transition: grid-template-columns .2s ease, column-gap .2s ease; }
  .ft-stage.chat-open .ft-workspace { grid-template-columns: minmax(0, 1fr) var(--ft-chat-w); column-gap: 14px; }
  .ft-workspace > .ft-content, .ft-workspace > .ft-bottom { grid-column: 1; }
  .ft-chat { position: relative; inset: auto; display: none; transform: none; width: var(--ft-chat-w); grid-column: 2; grid-row: 1 / -1; }
  .ft-stage.chat-open .ft-chat { display: flex; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .ft-stage.chat-open .ft-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
}
@media (max-width: 800px) {
  .ft-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
}
@media (max-width: 960px) {
  .ft-chat { position: fixed; top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; height: min(72dvh, 560px); transform: translateY(calc(100% + 24px)); }
  .ft-stage.chat-open .ft-chat { transform: none; }
  .ft-stage.chat-open .ft-chat-scrim { opacity: 1; pointer-events: auto; }
  .ft-stage.chat-open .ft-bottom { visibility: hidden; }
}
@media (max-width: 680px) {
  .ft-top { padding: 12px; gap: 8px; }
  .ft-call-status { width: 100%; gap: 8px; }
  .ft-call-status > b { font-size: 13px; }
  .ft-top-right { margin-left: 0; width: 100%; gap: 6px; }
  .ft-top-right .lang-set { margin-left: auto; }
  .ft-chip { padding: 6px 8px; font-size: 11px; }
  .ft-content { margin: 0 12px; gap: 12px; }
  .ft-video-grid { gap: 8px; }
  .ft-video { border-radius: 8px; }
  .ft-person-info { top: 7px; left: 7px; max-width: calc(100% - 14px); padding: 4px 8px 4px 4px; gap: 5px; background: rgba(255, 255, 255, .9); }
  .ft-person-info b { font-size: 12px; color: var(--ink-deep); }
  .ft-person-role { color: var(--steel); border-left-color: var(--hairline); }
  .ft-translate-bar { gap: 8px; padding: 5px 2px; }
  .ft-translate-lang, .ft-moderation-status { display: none; }
  .ft-translate-copy b { font-size: 12px; }
  .ft-translate-copy span { font-size: 10px; }
  .ft-video-badges { top: 7px; left: 7px; right: 7px; }
  .ft-stage .vbadge { padding: 4px 6px; font-size: 9px; }
  .ft-poster { padding: 10px; gap: 12px; }
  .ft-poster-av { width: 64px; height: 64px; border-radius: 14px; }
  .ft-poster span { font-size: 11px; }
  .ft-poster .btn { padding: 8px; font-size: 11px; white-space: normal; }
  .ft-conversation { flex-direction: column; align-items: stretch; gap: 6px; }
  .ft-stage .reaction-bar { justify-content: center; }
  .ft-bottom { padding: 16px 10px calc(20px + env(safe-area-inset-bottom)); }
  .ft-bar { gap: 8px; }
  .ft-btn { padding: 10px 8px; gap: 6px; }
  .ft-btn svg { width: 18px; height: 18px; }
  .ft-btn .ctl-label { font-size: 12px; }
  .ft-chat { left: 0; right: 0; bottom: 0; height: min(72dvh, 560px); }
  .ft-chat .chat-panel { border-radius: 14px 14px 0 0; }
  .ft-chat .chat-bubble { max-width: min(240px, 76%); }
}
@media (max-height: 500px) and (min-width: 681px) {
  .ft-top { padding: 8px 16px; }
  .ft-content { margin: 0 16px; gap: 4px; }
  .ft-person-info { padding-top: 5px; }
  .ft-bottom { padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }
  .ft-btn { padding: 8px 10px; gap: 6px; }
  .ft-btn .ctl-label { font-size: 12px; }
  .ft-poster { flex-direction: row; gap: 10px; }
  .ft-poster-av { width: 48px; height: 48px; border-radius: 10px; }
  .ft-chat { height: calc(100dvh - 20px); }
}

/* 卡片分级入场 */
.plaza-grid .room-card, .stats-grid .stat-card, .how-it-works .how-step { animation: fadeUp .4s var(--ease-soft) both; }
.plaza-grid .room-card:nth-child(1), .stats-grid .stat-card:nth-child(1), .how-it-works .how-step:nth-child(1) { animation-delay: .04s; }
.plaza-grid .room-card:nth-child(2), .stats-grid .stat-card:nth-child(2), .how-it-works .how-step:nth-child(2) { animation-delay: .09s; }
.plaza-grid .room-card:nth-child(3), .stats-grid .stat-card:nth-child(3), .how-it-works .how-step:nth-child(3) { animation-delay: .14s; }
.plaza-grid .room-card:nth-child(4), .stats-grid .stat-card:nth-child(4) { animation-delay: .19s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: .24s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: .29s; }
.stats-grid .stat-card:nth-child(7) { animation-delay: .34s; }
.stats-grid .stat-card:nth-child(8) { animation-delay: .39s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ 围观广场 ============ */
.plaza-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.room-card > .btn { margin-top: auto; }
.room-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: transform var(--t-fast) ease-out, border-color var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out; position: relative; overflow: hidden; }
.room-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-brand); opacity: .65; }
.room-card:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, .4); box-shadow: var(--shadow-hover); }
.duo-avatars { display: flex; align-items: center; }
.duo-avatars .avatar { border: 2px solid var(--surface); }
.duo-avatars .avatar + .avatar { margin-left: -14px; }
.room-names { font-size: 15px; font-weight: 700; color: var(--ink-deep); overflow-wrap: anywhere; }
.room-names span { color: var(--stone); font-weight: 500; margin: 0 6px; }
.room-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--steel); }
.empty-state .empty-icon { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 24px; background: var(--primary-soft); border: 1px solid rgba(59, 130, 246, .25); display: grid; place-items: center; color: var(--primary); }
.empty-state h3 { color: var(--ink-deep); font-size: 18px; font-weight: 700; margin-bottom: 8px; }

/* ============ 资料页 ============ */
.shell-profile { animation: none; }
.shell-profile .main { padding: 20px 24px 28px; }
.shell-profile .topbar { margin-bottom: 18px; }
.profile-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.profile-editor { display: flex; flex-direction: column; }
.profile-grid > * { min-width: 0; }
.profile-grid .card { padding: 18px; }
.profile-grid .card-title { padding-left: 0; font-size: 15px; margin-bottom: 14px; }
.profile-grid .card-title::before { display: none; }
.profile-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.profile-card-head .card-title { margin: 0; }
.profile-caption { font-size: 12px; color: var(--stone); }
.profile-fields { display: flex; flex: 1; flex-direction: column; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-fields .field { min-width: 0; margin: 0; }
.profile-fields .label { font-size: 12px; }
.profile-avatar-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--hairline-soft); border-radius: 14px; background: #fafbfd; }
.profile-avatar-row .avatar { width: 64px; height: 64px; border: 3px solid var(--surface); border-radius: 18px; box-shadow: 0 2px 8px rgba(23, 42, 69, .07); }
.profile-avatar-copy { display: grid; gap: 6px; min-width: 0; }
.profile-avatar-copy b { font-size: 13px; font-weight: 600; color: var(--ink-deep); }
.profile-avatar-copy span { font-size: 11px; line-height: 1.5; color: var(--steel); }
.profile-avatar-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.profile-avatar-actions .btn { min-height: 32px; font-size: 11px; padding: 6px 8px; }
.profile-basic { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); gap: 12px; }
.profile-basic .input, .profile-basic .select, .profile-basic .seg { height: 42px; min-width: 0; width: 100%; }
.profile-basic .input, .profile-basic .select { padding: 10px 12px; font-size: 13px; }
.profile-basic .seg { border: 1px solid var(--hairline-soft); border-radius: 10px; background: var(--surface-soft); }
.profile-basic .seg-item { padding: 4px 6px; min-width: 0; border-radius: 7px; font-size: 12px; }
.profile-basic .seg-item.active { border: 1px solid #dce6f4; color: var(--primary-deep); }
.profile-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; margin-bottom: 7px; }
.profile-field-head .label { margin: 0; }
.profile-counter { color: var(--stone); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile-counter b { font-weight: 600; color: var(--steel); }
.profile-fields textarea { min-height: 76px; padding: 10px 12px; font-size: 13px; resize: vertical; }
.profile-fields .form-hint { font-size: 11px; line-height: 1.5; margin: 5px 0 0; }
.profile-topic-label { display: flex; align-items: center; gap: 8px; }
.profile-field-head .btn { min-height: 30px; padding: 5px 9px; font-size: 11px; }
.profile-fields .tag-pick-box { min-height: 44px; padding: 9px; gap: 6px; background: var(--surface); border-style: solid; }
.profile-fields .tag { font-size: 11px; }
.profile-preference { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) 40px; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--hairline-soft); cursor: pointer; }
.profile-preference-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--hairline-soft); border-radius: 10px; color: var(--steel); background: var(--surface); }
.profile-preference-copy { display: grid; gap: 4px; }
.profile-preference-copy b { font-size: 12px; font-weight: 600; color: var(--ink-deep); }
.profile-preference-copy span { font-size: 11px; line-height: 1.5; color: var(--steel); }
.profile-preference input { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 24px; opacity: 0; margin: 0; cursor: pointer; }
.profile-preference input:checked + .match-toggle-track { background: var(--primary); }
.profile-preference input:checked + .match-toggle-track::after { transform: translateX(16px); }
.profile-preference input:focus-visible + .match-toggle-track { outline: 3px solid rgba(59, 130, 246, .4); outline-offset: 3px; }
.profile-save-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--hairline-soft); }
.profile-save-row > span { min-width: 0; font-size: 11px; line-height: 1.5; color: var(--steel); }
.profile-save-row .btn { min-height: 42px; flex-shrink: 0; font-size: 13px; }
.profile-aside { display: flex; flex-direction: column; gap: 16px; }
.profile-history { flex: 1; }
.profile-account { flex-shrink: 0; }
.profile-history .hist-stats { gap: 7px; margin-bottom: 10px; }
.profile-history .hist-stat { padding: 9px 3px; background: var(--surface); border-radius: 10px; }
.profile-history .hist-stat b { font-size: 18px; font-weight: 650; color: var(--ink-deep); }
.profile-history .hist-stat span { font-size: 10px; font-weight: 500; }
.profile-history .hist-list { max-height: 210px; }
.profile-history .hist-row { padding: 8px; gap: 8px; background: var(--surface); }
.profile-history .hist-who b { font-size: 12px; }
.profile-history .hist-who span, .profile-history .hist-dur { font-size: 10px; }
.profile-history .hist-empty { padding: 12px 4px; font-size: 11px; gap: 7px; }
.profile-account .info-row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 9px 0; font-size: 11px; }
.profile-account .info-row .v { min-width: 0; font-weight: 500; overflow-wrap: anywhere; word-break: normal; }
.profile-account .profile-account-id { font-size: 10px; }
.profile-privacy { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline-soft); }
.profile-privacy h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; font-size: 12px; font-weight: 600; color: var(--steel); }
.profile-privacy p { margin: 0; color: var(--stone); font-size: 11px; line-height: 1.7; }
@media (max-width: 1180px) {
  .shell-profile .profile-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .profile-basic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-nickname { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .shell-profile .main { padding: 16px 18px calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 800px) {
  .shell-profile .profile-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .shell-profile .main { padding: 14px 12px calc(96px + env(safe-area-inset-bottom)); }
  .profile-grid .card { padding: 14px; }
  .profile-caption { font-size: 11px; }
  .profile-basic { grid-template-columns: minmax(0, 1fr); }
  .profile-avatar-row { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .profile-avatar-row .avatar { width: 56px; height: 56px; border-radius: 16px; }
  .profile-avatar-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .profile-avatar-actions .btn { min-height: 36px; }
  .profile-save-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .profile-save-row .btn { width: 100%; }
}
.studio > * { min-width: 0; }
.studio-cands-wrap > * { min-width: 0; }
.info-list { display: flex; flex-direction: column; gap: 0; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 13.5px; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--stone); }
.info-row .v { font-weight: 700; text-align: right; word-break: break-all; color: var(--ink); }

/* ============ 封禁页 ============ */
.banned-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.banned-card { max-width: 480px; text-align: center; padding: 44px 36px; border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.banned-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 24px; background: var(--danger-soft); border: 1px solid rgba(250, 81, 81, .35); display: grid; place-items: center; color: var(--danger); }
.banned-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: var(--ink-deep); }
.banned-card p { color: var(--steel); font-size: 14px; margin-bottom: 8px; }

/* ============ 管理端 ============ */
.admin-wrap { min-height: 100vh; }
.admin-top {
  display: flex; align-items: center; gap: 14px; padding: 16px 30px;
  border-bottom: 1px solid var(--hairline-soft); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow);
}
.admin-badge { padding: 4px 12px; border-radius: var(--r-full); background: var(--warning-soft); border: 1px solid rgba(245, 158, 11, .4); color: #b45309; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.admin-main { padding: 26px 30px 60px; max-width: 1440px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px 22px; position: relative; overflow: hidden; transition: transform var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-card .stat-label { font-size: 12.5px; color: var(--steel); font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.stat-card .stat-value { font-size: 32px; font-weight: 700; font-family: var(--mono); letter-spacing: -.5px; margin-top: 6px; line-height: 1.1; color: var(--ink-deep); }
.stat-card .stat-glow { position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; filter: blur(40px); opacity: .12; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { padding: 9px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--steel); background: var(--surface); border: 1px solid var(--hairline); cursor: pointer; font-family: var(--font); transition: all var(--t-fast) ease-out; display: inline-flex; align-items: center; gap: 8px; }
.admin-tab:hover { color: var(--ink-deep); border-color: #d1d5db; }
.admin-tab.active { background: var(--btn-dark); border-color: var(--btn-dark); color: #fff; }
.admin-tab .cnt { font-size: 11px; padding: 0 7px; border-radius: var(--r-full); background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.admin-tab.active .cnt { background: rgba(255, 255, 255, .2); color: #fff; }
.search-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-bar .input { max-width: 320px; }
.search-bar .select { max-width: 160px; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--hairline-soft); background: var(--surface); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.tbl th {
  text-align: left; padding: 13px 16px; font-size: 11.5px; letter-spacing: .08em; color: var(--steel);
  border-bottom: 1px solid var(--hairline-soft); background: var(--surface-soft); position: sticky; top: 0; white-space: nowrap; font-weight: 700;
}
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background var(--t-fast) ease-out; }
.tbl tbody tr:hover { background: var(--surface-soft); }
.tbl .user-cell { display: flex; align-items: center; gap: 11px; min-width: 170px; }
.tbl .user-cell b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-deep); }
.tbl .user-cell span { font-size: 11.5px; color: var(--stone); font-family: var(--mono); }
.tbl .actions { display: flex; gap: 8px; white-space: nowrap; }
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: 100%; max-width: 400px; border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.report-card { padding: 18px 20px; margin-bottom: 12px; }
.report-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.report-reason { font-size: 13.5px; color: var(--steel); padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-soft); border: 1px solid var(--hairline-soft); }
.blocked-user-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.blocked-user-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--hairline-soft); border-radius: 12px; background: var(--surface-soft); }
.blocked-user-row > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.blocked-user-row b { overflow: hidden; color: var(--ink-deep); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.blocked-user-row small { color: var(--stone); font-size: 11px; }
.admin-integration { max-width: 980px; display: grid; gap: 16px; }
.integration-card { padding: 22px; }
.integration-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.integration-head > div { min-width: 0; flex: 1; }
.integration-head h2 { margin: 0 0 5px; color: var(--ink-deep); font-size: 18px; }
.integration-head p { margin: 0; color: var(--stone); font-size: 12.5px; line-height: 1.7; }
.integration-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.integration-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.integration-fields .span-2 { grid-column: 1 / -1; }
.integration-fields .field { margin: 0; }
.integration-fields .form-hint { line-height: 1.6; }
.integration-key { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline-soft); }
.integration-test-result { min-height: 20px; margin: 12px 0 0; color: var(--steel); font-size: 12.5px; line-height: 1.6; }
.integration-test-result.ok { color: var(--success); }
.integration-test-result.err { color: var(--danger); }
.moderation-warning { padding: 12px 14px; border: 1px solid #f2d39b; border-radius: 12px; background: #fffaf0; color: #855b16; font-size: 12.5px; line-height: 1.7; }
.moderation-case { padding: 18px 20px; }
.moderation-case-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.moderation-case-head b { color: var(--ink-deep); }
.moderation-case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.moderation-transcript { margin: 10px 0; padding: 11px 13px; border-radius: 10px; background: var(--surface-soft); color: var(--ink-deep); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-evidence { display: block; max-width: 100%; max-height: 65vh; margin: 0 auto; border-radius: 12px; background: var(--surface-soft); }
@media (max-width: 680px) { .integration-card { padding: 16px; } .integration-fields { grid-template-columns: minmax(0, 1fr); } .integration-fields .span-2 { grid-column: auto; } .integration-head { flex-wrap: wrap; } }
@media (max-width: 520px) { .blocked-user-row { grid-template-columns: 34px minmax(0, 1fr); } .blocked-user-row .btn { grid-column: 1 / -1; } }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .abp-inner { padding: 44px 48px; }
  .demo-body { grid-template-columns: 1fr; }
  .call-layout { grid-template-columns: 1fr; }
  .chat-panel { height: 420px; min-height: 360px; }
  .galaxy { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .match-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .nav-hint { display: none; }
  .hero-center { padding: 48px 20px 8px; }
  .hero-center h1 { font-size: 34px; letter-spacing: -.8px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand-panel { border-right: none; border-bottom: 1px solid var(--hairline-soft); }
  .abp-inner { padding: 36px 24px 30px; margin: 0 auto; }
  .abp-title { font-size: 28px; margin-top: 14px; }
  .abp-collage { display: none; }
  .abp-stats { margin-top: 20px; padding-top: 16px; gap: 28px; }
  .auth-form-side { padding: 32px 20px 52px; justify-content: flex-start; }
  .land-section { padding: 52px 20px 8px; }
  .land-cta { padding: 52px 20px 8px; }
  .land-pledge { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; z-index: 100;
    flex-direction: row; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-right: none; border-top: 1px solid var(--hairline-soft);
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 -10px 30px -12px rgba(17, 24, 39, .15);
  }
  .side-logo, .side-user { display: none; }
  .side-nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav-item { flex-direction: column; gap: 3px; padding: 7px 12px; font-size: 11px; border-radius: var(--r-md); }
  .nav-item:hover { transform: none; }
  .nav-item .nav-badge { display: none; }
  .main { padding: 20px 18px 96px; }
  .shell-intro .main { padding: 14px 16px calc(82px + env(safe-area-inset-bottom)); }
  .intro-wrap { grid-template-columns: minmax(0, 1fr) 250px; gap: 10px; }
  .link-stage { column-gap: 10px; padding: 14px; }
}
@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .topbar > div:first-child { flex: 1 1 100%; }
  .topbar .spacer { display: none; }
  .topbar .chip { white-space: nowrap; }
  .call-grid { grid-template-columns: 1fr; }
  .video-tile { aspect-ratio: 16 / 10; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card .stat-value { font-size: 26px; }
  .studio { grid-template-columns: 1fr; }
  .studio-preview { max-width: 260px; margin: 0 auto; }
  .studio-stage-bar { justify-content: center; }
  .gender-cards { grid-template-columns: 1fr; }
  .how-it-works { grid-template-columns: 1fr; }
  .main { padding: 16px 14px 96px; }
  .admin-main { padding: 18px 14px 50px; }
  .card { padding: 18px; }
  .call-controls { gap: 30px 12px; padding: 14px 12px 28px; }
  .ctl-btn { width: 48px; height: 48px; }
  .ctl-btn.danger, .ctl-btn.next { width: 56px; height: 56px; }
  .ctl-sep { display: none; }
  .reaction-bar { display: contents; }
  .hero-center h1 { font-size: 30px; }
  .auth-card { padding: 24px; }
  .abp-pitch { display: none; }
  .abp-lead { font-size: 13.5px; margin-top: 10px; }
  .abp-inner { padding: 28px 24px 24px; }
  .abp-stats { gap: 20px; }
  .abp-stats b { font-size: 20px; }
  .auth-form-side { padding: 24px 14px 44px; }
  .cta-card { padding: 36px 20px; }
  .demo-flow { font-size: 11px; }
  .demo-body { padding: 16px; gap: 16px; }
  .chat-panel { height: 380px; min-height: 320px; }
  .chat-bubble { max-width: 200px; }
  .galaxy { grid-template-columns: 1fr; }
  .auth-stats { gap: 22px; padding: 28px 16px 4px; }
  .auth-stats .stat-divider { display: none; }
  .news-chips { gap: 8px; }
  .top-nav-inner { gap: 8px; padding: 10px 12px; }
  .top-nav .brand-logo { font-size: 16px; gap: 8px; }
  .top-nav .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .top-nav .brand-sub { display: none; }
  .top-nav .btn { padding: 7px 10px; font-size: 12.5px; }
  #ann-register svg { display: none; }
}
/* ---------- 语言设置 ---------- */
.lang-set { position: relative; display: inline-flex; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; }
.lang-btn .lang-cur { font-weight: 700; font-size: 12px; letter-spacing: .02em; line-height: 1; }
.lang-caret { display: inline-flex; opacity: .5; transition: transform var(--t-fast) ease, opacity var(--t-fast) ease; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); opacity: .95; }
.lang-auto-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); display: none; flex: none; }
.lang-auto-dot.on { display: inline-block; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 320;
  min-width: 216px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow-card), 0 4px 14px -6px rgba(17, 24, 39, .18);
  animation: langPop .16s var(--ease-soft) both;
}
.lang-menu[hidden] { display: none; }
@keyframes langPop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.lang-menu-title { display: flex; align-items: center; gap: 6px; padding: 7px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--steel); }
.lang-menu-hint { padding: 0 10px 7px; font-size: 10.5px; line-height: 1.4; color: var(--stone); }
.lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink); text-align: left; transition: background var(--t-fast) ease; }
.lang-opt:hover { background: var(--primary-soft); }
.lang-opt-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--indigo-tint); color: var(--primary-deep); font-size: 12px; font-weight: 800; flex: none; }
.lang-opt-tx { flex: 1; font-weight: 600; }
.lang-check { display: inline-flex; color: var(--primary-deep); opacity: 0; transform: scale(.6); transition: opacity var(--t-fast) ease, transform var(--t-fast) ease; }
.lang-opt.on { background: var(--primary-soft); }
.lang-opt.on .lang-check { opacity: 1; transform: none; }
.ft-icon-btn.lang-btn { display: inline-flex; align-items: center; gap: 4px; width: auto; padding: 0 9px; }
.lang-compact .lang-cur, .lang-compact .lang-auto-dot { display: none; }
.lang-compact .lang-caret { opacity: .7; }
.page-lang { position: fixed; top: 16px; right: 16px; z-index: 60; }
@media (max-width: 960px) {
  .top-nav-inner { gap: 10px; padding: 10px 14px; }
  .top-nav .btn { padding: 7px 12px; }
  .top-nav .lang-btn { padding: 7px 9px; }
  .top-nav .lang-btn .lang-cur { display: none; }
  .admin-top { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
}

/* ============ 话题选择弹窗 ============ */
.tag-modal { max-width: 760px; padding: 24px; }
.tag-modal-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; height: 380px; margin-bottom: 16px; }
.tag-cats { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; padding-right: 4px; }
.tag-cat {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-md);
  border: 1px solid transparent; background: none; cursor: pointer; font-family: var(--font);
  font-size: 13px; font-weight: 600; color: var(--steel); transition: all var(--t-fast) ease-out; text-align: left;
}
.tag-cat:hover { background: var(--surface-soft); color: var(--ink); }
.tag-cat.active { background: var(--primary-soft); border-color: rgba(59, 130, 246, .35); color: var(--primary-deep); }
.tag-cat .cat-dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.tag-cat-n { margin-left: auto; font-size: 11px; color: var(--stone); font-family: var(--mono); }
.tag-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tag-search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-md); background: var(--surface-soft); border: 1px solid var(--hairline); color: var(--stone); }
.tag-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.tag-search input { flex: 1; border: none; background: none; outline: none; font-family: var(--font); font-size: 13.5px; color: var(--ink); }
.tag-grid { display: flex; flex-wrap: wrap; gap: 9px; align-content: flex-start; overflow-y: auto; padding: 2px; flex: 1; }
.tag-big { padding: 9px 15px; font-size: 13.5px; position: relative; }
.tag-big .tag-cat-name { font-size: 10px; font-weight: 600; opacity: .6; margin-left: 2px; }
.tag-big.selected .tag-cat-name { opacity: .85; }
.tag-none { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--stone); font-size: 13px; padding: 40px 0; width: 100%; }
.tag-modal-foot { display: flex; align-items: center; gap: 10px; }
.tag-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--steel); font-weight: 600; }
.tag-count svg { color: var(--success); }
.tag-count b { color: var(--primary-deep); font-family: var(--mono); }
.tag-pick-box { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--surface-soft); border: 1px dashed var(--hairline); min-height: 52px; align-items: center; }
@media (max-width: 680px) {
  .tag-modal { padding: 18px; }
  .tag-modal-body { grid-template-columns: 1fr; height: auto; max-height: 62vh; }
  .tag-cats { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .tag-cat { padding: 6px 10px; font-size: 12px; }
  .tag-cat-n { display: none; }
  .tag-grid { max-height: 34vh; }
  .tag-modal-foot { flex-wrap: wrap; }
  .shell-intro .main { padding: 12px 12px calc(82px + env(safe-area-inset-bottom)); }
  .shell-intro .topbar { gap: 6px; margin-bottom: 10px; }
  .shell-intro .topbar-title { font-size: 19px; }
  .shell-intro .topbar-sub { font-size: 11px; }
  .shell-intro .topbar > .chip { font-size: 10px; padding: 3px 7px; }
  .shell-intro .lang-top { margin-left: auto; }
  .intro-wrap { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .link-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; padding: 12px 8px; }
  .link-side { padding: 0 3px; }
  .link-side.peer { grid-column: 2; }
  .link-avatar { width: 64px; height: 64px; margin-bottom: 6px; border-radius: 20px; }
  .link-avatar .avatar { border-radius: 14px; }
  .link-gender { width: 21px; height: 21px; border-radius: 7px; }
  .link-name { font-size: 14px; gap: 4px; }
  .link-name .pill { font-size: 10px; padding: 1px 5px; }
  .link-meta { font-size: 10px; gap: 3px; }
  .link-bio { padding: 5px 6px; font-size: 11px; margin-top: 5px; }
  .link-tags { gap: 4px; margin-top: 6px; }
  .ltag { font-size: 10px; padding: 3px 6px; gap: 3px; }
  .link-dm { font-size: 11px; padding: 5px 8px; margin-top: 6px; }
  .link-bridge { grid-column: 1 / -1; grid-row: 7; gap: 5px; margin-top: 12px; }
  .link-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 340px; padding: 9px 12px; border-radius: 12px; }
  .link-symbol { display: none; }
  .link-interest-count { flex-direction: row; align-items: center; gap: 8px; }
  .link-interest-count b { font-size: 24px; letter-spacing: -.7px; }
  .link-interest-count span { font-size: 11px; }
  .link-score { flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--hairline-soft); }
  .link-score b { font-size: 13px; }
  .link-hint { font-size: 10px; }
  .common-box { padding: 12px; }
  .common-box .card-title { font-size: 13px; }
  .common-chip { font-size: 11px; padding: 3px 7px; }
  .common-chips { gap: 5px; margin-top: 8px; }
  .topic-list { gap: 6px; margin-top: 8px; }
  .topic-item { font-size: 11px; padding: 7px; gap: 5px; }
  .topic-item svg { width: 12px; height: 12px; }
  .intro-ready-panel { padding: 10px; }
  .ready-dock { gap: 8px; }
  .rlamp { padding: 5px 7px; }
  .ready-actions { gap: 6px; }
  .ready-actions > .btn { padding: 10px; }
  .ready-alt .btn { padding: 5px; }
  .dm-main .chat-panel { height: 420px; min-height: 340px; }
  .hist-stats { gap: 8px; }
}

/* ============ 头像上传 ============ */
.avatar-upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-soft); border: 1px solid var(--hairline-soft); }
.avatar-upload .avatar { border-radius: 16px; box-shadow: var(--shadow); flex-shrink: 0; }
.avatar-upload-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-upload .form-hint { flex-basis: 100%; margin: 0; }

/* ============ 连麦历史 ============ */
.hist-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.hist-stat { text-align: center; padding: 12px 8px; border-radius: var(--r-md); background: var(--surface-soft); border: 1px solid var(--hairline-soft); }
.hist-stat b { display: block; font-size: 19px; font-weight: 800; color: var(--primary-deep); font-family: var(--font); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: -.01em; }
.hist-stat span { font-size: 11.5px; color: var(--stone); font-weight: 600; }
.hist-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 2px; }
.hist-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-md); background: var(--surface-soft); border: 1px solid var(--hairline-soft); transition: all var(--t-fast) ease-out; }
.hist-row:hover { border-color: rgba(59, 130, 246, .35); transform: translateX(2px); }
.hist-who { min-width: 0; flex: 1; }
.hist-who b { display: block; font-size: 13.5px; color: var(--ink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-who span { font-size: 11.5px; color: var(--stone); }
.hist-dur { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--primary-deep); font-family: var(--mono); white-space: nowrap; }
.hist-dur svg { color: var(--stone); }
.hist-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 12px; color: var(--stone); font-size: 12.5px; text-align: center; }

/* ============ 私信 ============ */
.dm-layout { display: grid; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: 16px; align-items: stretch; height: clamp(440px, calc(100dvh - 126px), 760px); }
.dm-layout > * { min-width: 0; min-height: 0; }
.dm-list-card { padding: 18px; display: flex; flex-direction: column; }
.dm-list-card > .card-title { flex-shrink: 0; }
#dm-requests { flex-shrink: 0; max-height: 45%; overflow-y: auto; }
#dm-chat-slot { height: 100%; }
.dm-req { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-md); background: var(--warning-soft); border: 1px solid rgba(245, 158, 11, .35); margin-bottom: 10px; flex-wrap: wrap; }
.dm-req-txt { min-width: 0; flex: 1; }
.dm-req-txt b { display: block; font-size: 13.5px; color: var(--ink-deep); }
.dm-req-txt span { font-size: 11.5px; color: var(--steel); }
.dm-req-btns { display: flex; gap: 6px; }
.dm-list { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 6px; overflow-y: auto; padding-right: 2px; }
.dm-list > * { flex-shrink: 0; }
.dm-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 10px; border-radius: var(--r-md);
  border: 1px solid transparent; background: none; cursor: pointer; font-family: var(--font); text-align: left;
  transition: background var(--t-fast) ease-out, border-color var(--t-fast) ease-out; width: 100%;
}
.dm-item:hover { background: var(--surface-soft); border-color: var(--hairline-soft); }
.dm-item.active { background: var(--primary-soft); border-color: rgba(59, 130, 246, .28); }
.dm-item.dim { opacity: 1; }
.dm-item.pending { background: #fffcf5; border-color: #f5ead5; }
.dm-item.pending:hover { background: #fff8ea; border-color: #eeddbb; }
.dm-item.pending.active { background: #fff7e8; border-color: #e8c98c; }
.dm-item.rejected { background: var(--surface-soft); }
.dm-item-txt { min-width: 0; flex: 1; }
.dm-item-txt b { display: block; font-size: 13.5px; line-height: 1.45; font-weight: 650; color: var(--ink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-preview { display: block; font-size: 12px; color: var(--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.dm-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; flex-shrink: 0; min-width: 54px; }
.dm-time { font-size: 10.5px; line-height: 1.2; color: var(--stone); white-space: nowrap; }
.dm-status { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 20px; padding: 2px 7px; border: 1px solid transparent; border-radius: 5px; font-size: 10.5px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.dm-status.pending { color: #9a670c; background: #fff5df; border-color: #f2dfb8; }
.dm-status.pending i { width: 5px; height: 5px; border-radius: 50%; background: #d99a20; box-shadow: 0 0 0 2px rgba(217, 154, 32, .12); }
.dm-status.rejected { color: var(--steel); background: #eef0f3; border-color: #e1e4e8; }
.dm-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 12px; color: var(--stone); font-size: 13px; text-align: center; }
.dm-main { min-width: 0; }
.dm-main .chat-panel { height: 100%; min-height: 0; }
.dm-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  height: 100%; min-height: 0; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--hairline);
  color: var(--stone); padding: 24px;
}
.dm-placeholder b { font-size: 16px; color: var(--charcoal); }
.dm-placeholder span { font-size: 13px; max-width: 340px; line-height: 1.7; }
@media (max-width: 960px) {
  .dm-layout { grid-template-columns: minmax(0, 1fr); height: auto; }
  .dm-list { max-height: 280px; flex: none; }
  #dm-requests { max-height: 240px; }
  .dm-main .chat-panel, .dm-placeholder { height: 460px; min-height: 340px; }
}

/* ============ 私聊图片消息 + 智能滚动 + 灯箱 ============ */
.chat-panel { position: relative; }
.chat-img-btn {
  flex: 0 0 auto; width: 46px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--hairline); background: var(--surface); color: var(--steel);
  cursor: pointer; transition: color var(--t-fast) ease-out, border-color var(--t-fast) ease-out, background var(--t-fast) ease-out;
}
.chat-img-btn:hover { color: var(--info); border-color: var(--info); background: var(--info-tint); }
.chat-img-btn:active { transform: scale(.94); }
.chat-img-btn:disabled { opacity: .55; cursor: not-allowed; }
.chat-img-btn.busy { opacity: .55; pointer-events: none; }
.chat-img-btn.busy svg { animation: spin .9s linear infinite; }
.chat-bubble-img {
  position: relative; padding: 4px; line-height: 0; cursor: zoom-in; overflow: hidden; display: block;
  background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: 14px;
  transition: transform var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out;
}
.chat-bubble-img:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.chat-bubble-img img { display: block; width: 220px; max-width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 10px; transition: transform .25s var(--ease-soft); }
.chat-bubble-img:hover img { transform: scale(1.03); }
.chat-img-badge {
  position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(17, 24, 39, .55); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transform: translateY(4px); transition: all var(--t-fast) ease-out; pointer-events: none;
}
.chat-bubble-img:hover .chat-img-badge, .chat-bubble-img:focus-visible .chat-img-badge { opacity: 1; transform: none; }
@media (pointer: coarse) { .chat-img-badge { opacity: .9; transform: none; } }
.chat-msg.mine .chat-bubble-img { border-color: rgba(7, 193, 96, .45); border-radius: 14px; }
.chat-jump {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--chat-composer-height, 80px) + 8px); z-index: 6;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .14); background: var(--charcoal); color: #fff;
  font-size: 12px; font-weight: 600; box-shadow: var(--shadow); cursor: pointer;
  animation: fadeUp .22s ease-out;
}
.chat-jump:hover { background: var(--ink-deep); }
.chat-jump.hidden { display: none; }
.ft-chat .chat-jump { background: rgba(28, 28, 34, .92); border-color: rgba(255, 255, 255, .18); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox {
  position: fixed; inset: 0; z-index: 1250; display: flex; align-items: center; justify-content: center;
  padding: 64px 20px 24px; background: rgba(9, 13, 24, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: lbIn .18s ease-out;
}
.lightbox img {
  max-width: min(92vw, 1100px); max-height: calc(100vh - 110px); object-fit: contain;
  border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .65);
}
.lightbox-bar {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: linear-gradient(180deg, rgba(9, 13, 24, .78), transparent);
}
.lightbox-bar .btn { color: #fff; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); }
.lightbox-bar .btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox-name { color: rgba(255, 255, 255, .72); font-size: 12px; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 680px) {
  .chat-bubble-img img { width: 180px; max-height: 240px; }
  .chat-img-btn { width: 42px; }
  .lightbox { padding: 56px 10px 14px; }
  .lightbox img { max-height: calc(100vh - 90px); }
  .lightbox-name { max-width: 30vw; }
}
/* iOS 聚焦 <16px 输入框会触发页面缩放，所有触屏（手机+平板）统一抬到 16px */
@media (pointer: coarse) {
  .input, .select, textarea.input, .chat-input-row .input, .ft-chat .chat-input-row .input, .tag-search input { font-size: 16px; }
}

/* ---- 气泡精修：入场 / 连续消息分组 / 悬停侧时间 / 主题滚动条 ---- */
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.chat-msg.grouped { margin-top: -8px; }
.chat-msg.grouped.peer .chat-bubble { border-radius: 14px 14px 14px 4px; }
.chat-msg.grouped.mine .chat-bubble { border-radius: 14px 14px 4px 14px; }
.chat-side-time {
  flex-shrink: 0; font-size: 10.5px; color: var(--stone); opacity: 0; transition: opacity var(--t-fast) ease-out;
  font-family: var(--mono); padding-bottom: 3px; white-space: nowrap;
}
.chat-msg:hover .chat-side-time { opacity: .85; }
.chat-list::-webkit-scrollbar { width: 8px; }
.chat-list::-webkit-scrollbar-track { background: transparent; }
.chat-list::-webkit-scrollbar-thumb { background: rgba(17, 24, 39, .16); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.chat-list::-webkit-scrollbar-thumb:hover { background: rgba(7, 193, 96, .45); border: 2px solid transparent; background-clip: padding-box; }
@media (max-width: 680px) {
  .chat-bubble, .chat-trans { max-width: 84%; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-msg { animation: none; }
  .chat-bubble-img img, .chat-img-badge { transition: none; }
}
