:root {
  color-scheme: dark;
  --bg: #20163a;
  --bg-panel: #2a1d4a;
  --bg-panel2: #160f2a;
  --border: #3d2e66;
  --accent: #ffb52e;
  --accent-dark: #e08c0a;
  --text: #f6f1ff;
  --text-muted: #b3a6d4;
  --success: #a6f04a;
  --warn: #ffcf70;
  --error: #ff4f9a;
  --ink: #0d0819;
  --device: #2e2254;
  --device-hi: #3a2b6a;
  --lamp: #6a4fcf;
  --lamp-shade: #4a3394;
  --lamp-hi: #8c74ea;
  --clear: transparent;

  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-card: 10px;
  --r-btn: 8px;
  --r-pill: 999px;
  --r-shot: 8px;
  --r-mark: 8px;
  --r-circle: 50%;
  --r-indicator: 3px;
  --nav-h: 68px;
  --wrap: 1320px;
  --header-wrap: 1280px;
  --reading: 800px;
  --gutter: 40px;
  --section-space: 140px;
  --stroke: 1.5px;
  --ease: cubic-bezier(.3, .7, .2, 1);
  --duration: .2s;
  --grad-stroke: linear-gradient(118deg, var(--accent) 0%, var(--error) 52%, var(--success) 100%);
  --shadow-slab: 0 6px 0 -1px color-mix(in srgb, var(--ink) 92%, var(--clear));
  --shadow-soft: 0 28px 48px -16px color-mix(in srgb, var(--ink) 88%, var(--clear));
  --shadow-near: 0 36px 60px -14px color-mix(in srgb, var(--ink) 95%, var(--clear));
  --shadow-button: 0 4px 0 var(--accent-dark), 0 18px 30px -12px color-mix(in srgb, var(--accent) 55%, var(--clear));
  --shadow-button-hover: 0 2px 0 var(--accent-dark), 0 12px 24px -12px color-mix(in srgb, var(--accent) 55%, var(--clear));
  --grain-size: 160px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.4 0 0 0 -1.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: var(--grain) 0 0 / var(--grain-size) var(--grain-size), var(--bg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--clear); }
img, svg { max-width: 100%; }
img { display: block; }
svg { display: block; flex-shrink: 0; }
button svg, a svg { flex-shrink: 0; }
figure { margin: 0; }
:where(main, section, article, aside, nav, div, li) { min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ink); }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.reading {
  width: 100%;
  max-width: calc(var(--reading) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section--deep {
  background: var(--grain) 0 0 / var(--grain-size) var(--grain-size), var(--bg-panel2);
  color: var(--text);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 900; }
h2 { font-size: clamp(26px, 2.4vw, 34px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin-block: 0 1em; }
strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: .22em; }
.text-link:hover { color: var(--text); }
code { font-family: var(--font-mono); font-size: .9em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg-panel2);
  color: var(--text);
  font: 400 13px/1.85 var(--font-mono);
  tab-size: 2;
}
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
.prose { overflow-wrap: break-word; }
.prose :where(h2, h3) { margin-top: 2em; scroll-margin-top: 100px; }
.prose p, .prose li { line-height: 1.85; }
.prose a:not(.btn):not(.store-button) { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.prose > :first-child { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* 实色导航。工具区与抽屉是独立的兄弟节点。 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--grain) 0 0 / var(--grain-size) var(--grain-size), var(--bg-panel2);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.masthead__row {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(var(--header-wrap) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--r-mark);
  background: var(--text);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 60%, var(--clear)), 0 3px 0 var(--ink);
}
.brand__name { font: 800 17px/1.25 var(--font-display); letter-spacing: -.01em; }
.tabs { min-width: 0; margin-left: auto; }
.tabs__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0; }
.tabs__list li { flex-shrink: 0; }
.tabs__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--nav-h);
  padding-inline: 14px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--duration) ease;
}
.tabs__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  border-radius: var(--r-indicator) var(--r-indicator) 0 0;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .28s var(--ease);
}
.tabs__link:hover { color: var(--text); }
.tabs__link:hover::after { transform: scaleX(.45); }
.tabs__link[aria-current="page"] { color: var(--text); }
.tabs__link[aria-current="page"]::after { transform: scaleX(1); }
.tabs__link:focus-visible { outline-offset: -6px; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language-control { position: relative; }
.lang, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg-panel);
  color: var(--text);
  font: 600 14px/1 var(--font-body);
}
.lang { white-space: nowrap; }
.lang svg { width: 16px; height: 16px; color: var(--text-muted); }
.lang:hover, .menu-toggle:hover { border-color: var(--text-muted); }
.lang__short { display: none; }
.menu-toggle { display: none; min-width: 44px; padding-inline: 10px; }
.menu-toggle svg { width: 22px; height: 22px; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 200px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel2);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  z-index: 5;
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--r-btn); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--text); }
.language-menu a[aria-current="true"]::after { content: "✓"; color: var(--success); margin-left: auto; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: -1;
  border: 0;
  background: color-mix(in srgb, var(--ink) 72%, var(--clear));
  color: var(--text);
}
.preview-menu { display: none; }

