/* ============================================================================
   Axiom Physics · 设计系统
   token 化，双主题（data-theme="dark" | "light"），全部通过 CSS 变量切换
   ========================================================================== */

/* ---------- 1. Token ---------- */
:root {
  /* 字体（2.5 规范：标题衬线 / 正文黑体 / 数字等宽） */
  --font-sans: "Inter", "MiSans", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* 间距节奏（8pt 网格） */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* 圆角（2.5 规范：只用 4–6px） */
  --r-sm: 4px; --r-md: 6px; --r-lg: 6px; --r-xl: 8px; --r-full: 999px;

  /* 布局 */
  --maxw: 1240px;
  --nav-h: 68px;

  /* 动效 */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .5s;
}

/* ---------- 2. 深空主题（默认） ---------- */
[data-theme="dark"] {
  --bg: #05070d;
  --bg-2: #080b14;
  --surface: rgba(255, 255, 255, .032);
  --surface-2: rgba(255, 255, 255, .058);
  --surface-solid: #0c1019;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);

  --text: #eef2fa;
  --text-2: #9aa7c0;
  --text-3: #5e6b85;

  --accent: #59d4e8;
  --accent-2: #a78bfa;
  --accent-grad: linear-gradient(115deg, #59d4e8 0%, #7c9cff 45%, #a78bfa 100%);

  --glow: 0 0 0 1px rgba(89, 212, 232, .18), 0 12px 48px -14px rgba(89, 212, 232, .3);
  --shadow: 0 24px 70px -28px rgba(0, 0, 0, .9);
  --shadow-lg: 0 40px 110px -40px rgba(0, 0, 0, .95);
  --card-bg: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  --grid-line: rgba(255, 255, 255, .028);
  --ok: #4ade80; --warn: #fbbf24; --hot: #f87171;
  --scrim: rgba(3, 5, 10, .82);
  color-scheme: dark;
}

/* ---------- 3. 米橙主题（2.5 视觉规范 · 品牌默认） ----------
   色板：米 #F3ECDF 60% 铺底 / 深橙 #C05808 25% 点睛 / 亮橙 #E8862D 8% / 墨 #2A2520 7%
   铁律：橙只点睛不铺底；1px 墨色细线 + 2px 深橙强调；24px 淡网格纸底纹 */
[data-theme="light"] {
  --bg: #F3ECDF;
  --bg-2: #EBE2D0;
  --surface: rgba(42, 37, 32, .035);
  --surface-2: rgba(42, 37, 32, .062);
  --surface-solid: #F9F5EB;
  --line: rgba(42, 37, 32, .16);
  --line-2: rgba(42, 37, 32, .3);

  --text: #2A2520;
  --text-2: #5B5348;
  --text-3: #8C8175;

  --accent: #C05808;
  --accent-2: #E8862D;
  --accent-grad: linear-gradient(115deg, #C05808 0%, #E8862D 100%);

  --glow: 0 0 0 1px rgba(192, 88, 8, .16);
  --shadow: 0 10px 28px -14px rgba(42, 37, 32, .22);
  --shadow-lg: 0 18px 44px -20px rgba(42, 37, 32, .28);
  --card-bg: #F9F5EB;
  --grid-line: rgba(42, 37, 32, .055);
  --ok: #0d7a3f; --warn: #C05808; --hot: #b02020;
  --scrim: rgba(243, 236, 223, .88);
  color-scheme: light;
}

/* ---------- 4. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02","cv03","cv04","cv11";
  overflow-x: hidden;
  /* 保证 html 与 body 口径一致，避免子元素（含绝对定位的 hero 背景层）
     把 scrollWidth 撑出几像素，在移动端表现为可横向拖动的空白 */
  max-width: 100%;
}
html { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 滚动条 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 6px;
  border: 3px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- 5. 排版 ---------- */
h1, h2, h3, h4 { line-height: 1.14; font-weight: 640; letter-spacing: -.022em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p  { color: var(--text-2); }

.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.dim   { color: var(--text-3); }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.lede { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--text-2); max-width: 62ch; }

/* ---------- 6. 布局 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.wrap-wide { max-width: 1560px; }
section { position: relative; }
.sec { padding-block: clamp(64px, 9vw, 132px); }
.sec-sm { padding-block: clamp(48px, 6vw, 84px); }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px)  { .g4, .g3, .g2 { grid-template-columns: 1fr; } }

.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(30px, 4vw, 54px); }
.sec-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.sec-head p { max-width: 58ch; }

/* ---------- 7. 玻璃卡片 ---------- */
.card {
  position: relative; border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: transform .42s var(--ease), border-color .42s var(--ease), box-shadow .42s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, var(--line-2), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .8;
}
.card-hover:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: var(--shadow); }
.card-pad { padding: clamp(20px, 2.4vw, 30px); }

.glass {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); backdrop-filter: blur(16px);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-line: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px; border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  font-size: 14px; font-weight: 520; letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer; overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background .28s var(--ease), border-color .28s var(--ease), opacity .28s;
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* 深橙 CTA：纯色实底（2.5 禁大渐变），小投影 */
.btn-primary {
  --btn-fg: var(--bg); --btn-line: transparent;
  background: var(--accent); font-weight: 600;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-primary:hover { box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 68%, transparent); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-ghost { --btn-bg: transparent; --btn-line: var(--line); }
.btn-block { width: 100%; }

/* ---------- 9. 标签 / 徽章 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.tag-ver {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; padding: 3px 8px; border-radius: 6px;
}
.v3d { background: color-mix(in srgb, var(--accent-2) 17%, transparent);
       color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 34%, transparent); }
.v2d { background: color-mix(in srgb, var(--accent) 15%, transparent);
       color: var(--accent); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.tag-free { background: color-mix(in srgb, var(--ok) 14%, transparent);
            color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.tag-pro  { background: color-mix(in srgb, var(--warn) 14%, transparent);
            color: var(--warn); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }

/* ---------- 10. 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  /* 顶部始终有一层可读的底色，避免压在 Hero 大标题上导致文字重叠 */
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  /* 隔离 glow 溢出，避免按钮阴影在导航底部形成一条亮线 */
  isolation: isolate;
}
.nav > .wrap { overflow: hidden; }
.nav.stuck {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(22px) saturate(1.5);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 12px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 640; letter-spacing: -.02em; font-size: 16.5px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--accent-grad); position: relative; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--accent) 60%, transparent);
}
.brand-mark svg { width: 18px; height: 18px; color: var(--bg); }
.brand-sub { font-size: 10.5px; color: var(--text-3); font-weight: 500; letter-spacing: .1em;
             font-family: var(--font-mono); margin-top: -3px; }
