/* achooachoo 口播网站 · 样式
   颜色、玻璃、按钮、徽章、输入框照搬 achooachoo（apps/web/src/app/globals.css 的 token 和组件类，2026-09-09 版），
   登录页照搬 cyber-intro.tsx 的 LOGIN_CSS 夜班（master）那一套。不用 Tailwind，原来的工具类换成下面的布局类。 */

:root {
  color-scheme: light;
  --brand-50: #ecfdf5; --brand-100: #d1fae5; --brand-200: #a7f3d0; --brand-300: #6ee7b7; --brand-400: #34d399;
  --brand-500: #10b981; --brand-600: #059669; --brand-700: #047857; --brand-800: #065f46; --brand-900: #064e3b;
  --neutral-400: #9fb1a8;
  --canvas: #eef3f0; --surface: #ffffff; --surface-2: #f3f8f5; --surface-hover: #eef4f0; --surface-3: #e9efeb;
  --foreground: #0c1813; --fg-secondary: #3a4c44; --fg-muted: #566860;
  --border: #dde7e1; --border-strong: #cad7d0; --ring: rgba(16, 185, 129, 0.42);
  --brand: #10b981; --brand-ink: #0a7256; --brand-soft: #d3efe2; --brand-softer: #e2f5ec;
  --brand-fill-grad: linear-gradient(118deg, #047857 0%, #059669 44%, #10b981 78%, #34d399 100%);
  --success: #10b981; --success-soft: #e3f6ee; --success-ink: #0f7a55;
  --processing: #caa46a; --processing-soft: #f5ecda; --processing-ink: #8a5a0c;
  --danger: #e05568; --danger-soft: #fce8eb; --danger-ink: #a83a4a;
  --caution: #e0974f; --caution-soft: #fbecd9; --caution-ink: #a55f1c;
  --font-sans: 'Inter', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 14px; --r-2xl: 16px; --r-3xl: 20px; --r-hero: 24px; --r-pill: 9999px;
  --ease-out-q: cubic-bezier(0.25, 1, 0.5, 1); --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --dur-1: 160ms; --dur-2: 240ms; --dur-3: 360ms;
  --shadow-xs: 0 1px 2px rgba(10, 36, 26, 0.05);
  --shadow-sm: 0 1px 2px rgba(10, 36, 26, 0.06), 0 1px 1px rgba(10, 36, 26, 0.04);
  --shadow-md: 0 1px 2px rgba(10, 36, 26, 0.06), 0 6px 16px -6px rgba(10, 36, 26, 0.12);
  --shadow-xl: 0 4px 8px rgba(10, 36, 26, 0.08), 0 28px 56px -16px rgba(10, 36, 26, 0.24);
  --lg-blur: blur(24px) saturate(1.7);
  --lg-fill: color-mix(in srgb, var(--surface) 62%, transparent);
  --lg-fill-strong: color-mix(in srgb, var(--surface) 77%, transparent);
  --lg-control-fill: color-mix(in srgb, var(--surface) 72%, transparent);
  --lg-solid: var(--surface);
  --lg-hi: inset 0 1px 0 rgba(255,255,255,.65), inset 0 12px 24px -18px rgba(255,255,255,.5);
  --lg-edge: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.12) 30%, rgba(10,36,26,.10));
  --lg-shadow: 0 1px 2px rgba(10,36,26,.06), 0 16px 40px -16px rgba(10,36,26,.18);
  --lg-shadow-hover: 0 2px 4px rgba(10,36,26,.08), 0 22px 48px -17px rgba(10,36,26,.26);
  --gold: #caa46a; --gold-2: #d8b98a; --gold-deep: #9c7c45; --gold-line: rgba(202, 164, 106, 0.42);
  --night: #08120e; --night-line: rgba(180, 255, 220, 0.085); --night-line-2: rgba(180, 255, 220, 0.15);
  --night-ink: #effaf4; --night-ink-2: #b3ccc0; --night-ink-3: #7b948a;
  --sh-night: 0 2px 6px rgba(0, 0, 0, 0.45), 0 34px 70px -24px rgba(0, 0, 0, 0.72);
  --rd-glow: 0 0 18px rgba(16,185,129,0.22);
  --rd-grad: linear-gradient(118deg, #047857 0%, #059669 44%, #10b981 78%, #34d399 100%);
  --rd-grad-soft: linear-gradient(118deg, #10b981, #34d399);
}
[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #07120d; --surface: #0e1c16; --surface-2: #142620; --surface-hover: #182b22; --surface-3: #1c332a;
  --foreground: #effaf4; --fg-secondary: #b3ccc0; --fg-muted: #82998f;
  --border: #213a30; --border-strong: #2e5042; --ring: rgba(52, 211, 153, 0.55);
  --brand: #34d399; --brand-ink: #6ee7b7; --brand-soft: #0c2e22; --brand-softer: #0a241b;
  --brand-fill-grad: linear-gradient(118deg, #059669 0%, #10b981 55%, #34d399 100%);
  --success: #34d399; --success-soft: #122a1f; --success-ink: #6fe0b0;
  --processing: #d8b98a; --processing-soft: #2a2110; --processing-ink: #e3c890;
  --danger: #e58496; --danger-soft: #2d181c; --danger-ink: #f0a6b1;
  --caution: #e0974f; --caution-soft: #2a1d10; --caution-ink: #eab074;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 16px -6px rgba(0, 0, 0, 0.50);
  --shadow-xl: 0 4px 8px rgba(0, 0, 0, 0.45), 0 24px 48px -12px rgba(0, 0, 0, 0.66);
  --lg-blur: blur(26px) saturate(1.45);
  --lg-fill: color-mix(in srgb, var(--surface) 58%, transparent);
  --lg-fill-strong: color-mix(in srgb, var(--surface) 73%, transparent);
  --lg-control-fill: color-mix(in srgb, var(--surface) 78%, transparent);
  --lg-hi: inset 0 1px 0 rgba(255,255,255,.12), inset 0 10px 22px -18px rgba(255,255,255,.10);
  --lg-edge: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05) 30%, rgba(0,0,0,.35));
  --lg-shadow: 0 1px 2px rgba(0,0,0,.38), 0 20px 48px -18px rgba(0,0,0,.68);
  --lg-shadow-hover: 0 2px 4px rgba(0,0,0,.46), 0 26px 56px -18px rgba(0,0,0,.78);
  --gold: #d8b98a; --gold-2: #e7d2ad; --gold-deep: #caa46a; --gold-line: rgba(216, 185, 138, 0.32);
  --night: #050e0a;
  --rd-glow: 0 0 20px rgba(52,211,153,0.28);
  --rd-grad: linear-gradient(118deg, #059669, #10b981 55%, #34d399);
}

* { box-sizing: border-box; border-color: var(--border); }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: radial-gradient(120% 60% at 50% -10%, rgba(16, 185, 129, 0.07), transparent 60%), var(--canvas);
  color: var(--foreground); font-family: var(--font-sans); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: rgba(16, 185, 129, 0.2); color: #06301f; }
[data-theme="dark"] ::selection { background: rgba(52, 211, 153, 0.28); color: #effaf4; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; }
.muted { color: var(--fg-muted); }
.sec { color: var(--fg-secondary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.t-display { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.t-h1 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.t-h2 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.t-h3 { font-size: 15px; line-height: 1.4; font-weight: 600; margin: 0; }
.t-sm { font-size: 13px; line-height: 1.5; }
.t-label { font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.02em; color: var(--fg-secondary); }
.t-caption { font-size: 11px; line-height: 1.3; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-muted); }

/* —— 按钮 —— */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: var(--r-lg); border: 1px solid transparent; cursor: pointer; white-space: nowrap; user-select: none;
  transition: filter var(--dur-1) var(--ease-out-q), background var(--dur-1) var(--ease-out-q), border-color var(--dur-1) var(--ease-out-q), color var(--dur-1) var(--ease-out-q), box-shadow var(--dur-1) var(--ease-out-q), transform var(--dur-1) var(--ease-spring);
}
.btn-primary { background: var(--brand-fill-grad); color: #fff; --btn-elevation: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.28); box-shadow: var(--btn-elevation); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.04); box-shadow: var(--shadow-md), var(--rd-glow), inset 0 1px 0 rgba(255,255,255,0.32); }
.btn-secondary { background: var(--lg-control-fill); color: var(--fg-secondary); border-color: var(--border-strong); --btn-elevation: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.24); box-shadow: var(--btn-elevation); }
.btn-secondary:hover:not(:disabled) { background: var(--brand-soft); border-color: var(--brand-400); color: var(--brand-ink); }
.btn-ghost { font-size: 13px; padding: 7px 12px; background: transparent; color: var(--fg-muted); }
.btn-ghost:hover:not(:disabled) { color: var(--brand-ink); background: var(--brand-soft); }
.btn-ghost.danger:hover:not(:disabled) { color: var(--danger); background: var(--danger-soft); }
.btn-danger { background: var(--danger-soft); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 32%, transparent); }
.btn-primary:active:not(:disabled), .btn-secondary:active:not(:disabled), .btn-ghost:active:not(:disabled) { transform: scale(.985); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
button:disabled { opacity: .5; cursor: default; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--r-pill); }

/* —— 液态玻璃三层配方 —— */
.glass-panel, .card, .page-header, .top-nav-glass, .modal-surface {
  position: relative; background: var(--lg-fill); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  border: 1px solid transparent; box-shadow: var(--lg-hi), var(--lg-shadow);
}
.glass-panel, .card, .page-header { border-radius: var(--r-3xl); }
.glass-panel::before, .card::before, .page-header::before, .top-nav-glass::before, .modal-surface::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--lg-edge); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card { padding: 20px; }
.card-interactive { transition: box-shadow var(--dur-2) var(--ease-out-q), transform var(--dur-2) var(--ease-out-q); }
.card-interactive:hover { box-shadow: var(--lg-hi), var(--lg-shadow-hover); transform: translateY(-2px); }
.modal-surface { background: var(--lg-fill-strong); box-shadow: var(--lg-hi), var(--shadow-xl); border-radius: var(--r-3xl); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-panel, .card, .page-header, .top-nav-glass, .modal-surface { background: var(--lg-solid); }
}
.gold-hairline { background: linear-gradient(90deg, transparent, var(--gold-line) 14%, var(--ring) 50%, var(--gold-line) 86%, transparent); }
.text-gem { background: var(--rd-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* —— 徽章 —— */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1; padding: 4px 9px; border-radius: var(--r-pill); border: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.badge-success { background: var(--success-soft); color: var(--success-ink); } .badge-success .dot { background: var(--success); }
.badge-processing { background: var(--processing-soft); color: var(--processing-ink); } .badge-processing .dot { background: var(--processing); animation: pulse 1.4s ease-in-out infinite; }
.badge-danger { background: var(--danger-soft); color: var(--danger-ink); } .badge-danger .dot { background: var(--danger); }
.badge-caution { background: var(--caution-soft); color: var(--caution-ink); } .badge-caution .dot { background: var(--caution); }
.badge-neutral { background: var(--surface-2); color: var(--fg-secondary); border-color: var(--border); } .badge-neutral .dot { background: var(--neutral-400); }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); } .badge-brand .dot { background: var(--brand-500); }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--processing); } 50% { opacity: .55; box-shadow: 0 0 0 3px rgba(207,148,32,0); } }