/* 共用按钮与层次面板。 */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 46px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-btn);
  color: var(--text);
  background: var(--bg-panel);
  font: 700 16px/1.35 var(--font-body);
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--store { color: var(--bg-panel2); background: var(--accent); box-shadow: var(--shadow-button); }
.btn--store:hover, .btn--store.is-hover { transform: translateY(2px); box-shadow: var(--shadow-button-hover); }
.btn--guide { color: var(--text); background: var(--clear); border: var(--stroke) solid var(--error); }
.btn--guide:hover { color: var(--text); background: color-mix(in srgb, var(--error) 12%, var(--clear)); }
.btn--quiet { color: var(--text); background: var(--bg-panel); border: 1px solid var(--border); }
.btn--quiet:hover { border-color: var(--accent); }
.btn:focus-visible, .btn.is-focus { outline: 2px solid var(--text); outline-offset: 3px; }
.btn:active { transform: translateY(3px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn__arrow { font-family: var(--font-mono); font-weight: 500; }
.card, .panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
}
.card--stroke {
  border: var(--stroke) solid var(--clear);
  background: linear-gradient(var(--bg-panel2), var(--bg-panel2)) padding-box, var(--grad-stroke) border-box;
  color: var(--text);
  box-shadow: var(--shadow-slab), var(--shadow-soft);
}
.panel--deep { background: var(--bg-panel2); color: var(--text); }
.card h3, .panel h3 { margin-top: 0; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.grid-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.stack { display: grid; gap: 24px; }
.reveal { opacity: 1; transform: none; }
.reveal.reveal--armed { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s var(--ease); }
.reveal.shown { opacity: 1; transform: none; }

/* 首屏沿用确认稿的尺度与错位强调词。 */
.hero { padding-top: 40px; padding-bottom: 30px; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; align-items: center; }
.hero__copy { position: relative; z-index: 2; padding-bottom: 8px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 6px 14px 6px 12px;
  font: 500 12.5px/1.4 var(--font-mono);
  letter-spacing: .02em;
  color: var(--text-muted);
  background: var(--bg-panel2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.dot { width: 8px; height: 8px; border-radius: var(--r-circle); flex-shrink: 0; background: var(--success); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, var(--clear)); }
.hero__title { margin: 24px 0 0; font-weight: 900; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.14; letter-spacing: -.02em; }
.hero__title .ln { display: block; }
.hero__title .tilt { display: inline-block; margin-left: .1em; color: var(--error); font-style: normal; transform: rotate(-3deg) translateY(.32em); transform-origin: 0 50%; }
.hero__lede { margin: 30px 0 0; max-width: 35em; font-size: 16.5px; line-height: 1.78; color: var(--text-muted); }
.hero__lede strong { color: var(--text); }
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 30px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px dashed var(--border); }
.devices li, .devices a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.devices a { min-height: 30px; }
.devices a:hover { color: var(--accent); }
.devices svg { width: 19px; height: 19px; color: var(--text-muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 30px; padding: 5px 13px; font: 600 12.5px/1.4 var(--font-mono); color: var(--text); background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-pill); overflow-wrap: anywhere; }
.ticker { background: var(--grain) 0 0 / var(--grain-size) var(--grain-size), var(--bg-panel); color: var(--text-muted); border-block: 1px solid var(--border); overflow-x: clip; }
.ticker__row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; font: 500 12.5px/1.4 var(--font-mono); letter-spacing: .04em; }
.ticker__row span { display: inline-flex; align-items: center; gap: 10px; }
.ticker__row .on { color: var(--text); }
.ticker__row .amb { color: var(--accent); }
.workbench { background: var(--grain) 0 0 / var(--grain-size) var(--grain-size), var(--bg-panel2); color: var(--text); padding-top: 140px; padding-bottom: 140px; }
.workbench__kicker { margin: 0; font: 600 12.5px/1.4 var(--font-mono); letter-spacing: .08em; color: var(--accent); }
.workbench__title { margin: 16px 0 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; }
.workbench__lede { margin: 14px 0 0; max-width: 40em; color: var(--text-muted); }

/* 页脚 */
.site-footer { padding-top: 72px; padding-bottom: 30px; background: var(--grain) 0 0 / var(--grain-size) var(--grain-size), var(--bg-panel2); color: var(--text); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 20px; max-width: 30em; color: var(--text-muted); font-size: 14px; }
.footer-heading { margin: 0 0 16px; font: 700 14px/1.5 var(--font-body); }
.footer-links { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-links a[aria-current="true"] { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text); }

@media (max-width: 1199px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    display: block;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    z-index: 4;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    background: var(--bg-panel2);
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
  }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { color: var(--text); background: var(--bg-panel); }
  .mobile-drawer a[aria-current="page"] { border-left: 3px solid var(--accent); }
  .mobile-drawer__label { margin: 24px 16px 8px; font-size: 12px; color: var(--text-muted); }
  .preview-menu { display: block; margin-left: auto; }
  .preview-menu summary { min-height: 44px; padding: 10px 14px; cursor: pointer; }
  .preview-menu nav { position: absolute; top: var(--nav-h); inset-inline: 0; padding: 16px var(--gutter); background: var(--bg-panel2); color: var(--text); border-bottom: 1px solid var(--border); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .preview-menu nav a { display: block; width: 100%; min-height: 44px; padding: 10px 16px; }
}
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__copy { max-width: 720px; }
  .ticker__row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero__title { font-size: clamp(24px, 4vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .masthead__row { gap: 10px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 13px; max-width: 150px; }
  .brand__mark { width: 30px; height: 30px; }
  .lang { padding-inline: 10px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .header-tools { margin-left: auto; gap: 6px; }
  .hero { padding-top: 28px; }
  .hero__title .tilt, .tilt, .card-tilt { transform: none; }
  .hero__title .ln:first-child { font-size: clamp(22px, 6.4vw, 30px); }
  .hero__lede { font-size: 15.5px; }
  .cta { margin-top: 40px; gap: 12px; }
  .btn { min-height: 50px; padding: 13px 20px; font-size: 15px; }
  .grid-pair, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 22px; }
  .devices { gap: 10px 16px; }
  .footer-grid { gap: 32px; }
  .site-footer { padding-top: 56px; }
}
@media (max-width: 360px) {
  .brand__name { max-width: 114px; font-size: 12px; }
  .lang svg { display: none; }
  .hero .cta .btn { padding-inline: 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.reveal--armed { opacity: 1; transform: none; }
}