.nav-links { display: flex; gap: 4px; margin-left: 28px; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--r-sm); font-size: 14px;
  color: var(--text-2); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.on { color: var(--text); background: var(--surface-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* 导航积分角标 */
.points-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none;
  font-variant-numeric: tabular-nums; transition: color .25s, border-color .25s, background .25s;
}
.points-chip:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.points-chip .pc-ico { color: var(--accent); font-size: 14px; line-height: 1; }
@media (max-width: 860px) { .points-chip { display: none; } }

/* 主题切换 */
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: color .25s, border-color .25s, background .25s, transform .3s var(--ease);
  position: relative; overflow: hidden;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-2); transform: rotate(-18deg); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="dark"]  .ico-sun { display: block; }
[data-theme="dark"]  .ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: block; }

.nav-burger { display: none; width: 38px; height: 38px; border-radius: var(--r-md);
              border: 1px solid var(--line); background: var(--surface); place-items: center; }
.nav-burger svg { width: 18px; height: 18px; }

/* ---------- 11. Hero（2.5 规范：米色纸面 + 左文右实时 3D 仿真 + 深橙 CTA） ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(52px, 8vw, 104px));
        padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
/* 24px 淡网格纸底纹 */
.hero-paper {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(105% 72% at 50% 18%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(105% 72% at 50% 18%, #000 0%, transparent 82%);
}
/* 双栏：左文案 / 右实时 3D 仿真 */
.hero-in {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: clamp(28px, 5vw, 64px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 22px; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 700; letter-spacing: .01em;
  max-width: 17ch; line-height: 1.24;
}
.hero .lede { text-align: left; max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }

/* 关键词高亮 = 橙色马克笔下划线（2.5） */
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: -3%; right: -3%; bottom: .04em; height: .36em;
  background: color-mix(in srgb, var(--accent-2) 42%, transparent);
  z-index: -1; border-radius: 2px;
}

/* 品牌 pill：头像 + 逆袭学长 + 口号章 */
.hero-brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 6px; border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface-solid);
}
.hero-brand img { border-radius: 50%; display: block; }
.hero-brand-name { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.hero-brand-slogan {
  font-size: 12px; font-weight: 600; color: var(--accent);
  padding: 3px 10px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--accent-2) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}