/* —— 输入 —— */
.input, .textarea, .select {
  width: 100%; font-family: var(--font-sans); font-size: 14px; color: var(--foreground); background: var(--lg-control-fill);
  border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 8px 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(10,36,26,.04);
  transition: border-color var(--dur-1) var(--ease-out-q), box-shadow var(--dur-1) var(--ease-out-q);
}
.textarea { resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--fg-muted); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--ring), inset 0 1px 0 rgba(255,255,255,.22); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--fg-secondary); }
.check input { width: 16px; height: 16px; accent-color: var(--brand-600); }

/* —— 进度 —— */
.progress { height: 6px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--brand-fill-grad); transition: width var(--dur-3) var(--ease-out-q); }

/* —— 标签页 / 段控 / 表格 / 骨架 —— */
.tablist { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 13.5px; font-weight: 500; color: var(--fg-muted); background: transparent; cursor: pointer; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--dur-1) var(--ease-out-q), border-color var(--dur-1) var(--ease-out-q); }
.tab:hover { color: var(--foreground); border-bottom-color: var(--border-strong); }
.tab[aria-selected="true"] { color: var(--foreground); font-weight: 600; border-bottom-color: var(--brand-600); }
.tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tab .count { font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--fg-muted); border: 1px solid var(--border); }
.tab[aria-selected="true"] .count { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; background: var(--lg-control-fill); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), var(--shadow-xs); }
.segmented > button { padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--fg-secondary); background: transparent; border: 0; border-radius: var(--r-md); cursor: pointer; transition: background var(--dur-1) var(--ease-out-q), box-shadow var(--dur-1) var(--ease-out-q), transform var(--dur-2) var(--ease-spring); }
.segmented > button[aria-pressed="true"] { background: var(--surface); color: var(--foreground); font-weight: 600; box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.segmented > button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th { text-align: left; white-space: nowrap; background: var(--surface-3); color: var(--fg-secondary); font-weight: 600; font-size: 12px; letter-spacing: .02em; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-hover); }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 65%, transparent), transparent); animation: shimmer 1.5s ease-in-out infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ============ 外壳：顶部导航 ============ */
.top-nav-glass { position: sticky; top: 0; z-index: 30; border-radius: 0; }
.top-nav-glass::before { border-radius: 0; }
.top-nav-glass > .hairline { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: .7; pointer-events: none; }
.nav-inner { margin: 0 auto; display: flex; height: 64px; max-width: 1440px; align-items: center; gap: 24px; padding: 0 40px; }
.brand { display: flex; flex: none; align-items: center; gap: 10px; color: var(--foreground); }
.brand:hover { text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background-image: var(--rd-grad); box-shadow: 0 6px 18px -6px rgba(5,150,105,.7), inset 0 1px 0 rgba(255,255,255,.42); }
.brand-mark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.2); }
.brand-text { line-height: 1.2; }
.brand-text b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text small { display: block; margin-top: 1px; font-size: 11px; letter-spacing: .05em; color: var(--fg-muted); }
.main-nav { display: flex; min-width: 0; flex: 1; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 8px; white-space: nowrap; border-radius: var(--r-lg); padding: 8px 12px; font-size: 13.5px; font-weight: 500; color: var(--fg-secondary); border: 1px solid transparent; transition: color var(--dur-1) var(--ease-out-q), background var(--dur-1) var(--ease-out-q), transform var(--dur-2) var(--ease-spring); }
.nav-item:hover { text-decoration: none; background: rgba(16,185,129,0.07); color: var(--foreground); }
.nav-item[aria-current="page"] { background: var(--lg-control-fill); color: var(--brand-ink); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.28); transform: translateY(-1px); }
.nav-item[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background-image: var(--rd-grad-soft); box-shadow: 0 0 10px rgba(16,185,129,.65); }
.nav-item svg { opacity: .8; } .nav-item[aria-current="page"] svg { opacity: 1; }
.nav-right { display: flex; flex: none; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; border-radius: var(--r-lg); background: var(--lg-control-fill); padding: 4px 4px 4px 12px; box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.24); }
.user-chip b { font-size: 13px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--night); background-image: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r-lg); background: transparent; color: var(--fg-muted); cursor: pointer; transition: color var(--dur-1) var(--ease-out-q), background var(--dur-1) var(--ease-out-q); }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand-ink); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

