@charset "UTF-8";
/* ============================================================
   ForgeOS // style.css
   蓝白机甲风 · 个人工作间操作系统
   ============================================================ */

/* ---------- 1. 全局变量 ---------- */
:root {
  --nav-h: 64px;
  --bg-0: #02060f;
  --bg-1: #050d20;
  --bg-2: #081530;
  --panel: rgba(8, 21, 48, .62);
  --line: rgba(96, 165, 250, .16);
  --line-strong: rgba(125, 211, 252, .45);
  --blue-1: #1e3a8a;
  --blue-2: #2563eb;
  --blue-3: #3b82f6;
  --blue-4: #60a5fa;
  --sky: #7dd3fc;
  --cyan: #22d3ee;
  --ice: #eaf4ff;
  --text: #d7e3f7;
  --text-dim: #8ea4c8;
  --text-faint: #91a6c8;
  --ok: #34d399;
  --font-sans: Calibri, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-mono: var(--font-sans);
  --font-btn: var(--font-sans);
  --content-width: 1160px;
  /* 可被主题翻转的语义色 */
  --ink-soft: #bfe0ff;
  --ink-strong: #cfe4ff;
  --chip-bg: rgba(8, 21, 48, .55);
  --card-bg: linear-gradient(160deg, rgba(11, 26, 58, .72), rgba(6, 14, 34, .74));
  --nav-bg: rgba(4, 10, 26, .42);
  --nav-bg-scrolled: rgba(4, 10, 26, .84);
  --grid-line: rgba(96, 165, 250, .07);
  --footer-fade: rgba(3, 8, 20, .85);
  --px: 0;   /* 鼠标归一化坐标 -1..1（视差，由 JS 更新） */
  --py: 0;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:where(a, button):focus-visible { outline: 2px solid var(--ice); outline-offset: -3px; }
img, svg { display: block; }
::selection { background: rgba(37, 99, 235, .55); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563eb, #14b8a6 62%, #8b5cf6);
  border: 2px solid var(--bg-0);
  border-radius: 8px;
}

main, header, footer { position: relative; z-index: 10; }

/* ---------- 3. 背景特效层 ---------- */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
}

#spotlight {
  position: fixed; left: 0; top: 0;
  width: 760px; height: 760px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side,
      rgba(56, 130, 246, .17),
      rgba(34, 211, 238, .07) 55%,
      transparent 100%);
  transform: translate3d(-50vw, -50vh, 0) translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
  will-change: transform;
}

.aurora {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(900px 520px at 50% -12%, rgba(147, 197, 253, .13), transparent 62%);
}
.aurora::before, .aurora::after {
  content: '';
  position: absolute;
  width: 62vmax; height: 62vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.aurora::before {
  top: -24vmax; left: -18vmax;
  background: radial-gradient(circle, rgba(37, 99, 235, .32), transparent 62%);
  animation: drift 30s ease-in-out infinite alternate;
}
.aurora::after {
  bottom: -28vmax; right: -20vmax;
  background: radial-gradient(circle, rgba(34, 211, 238, .2), transparent 62%);
  animation: drift 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to   { transform: translate3d(6%, 5%, 0) scale(1.14); }
}

/* 紫 / 碧绿氛围光，强化渐变科幻感 */
.aurora-glow {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 520px at 84% 12%, rgba(139, 92, 246, .15), transparent 62%),
    radial-gradient(760px 560px at 10% 86%, rgba(20, 184, 166, .13), transparent 62%);
}

.grid-overlay {
  position: fixed; inset: -40%;
  z-index: 79;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 76%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 76%);
  animation: gridPan 90s linear infinite;
}
@keyframes gridPan { to { transform: translate3d(48px, 48px, 0); } }

.scanlines {
  position: fixed; inset: 0;
  z-index: 80;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(255, 255, 255, .028) 0 1px,
    transparent 1px 3px);
}

/* ---------- 4. 自定义光标（机甲准星） ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; left: 0; top: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 12px rgba(125, 211, 252, .9);
}

.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(125, 211, 252, .55);
  border-radius: 50%;
  transition: width .25s, height .25s, border-color .25s, background-color .25s, opacity .3s;
}
.cursor-ring.hot {
  width: 58px; height: 58px;
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .05);
}
.cursor-ring.down { width: 26px; height: 26px; }

.cursor-ring i {
  position: absolute;
  background: rgba(125, 211, 252, .85);
  opacity: 0;
  transition: opacity .2s;
}
.cursor-ring i:nth-child(1) { top: -5px; left: 50%; width: 1px; height: 9px; transform: translateX(-50%); }
.cursor-ring i:nth-child(2) { bottom: -5px; left: 50%; width: 1px; height: 9px; transform: translateX(-50%); }
.cursor-ring i:nth-child(3) { left: -5px; top: 50%; width: 9px; height: 1px; transform: translateY(-50%); }
.cursor-ring i:nth-child(4) { right: -5px; top: 50%; width: 9px; height: 1px; transform: translateY(-50%); }
.cursor-ring.hot i { opacity: 1; }

@media (pointer: fine) {
  body.has-fine-pointer, body.has-fine-pointer * { cursor: none !important; }
}

/* ---------- 5. 启动画面（Boot） ---------- */
#boot {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(700px 400px at 50% 42%, rgba(37, 99, 235, .13), transparent 62%),
    #02060f;
  transition: opacity .55s ease, visibility .55s;
}
#boot.done { opacity: 0; visibility: hidden; }
html.no-boot #boot { display: none; }