/* 右侧：实时 3D 仿真框（进来就能拖） */
.hero-sim {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--surface-solid); overflow: hidden; box-shadow: var(--shadow);
}
.hero-sim::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--accent); z-index: 2;
}
.hero-sim iframe { display: block; width: 100%; aspect-ratio: 16 / 10.5; border: 0; background: #d8e4f0; }
.hero-sim-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-top: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; color: var(--text-2);
}
.hero-sim-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-sim-bar b { color: var(--text); font-size: 13px; }
.hero-sim-bar .go { margin-left: auto; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* 游客试用提示（hero 内嵌条） */
.trial-banner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 9px 16px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  font-size: 13px; color: var(--text-2); }
.trial-banner b { color: var(--accent); }
.trial-banner a { color: var(--accent); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.trial-banner a:hover { border-bottom-color: var(--accent); }
.trial-banner.spent { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(40px, 6vw, 66px);
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.hero-stats > div { background: var(--bg); padding: 20px 16px; text-align: center; }
.hero-stats b {
  display: block; font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 660;
  letter-spacing: -.03em; line-height: 1.1;
}
.hero-stats span {
  font-size: 11px; color: var(--text-3); letter-spacing: .11em;
  text-transform: uppercase; font-family: var(--font-mono);
}

/* ---------- 12. 仿真卡片 ---------- */
.sim-card { display: flex; flex-direction: column; cursor: pointer; }
.sim-thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.sim-thumb iframe, .sim-thumb img, .sim-thumb canvas {
  width: 100%; height: 100%; border: 0; pointer-events: none;
}
/* 图层：iframe(0) → 顶部压暗(1) → 角标(2) → 底部标题条(3) */
.sim-thumb iframe { position: absolute; inset: 0; z-index: 0; transform-origin: center;
  filter: saturate(1.05); transition: transform .7s var(--ease), filter .5s; }
.sim-card:hover .sim-thumb iframe { transform: scale(1.045); filter: saturate(1.2); }
/* 后台静态截图预览（替代实时 iframe） */
.sim-thumb img.thumb-shot { position: absolute; inset: 0; z-index: 0; object-fit: cover;
  transform-origin: center; filter: saturate(1.05); transition: transform .7s var(--ease), filter .5s; }
.sim-card:hover .sim-thumb img.thumb-shot { transform: scale(1.045); filter: saturate(1.2); }
.sim-thumb-veil {
  position: absolute; inset: 0; z-index: 1;
  /* 顶部压暗让角标可读；底部由 .sim-thumb-foot 自己的渐变处理 */
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--bg) 72%, transparent), transparent 22%);
}
.sim-thumb-top {
  position: absolute; top: 11px; left: 11px; right: 11px;
  display: flex; gap: 6px; align-items: center; z-index: 3;
}
.sim-thumb-badges { margin-left: auto; display: flex; gap: 6px; }