.page { margin: 0 auto; max-width: 1440px; padding: 28px 40px 80px; }
.page-header { padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-header p { margin: 4px 0 0; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-lg); margin-bottom: 16px; font-size: 13.5px; background: var(--caution-soft); color: var(--caution-ink); border: 1px solid color-mix(in srgb, var(--caution) 30%, transparent); }
.banner.info { background: var(--brand-softer); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.empty { padding: 36px 20px; text-align: center; color: var(--fg-muted); border: 1px dashed var(--border-strong); border-radius: var(--r-2xl); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.err-box { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent); color: var(--danger-ink); font-size: 13px; line-height: 1.5; }

/* ============ 视频工厂 ============ */
.console { padding: 8px 24px 24px; }
.console::after { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 2px; border-radius: 2px; background-image: var(--rd-grad-soft); opacity: .55; filter: blur(.3px); pointer-events: none; }
.console-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 0 6px; flex-wrap: wrap; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.step:first-of-type { border-top: 0; }
.step-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--brand-ink); background: var(--brand-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.step.done .step-no { color: #fff; background-image: var(--rd-grad); box-shadow: 0 4px 12px -6px var(--brand); }
.step-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.step-title h3 { margin: 0; font-size: 15px; font-weight: 600; }
.picker { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.pick { position: relative; flex: none; width: 104px; scroll-snap-align: start; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); cursor: pointer; padding: 0; overflow: hidden; text-align: left; transition: box-shadow var(--dur-1) var(--ease-out-q), border-color var(--dur-1) var(--ease-out-q), transform var(--dur-1) var(--ease-spring); }
.pick:hover { border-color: var(--brand-400); transform: translateY(-1px); }
.pick:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.pick[aria-checked="true"] { border-color: var(--brand-500); box-shadow: 0 0 0 2px var(--brand-500), 0 8px 20px -10px var(--brand); }
.pick .thumb { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--surface-2); }
.pick.square .thumb { aspect-ratio: 1; }
.pick .cap { display: block; padding: 6px 8px; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-secondary); }
.pick .tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; color: #fff; background-image: var(--rd-grad); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pick[aria-checked="true"] .tick { display: grid; }
.pick.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; color: var(--fg-muted); background: var(--lg-control-fill); border-style: dashed; border-color: var(--border-strong); font-size: 12.5px; text-align: center; padding: 10px; }
.pick.tile.tall { aspect-ratio: 9 / 16.9; }
.pick.tile:hover { color: var(--brand-ink); }
.pick.voice { width: 150px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 84px; }
.pick.voice .cap { padding: 0; }
.voice-play { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand-ink); background: var(--brand-softer); border: 0; border-radius: var(--r-pill); padding: 4px 10px; cursor: pointer; align-self: flex-start; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.choice { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; transition: border-color var(--dur-1) var(--ease-out-q), box-shadow var(--dur-1) var(--ease-out-q); }
.choice:hover { border-color: var(--brand-400); }
.choice:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.choice[aria-checked="true"] { border-color: var(--brand-500); background: var(--brand-softer); box-shadow: 0 0 0 1px var(--brand-500); }
.choice b { font-size: 14px; }
.choice span { font-size: 12.5px; color: var(--fg-muted); }
.choice small { font-size: 11px; color: var(--brand-ink); font-weight: 600; }
.counter { font-size: 12px; color: var(--fg-muted); text-align: right; margin-top: 4px; }
.counter.over { color: var(--danger-ink); }
.go-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--border); }

