/* ==========================================================================
   VirtuGene 官网样式 · DESIGN.md 视觉层次精修

   目录
   1  基础变量与重置
   2  全局视觉层（底雾 / 环境光 / 星尘 / 鼠标光场 / 颗粒 / 进度线 / 提示条）
   3  布局骨架（shell / section / 导航 / 页脚）
   4  组件（按钮 / 玻璃卡 / 世界切换 / 图片查看 / 下载卡）
   5  章节（首屏 / 对话 / 记忆 / 世界 / 界面 / 下载）
   6  进入动画
   7  区域氛围
   8  性能分级
   9  响应式（含移动端字号与断行标准）
   10 减少动态
   11 文档页（privacy / terms）

   层序（z-index）：
     0 底雾  1 环境光  2 星尘  3 鼠标光场  4 鼠标核心  10 内容
     40 导航  50 颗粒  55 进度线  70 提示条  90 图片查看
   ========================================================================== */

/* 1 基础变量与重置 ------------------------------------------------------- */
:root {
  --bg-0: #070810;
  --bg-1: #0c0d19;
  --bg-2: #131421;

  --ink: #efeaf9;
  --muted: #b7b0ce;
  --faint: #a19ab5;

  --violet: #8b7bf0;
  --violet-soft: #a99bff;
  --violet-brand: #6c5ce7;
  --blue: #6d8cff;
  --cyan: #00cec9;

  --line: rgba(168, 150, 255, 0.16);
  --line-soft: rgba(168, 150, 255, 0.09);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.062);

  --shell: 1280px;
  --pad-x: clamp(20px, 4.6vw, 64px);
  --section-y: clamp(72px, 7.2vw, 104px);
  --nav-h: 68px;

  --radius: 18px;
  --radius-lg: 22px;

  /* 移动端字号标准 */
  --fs-hero: clamp(38px, 6vw, 80px);
  --fs-h2: clamp(30px, 3.25vw, 46px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-note: 13px;

  --fx: 50vw;
  --fy: 40vh;
  --hx: 50vw;
  --hy: 40vh;
  --pointer-power: 0;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg-0);
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 中文断行：避免孤字成行（不支持的浏览器会忽略这一行） */
h1, h2, h3, p, li, dt, dd, figcaption, a, span, small { text-wrap: pretty; }

img { max-width: 100%; height: auto; }
a { color: var(--violet-soft); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0.04em; line-height: 1.2; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; }

:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(108, 92, 231, 0.42); color: #fff; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 95;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; }

/* 2 全局视觉层 ----------------------------------------------------------- */
.vg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.vg-base {
  z-index: 0;
  background:
    radial-gradient(120% 70% at 78% -10%, rgba(88, 68, 190, 0.18), transparent 66%),
    radial-gradient(90% 60% at 8% 12%, rgba(64, 52, 150, 0.10), transparent 70%),
    radial-gradient(140% 80% at 50% 108%, rgba(52, 44, 130, 0.12), transparent 72%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 38%, var(--bg-0) 100%);
}

.vg-ambient {
  z-index: 1;
  opacity: 1;
  transition: opacity 900ms ease;
}
.amb {
  position: absolute;
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}
.amb-a {
  left: -14vw;
  top: -12vh;
  width: 78vw;
  height: 78vw;
  max-width: 1180px;
  max-height: 1180px;
  background: radial-gradient(circle at 42% 46%, rgba(124, 104, 240, 0.30), rgba(96, 78, 210, 0.12) 44%, transparent 70%);
  animation: amb-drift-a 34s ease-in-out infinite;
}
.amb-b {
  right: -16vw;
  top: 24vh;
  width: 66vw;
  height: 66vw;
  max-width: 1020px;
  max-height: 1020px;
  background: radial-gradient(circle at 54% 50%, rgba(96, 128, 255, 0.24), rgba(70, 96, 220, 0.10) 46%, transparent 72%);
  animation: amb-drift-b 42s ease-in-out infinite;
}
.amb-c {
  left: 58%;
  top: 12vh;
  width: 46vw;
  height: 46vw;
  max-width: 760px;
  max-height: 760px;
  margin-left: -23vw;
  background: radial-gradient(circle at 50% 46%, rgba(196, 180, 255, 0.34), rgba(150, 126, 250, 0.16) 42%, transparent 70%);
  animation: amb-breathe 12s ease-in-out infinite;
}
.amb-d {
  left: 50%;
  top: 52vh;
  width: 84vw;
  height: 62vw;
  max-width: 1240px;
  max-height: 940px;
  margin-left: -42vw;
  background: radial-gradient(circle at 50% 50%, rgba(118, 92, 255, 0.20), rgba(70, 120, 255, 0.11) 46%, transparent 74%);
  animation: amb-drift-b 58s ease-in-out infinite reverse;
}