/* ---- 管理员卡片操作（隐藏/删除） ---- */
.sim-admin {
  position: absolute; top: 11px; left: 11px; z-index: 4;
  display: flex; gap: 6px; align-items: center;
}
.sim-thumb-top .tag-ver { margin-right: 64px; }
.sim-card:not(.has-admin) .tag-ver { margin-right: 0; }
.adm-btn {
  width: 28px; height: 28px; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px); color: var(--text-2); cursor: pointer;
  display: grid; place-items: center; transition: all .2s;
}
.adm-btn svg { width: 14px; height: 14px; }
.adm-btn:hover { color: var(--text); border-color: var(--text-2); transform: translateY(-1px); }
.adm-btn.danger:hover { color: #ff5c72; border-color: #ff5c72; }
.tag.tag-hidden {
  color: #ffb020; border-color: color-mix(in srgb, #ffb020 45%, transparent);
  background: color-mix(in srgb, #ffb020 12%, transparent);
}
.sim-card.hidden-card .sim-thumb iframe { opacity: .35; filter: grayscale(.8); }
.sim-card.hidden-card .sim-thumb-foot .nm { opacity: .6; }
.admin-tip {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; margin-bottom: 18px; border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent);
  background: color-mix(in srgb, var(--ac) 8%, var(--surface));
  font-size: 13.5px; color: var(--text-2);
}
.admin-tip svg { width: 17px; height: 17px; color: var(--ac); flex-shrink: 0; }
.admin-tip b { color: var(--text); }
.sim-thumb-foot {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 26px 14px 12px;
  background: linear-gradient(to top,
    var(--bg) 0%, var(--bg) 55%,
    color-mix(in srgb, var(--bg) 86%, transparent) 78%, transparent 100%);
}
.sim-thumb-foot .nm { font-size: 14.5px; font-weight: 600; letter-spacing: -.015em;
  color: var(--text); text-shadow: 0 1px 3px var(--bg), 0 0 12px var(--bg); }
.sim-play {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--bg);
  background: var(--accent-grad);
  opacity: 0; transform: scale(.7);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  box-shadow: 0 6px 20px -4px color-mix(in srgb, var(--accent) 70%, transparent);
}
.sim-play svg { width: 14px; height: 14px; margin-left: 2px; }
.sim-card:hover .sim-play { opacity: 1; transform: scale(1); }
.sim-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.sim-body .desc {
  font-size: 13.5px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sim-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
             margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.sim-meta .cat { font-size: 12px; color: var(--text-3); }
.sim-meta .spacer { margin-left: auto; }
.dots { display: inline-flex; gap: 3px; align-items: center; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); display: block; }
.dots i.on { background: var(--accent); }
.size-tip { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }

/* ---------- 13. 特性网格 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
             background: var(--line); border: 1px solid var(--line);
             border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--bg); padding: clamp(24px, 3vw, 38px);
  display: flex; flex-direction: column; gap: 13px;
  transition: background .35s var(--ease); position: relative;
}
.feat:hover { background: var(--bg-2); }
.feat-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent); margin-bottom: 3px;
}
.feat-ico svg { width: 20px; height: 20px; }
.feat h3 { font-size: 16.5px; }
.feat p { font-size: 13.5px; line-height: 1.66; }

/* ---------- 14. 步骤 ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--accent); position: absolute; top: 0; left: 0;
}
.step::after {
  content: ""; position: absolute; top: 7px; left: 40px; right: -22px; height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 13.5px; }
.step code {
  font-family: var(--font-mono); font-size: 12px; padding: 2px 7px;
  border-radius: 5px; background: var(--surface-2); color: var(--accent);
  border: 1px solid var(--line);
}

/* ---------- 15. 代码块 ---------- */
.code {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.78;
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px; overflow-x: auto;
  color: var(--text-2); white-space: pre; tab-size: 2;
}
.code .k { color: var(--accent-2); }
.code .s { color: var(--ok); }
.code .c { color: var(--text-3); font-style: italic; }
.code .p { color: var(--warn); }