.tasks { margin-top: 28px; }
.task-card { padding: 18px 20px; }
.task-card + .task-card { margin-top: 14px; }
.task-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.task-status { margin: 10px 0 0; font-size: 14px; font-weight: 500; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.meter-row { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--fg-muted); }
.planned { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface-2); font-size: 12.5px; color: var(--fg-secondary); }
.planned summary { cursor: pointer; font-weight: 600; }
.planned ul { margin: 8px 0 0; padding-left: 18px; }
.action-note { margin-top: 10px; font-size: 13px; }
.decision { margin-top: 14px; padding: 16px; border-radius: var(--r-2xl); background: var(--caution-soft); border: 1px solid color-mix(in srgb, var(--caution) 30%, transparent); }
[data-theme="dark"] .decision { background: color-mix(in srgb, var(--caution-soft) 70%, var(--surface)); }
.decision > p { margin: 0 0 6px; color: var(--foreground); }
.decision-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; margin-top: 10px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.decision-item img { width: 96px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-md); background: var(--surface-2); cursor: zoom-in; }
.decision-item .verdict { font-size: 13px; margin: 4px 0 8px; }
.verdict.failed { color: var(--danger-ink); } .verdict.passed { color: var(--success-ink); } .verdict.missing { color: var(--caution-ink); }

