/* XUL 官网设计系统 · 2026-11 重做
   深色优先，星云紫粉为强调色；浅色为暖白纸面。
   动效只用 transform/opacity，并整体受 prefers-reduced-motion 控制。 */

/* ============================================================
   1. 令牌
   ============================================================ */
:root {
  color-scheme: dark;

  --bg: #0b0a12;
  --bg-2: #100e1b;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .10);
  --line-soft: rgba(255, 255, 255, .06);
  --fg: #f4f1ff;
  --fg-mid: #c3bedb;
  --fg-dim: #8f89ab;

  --brand: #a48bff;
  --brand-2: #ff8bd0;
  --brand-ink: #1a1030;
  --brand-soft: rgba(164, 139, 255, .14);
  --ok: #45d6a0;
  --warn: #f0b552;
  --err: #ff7a8a;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --maxw: 1180px;
  --nav-h: 66px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 40px -22px rgba(0, 0, 0, .8);
  --shadow-2: 0 30px 80px -32px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(164, 139, 255, .35), 0 22px 60px -22px rgba(164, 139, 255, .45);

  --ease: cubic-bezier(.22, .7, .24, 1);
  --dur: .38s;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Sarasa Mono SC", "JetBrains Mono", ui-monospace, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5ff;
  --bg-2: #efeafc;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(255, 255, 255, .92);
  --line: rgba(58, 40, 110, .12);
  --line-soft: rgba(58, 40, 110, .07);
  --fg: #1c1430;
  --fg-mid: #4b4166;
  --fg-dim: #7d7395;
  --brand: #6a52e0;
  --brand-2: #d9569f;
  --brand-ink: #ffffff;
  --brand-soft: rgba(106, 82, 224, .10);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 16px 34px -24px rgba(40, 22, 80, .45);
  --shadow-2: 0 30px 70px -34px rgba(40, 22, 80, .40);
  --glow: 0 0 0 1px rgba(106, 82, 224, .28), 0 22px 54px -24px rgba(106, 82, 224, .38);
}

/* ============================================================
   2. 基础
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.75 var(--font);
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--brand-ink); }

svg[aria-hidden="true"], svg:not([viewBox]) { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 背景层：极光 + 网格 + 噪点 */
.bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bg i { position: absolute; display: block; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.bg i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -14vw; background: radial-gradient(circle at 40% 40%, rgba(164, 139, 255, .85), transparent 62%); animation: drift1 26s var(--ease) infinite alternate; }
.bg i:nth-child(2) { width: 44vw; height: 44vw; right: -10vw; top: 2vh; background: radial-gradient(circle at 60% 40%, rgba(255, 139, 208, .55), transparent 62%); animation: drift2 32s var(--ease) infinite alternate; }
.bg i:nth-child(3) { width: 60vw; height: 38vw; left: 22vw; bottom: -22vw; background: radial-gradient(circle at 50% 50%, rgba(80, 200, 255, .30), transparent 65%); animation: drift1 40s var(--ease) infinite alternate-reverse; }
html[data-theme="light"] .bg i { opacity: .40; filter: blur(80px); }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  opacity: .5;
}
@keyframes drift1 { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 7vh, 0) scale(1.08); } }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--fg-dim); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.14; }
h1 { font-size: clamp(38px, 6.4vw, 74px); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 18px; letter-spacing: -.012em; }
p { margin: 0; }
.lead { color: var(--fg-mid); font-size: clamp(15px, 1.5vw, 18px); max-width: 62ch; margin-top: 12px; }

/* ============================================================
   3. 顶栏
   ============================================================ */