/* ---------- 16. 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); align-items: start; }
@media (max-width: 940px) { .price-grid { grid-template-columns: 1fr; } }
.price {
  padding: clamp(24px, 2.8vw, 34px); display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.price-featured {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: var(--glow);
}
.price-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .15em;
  padding: 4px 13px; border-radius: var(--r-sm);
  background: var(--accent-grad); color: var(--bg); text-transform: uppercase;
}
.price-amt { display: flex; align-items: baseline; gap: 4px; }
.price-amt b { font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 660; letter-spacing: -.04em; line-height: 1; }
.price-amt span { color: var(--text-3); font-size: 14px; }
.price-feats { display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.price-feats svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }
.price-feats li.off { color: var(--text-3); }
.price-feats li.off svg { color: var(--text-3); }

/* ---------- 17. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 4px; font-size: 15.5px; font-weight: 550; color: var(--text);
}
.faq-q:hover { color: var(--accent); }
.faq-q svg { width: 17px; height: 17px; color: var(--text-3); flex: none;
             transition: transform .35s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 24px; font-size: 14px; max-width: 74ch; }

/* ---------- 18. CTA 条 ---------- */
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(44px, 7vw, 88px) clamp(22px, 4vw, 56px);
  border-radius: var(--r-xl);
}
.cta-box::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent 32%, var(--accent-2), transparent 62%);
  opacity: .11; animation: spin 22s linear infinite;
}
.cta-box > * { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-box h2 { max-width: 20ch; margin-inline: auto; }

/* ---------- 19. 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 54px 34px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 { font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
           color: var(--text-3); font-family: var(--font-mono); font-weight: 600;
           margin-bottom: 14px; }
.foot li { margin-bottom: 9px; }
.foot a { font-size: 13.5px; color: var(--text-2); transition: color .2s; }
.foot a:hover { color: var(--accent); }
.foot-bot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin-top: 42px; padding-top: 24px;
  /* 右侧给 AI 学长悬浮按钮留位，避免压住备案号（56px 按钮 + 20px 边距 + 间隙） */
  padding-right: 92px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3);
}
@media (max-width: 640px) {
  /* 窄屏时页脚折行，改为底部留白 */
  .foot-bot { padding-right: 0; padding-bottom: 62px; }
}

/* ---------- 20. 进场动画 ---------- */
[data-rv] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-rv].in { opacity: 1; transform: none; }

.skeleton {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%; animation: sh 1.4s linear infinite;
  border-radius: var(--r-md);
}
@keyframes sh { to { background-position: -220% 0; } }

/* ---------- 21. 工具类 ---------- */
.flex { display: flex; }
.ac { align-items: center; }
.jc { justify-content: center; }
.jb { justify-content: space-between; }
.wrapf { flex-wrap: wrap; }
.g4px { gap: 4px; } .g8px { gap: 8px; } .g12px { gap: 12px; } .g16px { gap: 16px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; } .mt48 { margin-top: 48px; } .mt64 { margin-top: 64px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.tc { text-align: center; }
.fw6 { font-weight: 600; }
.hide { display: none !important; }
.rel { position: relative; }
.full { width: 100%; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 22. 页面头（内页） ---------- */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(44px, 6vw, 76px));
  padding-bottom: clamp(26px, 3.6vw, 44px);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 60% at 22% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px;
          color: var(--text-3); margin-bottom: 18px; font-family: var(--font-mono); }
.crumbs a:hover { color: var(--accent); }