/* ============ 资产库 ============ */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 18px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.asset { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.asset .cover { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--surface-2); }
.asset.product .cover { aspect-ratio: 1; }
.asset .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.asset .name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset .actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.asset audio { width: 100%; height: 34px; }
.script-text { font-size: 13px; color: var(--fg-secondary); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.film { position: relative; width: 100%; aspect-ratio: 4 / 5; background: radial-gradient(120% 80% at 50% 0%, #11231b, #08120e 70%); display: grid; place-items: center; color: var(--night-ink); border: 0; cursor: pointer; overflow: hidden; }
.film .play { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 30px rgba(16,185,129,.35); }
.film .film-title { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: 12px; color: var(--night-ink-2); text-align: left; }
.film.playing { aspect-ratio: 9 / 16; cursor: default; }
.film video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.film.expired { cursor: default; color: var(--night-ink-3); }
.quality-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--danger-ink); }
.review-box { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }

/* ============ 管理后台 ============ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat .num { font-family: var(--font-mono); font-size: 28px; font-weight: 600; line-height: 1.1; margin-top: 6px; font-feature-settings: 'tnum' 1; }
.stat.bad .num { color: var(--danger-ink); }
.once-link { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--brand-softer); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); font-size: 13px; }
.once-link code { display: block; margin: 6px 0; word-break: break-all; font-family: var(--font-mono); font-size: 12.5px; }

/* ============ 弹窗 / 提示 ============ */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(5, 14, 10, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-surface { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px; }
.modal-surface h2 { margin: 0 0 14px; font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.lightbox img { max-height: calc(100vh - 80px); width: auto; border-radius: var(--r-xl); }
.toasts { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 40px)); }
.toast { padding: 11px 14px; border-radius: var(--r-lg); background: var(--lg-fill-strong); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); box-shadow: var(--lg-hi), var(--shadow-xl); font-size: 13.5px; border-left: 3px solid var(--brand-500); }
.toast.error { border-left-color: var(--danger); }