header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav { display: flex; align-items: center; gap: 18px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff; font: 800 14px/1 var(--font);
  box-shadow: 0 6px 18px -6px var(--brand);
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px 8px 16px; border-radius: 11px;
  font-size: 14.5px; color: var(--fg-mid);
  transition: color .2s var(--ease);
}
.nav-links a > svg { width: 15px; height: 15px; opacity: .72; transition: opacity .2s var(--ease), transform .3s var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover > svg { opacity: 1; transform: scale(1.1); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"] > svg { opacity: 1; color: var(--brand); }
/* 选中项左侧的渐变竖条，和启动器侧栏的当前页标记一致 */
.nav-links a[aria-current="page"]::before {
  content: ""; position: absolute; left: 7px; top: 50%; width: 3px; height: 15px;
  margin-top: -7.5px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg-mid);
  transition: transform .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { color: var(--fg); border-color: var(--brand); transform: translateY(-1px); }
.menu-btn { display: none; }

/* ============================================================
   4. 按钮
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: var(--brand-ink); font-weight: 650; font-size: 14.5px; white-space: nowrap;
  box-shadow: 0 12px 30px -14px var(--brand);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--brand); filter: saturate(1.12); }
.btn:active { transform: translateY(0); }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: var(--surface); color: var(--fg); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); background: var(--surface-2); box-shadow: 0 12px 30px -18px var(--brand); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.btn:hover::after { animation: shine .85s var(--ease); }
@keyframes shine { 0% { opacity: 0; left: -60%; } 30% { opacity: 1; } 100% { opacity: 0; left: 120%; } }

/* ============================================================
   5. 首屏
   ============================================================ */
.hero { position: relative; padding: clamp(46px, 8vh, 92px) 0 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 12.5px; color: var(--fg-mid);
  backdrop-filter: blur(8px);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 26%, transparent); }
.badge b { color: var(--fg); font-weight: 650; }
h1 .grad {
  background: linear-gradient(100deg, var(--brand) 8%, var(--brand-2) 52%, var(--brand) 92%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hue 9s linear infinite;
}
@keyframes hue { to { background-position: 220% 0; } }
.hero-sub { margin-top: 20px; max-width: 54ch; font-size: clamp(15.5px, 1.6vw, 18.5px); color: var(--fg-mid); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* 截图舞台：深浅两张叠放，主题切换时交叉淡入 */
.stage { position: relative; margin: clamp(34px, 6vh, 64px) auto 0; perspective: 1600px; }
.stage-glow {
  position: absolute; left: 8%; right: 8%; bottom: -6%; height: 60%;
  background: radial-gradient(ellipse at 50% 50%, rgba(164, 139, 255, .55), transparent 68%);
  filter: blur(58px); opacity: .8; z-index: 0;
}
.win {
  position: relative; z-index: 1;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.win::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 34%);
}
.win-bar {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  backdrop-filter: blur(8px);
}
.win-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win-bar span.t { margin-left: 8px; font: 600 12px/1 var(--mono); color: var(--fg-dim); letter-spacing: .04em; }
.win-bar .cap { margin-left: auto; font-size: 11.5px; color: var(--fg-dim); }
.shots { position: relative; aspect-ratio: 1152 / 730; background: var(--bg-2); }
.shots img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.015);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.shots img.on { opacity: 1; transform: scale(1); }
html[data-theme="dark"] .shots img[data-shot="dark"], html[data-theme="light"] .shots img[data-shot="light"] { opacity: 1; transform: scale(1); }
html[data-theme="dark"] .shots img[data-shot="light"], html[data-theme="light"] .shots img[data-shot="dark"] { opacity: 0; }

.stage-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--surface); font-size: 12.5px; color: var(--fg-mid);
}
.chip svg { color: var(--brand); }

/* ============================================================
   6. 区块 / 卡片 / 统计
   ============================================================ */
section { position: relative; padding: clamp(58px, 9vh, 104px) 0; }
section.alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 70%, transparent) 18%, color-mix(in srgb, var(--bg-2) 70%, transparent) 82%, transparent); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(292px, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card {
  position: relative; padding: 22px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.card:hover::after { opacity: 1; }
.card h3 { margin: 14px 0 6px; }
.card p { color: var(--fg-mid); font-size: 14.6px; }
.ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
}
.ico svg { width: 20px; height: 20px; }
.card .num { position: absolute; right: 18px; top: 14px; font: 700 12px/1 var(--mono); color: var(--fg-dim); letter-spacing: .1em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
  padding: 20px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); text-align: center;
}
.stat b { display: block; font: 800 clamp(30px, 4vw, 44px)/1 var(--mono); letter-spacing: -.03em; background: linear-gradient(140deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--fg-dim); }

.panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }

/* 跑马灯 */
.marquee { position: relative; overflow: hidden; padding: 14px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--surface); font-size: 13.5px; color: var(--fg-mid); white-space: nowrap; }
.marquee li svg { color: var(--brand); }
@keyframes slide { to { transform: translateX(-50%); } }

/* 步骤 / 列表 */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: s; content: "0" counter(s); font: 800 15px/1 var(--mono); color: var(--brand); padding-top: 6px; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--fg-mid); font-size: 14.6px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table th { font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.table td .d { color: var(--fg-dim); font-size: 13px; margin-top: 3px; }
.table code { font: 500 13px/1.6 var(--mono); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--fg-mid); margin-bottom: 7px; font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; font: inherit; font-size: 15px;
  background: var(--surface-2); color: var(--fg); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 12.8px; color: var(--fg-dim); margin-top: 6px; }
.err-text { color: var(--err); font-size: 13.5px; }

