/* ============================================================
   数字教官 V3 · 1080 × 1920 竖屏大屏
   深色科技 / 浅色专业 两套配色
   ============================================================ */

/* ---------------- 主题令牌 ---------------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #04090f;
  --bg-deep: #02060b;
  --amb-1: rgba(40, 156, 214, .30);
  --amb-2: rgba(42, 88, 206, .28);
  --amb-3: rgba(196, 152, 82, .14);
  --ink: #eef6ff;
  --ink-2: rgba(224, 239, 255, .76);
  --ink-3: rgba(200, 222, 246, .46);
  --line: rgba(156, 206, 255, .14);
  --line-strong: rgba(170, 216, 255, .26);
  --glass-a: rgba(26, 50, 74, .56);
  --glass-b: rgba(9, 23, 38, .46);
  --glass-brd: rgba(186, 226, 255, .17);
  --glass-hi: rgba(255, 255, 255, .22);
  --glass-blur: 34px;
  --acc: #5fd3f3;
  --acc-2: #3d7cf0;
  --acc-ink: #ffffff;
  --gold: #d9b46a;
  --gold-soft: rgba(217, 180, 106, .16);
  --ok: #46d6a2;
  --ok-soft: rgba(70, 214, 162, .14);
  --bad: #ff7180;
  --bad-soft: rgba(255, 113, 128, .13);
  --warn: #ffc46b;
  --shadow: 0 36px 96px rgba(0, 0, 0, .56);
  --shadow-s: 0 18px 48px rgba(0, 0, 0, .38);
  --grid: rgba(126, 196, 244, .075);
  --vig: rgba(0, 4, 10, .72);
  --sk-c: #f3f8ff;
  --sk-l: #ffc46b;
  --sk-r: #63d9ff;
  --sk-outline: rgba(3, 8, 14, .82);
  --sk-torso: rgba(150, 205, 255, .055);
  --scan: rgba(120, 220, 255, .55);
  --switch-bg: rgba(12, 28, 44, .54);
  --switch-on: linear-gradient(160deg, #3f87f6, #5fd3f3);
  --toast-bg: rgba(8, 22, 36, .86);
  --dock-a: rgba(28, 54, 80, .62);
  --dock-b: rgba(8, 20, 34, .46);
  --dock-brd: rgba(190, 228, 255, .17);
  --dock-ink: #ffffff;
  --dock-sub: rgba(255, 255, 255, .52);
  --dock-ic-bg: rgba(95, 211, 243, .10);
  --dock-ic-brd: rgba(160, 226, 255, .16);
  --dock-ic-ink: rgba(210, 242, 255, .92);
  --dock-hover-a: rgba(40, 76, 110, .70);
  --dock-hover-b: rgba(10, 24, 40, .52);
  --ring-bg: rgba(6, 16, 27, .70);
  --ring-ink: #ffffff;
  --ring-sub: rgba(255, 255, 255, .50);
  --media-text: #ffffff;
  --media-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #e8eff7;
  --bg-deep: #dbe6f2;
  --amb-1: rgba(92, 174, 232, .32);
  --amb-2: rgba(120, 152, 230, .24);
  --amb-3: rgba(220, 178, 96, .20);
  --ink: #0e2137;
  --ink-2: rgba(15, 38, 62, .72);
  --ink-3: rgba(15, 38, 62, .46);
  --line: rgba(25, 72, 122, .13);
  --line-strong: rgba(25, 72, 122, .24);
  --glass-a: rgba(255, 255, 255, .70);
  --glass-b: rgba(255, 255, 255, .42);
  --glass-brd: rgba(255, 255, 255, .86);
  --glass-hi: rgba(255, 255, 255, .95);
  --glass-blur: 30px;
  --acc: #1a74c8;
  --acc-2: #0b96b8;
  --acc-ink: #ffffff;
  --gold: #a9762a;
  --gold-soft: rgba(169, 118, 42, .13);
  --ok: #128f66;
  --ok-soft: rgba(18, 143, 102, .11);
  --bad: #d63c50;
  --bad-soft: rgba(214, 60, 80, .09);
  --warn: #b47410;
  --shadow: 0 34px 80px rgba(31, 66, 108, .18);
  --shadow-s: 0 16px 38px rgba(31, 66, 108, .12);
  --grid: rgba(40, 96, 150, .065);
  --vig: rgba(206, 222, 238, .55);
  --sk-c: #1a2b3e;
  --sk-l: #b86900;
  --sk-r: #00789a;
  --sk-outline: rgba(255, 255, 255, .94);
  --sk-torso: rgba(20, 70, 120, .06);
  --scan: rgba(24, 118, 190, .45);
  --switch-bg: rgba(255, 255, 255, .62);
  --switch-on: linear-gradient(160deg, #1a74c8, #0b96b8);
  --toast-bg: rgba(255, 255, 255, .90);
  --dock-a: rgba(255, 255, 255, .72);
  --dock-b: rgba(255, 255, 255, .46);
  --dock-brd: rgba(255, 255, 255, .92);
  --dock-ink: #0e2137;
  --dock-sub: rgba(15, 38, 62, .56);
  --dock-ic-bg: rgba(26, 116, 200, .08);
  --dock-ic-brd: rgba(26, 116, 200, .14);
  --dock-ic-ink: #1a74c8;
  --dock-hover-a: rgba(255, 255, 255, .88);
  --dock-hover-b: rgba(255, 255, 255, .62);
  --ring-bg: rgba(255, 255, 255, .74);
  --ring-ink: #0e2137;
  --ring-sub: rgba(15, 38, 62, .52);
  --media-text: #ffffff;
  --media-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}

/* ---------------- 基础 ---------------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; }
button, [onclick] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }
svg { display: block; }
/* 所有内联图标先给默认尺寸，避免 flex 容器把无尺寸 SVG 撑开 */
.ic { width: 24px; height: 24px; flex: none; }

#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  margin-left: -540px;
  margin-top: -960px;
  transform-origin: center center;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

