:root {
  --bg: #110935;
  --bg-deep: #0C0628;
  --bg-panel: #1B1148;
  --bg-panel-2: #F6F5FA;
  --border: #2F2766;
  --accent: #5E62FF;
  --accent-dark: #4238D8;
  --accent-2: #D23C9B;
  --grad-a: #3E7BFF;
  --grad-c: #8A4DFF;
  --text: #F3F1FB;
  --text-muted: #A8A2CA;
  --text-faint: #9B94BD;
  --success: #2FBF8A;
  --warn: #E9B23F;
  --error: #F0567C;
  --on-accent: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #1E1640;
  --ink-muted: #645E8A;
  --ink-faint: #716A92;
  --line-light: #E8E5F1;
  --chrome: #F5F4F9;
  --chrome-dot: #D3CFE0;
  --tint: #F3F2FF;
  --tint-strong: #E7E7FF;
  --clear: transparent;
  --star: rgba(243, 241, 251, .62);
  --star-dim: rgba(243, 241, 251, .3);
  --veil: rgba(27, 17, 72, .55);
  --hair: rgba(243, 241, 251, .18);
  --hover-veil: rgba(243, 241, 251, .07);
  --glow-a: rgba(94, 98, 255, .34);
  --glow-b: rgba(138, 77, 255, .13);
  --dot-ring: rgba(210, 60, 155, .22);
  --orb-ring: rgba(210, 60, 155, .2);
  --orb-glow: rgba(138, 77, 255, .55);
  --scrim: rgba(12, 6, 40, .78);
  --grad: linear-gradient(90deg, var(--grad-a) 0%, var(--accent) 52%, var(--grad-c) 100%);
  --grad-readable: linear-gradient(90deg, var(--accent-dark), var(--accent-dark) 52%, var(--accent-dark));
  --shadow-window: 0 0 0 1px rgba(255,255,255,.16), 0 60px 160px -40px rgba(94,98,255,.62), 0 30px 80px -30px rgba(5,2,22,.9);
  --shadow-float: 0 18px 40px -14px rgba(5,2,22,.88), 0 6px 14px -6px rgba(5,2,22,.6);
  --shadow-btn: 0 10px 26px -12px rgba(94,98,255,.8);
  --shadow-focus: 0 8px 20px -12px rgba(94,98,255,.55);
  --shadow-panel: 0 30px 70px -36px rgba(30,22,64,.2), 0 5px 16px -8px rgba(30,22,64,.12);
  --r: 8px;
  --r-sm: 6px;
  --r-xs: 4px;
  --r-pill: 999px;
  --r-round: 50%;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --weight-title: 400;
  --weight-medium: 500;
  --size-body: 16px;
  --size-small: 13px;
  --size-h1: clamp(34px, calc(2.6vw + 11px), 48px);
  --size-h2: clamp(26px, calc(1.6vw + 14px), 38px);
  --size-h3: 22px;
  --gutter: 24px;
  --nav-h: 72px;
  --wrap: 1200px;
  --reading: 820px;
  --win-w: 1120px;
  --space-section: 104px;
  --speed: .2s;
  --ease: ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, var(--star) 0 .8px, var(--clear) 1.5px),
    radial-gradient(circle at 63% 71%, var(--star-dim) 0 .7px, var(--clear) 1.3px),
    radial-gradient(circle at 41% 48%, var(--star-dim) 0 .6px, var(--clear) 1.2px),
    radial-gradient(circle at 82% 12%, var(--star) 0 .9px, var(--clear) 1.6px),
    radial-gradient(circle at 7% 86%, var(--star-dim) 0 .7px, var(--clear) 1.3px);
  background-size: 233px 197px, 311px 263px, 157px 179px, 421px 347px, 271px 229px;
}
main, footer { position: relative; z-index: 1; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--clear); }
img { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--tint-strong); color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-title);
  line-height: 1.3;
  text-wrap: balance;
}
h1 { font-size: var(--size-h1); line-height: 1.22; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin: 0 0 1.25em; }
code, pre, kbd, .mono { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  background: var(--chrome);
  color: var(--ink);
  font-size: var(--size-small);
  line-height: 1.9;
  tab-size: 2;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.light-section { background: var(--bg-panel-2); color: var(--ink); position: relative; }
.decorated, .hero, .eco { overflow-x: clip; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid > *, .wrap > *, .reading > *, .prose > *, .prose div { min-width: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.light-section .muted, .panel .muted { color: var(--ink-muted); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--clear);
}
.light-section h2 .grad { background-image: var(--grad-readable); }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--text-muted); }
.light-section .eyebrow { color: var(--accent-dark); }
.section-title { margin: 14px 0 0; }
.sub { max-width: 640px; margin: 16px 0 32px; color: var(--ink-muted); }
.panel, .card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line-light);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-panel);
}
.panel h3, .card h3 { margin-top: 0; }
.panel a:not(.btn), .card a:not(.btn), .prose a:not(.btn) { color: var(--accent-dark); }
.prose { line-height: 1.9; }
.prose h2 { margin-top: 2.3em; scroll-margin-top: 28px; }
.prose h3 { margin-top: 1.8em; }
.prose li { margin-block: .5em; }
.prose :not(pre) > code { padding: .12em .3em; background: var(--tint); color: var(--accent-dark); border-radius: var(--r-xs); font-size: .9em; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { transform: translateY(-1px); }
.btn-primary:active, .btn-primary.is-active { transform: translateY(1px); background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { color: var(--text); border-color: var(--hair); background: var(--veil); }
.btn-ghost:hover { background: var(--hover-veil); color: var(--text); border-color: var(--text-faint); }
.btn-outline { background: var(--surface); color: var(--accent-dark); border-color: var(--line-light); }
.btn-outline:hover { background: var(--tint); color: var(--accent-dark); border-color: var(--accent); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--chrome); color: var(--ink-muted); border-color: var(--line-light); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* 页头独立宽版心，不与正文阅读版心绑定。 */
.topbar, #site-header { position: relative; z-index: 50; min-height: var(--nav-h); }
.topbar-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  min-height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .01em;
}
.brand img { width: 28px; height: 28px; flex-shrink: 0; }
.mainnav { min-width: 0; margin-left: auto; }
.mainnav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.mainnav li { display: flex; align-items: center; flex-shrink: 0; }
.mainnav li + li::before { content: "·"; content: "·" / ""; margin: 0 12px; color: var(--text-faint); }
.mainnav a { font-size: 14.5px; color: var(--text-muted); text-decoration: none; }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-control { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13.5px;
  white-space: nowrap;
}
.lang:hover { background: var(--bg-panel); color: var(--text); }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 184px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-float);
  z-index: 4;
}
.language-menu a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; text-decoration: none; border-radius: var(--r-sm); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--hover-veil); color: var(--text); }
.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 1; border: 0; background: var(--scrim); color: var(--text); }