@media (max-width: 1180px) { .brand-text small { display: none; } }
@media (max-width: 860px) {
  .nav-inner { padding: 0 16px; gap: 12px; }
  .brand-text, .user-chip b { display: none; }
  .nav-item { padding: 8px 10px; }
  .nav-item span { display: none; }
  .page { padding: 18px 16px 60px; }
  .console { padding: 4px 16px 18px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .decision-item { grid-template-columns: 72px 1fr; }
  .decision-item img { width: 72px; }
}
@media (max-width: 520px) {
  .nav-inner { gap: 8px; }
  .nav-right .segmented { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.wide { grid-template-columns: 1fr; }
}

/* ============ 登录页（照搬 achooachoo 夜班：cyber-intro.tsx LOGIN_CSS 的 master 部分）============ */
.login-scene { display: grid; grid-template-columns: 0.618fr 0.382fr; min-height: 100vh;
  --login-lg-fill: rgba(255,255,255,.08); --login-lg-blur: blur(16px) saturate(1.1);
  --login-lg-shadow: 0 1px 2px rgba(10,36,26,.10), 0 22px 56px -14px rgba(20,24,32,.55); }
[data-theme="dark"] .login-scene { --login-lg-fill: rgba(18,22,30,.42); --login-lg-shadow: 0 1px 2px rgba(0,0,0,.38), 0 22px 56px -14px rgba(0,0,0,.65); }
.login-scene .brand-panel { position: relative; overflow: hidden; padding: 40px 48px; display: flex; flex-direction: column; color: #e9edf6; background: radial-gradient(125% 85% at 50% 0%, #313742 0%, #1e222b 48%, #131418 100%); }
.login-scene .brand-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 58%, rgba(var(--linkR, 184), var(--linkG, 200), var(--linkB, 224), calc(0.02 + 0.32 * var(--linkLum, 0.4))) 100%), radial-gradient(130% 80% at 50% 122%, rgba(0,0,0,0.45), transparent 62%); }
.login-scene .bp-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.login-scene .bp-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.login-scene .bp-logo { height: 34px; width: auto; display: block; }
.login-scene .bp-center { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.login-scene .bp-mascot { position: relative; display: flex; align-items: center; justify-content: center; width: clamp(260px, 38vh, 380px); max-width: 100%; aspect-ratio: 1 / 1.12; flex: none; }
.login-scene .bp-mascot::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 120px; height: 30px; border-radius: 50%; filter: blur(9px); background: radial-gradient(ellipse, color-mix(in srgb, var(--gold) 32%, transparent), transparent 72%); }
.login-scene .master-stage { position: relative; z-index: 1; width: 100%; height: 100%; isolation: isolate; animation: master-bob 5s ease-in-out infinite; }
.login-scene .master-halo { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; z-index: 0; pointer-events: none; animation: master-halo-spin 36s linear infinite; transform-origin: 50% 50%; }
.login-scene .master-halo img { width: 100%; height: 100%; object-fit: contain; }
.login-scene .master-body { position: absolute; bottom: 0; left: 50%; z-index: 1; height: 78%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 14px 22px rgba(0,0,0,.4)); }
@keyframes master-halo-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes master-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.login-scene .bp-greet { margin-top: 22px; font-size: 11.5px; font-family: var(--font-mono); padding: 5px 12px; border-radius: var(--r-pill); color: var(--gold-2); background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid var(--gold-line); box-shadow: 0 0 20px color-mix(in srgb, var(--gold) 15%, transparent); }
.login-scene .bp-tag { margin-top: 16px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: #f3f6ff; text-shadow: 0 0 18px rgba(120,140,255,0.3); }
.login-scene .bp-tag em { font-style: normal; color: var(--gold-2); text-shadow: 0 0 12px color-mix(in srgb, var(--gold) 30%, transparent); }
.login-scene .bp-sub { margin-top: 8px; color: #a6b2cc; font-size: 12.5px; max-width: 34ch; }
.login-scene .bp-foot { position: relative; z-index: 1; font-size: 12px; color: #6f7c95; }
.login-scene .login-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--surface); }
.login-scene .login-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; pointer-events: none; }
.login-scene .login-panel::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(120deg, rgba(38,44,56,0.42) 0%, rgba(60,68,84,0.2) 50%, rgba(141,157,182,0.16) 100%); }
.login-scene .sound-toggle { position: absolute; top: 16px; right: 18px; z-index: 3; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(10,14,22,0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 15px; cursor: pointer; }
.login-scene .sound-toggle:hover { background: rgba(10,14,22,0.55); }
.login-scene .sound-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.login-scene .login-card { position: relative; z-index: 1; width: 100%; max-width: 320px; background: var(--login-lg-fill); -webkit-backdrop-filter: var(--login-lg-blur); backdrop-filter: var(--login-lg-blur); border: 1px solid transparent; border-radius: var(--r-3xl); padding: 24px 24px 22px; box-shadow: var(--lg-hi), var(--login-lg-shadow); color: var(--foreground); }
.login-scene .login-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--lg-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .login-scene .login-card { background: var(--lg-solid); } }
.login-scene .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.login-scene .login-card h1 { margin: 9px 0 7px; font-size: 21px; letter-spacing: -.02em; color: var(--foreground); }
.login-scene .lead { margin: 0 0 18px; color: var(--fg-secondary); font-size: 13.5px; }
.login-scene .login-card .input { padding: 10px 12px; }
.login-scene .login-btn { width: 100%; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 11px; font-size: 15px; font-weight: 500; color: #fff; background: var(--brand-fill-grad); border: 0; border-radius: var(--r-pill); padding: 13px 20px; cursor: pointer; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.22); transition: filter var(--dur-1) var(--ease-out-q), transform var(--dur-1) var(--ease-spring); }
.login-scene .login-btn:hover { filter: brightness(.96); }
.login-scene .login-btn:active { transform: scale(.985); }
.login-scene .login-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring), var(--shadow-sm); }
.login-scene .login-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.login-scene .login-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: login-spin .7s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.login-scene .err-box { margin-bottom: 14px; }
.login-scene .alt-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--fg-secondary); }
.login-scene .alt-note a { color: var(--brand-ink); cursor: pointer; }
.login-scene .login-foot { margin-top: 14px; font-size: 12px; color: var(--fg-muted); line-height: 1.6; text-align: center; }
@media (max-width: 820px) { .login-scene { grid-template-columns: 1fr; } .login-scene .brand-panel { display: none; } .login-scene .login-panel { min-height: 100vh; padding: 24px 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .card-interactive:hover, .pick:hover { transform: none; }
}