/* ---------- 23. 筛选栏 ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
           padding: 14px; border-radius: var(--r-md);
           background: var(--surface); border: 1px solid var(--line);
           position: sticky; top: calc(var(--nav-h) + 10px); z-index: 90;
           backdrop-filter: blur(16px); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: var(--r-sm); font-size: 13px;
  color: var(--text-2); border: 1px solid var(--line); background: transparent;
  transition: all .22s var(--ease); white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: var(--accent-grad); color: var(--bg); border-color: transparent; font-weight: 560; }
.search {
  display: flex; align-items: center; gap: 9px; padding: 0 14px;
  height: 38px; min-width: 210px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .25s;
}
.search:focus-within { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.search svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: none; outline: none; font-size: 13.5px; }
.search input::placeholder { color: var(--text-3); }

/* ---------- 24. 详情页播放器 ---------- */
.player-shell {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #05070d; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.player-frame { position: relative; aspect-ratio: 16 / 9.4; width: 100%; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 手机适配：仿真内容本身是固定桌面布局，窄屏下会被挤成一团。
   小屏时改为「固定逻辑宽度 + 横向平移」，保留物理画布与参数面板的原始比例；
   默认按 960px 渲染（约原设计的舒适宽度），用户可左右拖动查看。 */
.canvas-hint { display: none; }
@media (max-width: 700px) {
  .detail-grid, .detail-grid > div, .player-shell { min-width: 0; max-width: 100%; }
  .player-frame { aspect-ratio: auto; width: 100%; max-width: 100%; height: min(62vh, 460px);
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
  .player-frame iframe { position: relative; inset: auto; width: 960px; height: 100%;
    max-width: none; }
  .player-frame.sim-fit iframe { width: 100%; }
  .player-frame.sim-fit { overflow: hidden; touch-action: auto; }
  .canvas-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 12px; font-size: 11.5px;
    color: var(--text-2); background: var(--surface-solid, #fffaf3);
    border-top: 1px solid var(--line); }
  .canvas-hint .hint-txt { flex: 1; min-width: 0; }
  .canvas-hint button { flex: none; padding: 5px 11px; font-size: 11px; border-radius: var(--r-sm);
    font-weight: 600; border: 1px solid var(--accent); background: var(--accent-grad, var(--accent));
    color: var(--bg); }
}
.player-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: var(--surface-solid); border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.player-bar .nm { font-size: 13px; font-weight: 560; }
.pv-toggle { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-md);
             background: var(--surface-2); border: 1px solid var(--line); }
.pv-toggle button {
  padding: 5px 14px; border-radius: var(--r-sm); font-size: 12px;
  font-family: var(--font-mono); font-weight: 600; letter-spacing: .05em;
  color: var(--text-3); transition: all .22s var(--ease);
}
.pv-toggle button.on { background: var(--accent-grad); color: var(--bg); }

.lock-mask {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center;
  background: var(--scrim); backdrop-filter: blur(9px); text-align: center; padding: 26px;
}
.lock-mask .in { max-width: 400px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lock-ico { width: 54px; height: 54px; border-radius: var(--r-lg); display: grid; place-items: center;
            background: color-mix(in srgb, var(--warn) 15%, transparent);
            border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent); color: var(--warn); }
.lock-ico svg { width: 24px; height: 24px; }

/* ---------- 25. 视频 ---------- */
.vid-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.vid-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md);
  overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.vid-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-thumb .ring {
  position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  background: var(--scrim); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text);
  transition: transform .35s var(--ease), background .3s;
}
.vid-card:hover .ring { transform: scale(1.1); background: var(--accent); color: var(--bg); }
.vid-thumb .ring svg { width: 17px; height: 17px; margin-left: 2px; }
.vid-dur {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; padding: 2px 7px; border-radius: 5px;
  background: var(--scrim); color: var(--text-2); backdrop-filter: blur(6px);
}
.vid-meta { font-size: 13.5px; font-weight: 540; }
.vid-sub { font-size: 12px; color: var(--text-3); }