@keyframes amb-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3.2vw, 3.6vh, 0) scale(1.07); }
}
@keyframes amb-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.04); }
  50% { transform: translate3d(-3.6vw, -3vh, 0) scale(1); }
}
@keyframes amb-breathe {
  0%, 100% { opacity: 0.78; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.vg-dust { z-index: 2; width: 100%; height: 100%; }

.vg-field { z-index: 3; opacity: 0; transition: opacity 700ms ease; }
.vg-field.is-on { opacity: 1; }
.vg-field span {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 1200px;
  transform: translate3d(calc(var(--fx) - 50%), calc(var(--fy) - 50%), 0);
  background: radial-gradient(circle, rgba(158, 138, 255, 0.15), rgba(110, 130, 255, 0.07) 36%, transparent 66%);
  will-change: transform;
}

.vg-halo { z-index: 4; opacity: 0; transition: opacity 500ms ease; }
.vg-halo.is-on { opacity: calc(0.32 + var(--pointer-power) * 0.34); }
.vg-halo span {
  position: absolute;
  left: 0;
  top: 0;
  width: 240px;
  height: 240px;
  transform: translate3d(calc(var(--hx) - 50%), calc(var(--hy) - 50%), 0);
  background: radial-gradient(circle, rgba(226, 214, 255, 0.28), rgba(150, 128, 255, 0.13) 40%, transparent 70%);
  will-change: transform;
}

.vg-grain {
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 55;
  width: 100%;
  height: 2px;
  background: rgba(168, 150, 255, 0.08);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.9), rgba(140, 160, 255, 0.95), rgba(0, 206, 201, 0.85));
  box-shadow: 0 0 14px rgba(140, 150, 255, 0.55);
  will-change: transform;
}

/* 下载提示条（不是弹窗，只提示一句） */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 70;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 9, 25, 0.94);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast[hidden] { display: none; }

/* 3 布局骨架 ------------------------------------------------------------- */
header, main, footer { position: relative; z-index: 10; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  position: relative;
  padding-block: var(--section-y) 0;
  /* 只裁横向：环境光雾比章节宽，裁掉以免撑出横向滚动；纵向不裁，避免硬边断层 */
  overflow-x: clip;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.fog-left {
  background: radial-gradient(54% 48% at 14% 44%, rgba(124, 104, 240, 0.18), rgba(96, 78, 210, 0.07) 46%, transparent 72%);
}
.fog-right {
  background: radial-gradient(54% 48% at 86% 46%, rgba(150, 128, 255, 0.16), rgba(96, 128, 255, 0.07) 46%, transparent 74%);
}

.section-head { max-width: 720px; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: var(--fs-note);
  letter-spacing: 0.16em;
}

.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.section-head h2 em { font-style: normal; color: var(--violet-soft); }

.section-lead {
  margin-top: 20px;
  max-width: 640px;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.8;
}

/* 3.1 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(6, 4, 13, 0.42), rgba(6, 4, 13, 0.14));
  transition: background-color 320ms ease, border-color 320ms ease;
}
.nav.is-scrolled {
  border-bottom-color: rgba(168, 150, 255, 0.16);
  background: rgba(6, 4, 14, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(168, 150, 255, 0.06), 0 18px 50px -40px rgba(120, 100, 240, 0.9);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  justify-content: space-between;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(160deg, #a294ff, #5b4bd0);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(140, 120, 255, 0.55);
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  padding-block: 6px;
  white-space: nowrap;
  transition: color 220ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 155, 255, 0.9), transparent);
  transform: scaleX(0);
  transition: transform 260ms cubic-bezier(0.22, 0.8, 0.3, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav-menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease;
}
.nav-menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-h);
  display: grid;
  padding: 6px var(--pad-x) 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 5, 16, 0.96);
  backdrop-filter: blur(18px);
}
.nav-menu[hidden] { display: none; }
.nav-menu a {
  padding: 14px 2px;
  color: var(--ink);
  font-size: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.nav-menu a:last-child { border-bottom: 0; }

/* 3.2 页脚 */
.footer { border-top: 1px solid var(--line-soft); padding-block: 64px 52px; }
.footer-inner { display: grid; gap: 10px; }
.footer-brand { font-size: 15px; font-weight: 600; letter-spacing: 0.1em; }
.footer-line { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.footer-links a { color: var(--faint); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--faint); font-size: 13px; }

/* 4 组件 ---------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 260ms ease, color 200ms ease;
}
.btn-primary {
  background: linear-gradient(180deg, #8374f2, var(--violet-brand));
  color: #fff;
  box-shadow: 0 16px 40px -20px rgba(108, 92, 231, 1), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #9184f6, #7462f2);
  box-shadow: 0 20px 52px -20px rgba(130, 112, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:active { background: linear-gradient(180deg, #6f5ee6, #6152dd); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: rgba(168, 150, 255, 0.42); background: var(--panel); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }

[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(140px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.30), transparent 68%);
  transition: opacity 260ms ease;
  pointer-events: none;
}
[data-spotlight]:hover::after { opacity: 1; }

/* 4.1 玻璃展示卡 */
.shot { margin: 0; }
.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  perspective: 1000px;
}
.device {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(168, 150, 255, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 12, 36, 0.9), rgba(6, 4, 14, 0.95));
  box-shadow:
    0 40px 90px -50px rgba(108, 92, 231, 0.85),
    0 10px 30px -22px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  will-change: transform;
}
.device img { display: block; width: 100%; height: auto; }
.device-sheen {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(220px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, 0.16), transparent 62%),
    linear-gradient(112deg, transparent 42%, rgba(214, 226, 255, 0.16) 50%, transparent 58%);
  mix-blend-mode: screen;
  transition: opacity 380ms ease;
}
.shot-open:hover .device-sheen,
.shot-open:focus-visible .device-sheen { opacity: 1; }
.shot-open::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 60px;
  background: radial-gradient(60% 100% at 50% 50%, rgba(139, 123, 240, 0.42), transparent 72%);
  opacity: 0.72;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.shot-open:hover::before { opacity: 1; }