/* ---------------- 环境背景 ---------------- */
.ambient { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; display: block; border-radius: 50%; filter: blur(110px); opacity: .9; }
.orb.o1 { width: 760px; height: 760px; left: -240px; top: 60px; background: var(--amb-1); }
.orb.o2 { width: 880px; height: 880px; right: -330px; top: 330px; background: var(--amb-2); }
.orb.o3 { width: 640px; height: 640px; left: 220px; bottom: -280px; background: var(--amb-3); }
.ambient .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 76% 66% at 50% 46%, #000 22%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 76% 66% at 50% 46%, #000 22%, transparent 76%);
}
.ambient .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 78% at 50% 44%, transparent 34%, var(--vig) 100%);
}
.ambient .watermark {
  position: absolute;
  right: 16px;
  top: 390px;
  writing-mode: vertical-rl;
  letter-spacing: .52em;
  font-size: 15px;
  color: var(--ink-3);
  opacity: .5;
  font-weight: 600;
}

/* ---------------- 通用玻璃 ---------------- */
.glass {
  position: relative;
  background: linear-gradient(155deg, var(--glass-a), var(--glass-b));
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(155%);
  backdrop-filter: blur(var(--glass-blur)) saturate(155%);
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), transparent 30%),
              radial-gradient(120% 60% at 10% 0%, rgba(255, 255, 255, .12), transparent 60%);
  opacity: .8;
}

/* ---------------- 主题切换（右侧竖排，评审用） ---------------- */
.theme-switch {
  position: absolute;
  z-index: 80;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  padding: 7px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--switch-bg);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-s), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}
.theme-switch button {
  width: 52px;
  height: 142px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: color .25s, background .25s, box-shadow .25s;
}
.theme-switch button::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  opacity: .6;
  writing-mode: horizontal-tb;
}
.theme-switch button.on {
  color: #fff;
  background: var(--switch-on);
  box-shadow: 0 10px 26px rgba(38, 118, 210, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.theme-switch button.on::before { opacity: 1; box-shadow: 0 0 12px currentColor; }
#stage:not([data-view="auth"]):not([data-view="home"]) .theme-switch { display: none; }

/* ---------------- 屏幕容器 ---------------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; z-index: 1; }
.hide { display: none !important; }

/* ---------------- 登录 / 注册 ---------------- */
.auth { align-items: center; justify-content: center; padding: 60px 0 96px; }
.auth-meta {
  position: absolute; left: 60px; right: 120px; top: 50px;
  display: flex; justify-content: space-between;
  font-size: 15px; letter-spacing: .2em; color: var(--ink-3);
  font-weight: 600;
}
.auth-meta .en { letter-spacing: .26em; }
.auth-center { width: 100%; display: flex; flex-direction: column; align-items: center; }
.brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 44px; }
.brand-mark {
  width: 96px; height: 96px; border-radius: 30px;
  display: grid; place-items: center;
  color: var(--gold);
  background: linear-gradient(150deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .02));
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-s), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  margin-bottom: 24px;
}
.brand-mark svg { width: 54px; height: 54px; }
.brand h1 { margin: 0; font-size: 58px; font-weight: 750; letter-spacing: .16em; text-indent: .16em; }
.brand p { margin: 14px 0 0; font-size: 19px; letter-spacing: .24em; color: var(--ink-3); }

.auth-card {
  width: 648px;
  border-radius: 40px;
  padding: 50px 56px 46px;
}
.auth-card.reg { width: 696px; padding: 42px 56px 40px; }
.auth-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; }
.auth-head h2 { margin: 0; font-size: 42px; font-weight: 700; letter-spacing: .06em; }
.auth-head p { margin: 8px 0 0; font-size: 18px; color: var(--ink-3); letter-spacing: .06em; }
.auth-head .kicker {
  font-size: 12px; letter-spacing: .28em; color: var(--gold);
  font-weight: 700; margin-bottom: 10px;
}
.auth-badge {
  font-size: 14px; letter-spacing: .12em; color: var(--ink-3);
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}
.field { margin-bottom: 20px; }
.field > label { display: block; font-size: 17px; font-weight: 600; color: var(--ink-2); margin: 0 0 9px 4px; letter-spacing: .08em; }
.input-wrap {
  height: 76px;
  display: flex; align-items: center; gap: 15px;
  padding: 0 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
html[data-theme="light"] .input-wrap { background: rgba(255, 255, 255, .55); border-color: rgba(28, 78, 130, .13); }
.input-wrap:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 4px rgba(95, 211, 243, .11), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.input-wrap .ico,
.input-wrap .ic { width: 26px; height: 26px; color: var(--ink-3); flex: none; }
.input-wrap .ico svg { width: 100%; height: 100%; }
.input-wrap input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 24px; letter-spacing: .03em;
}
.input-wrap input::placeholder { color: var(--ink-3); font-size: 21px; letter-spacing: .05em; }
.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gender button {
  height: 86px; border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--ink-2);
  transition: .2s;
}
.gender button svg { width: 30px; height: 30px; }
.gender button .gt { text-align: left; font-size: 23px; font-weight: 700; line-height: 1.1; }
.gender button .gt small { display: block; margin-top: 7px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.gender button.on {
  border-color: rgba(95, 211, 243, .55);
  background: linear-gradient(135deg, rgba(61, 124, 240, .24), rgba(95, 211, 243, .12));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 30px rgba(34, 110, 200, .18);
}
.auth-err { min-height: 26px; font-size: 17px; color: var(--bad); margin: -4px 2px 12px; letter-spacing: .03em; }
.btn {
  border: 0; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700; letter-spacing: .05em;
  transition: transform .18s, box-shadow .18s, background .18s, opacity .18s;
}
.btn svg { width: 26px; height: 26px; }
.btn:active { transform: scale(.985); }
.btn.primary {
  height: 78px; width: 100%;
  color: var(--acc-ink);
  background: linear-gradient(120deg, var(--acc-2), var(--acc));
  box-shadow: 0 18px 42px rgba(40, 118, 220, .34), inset 0 1px 0 rgba(255, 255, 255, .3);
  font-size: 25px;
}
.btn.primary:hover { box-shadow: 0 22px 52px rgba(40, 118, 220, .44), inset 0 1px 0 rgba(255, 255, 255, .34); }
.btn.ghost {
  height: 78px; padding: 0 34px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  font-size: 22px;
}
.btn.ghost:hover { background: rgba(255, 255, 255, .085); }
.btn.sm { height: 58px; padding: 0 24px; border-radius: 16px; font-size: 19px; }
.btn.sm svg { width: 21px; height: 21px; }
.auth-note { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--ink-3); letter-spacing: .04em; }
.auth-links { margin-top: 32px; font-size: 22px; color: var(--ink-3); letter-spacing: .04em; }
.auth-links button {
  border: 0; background: none; padding: 0 2px 3px;
  color: var(--gold); font-size: 22px; font-weight: 700;
  border-bottom: 1px solid rgba(217, 180, 106, .5);
  margin-left: 8px;
}
.demo-line { margin-top: 18px; font-size: 16px; color: var(--ink-3); letter-spacing: .06em; }
.demo-line b { color: var(--ink-2); font-weight: 700; }
.demo-line button {
  border: 0; background: none; color: var(--acc); font-size: 16px;
  text-decoration: underline; text-underline-offset: 4px; padding: 0 4px;
}
.auth-foot {
  position: absolute; left: 0; right: 120px; bottom: 48px;
  text-align: center; font-size: 15px; color: var(--ink-3); letter-spacing: .14em;
}