/* 首屏构图保持静态，星点与右下柔光不做动画。 */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: clamp(780px, calc(100vh - var(--nav-h) - 18px), 1120px);
  height: clamp(780px, calc(100svh - var(--nav-h) - 18px), 1120px);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -260px;
  bottom: -320px;
  width: 1040px;
  height: 780px;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 55%, var(--clear) 100%);
}
.hero-copy { position: relative; z-index: 2; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px var(--gutter) 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 14px 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--veil);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.badge-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent-2); box-shadow: 0 0 0 3px var(--dot-ring); }
.hero h1 { margin: 22px 0 0; font-size: clamp(28px, calc(2.6vw + 11px), 48px); font-weight: var(--weight-title); line-height: 1.22; letter-spacing: 0; color: var(--text); }
.h1-line { display: block; }
.cta { margin-top: 28px; display: flex; align-items: center; gap: 12px; }
.lede { margin: 22px 0 0; max-width: 780px; font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: var(--weight-medium); }
.platforms { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; }
.platforms-label { margin-right: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.platforms a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--text-muted); text-decoration: none; }
.platforms a:hover { color: var(--text); background: var(--hover-veil); }
.platforms svg { width: 15px; height: 15px; display: block; }
.facts { margin-top: 24px; width: min(100%, 1120px); display: flex; align-items: center; gap: 16px; }
.facts::before, .facts::after { content: ""; flex: 1 1 0; height: 1px; }
.facts::before { background: linear-gradient(90deg, var(--clear), var(--border)); }
.facts::after { background: linear-gradient(90deg, var(--border), var(--clear)); }
.facts-list { list-style: none; margin: 0; padding: 0 4px; min-height: 34px; display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r); background: var(--veil); color: var(--text); font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.facts-list li { display: flex; align-items: center; gap: 8px; padding: 0 16px; line-height: 1; }
.facts-list li + li { border-left: 1px solid var(--border); }
.facts-list .k { color: var(--text-faint); }
.facts-list .v { color: var(--text); }
.eco { position: relative; z-index: 1; padding: 76px var(--gutter) 96px; text-align: center; }
.eco-title { margin: 0; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--text-faint); }
.eco-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 56px; font-family: var(--font-display); font-size: 19px; color: var(--text-muted); }
.eco-list .mono { font-size: 18px; }

/* 页脚回到深紫。 */
.site-footer { background: var(--bg); color: var(--text); padding-top: 72px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr .7fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-intro { margin-top: 20px; max-width: 300px; font-size: 14px; color: var(--text-muted); }
.footer-heading { margin: 0 0 18px; font-size: 15px; font-weight: var(--weight-medium); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { display: inline-block; color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-list a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; color: var(--text-muted); font-size: 13px; }
.footer-bottom p { margin: 0; margin-right: auto; }
.footer-bottom a { text-decoration: none; }
.reveal { opacity: 1; }
.reveal-pending .reveal:not(.shown) { opacity: 0; transform: translateY(12px); }
.reveal-pending .reveal { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1279px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    background: var(--bg-panel);
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 12px; color: var(--text-muted); text-decoration: none; border-radius: var(--r-sm); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--hover-veil); color: var(--text); }
  .drawer-languages { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero h1 { font-size: clamp(24px, 4.6vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --space-section: 64px; }
  .topbar-in { gap: 10px; }
  .brand { font-size: 14px; gap: 8px; }
  .header-tools { gap: 8px; margin-left: auto; }
  .lang { min-height: 44px; padding-inline: 10px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .hero { height: auto; }
  .hero-copy { padding-top: 32px; }
  .cta { flex-direction: column; width: 100%; }
  .cta .btn { width: 100%; }
  .lede { font-size: 15.5px; }
  .facts::before, .facts::after { display: none; }
  .facts { justify-content: center; }
  .facts-list { height: auto; flex-wrap: wrap; justify-content: center; padding: 6px; white-space: normal; }
  .facts-list li { padding: 6px 10px; }
  .facts-list li + li { border-left: 0; }
  .platforms { gap: 3px; }
  .platforms a { padding-inline: 7px; font-size: 12.5px; }
  .grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .panel, .card { padding: 22px; }
  .tilt, [class*="tilt-"] { transform: none !important; }
  .eco { padding-top: 56px; padding-bottom: 64px; }
  .eco-list { gap: 16px 26px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-pending .reveal:not(.shown) { opacity: 1; transform: none; }
}