/* 常见问题 */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .25s var(--ease); }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.faq summary { padding: 16px 18px; font-weight: 650; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 400 20px/1 var(--mono); color: var(--brand); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details div { padding: 0 18px 18px; color: var(--fg-mid); font-size: 14.8px; }

/* 房间 / 列表项 */
.room { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--surface); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.room:hover { border-color: var(--brand); transform: translateX(3px); }
.room .ico { width: 34px; height: 34px; border-radius: 11px; }
.room .grow { flex: 1; min-width: 0; }
.room .t { display: block; font-weight: 650; }
.room .d { display: block; font-size: 13px; color: var(--fg-dim); }
.pill-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11px; background: var(--brand-soft); color: var(--brand); }

/* Android 卡 */
.android-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.android-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: .06em; background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }

/* 页脚 */
footer { padding: 46px 0 34px; border-top: 1px solid var(--line); }
.fgrid { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--fg-dim); font-size: 13.5px; }
.fgrid nav { display: flex; gap: 16px; flex-wrap: wrap; }
.fgrid nav a:hover { color: var(--fg); }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 12px; font-size: 14px;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent); border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   7. 入场动画
   ============================================================ */
.reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.rise { opacity: 0; transform: translate3d(0, 26px, 0); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   8. 响应式
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) + 6px); flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 96%, transparent); box-shadow: var(--shadow-2); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .menu-btn { display: grid; }
  .stage { perspective: none; }
  .win { border-radius: var(--r); }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .cta .btn { flex: 1 1 100%; }
  .sec-head { align-items: flex-start; }
  .step { grid-template-columns: 34px 1fr; padding: 15px; }
}

/* ============================================================
   9. 降低动效
   系统开了「减少动效」时只保留短促淡入，循环动画、视差、扫光全部停掉。
   需要完整预览时用 ?motion=on 显式打开（html[data-motion] 由 <head> 内联脚本判定）。
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) { scroll-behavior: auto; }
  html:not([data-motion="on"]) .bg i,
  html:not([data-motion="on"]) .marquee ul,
  html:not([data-motion="on"]) .stage-glow,
  html:not([data-motion="on"]) .stage-foot .chip { animation: none; }
}

html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] .bg i,
html[data-motion="off"] .stage-glow,
html[data-motion="off"] .stage-foot .chip,
html[data-motion="off"] .marquee ul,
html[data-motion="off"] .shots img.on,
html[data-motion="off"] .stat.in b,
html[data-motion="off"] .faq details[open] div,
html[data-motion="off"] #roomlist .room,
html[data-motion="off"] .stage .win,
html[data-motion="off"] .rise,
html[data-motion="off"] .mask-line > i,
html[data-motion="off"] body { animation: none !important; }
html[data-motion="off"] .rise,
html[data-motion="off"] .reveal,
html[data-motion="off"] .mask-line > i,
html[data-motion="off"] .stage .win,
html[data-motion="off"] #roomlist .room { opacity: 1 !important; transform: none !important; filter: none !important; }
html[data-motion="off"] .btn::after { display: none; }
html[data-motion="off"] .nav-pill,
html[data-motion="off"] .shots .wipe { display: none; }
html[data-motion="off"] .card,
html[data-motion="off"] .tilt,
html[data-motion="off"] .magnetic,
html[data-motion="off"] .chip,
html[data-motion="off"] .win { transition: background-color .2s linear, border-color .2s linear, color .2s linear !important; }

/* ============================================================
   10. 动效层
   全部只用 transform / opacity / clip-path，不触发布局。
   ============================================================ */

/* 阅读进度条 */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60; height: 2px; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 14px var(--brand);
  pointer-events: none;
}

/* 标题逐行揭幕 */
.mask-line { display: block; overflow: hidden; padding-bottom: .06em; }
.mask-line > i { display: block; font-style: normal; transform: translate3d(0, 108%, 0); animation: lineup 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 130ms + 120ms); }
@keyframes lineup { to { transform: none; } }

/* 入场变体 */
.reveal[data-anim="left"] { transform: translate3d(-26px, 0, 0); }
.reveal[data-anim="right"] { transform: translate3d(26px, 0, 0); }
.reveal[data-anim="zoom"] { transform: scale(.955); }
.reveal[data-anim="blur"] { filter: blur(7px); }
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.in { filter: none; }

/* 首屏窗口：入场时从下方浮起并展开，之后随滚动轻微视差 */
.stage .win { animation: winin 1.15s var(--ease) both .25s; }
@keyframes winin { from { opacity: 0; transform: translate3d(0, 46px, 0) scale(.975); } }
.stage-glow { animation: breathe 7s var(--ease) infinite alternate; }
@keyframes breathe { from { opacity: .55; transform: scale(.96); } to { opacity: .95; transform: scale(1.06); } }