/* ---------------- 欢迎 / 引导 ---------------- */
.media-fill, .media-fill video, .media-fill img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.welcome-top {
  position: absolute; left: 58px; right: 140px; top: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-inline { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.86); }
.brand-inline .bm {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); background: rgba(8, 18, 30, .26);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: #e4c07a;
}
.brand-inline .bm svg { width: 30px; height: 30px; }
.brand-inline b { font-size: 22px; letter-spacing: .16em; }
.brand-inline small { display: block; margin-top: 5px; font-size: 12px; letter-spacing: .24em; color: rgba(255,255,255,.5); }
.skip-pill {
  height: 54px; padding: 0 26px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(10, 22, 38, .26); color: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-size: 18px; letter-spacing: .1em;
}
.welcome-cap {
  position: absolute; left: 92px; bottom: 150px; max-width: 760px;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .55);
}
.kicker { font-size: 14px; letter-spacing: .3em; color: #d9b46a; font-weight: 700; }
.welcome-cap .who { margin-top: 16px; font-size: 34px; letter-spacing: .14em; color: rgba(255,255,255,.76); }
.welcome-cap .line { margin-top: 12px; font-size: 46px; line-height: 1.42; font-weight: 650; letter-spacing: .04em; }
.welcome-cap .sub { margin-top: 18px; font-size: 20px; color: rgba(255,255,255,.54); letter-spacing: .08em; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 220px; height: 82px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #fff; font-size: 23px; font-weight: 700; letter-spacing: .1em;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(10, 24, 40, .45);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.play-btn svg { width: 28px; height: 28px; }

.guide { background: #050b13; }
.guide-still { animation: guideKen 9s ease-out both; }
@keyframes guideKen { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.075) translateX(-1.4%); } }
.guide-edge {
  position: absolute; left: 0; top: 18%; bottom: 18%; width: 5px;
  background: linear-gradient(180deg, transparent, var(--acc), var(--gold), transparent);
  box-shadow: 0 0 34px 4px rgba(95, 211, 243, .45);
  opacity: .8;
  animation: edgePulse 2.6s ease-in-out infinite;
}
@keyframes edgePulse { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
.guide-cap {
  position: absolute; left: 50%; bottom: 172px; transform: translateX(-50%);
  width: 900px; text-align: center; color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .62);
}
.guide-cap .cap-kicker { font-size: 17px; letter-spacing: .28em; color: rgba(255,255,255,.58); }
.guide-cap .cap-line { margin-top: 16px; font-size: 48px; font-weight: 650; letter-spacing: .06em; line-height: 1.4; }
.guide-cap .cap-rule { width: 84px; height: 2px; margin: 28px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.guide-skip { position: absolute; left: 54px; top: 50px; }
.guide-dots { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; gap: 10px; }
.guide-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.guide-dots i.on { width: 30px; border-radius: 99px; background: var(--gold); }

/* ---------------- 首页 ---------------- */
.home-top {
  position: absolute; left: 58px; right: 140px; top: 54px;
  display: flex; align-items: center; justify-content: space-between;
}
.identity { display: flex; align-items: center; gap: 18px; }
.avatar {
  width: 76px; height: 76px; border-radius: 24px;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, rgba(95, 211, 243, .55), rgba(61, 124, 240, .35));
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 14px 34px rgba(18, 78, 150, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.identity .name { font-size: 29px; font-weight: 700; letter-spacing: .06em; color: var(--media-text); text-shadow: var(--media-shadow); }
.identity .role { margin-top: 7px; font-size: 16px; color: rgba(255,255,255,.62); letter-spacing: .12em; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.home-top-right { display: flex; align-items: center; gap: 20px; }
.ring {
  width: 104px; height: 104px; border-radius: 50%;
  background: conic-gradient(var(--acc) var(--p, 0deg), rgba(255,255,255,.13) 0);
  padding: 3px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.ring .inner {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ring-bg); color: var(--ring-ink);
  border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ring b { font-size: 26px; line-height: 1; font-family: "Bahnschrift", "DIN Alternate", sans-serif; }
.ring small { margin-top: 6px; font-size: 12px; letter-spacing: .16em; color: var(--ring-sub); }
.logout-btn {
  width: 64px; height: 64px; border-radius: 20px;
  border: 1px solid var(--dock-brd);
  background: var(--dock-b); color: var(--dock-sub);
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.logout-btn .ic { width: 26px; height: 26px; }
.logout-btn svg { width: 26px; height: 26px; }

.dock {
  position: absolute; left: 58px; top: 50%; transform: translateY(-50%);
  width: 312px; display: flex; flex-direction: column; gap: 20px;
  animation: dockIn .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes dockIn { from { opacity: 0; transform: translate(-26px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.dock-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; letter-spacing: .28em; color: rgba(255,255,255,.66);
  font-weight: 700; margin: 0 0 2px 8px;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.dock-kicker::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,255,255,.3), transparent); }
.dock-btn {
  position: relative;
  width: 100%; min-height: 150px;
  display: grid; grid-template-columns: 58px 1fr 34px; align-items: center; gap: 16px;
  padding: 22px 22px;
  border-radius: 28px;
  text-align: left;
  color: var(--dock-ink);
  border: 1px solid var(--dock-brd);
  background: linear-gradient(155deg, var(--dock-a), var(--dock-b));
  box-shadow: 0 22px 52px rgba(0, 0, 0, .30), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  transition: transform .24s, background .24s, border-color .24s, box-shadow .24s;
  animation: btnIn .7s cubic-bezier(.2,.8,.2,1) both;
  overflow: hidden;
}
.dock-btn:nth-child(2) { animation-delay: .07s; }
.dock-btn:nth-child(3) { animation-delay: .14s; }
.dock-btn:nth-child(4) { animation-delay: .21s; }
@keyframes btnIn { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.dock-btn::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
  background: linear-gradient(180deg, transparent, rgba(95,211,243,.8), transparent);
  opacity: .75;
}
.dock-btn:hover {
  transform: translateX(9px);
  border-color: var(--line-strong);
  background: linear-gradient(155deg, var(--dock-hover-a), var(--dock-hover-b));
  box-shadow: 0 28px 64px rgba(0, 0, 0, .36), inset 0 1px 0 var(--glass-hi);
}
.dock-btn .ico {
  width: 56px; height: 56px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--dock-ic-bg);
  border: 1px solid var(--dock-ic-brd);
  color: var(--dock-ic-ink);
}
.dock-btn .ico svg { width: 30px; height: 30px; }
.dock-btn .txt b { display: block; font-size: 27px; font-weight: 700; letter-spacing: .05em; }
.dock-btn .txt small { display: block; margin-top: 8px; font-size: 15px; letter-spacing: .03em; color: var(--dock-sub); line-height: 1.35; }
.dock-btn .mark { justify-self: end; color: var(--dock-sub); font-size: 30px; }
.dock-btn .mark .ic { width: 22px; height: 22px; }
.dock-btn .mark.ok {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: #062216; background: linear-gradient(150deg, #7cf0c6, #35c893);
  box-shadow: 0 0 0 5px rgba(70, 214, 162, .12), 0 8px 20px rgba(0,0,0,.24);
}
.dock-btn .mark.ok svg { width: 20px; height: 20px; }
.dock-btn.done { border-color: rgba(70, 214, 162, .34); }
.dock-btn.done::before { background: linear-gradient(180deg, transparent, rgba(70,214,162,.9), transparent); }
.dock-btn.disabled { opacity: .52; filter: saturate(.6); cursor: not-allowed; }
.dock-btn.disabled:hover { transform: none; }
.dock-btn .soon {
  position: absolute; right: 18px; top: 16px;
  font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 5px 9px;
}
.home-foot {
  position: absolute; left: 58px; bottom: 52px; right: 150px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; color: rgba(255,255,255,.64); letter-spacing: .06em;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.home-foot .chip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--dock-brd);
  background: var(--dock-b);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--dock-sub);
}
.home-foot .chip svg { width: 18px; height: 18px; color: var(--gold); }
.home-index {
  position: absolute; right: 152px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: "Bahnschrift", sans-serif;
  font-size: 15px; letter-spacing: .4em; color: rgba(255,255,255,.4);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.home-index b { color: rgba(255,255,255,.74); font-size: 22px; }

/* ---------------- 子页头部 ---------------- */
.sub-head {
  height: 142px; flex: none;
  display: flex; align-items: center; gap: 24px;
  padding: 48px 120px 0 56px;
}
.back {
  width: 66px; height: 66px; border-radius: 21px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--glass-brd);
  background: linear-gradient(150deg, var(--glass-a), var(--glass-b));
  color: var(--ink-2);
  box-shadow: var(--shadow-s), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  font-size: 38px; line-height: 1;
  padding-bottom: 4px;
}
.sub-head .grow { flex: 1; min-width: 0; }
.sub-head h1 { margin: 0; font-size: 38px; font-weight: 720; letter-spacing: .05em; }
.sub-head p { margin: 7px 0 0; font-size: 18px; color: var(--ink-3); letter-spacing: .05em; }
.head-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.tool-btn {
  height: 52px; padding: 0 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.035);
  color: var(--ink-3); font-size: 16px; letter-spacing: .05em;
}
.tool-btn:hover { color: var(--ink-2); border-color: var(--line-strong); }
.count-chip {
  height: 48px; padding: 0 18px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); color: var(--ink-3);
  font-size: 15px; letter-spacing: .08em;
}
.count-chip b { color: var(--gold); font-family: "Bahnschrift", sans-serif; font-size: 18px; }
.count-chip .ic { width: 18px; height: 18px; }
.sub-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }

/* ---------------- 整理着装演示 ---------------- */
.intro-stage {
  position: relative;
  width: 878px; height: 1170px;
  border-radius: 42px; overflow: hidden;
  background: #08121d;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
}
.intro-stage .intro-media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateX(-14%) scale(1.04);
  opacity: .25;
  transition: transform 1.15s cubic-bezier(.2,.8,.2,1), opacity .9s ease, filter .8s ease;
}
.intro-stage .intro-media.in { transform: translateX(0) scale(1.015); opacity: 1; }
.intro-stage .intro-media.bend { transform: translateY(5%) scale(1.035); }
.intro-stage .intro-media.freeze { filter: saturate(1.03) contrast(1.02); }
.intro-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 120px;
  background: linear-gradient(180deg, transparent, var(--scan), transparent);
  opacity: .12;
  animation: scanDown 5.6s linear infinite;
}
@keyframes scanDown { from { transform: translateY(-140px); } to { transform: translateY(1180px); } }
.pulse-ring {
  position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 2px solid var(--gold);
  box-shadow: 0 0 32px rgba(217, 180, 106, .55), inset 0 0 14px rgba(217, 180, 106, .25);
  opacity: 0; transition: opacity .25s, left .55s, top .55s;
}
.pulse-ring.on { opacity: 1; animation: ringPulse 1.25s ease-out infinite; }
@keyframes ringPulse { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(1.8); opacity: 0; } }
.step-caption {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  min-width: 340px; height: 58px; padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8, 20, 34, .38);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  color: rgba(255,255,255,.9); font-size: 21px; letter-spacing: .05em;
  white-space: nowrap;
}
.step-caption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.intro-progress { position: absolute; left: 30px; right: 30px; bottom: 16px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.intro-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--gold)); transition: width .6s ease; }
.stage-badge {
  position: absolute; left: 28px; top: 26px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8, 20, 34, .32);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: rgba(255,255,255,.64); font-size: 13px; letter-spacing: .18em;
}
.stage-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
/* 全屏视频版：着装示范 */
.dress-intro { background: #050b13; }
.dress-intro .intro-stage {
  position: absolute; inset: 0; width: auto; height: auto;
  border-radius: 0; border: 0; box-shadow: none;
  background: #050b13;
}
.dress-intro .intro-stage > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.dress-intro .intro-scan { height: 160px; animation: scanDownFull 5.6s linear infinite; }
@keyframes scanDownFull { from { transform: translateY(-160px); } to { transform: translateY(1920px); } }
.dress-intro .stage-badge { left: 54px; top: 142px; }
.dress-intro .step-caption {
  bottom: 94px; min-width: 380px; height: 64px;
  font-size: 22px;
}
.dress-intro .intro-progress { left: 120px; right: 120px; bottom: 58px; height: 4px; }
.dress-count {
  margin-left: auto;
  height: 64px; padding: 0 22px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--dock-brd);
  background: var(--dock-b);
  color: var(--dock-sub);
  font-size: 14px; letter-spacing: .08em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
.dress-count b { color: var(--gold); font-family: "Bahnschrift", sans-serif; font-size: 19px; }

/* ---------------- 着装标注 ---------------- */
.freeze-stage {
  position: relative;
  width: 900px; height: 1200px;
  border-radius: 42px; overflow: hidden;
  background: #08121d;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
}
.freeze-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.freeze-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(3,8,14,.55) 0%, transparent 22%),
              linear-gradient(180deg, rgba(3,8,14,.26), transparent 16%);
}
.leader-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.leader-layer line { stroke: rgba(217, 180, 106, .62); stroke-width: .32; stroke-dasharray: 1.5 1.5; vector-effect: non-scaling-stroke; }
.part-label {
  position: absolute; z-index: 4;
  height: 42px; padding: 0 15px;
  display: flex; align-items: center; gap: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(8, 20, 34, .36);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  color: rgba(255,255,255,.92); font-size: 18px; letter-spacing: .06em;
  white-space: nowrap;
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.14);
  animation: labelIn .55s cubic-bezier(.2,.8,.2,1) both;
}
.part-label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px var(--gold); }
.part-label.left { left: 26px; }
.part-label.right { right: 26px; }
@keyframes labelIn { from { opacity: 0; transform: translateY(-50%) scale(.94); } to { opacity: 1; transform: translateY(-50%); } }
.part-dot {
  position: absolute; z-index: 3; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 180, 106, .18), 0 0 18px rgba(217, 180, 106, .7);
}
.freeze-stage.labels-off .part-label,
.freeze-stage.labels-off .part-dot,
.freeze-stage.labels-off .leader-layer { opacity: 0; transition: opacity .3s; }
.freeze-stage.labels-off::after { background: linear-gradient(0deg, rgba(3,8,14,.62) 0%, transparent 20%); }
.shoot-pill {
  position: absolute; z-index: 8; left: 50%; bottom: 26px; transform: translateX(-50%);
  height: 88px; padding: 0 28px 0 16px;
  display: flex; align-items: center; gap: 15px;
  border-radius: 999px;
  border: 1px solid rgba(217, 180, 106, .45);
  background: linear-gradient(160deg, rgba(24, 46, 70, .62), rgba(6, 16, 28, .48));
  box-shadow: 0 20px 48px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 6px rgba(217,180,106,.06);
  -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
  color: #fff;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.shoot-pill:hover { transform: translateX(-50%) translateY(-2px); border-color: rgba(255, 220, 150, .75); box-shadow: 0 24px 56px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.26), 0 0 0 7px rgba(217,180,106,.09); }
.shoot-pill .lens {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.26), rgba(255,255,255,.04) 45%, rgba(0,0,0,.18));
  border: 1px solid rgba(255,255,255,.26);
  color: var(--gold);
  box-shadow: inset 0 0 18px rgba(217,180,106,.16), 0 6px 16px rgba(0,0,0,.26);
}
.shoot-pill .lens svg { width: 27px; height: 27px; }
.shoot-pill .txt { text-align: left; }
.shoot-pill .txt b { display: block; font-size: 23px; letter-spacing: .08em; }
.shoot-pill .txt small { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.48); }
.freeze-back-actions { height: 90px; flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ---------------- 拍照 ---------------- */
.camera .sub-head { height: 128px; }
.cam-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cam-stage {
  position: relative; width: 760px; height: 1013px;
  border-radius: 42px; overflow: hidden;
  background: #071019;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
}
.cam-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 58% 58% at 50% 45%, transparent 42%, rgba(2,6,11,.52) 100%),
              linear-gradient(0deg, rgba(2,6,11,.48), transparent 30%);
}
.outline { position: absolute; inset: 0; width: 100%; height: 100%; }
.outline path, .outline ellipse, .outline circle {
  fill: none; stroke: rgba(255,255,255,.56); stroke-width: 1.5;
  stroke-dasharray: 7 7; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(95,211,243,.28));
  transition: stroke .3s, filter .3s;
}
.outline.ok path, .outline.ok ellipse, .outline.ok circle {
  stroke: rgba(90, 240, 190, .92); filter: drop-shadow(0 0 12px rgba(70,214,162,.6));
}
.cam-status {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  min-width: 360px; height: 58px; padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8, 20, 34, .5);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  color: rgba(255,255,255,.86); font-size: 19px; letter-spacing: .04em;
  white-space: nowrap;
}
.cam-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.cam-status.ok::before { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.cam-status.bad::before { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.cam-error {
  position: absolute; inset: 0; z-index: 9;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 60px; text-align: center;
  background: rgba(5, 12, 20, .82);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.cam-error .big { width: 66px; height: 66px; color: rgba(255,255,255,.55); }
.cam-error .big svg { width: 100%; height: 100%; }
.cam-error b { font-size: 26px; letter-spacing: .05em; }
.cam-error p { margin: 0; max-width: 480px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.55); }
.cam-error .btn { margin-top: 12px; width: 330px; height: 68px; }
.countdown {
  position: absolute; inset: 0; z-index: 8;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(3, 9, 16, .38);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.countdown.on { display: flex; }
.count-num {
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 210px; font-weight: 700; line-height: 1;
  color: #fff; text-shadow: 0 0 70px rgba(95,211,243,.55);
  animation: countPop .9s cubic-bezier(.2,.8,.2,1) both;
}
.count-cap { margin-top: 20px; font-size: 24px; letter-spacing: .22em; color: rgba(255,255,255,.7); }
@keyframes countPop { 0% { transform: scale(.7); opacity: 0; } 30% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); opacity: .92; } }
.cam-bar {
  height: 196px; flex: none;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  padding-bottom: 22px;
}
.shutter {
  position: relative; width: 112px; height: 112px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.48);
  background: rgba(255,255,255,.055);
  box-shadow: 0 20px 44px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; place-items: center;
}
.shutter span {
  width: 82px; height: 82px; border-radius: 50%;
  background: linear-gradient(160deg, #fff, rgba(255,255,255,.72));
  box-shadow: inset 0 2px 4px rgba(255,255,255,.8), 0 8px 20px rgba(0,0,0,.3);
  transition: transform .15s;
}
.shutter:active span { transform: scale(.92); }
.cam-cancel {
  position: absolute; left: 56px; bottom: 84px;
  height: 58px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--ink-3); font-size: 18px;
}
.cam-tip {
  position: absolute; right: 56px; bottom: 96px;
  font-size: 15px; color: var(--ink-3); letter-spacing: .06em;
}