.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--faint);
  font-size: var(--fs-note);
  line-height: 1.6;
}
.shot-hint { color: rgba(169, 155, 255, 0.85); word-break: keep-all; }

.shot-compact { width: min(300px, 72vw); }
.shot-wide .device { max-width: 380px; margin-inline: auto; }
.shot-wide figcaption {
  display: block;
  max-width: 420px;
  min-height: 64px;
  margin-inline: auto;
}
.shot-hint { display: block; margin-top: 2px; }

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 22px;
  /* 说明文字不能太暗：用 muted 而不是 faint */
  color: var(--muted);
  font-size: var(--fs-note);
  line-height: 1.7;
}
.demo-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 206, 201, 0.8);
}

.stage-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: var(--fs-note); }

/* 4.2 世界切换 */
.tabs {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.tab {
  position: relative;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 260ms ease;
}
.tab:hover { border-color: rgba(168, 150, 255, 0.4); color: var(--ink); }
.tab[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(126, 108, 240, 0.36), rgba(92, 76, 200, 0.22));
  border-color: rgba(169, 155, 255, 0.65);
  color: #fff;
  box-shadow: 0 12px 34px -18px rgba(126, 108, 240, 1), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.panels { position: relative; }
.panel {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 320ms cubic-bezier(0.22, 0.8, 0.3, 1),
    transform 320ms cubic-bezier(0.22, 0.8, 0.3, 1),
    filter 320ms cubic-bezier(0.22, 0.8, 0.3, 1);
}
.panel[hidden] { display: none; }
.panel.is-entering { opacity: 0; transform: scale(0.982) translate3d(0, 8px, 0); filter: blur(7px); }

/* 4.3 图片查看 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 10, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  transition: opacity 340ms ease;
}
.lightbox.is-open .lightbox-backdrop { opacity: 1; }
.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(760px, 92vw);
  text-align: center;
  opacity: 0;
  transform: scale(0.965) translate3d(0, 14px, 0);
  filter: blur(8px);
  transition: opacity 340ms cubic-bezier(0.22, 0.8, 0.3, 1),
    transform 340ms cubic-bezier(0.22, 0.8, 0.3, 1),
    filter 340ms cubic-bezier(0.22, 0.8, 0.3, 1);
}
.lightbox.is-open .lightbox-figure { opacity: 1; transform: none; filter: none; }
.lightbox-figure img {
  max-height: 78svh;
  width: auto;
  margin-inline: auto;
  border: 1px solid rgba(168, 150, 255, 0.22);
  border-radius: 16px;
  background: var(--bg-0);
  box-shadow: 0 60px 140px -60px rgba(126, 108, 240, 1);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 9, 25, 0.86);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-family: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.lightbox-close:hover { background: var(--panel-hover); border-color: rgba(168, 150, 255, 0.45); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(13, 9, 25, 0.8);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-family: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.lightbox-nav:hover { background: var(--panel-hover); border-color: rgba(168, 150, 255, 0.45); }
.lightbox-nav.is-prev { left: clamp(10px, 3vw, 40px); }
.lightbox-nav.is-next { right: clamp(10px, 3vw, 40px); }
.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.lightbox-hint {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* 4.4 下载卡 */
.platforms {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(32px, 4vw, 52px);
  align-items: stretch;
}
.platform {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  padding: 26px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 260ms ease, box-shadow 320ms ease;
}
.platform.is-primary { border-color: rgba(169, 155, 255, 0.32); }
.platform.is-secondary { background: rgba(255, 255, 255, 0.022); }
.platform:hover { border-color: rgba(169, 155, 255, 0.5); box-shadow: 0 34px 80px -52px rgba(126, 108, 240, 1), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.platform-head { display: flex; align-items: baseline; gap: 12px; }
.platform-name { font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.platform-version { color: var(--faint); font-size: 14px; }
.platform-meta {
  color: var(--faint);
  font-size: var(--fs-small);
  /* 版本与"以上"不能被拆开换行 */
  word-break: keep-all;
  overflow-wrap: normal;
}
.platform-cta { width: 100%; margin-top: 14px; }

.download-notes {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  max-width: 800px;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.8;
}

/* 5 章节 ---------------------------------------------------------------- */
/* 5.1 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--nav-h) - 48px);
  padding-block: clamp(40px, 5vw, 64px) 0;
  overflow: hidden;
}
.hero-dust { position: absolute; inset: 0; pointer-events: none; }
.hero-dust i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(214, 226, 255, 0.75);
  box-shadow: 0 0 12px rgba(180, 196, 255, 0.9);
  animation: dust-float 22s linear infinite;
}
.hero-dust i:nth-child(1) { left: 14%; top: 62%; animation-duration: 26s; }
.hero-dust i:nth-child(2) { left: 32%; top: 78%; animation-duration: 34s; animation-delay: -6s; }
.hero-dust i:nth-child(3) { left: 58%; top: 70%; animation-duration: 30s; animation-delay: -12s; }
.hero-dust i:nth-child(4) { left: 74%; top: 84%; animation-duration: 38s; animation-delay: -3s; }
.hero-dust i:nth-child(5) { left: 88%; top: 58%; animation-duration: 28s; animation-delay: -18s; }
.hero-dust i:nth-child(6) { left: 46%; top: 40%; animation-duration: 32s; animation-delay: -9s; }
@keyframes dust-float {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.9; }
  88% { opacity: 0.7; }
  100% { transform: translate3d(2vw, -22vh, 0); opacity: 0; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy { position: relative; }
.hero-brand {
  margin-bottom: 18px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.16;
  letter-spacing: 0.04em;
  color: #f8f6ff;
  text-shadow: 0 0 60px rgba(140, 120, 255, 0.35);
}
.hero-line { display: block; }
.hero-line-accent { color: var(--violet-soft); text-shadow: 0 0 70px rgba(150, 130, 255, 0.55); }
.hero-lead {
  margin-top: 24px;
  max-width: 460px;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.hero-visual {
  position: relative;
  justify-self: center;
  height: clamp(340px, 60svh, 620px);
  max-width: 100%;
  perspective: 1100px;
  will-change: transform;
}
.hero-stage {
  position: relative;
  height: 100%;
  aspect-ratio: 1120 / 1404;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-glow {
  position: absolute;
  inset: -16% -14% -4%;
  z-index: 0;
  background:
    radial-gradient(46% 42% at 52% 40%, rgba(206, 192, 255, 0.42), rgba(139, 123, 240, 0.18) 54%, transparent 76%),
    radial-gradient(70% 60% at 50% 82%, rgba(108, 92, 231, 0.22), transparent 72%);
  animation: hero-glow-breathe 12s ease-in-out infinite;
}
@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 0.96; transform: scale(1.04); }
}
.hero-rim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 30%, rgba(226, 214, 255, 0.85) 52%, rgba(150, 170, 255, 0.5) 62%, transparent 76%);
  -webkit-mask-image: url("./assets/selected/hero-guyuena.webp");
  mask-image: url("./assets/selected/hero-guyuena.webp");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mix-blend-mode: screen;
  opacity: 0.42;
  transform: translate3d(var(--rim-x, 0px), var(--rim-y, 0px), 0);
  transition: opacity 500ms ease;
  will-change: transform;
}
/* 人物底部：按标准渐变收口，再叠一层淡紫雾光，让裙摆消失在背景里 */
.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 76%, rgba(0, 0, 0, 0.75) 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 76%, rgba(0, 0, 0, 0.75) 86%, transparent 100%);
}
.hero-mist {
  position: absolute;
  left: -16%;
  right: -16%;
  bottom: -4%;
  height: 34%;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(58% 100% at 50% 100%, rgba(160, 138, 255, 0.34), rgba(108, 92, 231, 0.14) 46%, transparent 76%);
}
.hero-foreground { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero-foreground i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(230, 224, 255, 0.85);
  box-shadow: 0 0 14px rgba(190, 200, 255, 1);
  animation: fg-float 18s ease-in-out infinite;
}
.hero-foreground i:nth-child(1) { left: 18%; top: 26%; animation-delay: -2s; }
.hero-foreground i:nth-child(2) { left: 76%; top: 18%; animation-duration: 22s; animation-delay: -8s; }
.hero-foreground i:nth-child(3) { left: 30%; top: 68%; animation-duration: 26s; animation-delay: -14s; }
.hero-foreground i:nth-child(4) { left: 84%; top: 62%; animation-duration: 20s; animation-delay: -5s; }
.hero-foreground i:nth-child(5) { left: 54%; top: 88%; animation-duration: 24s; animation-delay: -11s; }
@keyframes fg-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.5; }
  50% { transform: translate3d(6px, -26px, 0) scale(1.15); opacity: 1; }
}