.boot-box {
  width: min(92vw, 440px);
  font-family: var(--font-mono);
  text-align: center;
}
.boot-logo {
  position: relative;
  width: 92px; height: 92px;
  margin: 0 auto 20px;
}
.boot-logo svg { width: 100%; height: 100%; filter: drop-shadow(0 0 20px rgba(59, 130, 246, .7)); animation: pulse 1.7s ease-in-out infinite; }
.boot-ring {
  position: absolute; inset: -14px;
  border: 1px dashed rgba(125, 211, 252, .45);
  border-radius: 50%;
  animation: spin 9s linear infinite;
}
.boot-title { font-size: 21px; letter-spacing: .5em; text-indent: .5em; color: #eaf4ff; }
.boot-sub { margin: 6px 0 26px; font-size: 11px; letter-spacing: .3em; color: #5b7196; }
.boot-meter { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.boot-bar { flex: 1; height: 3px; background: rgba(96, 165, 250, .15); overflow: hidden; }
.boot-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  box-shadow: 0 0 12px rgba(34, 211, 238, .7);
  transition: width .12s linear;
}
.boot-pct { min-width: 46px; font-size: 11px; color: #7dd3fc; text-align: right; }
.boot-lines { min-height: 132px; text-align: left; font-size: 12px; line-height: 2.05; color: #5b7196; }
.boot-line { opacity: 0; transform: translateX(-8px); transition: .28s; }
.boot-line.on { opacity: 1; transform: none; color: #9db8dd; }
.boot-line.on:last-child { color: #7dd3fc; }
.boot-skip {
  position: absolute; bottom: 26px; left: 0; right: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  color: #5b7196;
  animation: softPulse 2s ease-in-out infinite;
}
@keyframes softPulse { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* ---------- 6. 导航栏 ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -20px rgba(37, 99, 235, .45);
}
.nav-inner {
  max-width: calc(var(--content-width) + 48px); height: 100%;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; min-height: 44px; }
.brand svg { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(59, 130, 246, .6)); }
.brand-text {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700; letter-spacing: .16em;
  color: var(--ice);
}
.brand-text em { font-style: normal; color: var(--sky); }

.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  white-space: nowrap;
  position: relative;
  padding: 6px 2px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .12em;
  color: var(--text-dim);
  transition: color .25s, text-shadow .25s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  transition: transform .3s;
}
.nav-link:hover, .nav-link.active { color: var(--ice); text-shadow: 0 0 14px rgba(125, 211, 252, .8); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em;
  color: #8fd8c4;
  border: 1px solid rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .07);
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.status-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}
.status-dot.cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  background: var(--sky);
  transition: .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 主题切换键（右上角：蓝白科幻 ⇄ 夜色），醒目的文字按钮 */
.theme-toggle {
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em;
  color: var(--ink-soft);
  border: 1px solid rgba(125, 211, 252, .65);
  background: rgba(8, 21, 48, .78);
  backdrop-filter: blur(6px);
  clip-path: polygon(0 7px, 7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: border-color .25s, box-shadow .25s, color .25s, background .25s;
}
/* 注意：hover 不做位移（会导致鼠标在边缘时按钮抖动、点击不灵敏） */
.theme-toggle:hover { border-color: var(--sky); color: #eaf4ff; background: rgba(37, 99, 235, .3); box-shadow: 0 0 20px rgba(59, 130, 246, .5); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .tt-sun { display: none; }
html[data-theme="light"] .theme-toggle .tt-moon { display: none; }
html[data-theme="light"] .theme-toggle .tt-sun { display: block; }
.language-toggle { min-width: 116px; justify-content: center; letter-spacing: 0; }
.language-toggle:focus-visible { outline: 2px solid var(--ice); outline-offset: -4px; }

/* ---------- 7. 英雄区 Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 90px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(56, 130, 246, .08), transparent);
  pointer-events: none;
  animation: scanY 8.5s ease-in-out infinite;
}
@keyframes scanY {
  0%   { transform: translateY(-20vh); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(105vh); opacity: 0; }
}

/* 旋转机甲环 */
.hero-rings {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 16px), 0);
}
.ring { position: absolute; border-radius: 50%; }
.ring.ticks {
  width: 620px; height: 620px;
  opacity: .42;
  background: repeating-conic-gradient(rgba(96, 165, 250, .55) 0 1deg, transparent 1deg 6deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 60s linear infinite;
}
.ring.dashed {
  width: 460px; height: 460px;
  border: 1px dashed rgba(96, 165, 250, .48);
  animation: spinRev 45s linear infinite;
}
.ring-sweep {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      rgba(34, 211, 238, 0) 0deg 300deg,
      rgba(34, 211, 238, .5) 342deg,
      rgba(34, 211, 238, 0) 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 13s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }

/* 内容 */
.hero-content {
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -8px), 0);
}

/* 入场动画（启动画面结束后由 body.ready 触发） */
.hero-in { opacity: 0; }
body.ready .hero-in {
  animation: rise .8s cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-fade { opacity: 0; }
body.ready .hero-fade { animation: fadeIn .9s ease .85s both; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .28em;
  color: var(--sky);
  border: 1px solid var(--line-strong);
  background: var(--chip-bg);
  backdrop-filter: blur(6px);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.cursor-block {
  width: 7px; height: 13px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  position: relative;
  margin: 26px 0 18px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(46px, 9.4vw, 104px);
  line-height: 1.05;
  letter-spacing: .06em;
  text-indent: .06em;
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, .35));
}
.hero h1::after {
  content: 'FORGEOS';
  position: absolute; inset: 0;
  -webkit-text-stroke: 1px rgba(96, 165, 250, .28);
  color: transparent;
  transform: translate(7px, 7px);
  z-index: -1;
}
.hero h1 .ltr {
  display: inline-block;
  /* 逐字母截取同一段渐变，依靠等宽字体拼出连续色彩 */
  background-image: linear-gradient(100deg, #eaf4ff 0%, #8fc0ff 30%, #4f8ff7 52%, #22d3ee 72%, #a78bfa 100%);
  background-size: 700% 100%;
  background-position-x: calc(var(--i) * 16.667%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1.4);
  transition-delay: calc(var(--i) * 20ms);
}
body.ready .hero h1 .ltr { animation: ltrIn .7s cubic-bezier(.18, .8, .3, 1.05) both; animation-delay: calc(.1s + var(--i) * 65ms); }
.hero h1:hover .ltr { transform: translateY(-8px) scale(1.02); }
@keyframes ltrIn {
  from { opacity: 0; transform: translateY(36px) skewY(5deg); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.hero-sub {
  margin: 0 auto;
  max-width: 620px;
  font-size: 16.5px;
  color: var(--text-dim);
}
.hero-sub b { color: var(--ink-strong); font-weight: 600; }

.type-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px;
  width: min(100%, 500px);
  min-height: 48px;
  margin: 14px auto 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
}
.type-row .prompt { color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }
#typewriter { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.type-output { min-width: 0; text-align: left; overflow-wrap: anywhere; }
.type-caret {
  margin-left: 6px; vertical-align: -.15em;
  flex-shrink: 0;
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 1s steps(1) infinite;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

.btn {
  min-height: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-btn);
  font-size: 16.5px; letter-spacing: .05em;
  line-height: 1.2;
  overflow: hidden;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: transform .25s, box-shadow .3s, border-color .3s, background .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8 45%, #0891b2);
  border: 1px solid rgba(125, 211, 252, .5);
  box-shadow: 0 0 26px rgba(37, 99, 235, .4), inset 0 0 18px rgba(125, 211, 252, .16);
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 40px rgba(37, 99, 235, .65), inset 0 0 22px rgba(125, 211, 252, .25); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  color: var(--ink-soft);
  border: 1px solid rgba(125, 211, 252, .4);
  background: var(--chip-bg);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--sky);
  background: rgba(37, 99, 235, .18);
  box-shadow: 0 0 28px rgba(59, 130, 246, .35);
}

/* HUD 数据 */
.hero-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  margin: 36px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.stat { flex: 1; padding: 0 18px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--font-mono);
  font-size: 25px; font-weight: 700;
  color: var(--ice);
  text-shadow: 0 0 18px rgba(96, 165, 250, .45);
}
.stat-num .sfx { font-size: 14px; color: var(--cyan); }
.stat-num.txt {
  font-size: 17px;
  color: #7ee2b8;
  align-items: center; gap: 8px;
  text-shadow: 0 0 18px rgba(52, 211, 153, .4);
}
.stat-lbl {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em;
  color: var(--text-faint);
}

/* 浮动 HUD 徽章（跟随鼠标视差） */
.float-chip {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px), 0);
  will-change: transform;
}
body.ready .float-chip { animation: fadeIn .9s .8s both; }
@keyframes fadeIn { to { opacity: 1; } }
.fc-body {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  color: #a9c6ee;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  animation: floaty 6s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
}
.fc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent, var(--cyan)); box-shadow: 0 0 8px var(--accent, var(--cyan)); animation: pulse 2s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.fc-1 { top: 21%; left: 7%; }
.fc-2 { top: 30%; right: 8%; }
.fc-3 { bottom: 27%; left: 12%; }
.fc-4 { bottom: 34%; right: 11%; }

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .3em;
  color: var(--text-faint);
  pointer-events: none;
}
.scroll-hint svg { width: 14px; height: 14px; animation: bounce 1.9s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(-2px); opacity: .5; } 50% { transform: translateY(3px); opacity: 1; } }