/* ---------------- 判定中 ---------------- */
.analyzing { align-items: center; justify-content: center; gap: 22px; }
.analyzing .halo {
  width: 132px; height: 132px; border-radius: 50%;
  border: 1px solid var(--glass-brd);
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(95,211,243,.18), transparent 70%);
  box-shadow: 0 0 80px rgba(95,211,243,.18);
}
.analyzing .halo::before {
  content: ""; width: 74px; height: 74px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12); border-top-color: var(--acc);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing h2 { margin: 0; font-size: 38px; letter-spacing: .08em; }
.analyzing p { margin: 0; font-size: 19px; color: var(--ink-3); letter-spacing: .06em; }

/* ---------------- 对比 ---------------- */
.compare .sub-head { height: 126px; }
.compare-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 8px 120px 168px 56px;
  scrollbar-width: none;
}
.compare-scroll::-webkit-scrollbar { display: none; }
.demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 58px; padding: 10px 18px 10px 22px;
  border-radius: 18px; border: 1px solid var(--gold-soft);
  background: var(--gold-soft);
  color: var(--ink-2); font-size: 15px; letter-spacing: .03em;
  margin-bottom: 18px;
}
.demo-banner b { color: var(--gold); }
.demo-toggle { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.16); }
.demo-toggle button {
  height: 38px; padding: 0 16px; border-radius: 9px; border: 0;
  background: transparent; color: var(--ink-3); font-size: 14px;
}
.demo-toggle button.on { background: var(--glass-a); color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card {
  position: relative; height: 560px; border-radius: 30px; overflow: hidden;
  background: #08121d; border: 1px solid var(--glass-brd); box-shadow: var(--shadow-s);
}
.compare-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-card .tag {
  position: absolute; left: 16px; top: 16px; z-index: 4;
  height: 42px; padding: 0 16px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(8, 20, 34, .46); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: rgba(255,255,255,.82); font-size: 16px; letter-spacing: .05em;
}
.compare-card .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.compare-card .tag.ok { color: #9ff3d2; border-color: rgba(70,214,162,.3); }
.compare-card .tag.ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.issue-circle {
  position: absolute; z-index: 5; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--bad);
  box-shadow: 0 0 0 7px rgba(255,113,128,.13), 0 0 30px rgba(255,113,128,.38);
  transform: translate(-50%, -50%);
  animation: circleIn .6s cubic-bezier(.2,.8,.2,1) both;
}
.issue-circle span {
  position: absolute; right: -12px; top: -12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bad); color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.issue-circle.unknown { border-color: var(--warn); box-shadow: 0 0 0 7px rgba(255,196,107,.12), 0 0 28px rgba(255,196,107,.3); }
.issue-circle.unknown span { background: var(--warn); color: #261500; }
@keyframes circleIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.result-hero {
  margin-top: 20px; display: flex; align-items: center; gap: 20px;
  padding: 22px 26px; border-radius: 24px;
  border: 1px solid var(--line); background: rgba(255,255,255,.035);
}
.result-hero .big {
  width: 58px; height: 58px; border-radius: 18px; flex: none;
  display: grid; place-items: center;
  color: var(--ok); background: var(--ok-soft); border: 1px solid rgba(70,214,162,.24);
}
.result-hero .big svg { width: 30px; height: 30px; }
.result-hero.bad .big { color: var(--bad); background: var(--bad-soft); border-color: rgba(255,113,128,.26); }
.result-hero.unknown .big { color: var(--warn); background: var(--gold-soft); border-color: rgba(255,196,107,.28); }
.result-hero b { display: block; font-size: 26px; letter-spacing: .05em; }
.result-hero small { display: block; margin-top: 7px; font-size: 16px; color: var(--ink-3); letter-spacing: .03em; line-height: 1.55; }
.issue-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 16px; }
.issue {
  display: flex; gap: 12px; padding: 16px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255,255,255,.026); min-height: 104px;
}
.issue .idx {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(255,113,128,.3);
  font-size: 15px; font-weight: 700;
}
.issue .body b { font-size: 18px; letter-spacing: .04em; }
.issue .body p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.issue .fix { margin-top: 7px; font-size: 13px; color: var(--gold); }
.issue.unknown .idx { color: var(--warn); background: var(--gold-soft); border-color: rgba(255,196,107,.3); }
.pass-note {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; border-radius: 20px;
  border: 1px solid rgba(70,214,162,.22); background: var(--ok-soft);
  color: var(--ink-2); font-size: 17px; line-height: 1.6;
}
.pass-note svg { width: 34px; height: 34px; color: var(--ok); flex: none; }
.all-items { margin-top: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 14px 18px; }
.all-items summary { cursor: pointer; font-size: 15px; color: var(--ink-3); letter-spacing: .05em; }
.all-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.all-row:last-child { border-bottom: 0; }
.all-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.all-row .dot.pass { background: var(--ok); }
.all-row .dot.fail { background: var(--bad); }
.all-row .dot.unknown { background: var(--warn); }
.all-row .name { flex: 1; color: var(--ink-2); }
.all-row .st { color: var(--ink-3); font-size: 13px; }
.compare-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  height: 150px; padding: 0 120px 18px 56px;
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(0deg, var(--bg) 30%, transparent);
}
.compare-foot .btn { height: 74px; }
.compare-foot .btn.primary { width: 330px; flex: none; }
.compare-foot .btn.ghost { padding: 0 28px; }
.compare-foot .note { margin-left: auto; max-width: 330px; font-size: 13px; line-height: 1.5; color: var(--ink-3); text-align: right; }