/* 5.2 对话 */
.meet-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.meet-shot { width: min(320px, 34vw); justify-self: center; }
.meet-points {
  display: grid;
  gap: 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.meet-points li {
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 20px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.75;
}
.meet-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(169, 155, 255, 0.75);
  background: var(--violet-soft);
}
/* 理念融入各段：一条不抢戏的原则说明 */
.principle {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.principle-tag {
  display: inline-block;
  margin-right: 8px;
  color: rgba(169, 155, 255, 0.9);
  font-size: 13px;
  letter-spacing: 0.14em;
}

/* 5.3 记忆 */
.memory-motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.memory-motes i {
  position: absolute;
  width: 2px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(169, 155, 255, 0.75), transparent);
  animation: mote-rise 14s linear infinite;
}
.memory-motes i:nth-child(1) { left: 12%; top: 82%; animation-duration: 16s; }
.memory-motes i:nth-child(2) { left: 26%; top: 92%; animation-duration: 21s; animation-delay: -5s; }
.memory-motes i:nth-child(3) { left: 41%; top: 76%; animation-duration: 18s; animation-delay: -11s; }
.memory-motes i:nth-child(4) { left: 57%; top: 88%; animation-duration: 24s; animation-delay: -3s; }
.memory-motes i:nth-child(5) { left: 68%; top: 72%; animation-duration: 19s; animation-delay: -14s; }
.memory-motes i:nth-child(6) { left: 79%; top: 90%; animation-duration: 23s; animation-delay: -8s; }
.memory-motes i:nth-child(7) { left: 90%; top: 80%; animation-duration: 17s; animation-delay: -19s; }
.memory-motes i:nth-child(8) { left: 34%; top: 96%; animation-duration: 26s; animation-delay: -6s; }
@keyframes mote-rise {
  0% { transform: translate3d(0, 0, 0) scaleY(0.5); opacity: 0; }
  18% { opacity: 0.85; }
  80% { opacity: 0.5; }
  100% { transform: translate3d(10px, -74vh, 0) scaleY(1.2); opacity: 0; }
}