/* ---------- 26. 侧栏 / 元信息 ---------- */
.meta-list { display: flex; flex-direction: column; }
.meta-list > div {
  display: flex; justify-content: space-between; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.meta-list > div:last-child { border-bottom: none; }
.meta-list dt, .meta-list .k { color: var(--text-3); font-size: 12.5px; }
.meta-list .v { font-weight: 560; text-align: right; }

/* ---------- 27. 视频弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  padding: 24px; background: rgba(2, 4, 9, .88); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .32s var(--ease), visibility .32s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  width: min(1000px, 100%); background: var(--surface-solid);
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); transform: scale(.96) translateY(12px);
  transition: transform .38s var(--ease);
}
.modal.open .modal-box { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between;
              gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 15px; }
.modal-body { background: #000; }
.modal-body video, .modal-body iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: var(--r-md); display: grid; place-items: center;
            border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
            transition: all .22s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- 28. 响应式导航 ---------- */
.mobile-menu { display: none; }  /* 桌面端永不显示（样式仅在 ≤900px 生效） */
@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-burger { display: grid; }
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 auto; z-index: 190;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(22px); border-bottom: 1px solid var(--line);
    padding: 14px clamp(18px, 4vw, 40px) 22px;
    display: flex; flex-direction: column; gap: 3px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .32s var(--ease);
  }
  .mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu a { padding: 11px 4px; font-size: 15px; color: var(--text-2);
                   border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 14px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  /* hero 双栏 → 单栏：仿真框移到文案下方 */
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: 2; }
  .hero-sim iframe { aspect-ratio: 16 / 10; }
}
/* ---------- 29. 首页 · 章节专题馆入口 chips ---------- */
.bk-chip { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--bk); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--bk) 5%, var(--surface));
  text-decoration: none; color: var(--text); transition: all .16s; }
.bk-chip b { font-size: 15px; letter-spacing: .3px; }
.bk-chip span { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.bk-chip:hover { transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--bk) 55%, transparent);
  border-left-color: var(--bk);
  background: color-mix(in srgb, var(--bk) 9%, var(--surface)); }
@media (max-width: 640px) {
  .bk-chip span { font-size: 10.5px; }
}

/* ---------- 30. AI 学长助手（右下角悬浮精灵 + 对话面板） ---------- */
.asst-fab {
  position: fixed; right: 20px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90;
  width: 56px; height: 56px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 6px 20px rgba(42, 37, 32, .18);
  transition: transform .18s var(--ease), border-color .18s, opacity .18s;
}
.asst-fab:hover { transform: translateY(-3px); border-color: var(--accent); }
.asst-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.85); }
/* 仿真沉浸/全屏时隐藏悬浮精灵，避免遮挡物理画布与控件 */
body.sim-fs-active .asst-fab { opacity: 0; pointer-events: none; transform: scale(.85); }
.asst-fab-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 8%; }
.asst-fab-dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent-2); border: 2px solid var(--surface);
  animation: asstPulse 2.4s ease-in-out infinite; }