/* 深浅色切换时，截图之间加一道扫光 */
.shots { clip-path: inset(0 round 0); }
.shots .wipe {
  position: absolute; inset: -12% -40%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .16) 46%, rgba(164, 139, 255, .28) 52%, transparent 70%);
  transform: translate3d(-60%, 0, 0);
}
.shots.swiping .wipe { opacity: 1; animation: wipe .95s var(--ease); }
@keyframes wipe { from { transform: translate3d(-70%, 0, 0); } to { transform: translate3d(70%, 0, 0); } }
.shots img.on { animation: shotin .9s var(--ease); }
@keyframes shotin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* 卡片：指针跟随的立体感 */
.tilt { transform-style: preserve-3d; transition: transform .45s var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); will-change: transform; }
.tilt .ico { transform: translateZ(26px); }
.ico svg { transition: transform .45s var(--ease); }
.card:hover .ico svg { transform: scale(1.12) rotate(-6deg); }

/* 磁吸按钮 */
.magnetic { transition: transform .3s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease); will-change: transform; }

/* 导航滑块 */
.nav-links { position: relative; }
.nav-pill {
  position: absolute; left: 0; top: 50%; z-index: -1;
  width: var(--w, 0); height: 32px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  transform: translate3d(var(--x, 0), -50%, 0);
  opacity: 0; transition: transform .34s var(--ease), width .34s var(--ease), opacity .24s var(--ease);
}
.nav-links:hover .nav-pill, .nav-pill.pinned { opacity: 1; }

/* 数字滚动到位时的落定感 */
.stat b { transition: transform .4s var(--ease); }
.stat.in b { animation: pop .5s var(--ease) both .55s; }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.09); } 100% { transform: scale(1); } }

/* 第二行跑马灯：反向 */
.marquee.rev ul { animation-direction: reverse; animation-duration: 42s; }

/* 悬浮标签 */
.chip { transition: transform .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease); }
.chip:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--fg); }
.stage-foot .chip:nth-child(1) { animation: float 6s var(--ease) infinite alternate; }
.stage-foot .chip:nth-child(3) { animation: float 7.5s var(--ease) infinite alternate-reverse; }
@keyframes float { to { transform: translate3d(0, -7px, 0); } }

/* 步骤：序号滑入 + 卡片左侧描边点亮 */
.step { position: relative; overflow: hidden; }
.step::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s var(--ease);
}
.step.in::after { transform: scaleY(1); }

/* 常见问题展开 */
.faq summary::after { transition: transform .3s var(--ease), color .3s var(--ease); }
.faq details[open] div { animation: faqin .4s var(--ease); }
@keyframes faqin { from { opacity: 0; transform: translate3d(0, -8px, 0); } }

/* 房间列表逐条滑入 */
.room { transition: border-color .2s var(--ease), transform .28s var(--ease), background .28s var(--ease); }
#roomlist .room { opacity: 0; transform: translate3d(0, 10px, 0); animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms); }

/* 下载/表格行悬停 */
.table tbody tr { transition: background .24s var(--ease); }
.table tbody tr:hover { background: var(--surface); }

/* 品牌标记 */
.brand-mark { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); box-shadow: 0 10px 26px -8px var(--brand); }

/* 页面载入淡入 */
body { animation: pagein .5s var(--ease) both; }
@keyframes pagein { from { opacity: 0; } }

/* ============================================================
   11. 子页组件
   ============================================================ */
.page-hero { padding: clamp(30px, 5vh, 56px) 0 clamp(18px, 3vh, 28px); }
.page-hero h1 { font-size: clamp(30px, 4.8vw, 54px); }
.page-hero .lead { margin-top: 14px; }

.note-box {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  color: var(--fg-mid); font-size: 14.5px;
}
.note-box svg { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.note-box a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.note { color: var(--fg-dim); font-size: 13.6px; }
.prose code { font: 500 13px/1.6 var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

.hidden { display: none !important; }
.form-message { margin-top: 12px; font-size: 14px; min-height: 20px; color: var(--fg-dim); }
.form-message.ok { color: var(--ok); }
.form-message.err { color: var(--err); }

.dual { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.dual .input, .dual input { flex: 1 1 190px; }
.dual .btn { flex: none; }

.tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 20px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.tabs button {
  flex: 1; padding: 9px 14px; border: 0; border-radius: 10px; background: transparent;
  color: var(--fg-mid); font-weight: 650; font-size: 14.5px; cursor: pointer;
  transition: color .24s var(--ease), background .24s var(--ease), box-shadow .24s var(--ease);
}
.tabs button:hover { color: var(--fg); }
.tabs button.on {
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: 0 10px 24px -12px var(--brand);
}

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar-preview {
  flex: none; width: 64px; height: 64px; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff; font: 800 24px/1 var(--font);
  box-shadow: 0 12px 28px -14px var(--brand);
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}
.status-pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.profile-line { font: 500 12.5px/1.7 var(--mono); color: var(--fg-dim); }
.rooms { display: grid; gap: 10px; }