/* ---------- 8. 章节通用 ---------- */
.section { padding: 80px 24px; }
.container { max-width: var(--content-width); margin: 0 auto; }

.sec-head { margin-bottom: 36px; }
.sec-head .hero-sub { margin-inline: 0; }
.sec-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .3em;
  color: var(--cyan);
}
.sec-title-wrap { display: flex; align-items: baseline; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.sec-title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.35; font-weight: 700; color: var(--ice); letter-spacing: .02em; text-wrap: balance; }
.sec-en { font-family: var(--font-mono); font-size: 13px; letter-spacing: .24em; color: var(--text-faint); }
.sec-line {
  position: relative;
  height: 1px; margin-top: 26px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .75), rgba(96, 165, 250, .38) 35%, rgba(139, 92, 246, .35) 62%, transparent 88%);
}
.sec-line::before {
  content: '';
  position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* 滚动出现 */
.reveal { opacity: 1; }
.js .reveal.in {
  animation: revealIn .7s cubic-bezier(.2, .7, .3, 1) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 9. 系统模块卡片 ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  perspective: 1200px;
}
.card {
  display: flex; flex-direction: column; min-width: 0;
  position: relative;
  padding: 26px 26px 22px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: transform .22s ease-out, border-color .3s, box-shadow .3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  border-color: var(--accent-ring, rgba(125, 211, 252, .5));
  box-shadow: 0 20px 54px -20px var(--accent-ring, rgba(37, 99, 235, .6));
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 15px; height: 15px;
  border-color: rgba(125, 211, 252, .5);
  transition: width .28s, height .28s, border-color .28s;
  pointer-events: none;
}
.card::before { top: 8px; right: 8px; border-top: 2px solid; border-right: 2px solid; border-color: inherit; }
.card::after { bottom: 8px; left: 8px; border-bottom: 2px solid; border-left: 2px solid; border-color: inherit; }
.card:hover::before, .card:hover::after { width: 26px; height: 26px; border-color: var(--accent, #7dd3fc); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.icon-box {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  color: var(--accent, #bfe0ff);
  background: linear-gradient(150deg, var(--accent-dim, rgba(37, 99, 235, .35)), rgba(14, 165, 233, .08));
  border: 1px solid var(--accent-dim, rgba(125, 211, 252, .35));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: box-shadow .3s, border-color .3s;
}
.icon-box svg { width: 22px; height: 22px; }
.card:hover .icon-box { border-color: var(--accent, rgba(125, 211, 252, .75)); box-shadow: 0 0 26px var(--accent-ring, rgba(59, 130, 246, .55)); }
.mod-id {
  margin: 4px 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em;
  color: var(--text-faint);
}
.mod-title { margin-top: 18px; font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--ice); }
.mod-en { margin-top: 2px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--text-faint); }
.mod-desc { margin-top: 12px; margin-bottom: 24px; font-size: 14px; line-height: 1.8; color: var(--text-dim); }
html[lang="en"] .mod-en { display: none; }
.card-bottom {
  display: flex; align-items: center; justify-content: flex-end;
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed rgba(96, 165, 250, .18);
}
.status-chip.small { padding: 5px 10px; font-size: 10px; }
.status-chip.wip { color: var(--sky); border-color: rgba(34, 211, 238, .32); background: rgba(34, 211, 238, .07); }
.btn-mini {
  min-width: 44px; min-height: 44px;
  padding: 7px 14px;
  font-family: var(--font-btn); font-size: 13px; letter-spacing: .04em;
  color: var(--ink-soft);
  border: 1px solid rgba(125, 211, 252, .35);
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  transition: background .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.btn-mini:hover { background: rgba(59, 130, 246, .2); border-color: var(--accent, var(--sky)); transform: translateY(-1px); box-shadow: 0 0 18px var(--accent-ring, rgba(59, 130, 246, .4)); }

.glare {
  position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), var(--accent-dim, rgba(125, 211, 252, .15)), transparent 65%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.card:hover .glare { opacity: 1; }

/* 每张卡片的科幻渐变强调色（蓝 / 青 / 紫 / 碧绿 / 靛 / 天蓝） */
.ac-blue   { --accent: #60a5fa; --accent-ring: rgba(96, 165, 250, .65);  --accent-dim: rgba(96, 165, 250, .16); }
.ac-cyan   { --accent: #22d3ee; --accent-ring: rgba(34, 211, 238, .6);   --accent-dim: rgba(34, 211, 238, .14); }
.ac-violet { --accent: #a78bfa; --accent-ring: rgba(167, 139, 250, .6);  --accent-dim: rgba(167, 139, 250, .16); }
.ac-teal   { --accent: #2dd4bf; --accent-ring: rgba(45, 212, 191, .6);   --accent-dim: rgba(45, 212, 191, .16); }
.ac-indigo { --accent: #818cf8; --accent-ring: rgba(129, 140, 248, .6);  --accent-dim: rgba(129, 140, 248, .16); }
.ac-sky    { --accent: #38bdf8; --accent-ring: rgba(56, 189, 248, .6);   --accent-dim: rgba(56, 189, 248, .16); }

/* ---------- 10. 控制台 ---------- */
.console-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.console-grid > *, .footer-grid > * { min-width: 0; }
.console-text p { margin-top: 18px; color: var(--text-dim); font-size: 15.5px; }
.console-text .hl { color: var(--ink-strong); font-weight: 600; }
.checklist { margin-top: 26px; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin: 12px 0;
  color: var(--text);
  font-size: 14.5px;
}
.checklist li::before {
  content: '';
  position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.console-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.term {
  background: rgba(4, 10, 26, .82);
  border: 1px solid rgba(96, 165, 250, .28);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 30px 80px -40px rgba(37, 99, 235, .8), inset 0 0 40px rgba(37, 99, 235, .06);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(96, 165, 250, .18);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; }
.term-dot:nth-child(1) { background: #1d4ed8; }
.term-dot:nth-child(2) { background: #0891b2; }
.term-dot:nth-child(3) { background: #7dd3fc; }
.term-title {
  margin-left: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em;
  color: #9bb0d1;
}
.term-body {
  min-height: 260px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 2.05;
}
.t-line { white-space: pre-wrap; word-break: break-all; }
.t-line.cmd { color: #dbe9ff; }
.t-line.out { color: #9bb0d1; }
.t-line.ok { color: #8fb7e8; }
.t-prompt { color: var(--cyan); }
.t-ok { color: var(--cyan); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

/* ---------- 11. 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--footer-fade));
  padding: 64px 24px 30px;
}
.footer-grid {
  max-width: var(--content-width); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
}
.f-brand { display: flex; align-items: center; gap: 10px; }
.f-brand svg { width: 26px; height: 26px; }
.f-brand-text { font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: .18em; color: var(--ice); }
.f-tag { margin-top: 14px; color: var(--text-dim); font-size: 14px; max-width: 320px; }
.f-mono { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-faint); }
.f-col h4 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .26em;
  color: var(--sky); font-weight: 600;
  margin-bottom: 16px;
}
.f-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.f-links li { margin: 0; }
.f-links a {
  display: inline-flex; align-items: center; min-width: 44px; min-height: 44px;
  position: relative;
  font-size: 14px; color: var(--text-dim);
  padding-left: 0;
  transition: color .25s, padding-left .25s;
}
.f-links a::before {
  content: '\25B8';
  position: absolute; left: 0;
  color: var(--cyan);
  opacity: 0;
  transition: opacity .25s;
}
.f-links a:hover { color: var(--ice); padding-left: 16px; }
.f-links a:hover::before { opacity: 1; }

.f-meta li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint);
  border-bottom: 1px dashed rgba(96, 165, 250, .14);
}
.f-meta li span:last-child { color: var(--ink-soft); }

.footer-bottom {
  max-width: var(--content-width);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--text-faint);
}

/* ---------- 12. Toast ---------- */
#toastRoot {
  max-width: min(420px, calc(100vw - 44px));
  position: fixed; right: 22px; bottom: 22px;
  z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.toast {
  max-width: 100%; overflow-wrap: anywhere;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: #cfe4ff;
  background: rgba(6, 16, 38, .94);
  border: 1px solid rgba(125, 211, 252, .35);
  border-left: 3px solid var(--cyan);
  box-shadow: 0 14px 40px -18px rgba(37, 99, 235, .8);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  opacity: 0;
  transform: translateX(22px);
  transition: opacity .3s, transform .3s;
}
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .float-chip { display: none; }
  .console-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 1024px) {
  .nav-inner { gap: 16px; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 10px 24px 18px;
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: .3s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { justify-content: flex-start; padding: 13px 2px; border-bottom: 1px dashed rgba(96, 165, 250, .14); }
  .nav-toggle { display: block; }
  .nav-right > .status-chip { display: none; }
  .nav-right { margin-left: auto; }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-right > .status-chip { display: none; }
}

@media (max-width: 860px) {
  .hero-rings .ring.ticks, .hero-rings .ring-sweep { display: none; }
  .ring.dashed { width: 340px; height: 340px; }
  .hero { padding-bottom: 70px; }
  .stat { padding-inline: 8px; }
  .section { padding: 56px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 520px) {
  .type-row { min-height: 72px; font-size: 12px; gap: 6px; }
  .card { padding: 22px 20px; }
  .term-title { font-size: 10px; letter-spacing: .08em; }
  .nav-inner { padding: 0 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-text { font-size: 16px; letter-spacing: .1em; }
  .nav-right { gap: 8px; }
  .theme-toggle { padding: 7px 8px; gap: 5px; letter-spacing: 0; }
  .language-toggle { min-width: 100px; font-size: 12px; padding-inline: 6px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .footer { padding: 40px 20px 24px; }
  .f-col h4 { margin-bottom: 8px; }
  .f-links { gap: 4px 16px; }
  #themeToggle { width: 44px; justify-content: center; }
  .tt-label { display: none; }
  .hero h1 { letter-spacing: .04em; }
  .hero-sub { font-size: 15px; }
  .stat-num { font-size: 21px; }
  .stat-lbl { letter-spacing: .08em; }
  .btn { padding: 12px 22px; font-size: 13px; }
}

@media (max-width: 360px) {
  .nav-inner { padding-inline: 8px; }
  .language-toggle { min-width: 92px; }
  .brand svg { width: 28px; height: 28px; }
  .brand { gap: 6px; }
  .brand-text { font-size: 14px; letter-spacing: .06em; }
  .nav-right { gap: 6px; }
}

html[lang="en"] .sec-title { letter-spacing: 0; line-height: 1.3; }
html[lang="en"] .scroll-hint { white-space: nowrap; }

/* ---------- 14. 主题：蓝白玻璃（Stark 风 · 与夜色完全不同的视觉语言） ---------- */
html[data-theme="light"] {
  color-scheme: light;
  --bg-0: #eef4fc;
  --bg-1: #e9f1fb;
  --bg-2: #e2ecf9;
  --panel: rgba(255, 255, 255, .7);
  --line: rgba(37, 99, 235, .14);
  --line-strong: rgba(37, 99, 235, .38);
  --ice: #0d2a5e;
  --text: #24395f;
  --text-dim: #4a628c;
  --text-faint: #50658a;
  --ink-soft: #24509c;
  --ink-strong: #16305e;
  --chip-bg: rgba(255, 255, 255, .75);
  --card-bg: rgba(255, 255, 255, .6);
  --nav-bg: rgba(255, 255, 255, .45);
  --nav-bg-scrolled: rgba(255, 255, 255, .75);
  --grid-line: rgba(37, 99, 235, .05);
  --footer-fade: rgba(219, 231, 250, .85);
}

/* 多维柔光背景（比初版略微加深一点点） */
html[data-theme="light"] body {
  background:
    radial-gradient(1100px 640px at 16% -8%, #e4eefc 0%, transparent 62%),
    radial-gradient(980px 600px at 90% 2%, #efe9fd 0%, transparent 58%),
    radial-gradient(920px 700px at 55% 106%, #e2f5f1 0%, transparent 62%),
    var(--bg-0);
}

/* 玻璃主题不需要 CRT 扫描线与方形网格（由六边形 HUD 网格代替） */
html[data-theme="light"] .scanlines,
html[data-theme="light"] .grid-overlay { display: none; }

/* 光晕与聚光：色散玻璃光斑、更柔和的氛围光 */
html[data-theme="light"] .aurora::before { opacity: .2; }
html[data-theme="light"] .aurora::after { opacity: .16; }
html[data-theme="light"] .aurora-glow {
  background:
    radial-gradient(720px 520px at 84% 12%, rgba(139, 92, 246, .1), transparent 62%),
    radial-gradient(760px 560px at 10% 86%, rgba(20, 184, 166, .1), transparent 62%);
}
html[data-theme="light"] #spotlight {
  width: 880px; height: 880px;
  background:
    radial-gradient(closest-side, rgba(103, 232, 249, .3), transparent 72%),
    radial-gradient(58% 58% at 61% 56%, rgba(167, 139, 250, .24), transparent 76%),
    radial-gradient(72% 72% at 50% 50%, rgba(255, 255, 255, .5), transparent 70%);
}
html[data-theme="light"] .hero::after {
  background: linear-gradient(180deg, transparent, rgba(147, 197, 253, .2), transparent);
}

/* 玻璃形态：去掉机甲切角，改为圆角玻璃 */
html[data-theme="light"] .kicker,
html[data-theme="light"] .fc-body,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-mini,
html[data-theme="light"] .icon-box,
html[data-theme="light"] .status-chip,
html[data-theme="light"] .nav-toggle { clip-path: none; border-radius: 11px; }
html[data-theme="light"] .btn { clip-path: none; border-radius: 13px; }
html[data-theme="light"] .card { clip-path: none; border-radius: 18px; }
html[data-theme="light"] .term { clip-path: none; border-radius: 18px; overflow: hidden; }
html[data-theme="light"] .toast { clip-path: none; border-radius: 12px; }

/* 玻璃面板质感：高透白 + 顶部内高光 + 柔和投影 */
html[data-theme="light"] .kicker,
html[data-theme="light"] .fc-body,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-mini {
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .58));
  border-color: rgba(255, 255, 255, .95);
  box-shadow: 0 14px 34px -22px rgba(37, 99, 235, .55), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
html[data-theme="light"] .btn-ghost:hover {
  border-color: rgba(191, 219, 254, 1);
  background: linear-gradient(160deg, #fff, rgba(219, 234, 254, .85));
  box-shadow: 0 18px 40px -20px rgba(37, 99, 235, .6), inset 0 1px 0 #fff;
}
html[data-theme="light"] .btn-primary {
  box-shadow: 0 14px 36px -16px rgba(37, 99, 235, .75), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* 导航：整条玻璃 */
html[data-theme="light"] #navbar {
  background: rgba(255, 255, 255, .45);
  border-bottom-color: rgba(255, 255, 255, .75);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
html[data-theme="light"] #navbar.scrolled {
  background: rgba(255, 255, 255, .74);
  border-bottom-color: rgba(191, 219, 254, .9);
  box-shadow: 0 18px 44px -30px rgba(37, 99, 235, .5);
}

/* 卡片：悬浮玻璃面板 */
html[data-theme="light"] .card {
  background: linear-gradient(150deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .5) 46%, rgba(224, 238, 255, .6) 100%);
  border: 1px solid rgba(37, 99, 235, .16);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow:
    0 26px 60px -34px rgba(37, 99, 235, .5),
    0 2px 12px -8px rgba(37, 99, 235, .28),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -26px 48px -36px rgba(59, 130, 246, .38);
}
html[data-theme="light"] .card:hover {
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 34px 76px -34px var(--accent-ring, rgba(37, 99, 235, .6)),
    0 2px 14px -8px var(--accent-dim, rgba(37, 99, 235, .3)),
    inset 0 1px 0 #fff,
    inset 0 -26px 48px -30px var(--accent-dim, rgba(59, 130, 246, .45));
}
/* 玻璃反光扫过 */
html[data-theme="light"] .card .glare {
  background-image: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .9) 46%, rgba(147, 197, 253, .55) 53%, transparent 68%);
  background-size: 260% 100%;
  background-position: 140% 0;
  background-repeat: no-repeat;
}
html[data-theme="light"] .card:hover .glare {
  opacity: 1;
  animation: glassSweep 1.05s cubic-bezier(.3, .55, .35, 1) forwards;
}
@keyframes glassSweep {
  from { background-position: 140% 0; }
  to   { background-position: -80% 0; }
}
html[data-theme="light"] .icon-box {
  background: linear-gradient(150deg, rgba(255, 255, 255, .95), var(--accent-dim, rgba(37, 99, 235, .14)));
  border-color: rgba(255, 255, 255, .98);
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px -16px rgba(37, 99, 235, .7);
}

/* 玻璃浮现：进入视口的元素从模糊中聚焦浮现（卡片除外，避免与玻璃滤镜叠加） */
html.js[data-theme="light"] .reveal.in:not(.card) { animation-name: glassRevealIn; animation-duration: .9s; }
@keyframes glassRevealIn {
  from { opacity: 0; filter: blur(14px); transform: translateY(26px) scale(.985); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* 状态徽章 */
html[data-theme="light"] .status-chip {
  color: #0f8f63;
  border-color: rgba(255, 255, 255, .95);
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(209, 250, 229, .7));
  box-shadow: inset 0 1px 0 #fff;
}
html[data-theme="light"] .status-chip.wip {
  color: #0e7490;
  border-color: rgba(255, 255, 255, .95);
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(207, 250, 254, .7));
}
html[data-theme="light"] .status-dot { box-shadow: 0 0 8px rgba(16, 185, 129, .9); }

/* 光标（玻璃准星） */
html[data-theme="light"] .cursor-dot { background: #1d4ed8; box-shadow: 0 0 14px rgba(29, 78, 216, .75); }
html[data-theme="light"] .cursor-ring { border-color: rgba(37, 99, 235, .55); }
html[data-theme="light"] .cursor-ring i { background: rgba(29, 78, 216, .85); }
html[data-theme="light"] .cursor-ring.hot { border-color: #2563eb; background: rgba(255, 255, 255, .18); }

/* 导航 / 文字细节 */
html[data-theme="light"] .nav-toggle span { background: #2563eb; }
html[data-theme="light"] .brand-text { color: #0d2a5e; }
html[data-theme="light"] .brand svg { filter: none; }
html[data-theme="light"] .brand svg path:first-child { stroke: #1d4ed8; }
html[data-theme="light"] .brand svg path:last-child { fill: #2563eb; }
html[data-theme="light"] .theme-toggle:hover { color: #16305e; border-color: #2563eb; box-shadow: 0 0 18px rgba(37, 99, 235, .3); }
html[data-theme="light"] .f-col h4 { color: #1d4ed8; }
html[data-theme="light"] .fc-body { color: #24509c; }
html[data-theme="light"] .brand-text em { color: #2563eb; }
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active { text-shadow: 0 0 14px rgba(37, 99, 235, .45); }
html[data-theme="light"] .kicker { color: #0369a1; }
html[data-theme="light"] .sec-label { color: #0e7490; }
html[data-theme="light"] .type-row { color: #0e7490; }
html[data-theme="light"] .cursor-block,
html[data-theme="light"] .type-caret { background: #0891b2; box-shadow: 0 0 10px rgba(8, 145, 178, .7); }
html[data-theme="light"] .stat-num { text-shadow: 0 0 14px rgba(37, 99, 235, .18); }
html[data-theme="light"] .stat-num .sfx { color: #0891b2; }
html[data-theme="light"] .stat-num.txt { color: #059669; }
html[data-theme="light"] .hero h1 { filter: drop-shadow(0 0 26px rgba(59, 130, 246, .28)); }
html[data-theme="light"] .hero h1 .ltr {
  background-image: linear-gradient(100deg, #1e3a8a 0%, #2563eb 30%, #0891b2 56%, #7c3aed 100%);
}
html[data-theme="light"] .hero h1::after { -webkit-text-stroke-color: rgba(37, 99, 235, .22); }
html[data-theme="light"] .ring.dashed { border-color: rgba(37, 99, 235, .3); }
html[data-theme="light"] .ring.ticks { opacity: .3; }
html[data-theme="light"] .f-links a::before { color: #0891b2; }

/* 终端与提示 */
html[data-theme="light"] .term {
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 34px 90px -46px rgba(37, 99, 235, .6), 0 0 0 1px rgba(37, 99, 235, .08);
}
html[data-theme="light"] .toast {
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(240, 246, 255, .88));
  color: #1c3a6b;
  border-color: rgba(191, 219, 254, .95);
  box-shadow: 0 18px 44px -20px rgba(37, 99, 235, .55), inset 0 1px 0 #fff;
}

/* Fade the complete scene, including gradients and canvas effects. */
::view-transition-group(root) { animation-duration: 1.5s; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) {
  animation: themeFadeIn 1.5s ease-in-out both;
  mix-blend-mode: normal;
}
::view-transition { pointer-events: none; }
@keyframes themeFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Older browsers still ease the main surface and text colors. */
html.theme-fading body,
html.theme-fading body * {
  transition: background-color 1.5s ease-in-out, color 1.5s ease-in-out,
    border-color 1.5s ease-in-out, box-shadow 1.5s ease-in-out,
    fill 1.5s ease-in-out, stroke 1.5s ease-in-out !important;
}

/* ---------- 15. 可访问性 / 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js[data-theme="light"] .reveal { filter: none; transform: none; }
  html { scroll-behavior: auto; }
  .ring, .ring-sweep, .aurora::before, .aurora::after,
  .grid-overlay, .hero::after, .fc-body, .boot-ring, .boot-logo svg,
  .scroll-hint svg, .boot-skip, .cursor-block, .type-caret, .t-cursor,
  .status-dot, .fc-dot, html[data-theme="light"] .card:hover .glare { animation: none !important; }
  .js .reveal { animation: none !important; opacity: 1; transform: none; }
  #spotlight { display: none; }
  body.ready .hero h1 .ltr { animation: none; opacity: 1; }
  body.ready .float-chip { animation: none; opacity: 1; }
  body.ready .hero-in, body.ready .hero-fade { animation: none; opacity: 1; }
}

/* Script failures must leave both content and navigation usable. */
.ui-fallback #boot { display: none; }
.ui-fallback .hero-in, .ui-fallback .hero-fade,
.ui-fallback .hero h1 .ltr, .ui-fallback .float-chip,
.ui-fallback .reveal { opacity: 1 !important; filter: none; animation: none !important; }
html:not(.js) #navbar, .ui-fallback #navbar { position: relative; height: auto; }
html:not(.js) .nav-inner, .ui-fallback .nav-inner { flex-wrap: wrap; min-height: 64px; }
html:not(.js) .nav-right, .ui-fallback .nav-right { display: none; }
html:not(.js) .nav-links, .ui-fallback .nav-links {
  position: static; width: 100%; order: 3; flex-direction: row; flex-wrap: wrap;
  justify-content: center; gap: 16px; margin: 0; padding: 8px 0;
  opacity: 1; visibility: visible; transform: none; max-height: none;
}

@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #boot, #navbar, #bg-canvas, .aurora, .aurora-glow, .scanlines, .grid-overlay,
  .cursor-dot, .cursor-ring, .hero-rings, .float-chip, .scroll-hint, #toastRoot { display: none !important; }
  .reveal, .hero-in, .hero-fade, .hero h1 .ltr { opacity: 1 !important; filter: none !important; transform: none !important; }
}