@keyframes asstPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.asst-panel {
  position: fixed; right: 20px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 91;
  width: 372px; height: min(540px, calc(100dvh - 128px));
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  border-radius: var(--r-xl);
  box-shadow: 0 18px 48px rgba(42, 37, 32, .22);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.asst-panel.is-open { opacity: 1; transform: none; }
.asst-panel[hidden] { display: none; }

.asst-head { display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); }
.asst-sprite { width: 76px; height: 96px; border-radius: var(--r-md);
  object-fit: cover; object-position: 50% 6%; flex: none;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.asst-head-txt { flex: 1; min-width: 0; }
.asst-head-txt b { display: block; font-family: var(--font-serif); font-size: 15px; letter-spacing: .5px; }
.asst-quota { display: inline-block; margin-top: 3px; font-size: 11px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: var(--r-sm);
  padding: 1px 6px; }
.asst-close { flex: none; width: 30px; height: 30px; border: none; background: none; cursor: pointer;
  color: var(--text-2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.asst-close:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.asst-close svg { width: 15px; height: 15px; }

.asst-body { flex: 1; overflow-y: auto; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.asst-msg { display: flex; flex-direction: column; max-width: 84%; }
.asst-msg--user { align-self: flex-end; align-items: flex-end; }
.asst-msg--assistant { align-self: flex-start; }
.asst-bubble { padding: 9px 12px; font-size: 13.5px; line-height: 1.65;
  border-radius: var(--r-md); word-break: break-word; white-space: pre-wrap; }
.asst-msg--assistant .asst-bubble {
  background: color-mix(in srgb, var(--accent) 5%, var(--bg));
  border: 1px solid var(--line); border-top-left-radius: 2px; color: var(--text); }
.asst-msg--user .asst-bubble { background: var(--accent); color: #0d1b22; border-top-right-radius: 2px; }
[data-theme="light"] .asst-msg--user .asst-bubble { color: #fff; }
.asst-bubble.is-thinking { opacity: .55; font-style: italic;
  animation: asstThink 1.2s ease-in-out infinite; }
@keyframes asstThink { 0%, 100% { opacity: .4; } 50% { opacity: .85; } }
.asst-src { margin-top: 3px; font-size: 10px; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; line-height: 16px; }

.asst-chips { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
.asst-chips::-webkit-scrollbar { display: none; }
.asst-chip { flex: none; white-space: nowrap; cursor: pointer;
  font-size: 12px; padding: 6px 10px; color: var(--accent);
  background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--r-sm); transition: background .15s; }
.asst-chip:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }

.asst-foot { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.asst-input { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 9px 11px; outline: none; transition: border-color .15s; }
.asst-input:focus { border-color: var(--accent); }
.asst-input:disabled { opacity: .55; cursor: not-allowed; }
.asst-send { flex: none; width: 38px; border: none; cursor: pointer; border-radius: var(--r-md);
  background: var(--accent); color: #0d1b22; display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .asst-send { color: #fff; }
.asst-send svg { width: 15px; height: 15px; }
.asst-send:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 640px) {
  .asst-panel { left: 0; right: 0; bottom: 0; top: auto; width: auto;
    height: 82dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: none; }
  .asst-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .asst-fab-dot { animation: none; }
}

/* ---------- 28. 账号安全弹窗（layout.js，全站已登录用户） ---------- */
.acct-dlg {
  width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2);
  border-radius: var(--r-lg); background: var(--surface-solid); color: var(--text);
  box-shadow: var(--shadow-lg); font-family: var(--font-sans);
}
.acct-dlg::backdrop { background: rgba(2, 4, 9, .72); backdrop-filter: blur(6px); }
.acct-head { display: flex; align-items: center; justify-content: space-between;
             padding: 15px 20px; border-bottom: 1px solid var(--line); }
.acct-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.acct-body { padding: 20px; }
.acct-body .fld { margin-bottom: 12px; }
.acct-body .fld label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.acct-body .fld input {
  width: 100%; box-sizing: border-box; padding: 9px 11px; font-size: 14px; font-family: inherit;
  color: var(--text); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}
.acct-body .fld input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.acct-who { margin: 0 0 14px; font-size: 13px; color: var(--text-2); }
.acct-who b { color: var(--text); }
.acct-warn {
  margin: 0 0 14px; padding: 10px 12px; font-size: 12.5px; line-height: 1.6;
  color: var(--warn); background: rgba(255, 170, 0, .1);
  border: 1px solid rgba(255, 170, 0, .28); border-radius: var(--r-md);
}
.acct-msg { min-height: 18px; margin: 10px 0; font-size: 12.5px; line-height: 1.5; }
.acct-msg.bad { color: #ff7b7b; }
.acct-msg.ok { color: var(--ok); }
.acct-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text-3); }