.memory-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(32px, 4vw, 56px);
}
.steps {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  --lit: 1;
}
/* 记忆流动：一条细线，亮到当前步骤 */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 26px;
  bottom: 26px;
  width: 1px;
}
.steps::before { background: var(--line-soft); }
.steps::after {
  background: linear-gradient(180deg, rgba(169, 155, 255, 0.95), rgba(0, 206, 201, 0.6));
  box-shadow: 0 0 12px rgba(150, 140, 255, 0.6);
  transform: scaleY(var(--lit));
  transform-origin: center top;
  transition: transform 420ms cubic-bezier(0.3, 0.7, 0.2, 1);
}
.step-item { position: relative; }
.step {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 18px 20px 18px 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
}
.step:hover { border-color: rgba(168, 150, 255, 0.4); background: var(--panel); }
.step[aria-selected="true"] {
  border-color: rgba(169, 155, 255, 0.6);
  background: linear-gradient(180deg, rgba(126, 108, 240, 0.20), rgba(92, 76, 200, 0.08));
  box-shadow: 0 20px 50px -34px rgba(126, 108, 240, 1);
}
.step-dot {
  position: absolute;
  left: 16px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid rgba(169, 155, 255, 0.7);
  transition: background-color 400ms ease, box-shadow 400ms ease;
}
.step[aria-selected="true"] .step-dot {
  background: var(--violet-soft);
  border-color: var(--violet-soft);
  box-shadow: 0 0 14px rgba(169, 155, 255, 0.95);
}
.step-index { color: rgba(169, 155, 255, 0.85); font-size: 13px; letter-spacing: 0.16em; }
.step-label { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
.step-quote { color: var(--ink); font-size: var(--fs-body); line-height: 1.7; }
.step-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-note);
}