/* ---------------- 完成 ---------------- */
.done { align-items: center; justify-content: center; gap: 0; }
.done .halo {
  width: 176px; height: 176px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(70,214,162,.22), transparent 68%);
  border: 1px solid rgba(70,214,162,.28);
  box-shadow: 0 0 100px rgba(70,214,162,.2);
  color: var(--ok);
  margin-bottom: 38px;
  animation: haloIn .8s cubic-bezier(.2,.8,.2,1) both;
}
.done .halo svg { width: 78px; height: 78px; }
@keyframes haloIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done h1 { margin: 0; font-size: 56px; letter-spacing: .1em; }
.done > p { margin: 20px 0 0; max-width: 720px; text-align: center; font-size: 21px; line-height: 1.8; color: var(--ink-3); }
.done .stat {
  display: flex; gap: 0; margin-top: 38px;
  border-radius: 22px; border: 1px solid var(--glass-brd);
  background: linear-gradient(150deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  overflow: hidden;
}
.done .stat span { padding: 20px 30px; font-size: 16px; color: var(--ink-2); border-right: 1px solid var(--line); }
.done .stat span:last-child { border-right: 0; }
.done .actions { margin-top: 46px; display: flex; gap: 16px; }
.done .actions .btn.primary { width: 280px; }
.done .actions .btn.ghost { width: 220px; }
.done .actions .btn { height: 76px; }

/* ---------------- 动作学习 · 视频交互 ---------------- */
.action-learn { background: #050b13; }
.action-learn .media-fill video { object-position: center 18%; }

.action-top {
  position: absolute; left: 54px; right: 54px; top: 48px; z-index: 16;
  display: flex; align-items: center; gap: 14px;
  pointer-events: none;
}
.action-top > * { pointer-events: auto; }
.action-back,
.action-title {
  height: 64px; border-radius: 999px;
  display: flex; align-items: center;
  border: 1px solid var(--dock-brd);
  background: var(--dock-b);
  color: var(--dock-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
.action-back {
  padding: 0 22px 0 14px; gap: 8px;
  font-size: 16px; font-weight: 650; letter-spacing: .08em;
  transition: border-color .2s, background .2s;
}
.action-back:hover { border-color: var(--line-strong); }
.action-back .chev { font-size: 38px; line-height: .6; margin-top: -5px; }
.action-title { padding: 0 24px 0 18px; gap: 12px; }
.action-title .live {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--ok); box-shadow: 0 0 12px var(--ok);
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.action-title b { display: block; font-size: 16px; letter-spacing: .14em; line-height: 1.2; }
.action-title small { display: block; margin-top: 4px; font-size: 12px; color: var(--dock-sub); letter-spacing: .08em; }

.action-dock {
  position: absolute; right: 38px; top: 50%; transform: translateY(-50%); z-index: 16;
  width: 244px; display: flex; flex-direction: column; gap: 14px;
}
.action-dock-kicker {
  margin: 0 8px 2px;
  text-align: right;
  font-size: 13px; font-weight: 700; letter-spacing: .26em;
  color: rgba(255, 255, 255, .66);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
html[data-theme="light"] .action-dock-kicker { color: rgba(255, 255, 255, .82); }
.action-btn {
  position: relative; height: 112px; overflow: hidden;
  padding: 18px 20px;
  border-radius: 24px; text-align: left;
  color: var(--dock-ink);
  border: 1px solid var(--dock-brd);
  background: linear-gradient(155deg, var(--dock-a), var(--dock-b));
  box-shadow: 0 20px 48px rgba(0, 0, 0, .26), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  backdrop-filter: blur(26px) saturate(155%);
  transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
}
.action-btn::before {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  background: linear-gradient(180deg, transparent, rgba(95, 211, 243, .8), transparent);
  opacity: .7;
}
.action-btn:hover { transform: translateX(-6px); border-color: var(--line-strong); }
.action-btn .ab-idx {
  position: absolute; right: 18px; top: 15px;
  font-family: "Bahnschrift", "DIN Alternate", sans-serif;
  font-size: 13px; letter-spacing: .12em; color: var(--dock-sub);
}
.action-btn .ab-name { display: block; font-size: 29px; font-weight: 720; letter-spacing: .12em; }
.action-btn .ab-tag { display: block; margin-top: 9px; font-size: 14px; letter-spacing: .08em; color: var(--dock-sub); }
.action-btn.on {
  color: #fff; border-color: rgba(150, 226, 255, .72);
  background: linear-gradient(140deg, rgba(61, 124, 240, .94), rgba(95, 211, 243, .73));
  box-shadow: 0 22px 56px rgba(24, 92, 180, .4), inset 0 1px 0 rgba(255, 255, 255, .34);
}
.action-btn.on::before { background: linear-gradient(180deg, transparent, #fff, transparent); opacity: .9; }
.action-btn.on .ab-tag,
.action-btn.on .ab-idx { color: rgba(255, 255, 255, .78); }

.action-panel {
  position: absolute; left: 48px; bottom: 46px; z-index: 16;
  width: 640px; padding: 26px 28px 24px;
  border-radius: 30px;
  color: var(--dock-ink);
  border: 1px solid var(--dock-brd);
  background: linear-gradient(155deg, var(--dock-a), var(--dock-b));
  box-shadow: 0 26px 64px rgba(0, 0, 0, .3), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
}
.action-panel .ap-head { display: flex; align-items: center; gap: 14px; }
.action-panel .ap-name { font-size: 36px; font-weight: 720; letter-spacing: .12em; line-height: 1; }
.action-panel .ap-tag {
  height: 30px; padding: 0 12px; border-radius: 999px;
  display: flex; align-items: center;
  font-size: 12px; letter-spacing: .1em;
  color: var(--gold); border: 1px solid var(--gold-soft); background: var(--gold-soft);
}
.action-panel .ap-hint { margin: 13px 0 0; font-size: 17px; line-height: 1.66; color: var(--dock-sub); }
.action-panel .ap-points { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.action-panel .ap-points span {
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--dock-brd);
  font-size: 13px; letter-spacing: .04em; color: var(--dock-sub);
}
.action-panel .ap-note {
  margin: 14px 0 0; padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: 13px; line-height: 1.6; color: var(--dock-sub); letter-spacing: .03em;
}
.action-panel .ap-actions { display: flex; gap: 10px; margin-top: 18px; }
.ap-btn {
  height: 64px; padding: 0 18px; border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--dock-brd);
  background: rgba(255, 255, 255, .07);
  color: var(--dock-ink);
  font-size: 17px; font-weight: 650; letter-spacing: .04em;
  transition: transform .18s, background .18s, border-color .18s;
}
html[data-theme="light"] .ap-btn { background: rgba(255, 255, 255, .52); }
.ap-btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.ap-btn .ic { width: 20px; height: 20px; }
.ap-btn.primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(120deg, var(--acc-2), var(--acc));
  box-shadow: 0 14px 34px rgba(40, 118, 220, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.sk-drawer {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 40;
  width: 690px; padding: 52px 46px 44px 52px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--glass-brd);
  background: linear-gradient(105deg, var(--glass-a), var(--glass-b));
  box-shadow: 36px 0 96px rgba(0, 0, 0, .28), inset 1px 0 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(34px) saturate(160%);
  backdrop-filter: blur(34px) saturate(160%);
  transform: translateX(-104%);
  transition: transform .46s cubic-bezier(.2, .8, .2, 1);
}
.sk-drawer.on { transform: none; }
.sk-drawer-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.sk-kicker { font-size: 12px; font-weight: 700; letter-spacing: .26em; color: var(--gold); }
.sk-drawer-head h2 { margin: 10px 0 0; font-size: 34px; font-weight: 720; letter-spacing: .08em; }
.sk-drawer-head p { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); letter-spacing: .06em; }
.sk-close {
  width: 56px; height: 56px; flex: none; border-radius: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06);
  color: var(--ink-2); font-size: 30px; line-height: 1;
  transition: background .2s, border-color .2s;
}
.sk-close:hover { background: rgba(255, 255, 255, .12); border-color: var(--line-strong); }
.sk-host { flex: 1; min-height: 0; margin: 20px 0 10px; display: grid; place-items: center; }
.sk-host svg { width: 100%; height: 100%; }
.sk-drawer-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; letter-spacing: .05em; color: var(--ink-3);
}
.sk-legend-row { display: flex; align-items: center; gap: 16px; }
.sk-legend-row span { display: flex; align-items: center; gap: 7px; }
.sk-legend-row i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.sk-legend-row i.c { background: var(--sk-c); }
.sk-legend-row i.l { background: var(--sk-l); }
.sk-legend-row i.r { background: var(--sk-r); }
.sk-count { font-family: "Bahnschrift", sans-serif; font-size: 14px; letter-spacing: .1em; }
.sk-count b { color: var(--gold); font-size: 18px; }

/* 骨架绘制样式（抽屉内复用） */
.sk-bone { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.sk-c { stroke: var(--sk-c); }
.sk-l { stroke: var(--sk-l); }
.sk-r { stroke: var(--sk-r); }
.sk-bone.sk-c { opacity: .95; }
.sk-face { fill: none; stroke: var(--sk-c); stroke-width: 2.2; opacity: .35; stroke-linecap: round; }
.sk-torso { fill: var(--sk-torso); stroke: none; }
.sk-head { fill: none; stroke: var(--sk-c); stroke-width: 4.6; }
.sk-dot { stroke: var(--sk-outline); stroke-width: 1.6; }
.sk-dot.c { fill: var(--sk-c); }
.sk-dot.l { fill: var(--sk-l); }
.sk-dot.r { fill: var(--sk-r); }
.sk-hand-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sk-hand-line.l { stroke: var(--sk-l); }
.sk-hand-line.r { stroke: var(--sk-r); }
.sk-palm { stroke-width: 1.6; opacity: .16; }
.sk-palm.l { fill: var(--sk-l); stroke: var(--sk-l); }
.sk-palm.r { fill: var(--sk-r); stroke: var(--sk-r); }
.sk-hdot { stroke: none; }
.sk-hdot.l { fill: var(--sk-l); }
.sk-hdot.r { fill: var(--sk-r); }

/* ---------------- 提示 ---------------- */
.toast {
  position: absolute; z-index: 120; left: 50%; bottom: 132px; transform: translate(-50%, 16px);
  max-width: 700px; padding: 15px 28px; border-radius: 999px;
  background: var(--toast-bg); border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-s), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  color: var(--ink-2); font-size: 17px; letter-spacing: .04em;
  opacity: 0; pointer-events: none;
  transition: opacity .24s, transform .24s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 小屏可读性（本机预览） ---------------- */
@media (max-width: 1200px) {
  .ambient .watermark { display: none; }
}