.step-screens { position: relative; width: min(300px, 26vw); }
.step-screen[hidden] { display: none; }
.step-screen {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 300ms cubic-bezier(0.22, 0.8, 0.3, 1),
    transform 300ms cubic-bezier(0.22, 0.8, 0.3, 1),
    filter 300ms cubic-bezier(0.22, 0.8, 0.3, 1);
}
.step-screen.is-entering { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.99); filter: blur(6px); }

/* 手机版分页（桌面隐藏） */
.memory-pager { display: none; }
.pager-dots { display: none; }

/* 5.4 世界 */
.world-stage {
  position: relative;
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(26px, 3.4vw, 48px) clamp(18px, 3vw, 42px) clamp(20px, 3vw, 32px);
  border: 1px solid rgba(168, 150, 255, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(96, 80, 210, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(13, 9, 25, 0.78), rgba(6, 4, 14, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 60px 140px -80px rgba(126, 108, 240, 1);
  overflow: hidden;
  --cosmos-hue: 258;
}
.world-stage[data-world="scene"] { --cosmos-hue: 232; }
.world-stage[data-world="timeline"] { --cosmos-hue: 276; }

.world-cosmos { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  border: 1px solid hsla(var(--cosmos-hue), 82%, 80%, 0.24);
  transform: translate(-50%, -50%);
  transition: border-color 700ms ease;
}
.ring-1 { width: 46%; aspect-ratio: 1 / 1; animation: ring-spin 68s linear infinite; }
.ring-2 {
  width: 66%;
  aspect-ratio: 1 / 1;
  border-style: dashed;
  border-color: hsla(var(--cosmos-hue), 82%, 80%, 0.17);
  animation: ring-spin 96s linear infinite reverse;
}
.ring-3 { width: 92%; aspect-ratio: 1 / 1; border-color: hsla(var(--cosmos-hue), 82%, 80%, 0.12); animation: ring-spin 140s linear infinite; }
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 56%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  animation: ring-spin 42s linear infinite;
}
.orbit-2 { width: 78%; animation-duration: 64s; animation-direction: reverse; }
.orbit i {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: hsl(var(--cosmos-hue), 90%, 84%);
  box-shadow: 0 0 16px hsla(var(--cosmos-hue), 95%, 78%, 0.95);
}
/* 蓝紫为主，少量青色 */
.world-nebula {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 74%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 44%, hsla(var(--cosmos-hue), 88%, 74%, 0.3), hsla(var(--cosmos-hue), 88%, 62%, 0.13) 44%, transparent 70%),
    radial-gradient(circle at 62% 58%, rgba(0, 206, 201, 0.12), transparent 58%);
  transition: background 700ms ease;
}
.world-arc {
  position: absolute;
  left: 50%;
  top: -58%;
  width: min(1180px, 130%);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border-top: 1px solid rgba(169, 155, 255, 0.26);
  box-shadow: 0 -34px 90px -60px rgba(139, 123, 240, 0.95);
}

/* 星图：默认直接展示，节点可点 */
.map-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.map-canvas {
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 320px;
}
.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-lines line {
  stroke: rgba(168, 150, 255, 0.3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.map-node {
  position: absolute;
  left: var(--nx, 50%);
  top: var(--ny, 54%);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 240ms ease, border-color 240ms ease;
}
.map-node.is-core { --nx: 50%; --ny: 54%; }
.map-node:hover { background: rgba(255, 255, 255, 0.05); }
.map-node[aria-pressed="true"] {
  background: rgba(139, 123, 240, 0.16);
  border-color: rgba(169, 155, 255, 0.38);
}
.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet-soft);
  box-shadow: 0 0 14px rgba(169, 155, 255, 0.85);
}
.map-node.is-core .node-dot { width: 16px; height: 16px; }
.map-node.is-active .node-dot { animation: node-breathe 3.4s ease-in-out infinite; }
.map-node.is-paused { opacity: 0.5; }
.map-node.is-paused .node-dot { background: rgba(169, 155, 255, 0.5); box-shadow: none; }
.node-label {
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  word-break: keep-all;
}
.node-state { color: var(--faint); font-size: 13px; white-space: nowrap; }
.map-node[aria-pressed="true"] .node-label { color: #fff; }
@keyframes node-breathe {
  0%, 100% { box-shadow: 0 0 12px rgba(169, 155, 255, 0.7); }
  50% { box-shadow: 0 0 26px rgba(169, 155, 255, 1), 0 0 46px rgba(139, 123, 240, 0.5); }
}

.map-aside {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
}
.map-kicker { color: rgba(169, 155, 255, 0.9); font-size: 13px; letter-spacing: 0.16em; }
.map-summary { color: var(--ink); font-size: var(--fs-small); }
.map-detail { display: grid; gap: 8px; }
.map-detail > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
.map-detail dt { color: var(--faint); font-size: 13px; }
.map-detail dd { color: var(--muted); font-size: 14px; line-height: 1.65; }
.map-cta { margin-top: 6px; }
.map-note { color: var(--faint); font-size: 13px; }

/* 5.5 界面 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}
.gallery-card .device { width: 100%; }
.gallery-card .device img { width: 100%; height: auto; }
.gallery-card figcaption { display: grid; gap: 3px; }
.gallery-card figcaption > span:first-child { color: var(--ink); font-size: 15px; font-weight: 500; }

.gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px;
  margin-top: 20px;
  padding: 4px 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #454058 transparent;
}
.rail-card { scroll-snap-align: start; }
.rail-card .device { width: 100%; }
.rail-card figcaption { display: grid; gap: 3px; }
.rail-card figcaption > span:first-child { color: var(--ink); font-size: 15px; font-weight: 500; }
.rail-hint { margin-top: 18px; color: var(--faint); font-size: 13px; text-align: center; }
.rail-hint { display: none; }

/* 5.6 下载 */
.download { position: relative; }
.download-glow {
  position: absolute;
  left: 50%;
  top: -12%;
  width: min(1100px, 120%);
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(139, 123, 240, 0.22), transparent 72%);
  pointer-events: none;
}

/* 6 进入动画 ------------------------------------------------------------- */
.reveal-hero {
  animation: hero-enter 1100ms cubic-bezier(0.22, 0.8, 0.3, 1) both;
  animation-delay: var(--enter-delay, 0s);
}
@keyframes hero-enter {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.is-armed {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  filter: blur(6px);
}
.is-armed.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 760ms cubic-bezier(0.22, 0.8, 0.3, 1),
    transform 760ms cubic-bezier(0.22, 0.8, 0.3, 1),
    filter 760ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* 7 区域氛围 ------------------------------------------------------------- */
/* 首屏最强；对话与记忆更深更安静；世界偏蓝紫带一点青；截图与下载干净克制 */
html[data-atmos="hero"] .vg-ambient { opacity: 1; }
html[data-atmos="quiet"] .vg-ambient { opacity: 0.5; }
html[data-atmos="cosmos"] .vg-ambient { opacity: 0.82; }
html[data-atmos="plain"] .vg-ambient { opacity: 0.32; }

html[data-atmos="quiet"] .vg-grain { opacity: 0.022; }
html[data-atmos="plain"] .vg-grain { opacity: 0.018; }
html[data-atmos="plain"] .vg-halo.is-on { opacity: calc(0.2 + var(--pointer-power) * 0.2); }

/* 8 性能分级 ------------------------------------------------------------- */
.is-paused .amb,
.is-paused .hero-glow,
.is-paused .hero-dust i,
.is-paused .hero-foreground i,
.is-paused .memory-motes i,
.is-paused .ring,
.is-paused .orbit,
.is-paused .map-node.is-active .node-dot { animation-play-state: paused; }

.tier-low .vg-grain { display: none; }
.tier-low .is-armed { filter: none; }
.tier-low .panel.is-entering { filter: none; }
.tier-low .step-screen.is-entering { filter: none; }
.tier-low .ring,
.tier-low .orbit,
.tier-low .map-node.is-active .node-dot { animation: none; }
.tier-low .hero-rim { display: none; }
.tier-low .lightbox-backdrop { backdrop-filter: none; }

.tier-medium .vg-grain { opacity: 0.02; }
.tier-medium .ring-2,
.tier-medium .ring-3 { animation: none; }

/* 9 响应式 --------------------------------------------------------------- */
@media (min-width: 861px) {
  /* 星图 / 剧情 / 时间线三个面板高度一致：切换时页面不跳 */
  .panels { height: 620px; }
  .panel { height: 100%; }
  .map-layout { height: 100%; align-items: center; }
  .map-canvas { aspect-ratio: auto; height: 100%; min-height: 0; }
  .shot-wide {
    display: grid;
    height: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 270px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
  }
  .shot-wide .shot-open { grid-column: 2; grid-row: 1; }
  .shot-wide .device { max-width: none; }
  .shot-wide figcaption {
    grid-column: 1;
    grid-row: 1;
    max-width: 300px;
    min-height: 0;
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-small);
    line-height: 1.75;
    text-align: left;
  }
  .shot-wide .shot-hint { margin-top: 10px; }
}

@media (max-width: 1100px) {
  .step-screens { width: min(280px, 30vw); }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .map-layout { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 16px; }
}

@media (max-width: 860px) {
  :root {
    --pad-x: 20px;
    --section-y: 64px;
    --fs-hero: 42px;
    --fs-h2: 32px;
    --fs-body: 16px;
    --fs-small: 15px;
    --fs-note: 13px;
  }
  body { line-height: 1.75; }
  .hero-title { font-size: 42px; line-height: 1.22; }
  .section-head h2 { font-size: 32px; line-height: 1.3; }
  .section-lead, .hero-lead, .step-quote { font-size: 16px; }

  /* 导航：两端对齐，其余入口收进右上角菜单 */
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }

  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-brand { margin-bottom: 12px; }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; height: clamp(300px, 46svh, 420px); }
  .hero-facts { margin-top: 20px; }

  .meet-body { grid-template-columns: minmax(0, 1fr); }
  .meet-shot { width: min(100%, 300px); order: 2; }
  .meet-body .section-head { order: 1; }

  /* 记忆：桌面联动改成手机分页滑动 */
  .memory-demo { display: none; }
  .memory-pager {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    margin: 28px calc(-1 * var(--pad-x)) 0;
    padding-inline: var(--pad-x);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-x);
    -webkit-overflow-scrolling: touch;
  }
  .memory-pager::-webkit-scrollbar { display: none; }
  .pager-slide { scroll-snap-align: center; display: grid; gap: 6px; align-content: start; }
  .pager-index { color: rgba(169, 155, 255, 0.85); font-size: 13px; letter-spacing: 0.16em; }
  .pager-label { color: var(--muted); font-size: 14px; }
  .pager-quote { color: var(--ink); font-size: 16px; line-height: 1.7; }
  .pager-slide img {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-0);
  }
  .pager-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
  }
  .pager-dot {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
  }
  .pager-dot.is-active {
    border-color: rgba(169, 155, 255, 0.65);
    background: rgba(126, 108, 240, 0.24);
    color: #fff;
  }

  /* 世界：标题 → 星图 → 按钮 → 状态摘要 */
  .world-stage { padding-inline: 16px; }
  .panels { height: auto; }
  .map-layout { height: auto; }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .map-canvas { min-height: 300px; aspect-ratio: 4 / 3; height: auto; }
  .map-node { padding: 8px 10px; }
  .node-label { font-size: 14px; }
  .map-aside { order: 2; }
  .map-cta { width: 100%; min-height: 52px; }
  .shot-wide .device { max-width: 340px; }

  /* 主界面横向分页，一次展示一张，露出下一张边缘 */
  .gallery-grid {
    grid-template-columns: none;
    grid-template-areas: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    margin: 28px calc(-1 * var(--pad-x)) 0;
    padding-inline: var(--pad-x);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-x);
    -webkit-overflow-scrolling: touch;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid > .gallery-card { grid-area: auto; scroll-snap-align: center; }

  .gallery-rail {
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    grid-template-columns: none;
    gap: 14px;
    margin: 28px calc(-1 * var(--pad-x)) 0;
    padding-inline: var(--pad-x);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad-x);
    -webkit-overflow-scrolling: touch;
  }
  .gallery-rail::-webkit-scrollbar { display: none; }
  .rail-card { scroll-snap-align: center; }
  .rail-card .device { max-width: none; }
  .rail-card figcaption { text-align: left; }
  .rail-hint { display: block; }

  .platforms { grid-template-columns: minmax(0, 1fr); }
  .platform-cta { min-height: 52px; font-size: 17px; }

  .lightbox { padding: 14px 14px 64px; }
  .lightbox-figure { max-width: 94vw; }
  .lightbox-figure img { max-height: 72svh; }
  .lightbox-nav { top: auto; bottom: 12px; margin-top: 0; width: 48px; height: 48px; }
  .lightbox-nav.is-prev { left: 18px; }
  .lightbox-nav.is-next { right: 18px; }
  .lightbox-count { bottom: 26px; }
  .lightbox-hint { bottom: 76px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 40px; }
  .section-head h2 { font-size: 30px; }
  .tab { padding: 0 20px; font-size: 15px; }
  .lightbox-hint { display: none; }
}

/* 10 减少动态 ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-hero { animation: none; opacity: 1; transform: none; filter: none; }
  .is-armed { opacity: 1; transform: none; filter: none; }
  .hero-foreground, .hero-dust, .memory-motes { display: none; }
  .vg-field, .vg-halo { display: none; }
}

/* 11 文档页（privacy / terms 复用本文件） -------------------------------- */
.document {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 120px);
}
.document > a { display: inline-block; margin-bottom: 28px; font-size: 14px; color: var(--faint); }
.document > a:hover { color: var(--ink); }
.document h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: 0.05em; }
.document .updated { margin-top: 12px; color: var(--faint); font-size: 13px; letter-spacing: 0.08em; }
.document h2 { margin-top: 40px; font-size: 19px; letter-spacing: 0.04em; color: var(--violet-soft); }
.document p { margin-top: 14px; color: var(--muted); }
.document ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.document li { margin-top: 8px; }
