:root {
  color-scheme: dark;
  --bg: #050C38;
  --bg-panel: #0C1A5A;
  --bg-panel-hi: #1741A8;
  --die-hi: #13246E;
  --bg-light: #F5F7FB;
  --surface: #FFFFFF;
  --ink: #141A3D;
  --ink-muted: #56608C;
  --line-light: #DCE2F0;
  --border: #24357E;
  --accent: #3CCFF4;
  --accent-mid: #2E9BEF;
  --accent-dark: #1E63E0;
  --accent-ice: #CDF2FD;
  --lime: #C8F542;
  --text: #EEF2FF;
  --text-muted: #9AA8D8;
  --success: #3DDC97;
  --warn: #FFB547;
  --error: #FF5D6C;
  --mask: #000000;
  --clear: transparent;
  --a-grid: rgba(154, 168, 216, 0.075);
  --a-line: rgba(154, 168, 216, 0.16);
  --a-line-strong: rgba(154, 168, 216, 0.3);
  --a-fill: rgba(154, 168, 216, 0.06);
  --a-pin: rgba(154, 168, 216, 0.55);
  --a-white-10: rgba(238, 242, 255, 0.1);
  --a-white-16: rgba(238, 242, 255, 0.16);
  --a-accent-08: rgba(60, 207, 244, 0.08);
  --a-accent-16: rgba(60, 207, 244, 0.16);
  --a-accent-28: rgba(60, 207, 244, 0.28);
  --a-accent-40: rgba(60, 207, 244, 0.4);
  --a-cobalt-16: rgba(30, 99, 224, 0.16);
  --a-cobalt-40: rgba(30, 99, 224, 0.4);
  --a-cobalt-60: rgba(30, 99, 224, 0.6);
  --a-lime-30: rgba(200, 245, 66, 0.3);
  --a-shadow: rgba(2, 6, 30, 0.6);
  --a-shadow-soft: rgba(2, 6, 30, 0.3);
  --grad-brand: linear-gradient(100deg, var(--accent) 0%, var(--accent-mid) 55%, var(--accent-dark) 100%);
  --font-display: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-die: 14px;
  --r-lg: 16px;
  --r-pill: 999px;
  --r-round: 50%;
  --nav-h: 64px;
  --container: 1200px;
  --reading: 820px;
  --gutter: 32px;
  --space-section: 88px;
  --size-body: 16px;
  --size-small: 13px;
  --size-h1: clamp(34px, 3.4vw, 48px);
  --size-h2: clamp(24px, 2.4vw, 32px);
  --size-h3: 21px;
  --weight-body: 400;
  --weight-strong: 700;
  --weight-title: 900;
  --shadow-card: 0 14px 36px var(--a-shadow-soft);
  --duration-fast: 180ms;
  --duration-reveal: 600ms;
  --feature-time: 8s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: var(--a-accent-16); }
button { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, video, svg { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; }
svg.icon { width: 18px; height: 18px; flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); line-height: 1.15; letter-spacing: -0.02em; font-weight: var(--weight-title); }
h2 { font-size: var(--size-h2); line-height: 1.25; letter-spacing: -0.02em; font-weight: var(--weight-title); }
h3 { font-size: var(--size-h3); line-height: 1.35; font-weight: 800; }
p { margin-top: 0; }
code, pre, kbd, samp { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-small);
  line-height: 1.8;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--a-line); margin-block: 32px; }
::selection { background: var(--accent); color: var(--bg); }
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--reading); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-light, .next {
  color-scheme: light;
  background: var(--bg-light);
  color: var(--ink);
}
.section-dark { background: var(--bg); color: var(--text); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading h2 { margin: 8px 0 12px; }
.section-heading p, .muted { color: var(--text-muted); }
.section-light .muted, .section-light .section-heading p, .next .muted { color: var(--ink-muted); }
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-light .eyebrow, .next .eyebrow { color: var(--accent-dark); }
.keep { white-space: nowrap; }
.flow > * + * { margin-top: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid > *, .feature-layout > *, .footer-grid > *, .rig-body > * { min-width: 0; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.decorated, .hero, .section-dark { overflow-x: clip; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
}
.skip-link:focus { transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: var(--weight-strong);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover, .btn.is-hover { transform: translateY(-1px); }
.btn:active, .btn.is-pressed { transform: translateY(1px); }
.btn-primary {
  background-color: var(--accent-dark);
  background-image: linear-gradient(180deg, var(--a-white-16), var(--clear) 60%);
  color: var(--surface);
  box-shadow: inset 0 0 0 1px var(--a-accent-28), 0 12px 32px var(--a-cobalt-60);
}
.btn-ghost { border-color: var(--a-line-strong); background: var(--a-fill); color: var(--text); }
.btn-ghost svg { color: var(--accent); }
.section-light .btn-ghost, .next .btn-ghost { border-color: var(--line-light); background: var(--surface); color: var(--ink); }
.btn-small { min-height: 38px; font-size: 13px; padding: 8px 14px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; box-shadow: none; transform: none; cursor: not-allowed; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.text-link { color: var(--accent); font-weight: 600; }
.section-light .text-link, .next .text-link { color: var(--accent-dark); }

.topbar { position: relative; z-index: 40; height: var(--nav-h); background: var(--bg); color: var(--text); border-bottom: 1px solid var(--a-line); }
.header-wrap {
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.desktop-nav { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list li { flex-shrink: 0; }
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-list a:hover { color: var(--text); background: var(--a-fill); }
.nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"] svg { color: var(--accent); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -13px;
  height: 2px;
  border-radius: var(--r-xs);
  background: var(--grad-brand);
}
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--r-sm);
  background: var(--clear);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}
.lang::-webkit-details-marker { display: none; }
.lang svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 4;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.language-menu a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--r-xs); text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--a-fill); color: var(--accent); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--a-line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: var(--nav-h);
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel); color: var(--accent); }
.mobile-drawer svg { width: 18px; height: 18px; flex-shrink: 0; }
.drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 30; border: 0; background: var(--a-shadow); color: var(--text); }
.preview-mobile { display: none; }

.card, .panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
}
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.section-light .card, .section-light .panel, .next .card { border-color: var(--line-light); background: var(--surface); color: var(--ink); }
.card p { color: var(--text-muted); }
.section-light .card p, .next .card p { color: var(--ink-muted); }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 56px; margin-bottom: 20px; scroll-margin-top: 32px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { line-height: 1.9; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--accent); }
.section-light .prose a { color: var(--accent-dark); }
.prose :not(pre) > code { padding: 2px 5px; border-radius: var(--r-xs); background: var(--a-fill); color: inherit; }
.section-light .prose :not(pre) > code { background: var(--bg-light); color: var(--ink); }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal { transition: opacity var(--duration-reveal) ease, transform var(--duration-reveal) ease; }

.site-footer { background: var(--bg); color: var(--text); border-top: 1px solid var(--border); padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.85fr 1.3fr 0.75fr; gap: 40px; }
.footer-brand p { max-width: 300px; margin: 20px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.site-footer h2 { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: var(--text-muted); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--a-line); color: var(--text-muted); font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* 已确认的居中首屏：网格、偏右上光晕、横向芯片配置装置。 */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--nav-h) - 24px);
  min-height: calc(100svh - var(--nav-h) - 24px);
  display: grid;
  align-content: center;
  padding-top: 28px;
  padding-bottom: 46px;
  background: var(--bg);
  color: var(--text);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--a-grid) 1px, var(--clear) 1px), linear-gradient(90deg, var(--a-grid) 1px, var(--clear) 1px);
  background-size: 56px 56px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 85% 75% at 68% 18%, var(--mask) 25%, var(--clear) 82%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 980px;
  height: 980px;
  right: -280px;
  top: -540px;
  border-radius: var(--r-round);
  background: radial-gradient(circle at 50% 50%, var(--a-accent-28) 0%, var(--a-cobalt-40) 30%, var(--clear) 68%);
  pointer-events: none;
}
.hero-field { position: absolute; z-index: -1; left: 50%; bottom: -280px; width: 1320px; height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 50%, var(--a-cobalt-40) 0%, var(--clear) 64%); pointer-events: none; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; max-width: 100%; margin-bottom: 18px; padding: 4px 14px 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--a-accent-28); background: var(--a-accent-08); color: var(--text); font-size: 13px; font-weight: 500; }
.badge-dot { position: relative; width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent); }
.badge-dot::after { content: ""; position: absolute; inset: -4px; border-radius: var(--r-round); background: var(--accent); opacity: 0.28; animation: breathe 2.4s ease-out 0.4s 3; }
.badge-sep { color: var(--text-muted); }
.hero-title { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; font-weight: var(--weight-title); }
.hero-title .row { display: block; }
.grad { background: var(--grad-brand); background-clip: text; -webkit-background-clip: text; color: var(--clear); padding-right: 0.04em; }
.prompt { display: inline-block; margin-left: 0.16em; font-family: var(--font-mono); font-weight: 700; font-size: 0.8em; letter-spacing: 0; color: var(--lime); }
.prompt .caret { display: inline-block; animation: caret 1.1s linear 0.8s 6; }
.lede { max-width: 660px; margin: 0 0 22px; color: var(--text-muted); font-size: 16.5px; line-height: 1.65; }
.lede strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.chip-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; max-width: 100%; padding: 3px 11px; border-radius: var(--r-pill); border: 1px solid var(--a-line); color: var(--text-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.chip-tag svg { width: 12px; height: 12px; color: var(--accent); flex-shrink: 0; }
.platforms { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 34px; padding: 0; list-style: none; }
.plat-label { margin-right: 8px; padding-right: 14px; border-right: 1px solid var(--a-line); color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.platforms a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 4px 12px 4px 4px; border: 1px solid var(--clear); border-radius: var(--r-sm); color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.platforms a:hover { border-color: var(--a-line); background: var(--a-fill); }
.plat-ico { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: var(--r-xs); border: 1px solid var(--a-line); background: var(--a-fill); color: var(--text); }
.plat-ico svg { width: 13px; height: 13px; }

.rig { position: relative; width: min(100%, 1040px); height: 266px; margin: 0 auto; text-align: left; }
.rig-frame { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--a-accent-16), 0 0 44px var(--a-accent-16), 0 34px 80px var(--a-shadow); }
.rig-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1200px;
  height: 1200px;
  margin: -600px 0 0 -600px;
  background: conic-gradient(from 0deg, var(--a-accent-16) 0deg, var(--accent) 38deg, var(--lime) 76deg, var(--a-lime-30) 104deg, var(--a-accent-16) 150deg, var(--a-accent-16) 196deg, var(--accent) 246deg, var(--a-accent-16) 300deg, var(--a-accent-16) 360deg);
  animation: orbit 12s linear infinite;
}
.rig-body { position: absolute; inset: 2px; border-radius: var(--r-die); overflow: hidden; display: grid; grid-template-columns: 228px minmax(0, 1fr); background: radial-gradient(ellipse 55% 130% at 100% 0%, var(--a-cobalt-60) 0%, var(--clear) 62%), linear-gradient(115deg, var(--bg-panel) 0%, var(--bg-panel) 42%, var(--bg-panel-hi) 100%); color: var(--text); }
.rig-notch { position: absolute; z-index: 3; top: -17px; left: 28px; display: flex; align-items: baseline; gap: 12px; padding: 0 14px; }
.rig-notch::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 15px; height: 5px; background: var(--bg); }
.notch-title { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 34px; letter-spacing: -0.02em; color: var(--accent); text-shadow: 0 0 18px var(--a-accent-40); }
.notch-sub { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.32em; color: var(--text-muted); }
.rig-chip { position: relative; display: grid; place-items: center; border-right: 1px solid var(--a-line); }
.rig-chip::after { content: ""; position: absolute; top: 50%; left: calc(50% + 80px); right: 0; height: 1px; background: linear-gradient(90deg, var(--a-accent-40), var(--a-accent-16)); }
.rig-chip::before { content: ""; position: absolute; z-index: 1; top: calc(50% - 3px); right: -4px; width: 7px; height: 7px; border-radius: var(--r-round); background: var(--bg-panel); border: 1px solid var(--accent); }
.soc { position: relative; width: 140px; height: 140px; }
.pins { position: absolute; }
.pins-t, .pins-b { left: 20px; right: 20px; height: 9px; background: repeating-linear-gradient(90deg, var(--a-pin) 0 3px, var(--clear) 3px 9px); }
.pins-t { top: -9px; }
.pins-b { bottom: -9px; }
.pins-l, .pins-r { top: 20px; bottom: 20px; width: 9px; background: repeating-linear-gradient(180deg, var(--a-pin) 0 3px, var(--clear) 3px 9px); }
.pins-l { left: -9px; }
.pins-r { right: -9px; }
.soc-die { position: absolute; inset: 0; border-radius: var(--r-die); border: 1px solid var(--a-accent-40); background: linear-gradient(145deg, var(--die-hi), var(--bg)); color: var(--text); box-shadow: 0 0 0 4px var(--a-accent-08), 0 0 36px var(--a-accent-16), inset 0 1px 0 var(--a-white-10); overflow: hidden; }
.soc-die::before { content: ""; position: absolute; inset: 10px; border-radius: var(--r-md); background-image: linear-gradient(var(--a-line) 1px, var(--clear) 1px), linear-gradient(90deg, var(--a-line) 1px, var(--clear) 1px); background-size: 13px 13px; opacity: 0.7; }
.soc-die::after { content: ""; position: absolute; top: 9px; left: 9px; width: 6px; height: 6px; border-radius: var(--r-round); border: 1px solid var(--accent); }
.soc-core { position: absolute; inset: 32px; z-index: 1; display: grid; place-content: center; gap: 2px; border-radius: var(--r-sm); border: 1px solid var(--a-accent-40); background: var(--bg-panel); color: var(--text); box-shadow: inset 0 0 18px var(--a-accent-16); text-align: center; font-family: var(--font-mono); }
.soc-core .s1 { font-size: 14px; font-weight: 700; line-height: 1.2; }
.soc-core .s2 { font-size: 9px; line-height: 1.2; letter-spacing: 0.12em; color: var(--text-muted); }
.trace { position: absolute; z-index: 1; background: var(--a-accent-40); }
.trace i { position: absolute; width: 5px; height: 5px; border-radius: var(--r-round); background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tr-l { left: 8px; top: 52px; width: 24px; height: 1px; }
.tr-r { right: 8px; top: 86px; width: 24px; height: 1px; }
.tr-t { top: 8px; left: 86px; width: 1px; height: 24px; }
.tr-b { bottom: 8px; left: 52px; width: 1px; height: 24px; }
.tr-l i, .tr-r i { top: -2px; left: 0; transform: translateX(19px); animation: run-x 2.6s ease-in-out 1.2s 2 both; }
.tr-t i, .tr-b i { left: -2px; top: 0; transform: translateY(19px); animation: run-y 2.6s ease-in-out 1.6s 2 both; }
.tr-r i { animation-delay: 1.9s; }
.tr-b i { animation-delay: 2.3s; }
.code { min-width: 0; padding: 20px 28px 0 26px; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; border-bottom: 1px solid var(--a-line); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.code-head .path { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.code-head .path svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.code-head .meta { display: inline-flex; align-items: center; gap: 10px; }
.code-head .tag { padding: 1px 7px; border-radius: var(--r-xs); border: 1px solid var(--a-accent-28); color: var(--accent); font-size: 10.5px; letter-spacing: 0.08em; }
.yaml { margin: 0; padding: 14px 0 0; list-style: none; columns: 2; column-gap: 28px; column-fill: balance; counter-reset: ln; font-family: var(--font-mono); font-size: 13px; line-height: 24px; }
.yaml li { display: flex; white-space: pre; break-inside: avoid; border-radius: var(--r-xs); animation: line-in 0.5s ease-out both; }
.yaml li::before { content: counter(ln); counter-increment: ln; flex-shrink: 0; width: 22px; margin-right: 16px; text-align: right; color: var(--text-muted); opacity: 0.45; }
.yaml li:nth-child(1) { animation-delay: 0.30s; }
.yaml li:nth-child(2) { animation-delay: 0.37s; }
.yaml li:nth-child(3) { animation-delay: 0.44s; }
.yaml li:nth-child(4) { animation-delay: 0.51s; }
.yaml li:nth-child(5) { animation-delay: 0.58s; }
.yaml li:nth-child(6) { animation-delay: 0.65s; }
.yaml li:nth-child(7) { animation-delay: 0.72s; }
.yaml li:nth-child(8) { animation-delay: 0.79s; }
.yaml li:nth-child(9) { animation-delay: 0.86s; }
.yaml li:nth-child(10) { animation-delay: 0.93s; }
.yaml li:nth-child(11) { animation-delay: 1s; }
.yaml li:nth-child(12) { animation-delay: 1.07s; }
.yaml li:nth-child(13) { animation-delay: 1.14s; }
.yaml li:nth-child(14) { animation-delay: 1.21s; }
.yaml .k, pre .yaml-key { color: var(--lime); }
.yaml .p { color: var(--text-muted); }
.yaml .v { color: var(--accent-ice); }
.yaml li.hit { background: var(--a-accent-08); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.cursor { display: inline-block; width: 8px; height: 15px; margin: 5px 0 0 4px; background: var(--lime); animation: caret 1.1s linear 1.6s 6; }
.match { position: absolute; z-index: 4; right: 36px; bottom: -26px; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); min-height: 52px; padding: 8px 8px 8px 22px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); box-shadow: 0 24px 50px var(--a-shadow), 0 4px 12px var(--a-shadow-soft); animation: float-in 0.6s ease-out 1.4s both; }
.match-label { padding-right: 14px; border-right: 1px solid var(--line-light); color: var(--ink-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.match-rule { min-width: 0; font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
.match-rule .t { color: var(--accent-dark); font-weight: 700; }
.match-rule .d { color: var(--ink); font-weight: 600; }
.match-rule .sep, .match-rule .a { color: var(--ink-muted); }
.match-mark { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent-dark); color: var(--surface); box-shadow: 0 0 0 4px var(--a-cobalt-16); }
.match-mark svg { width: 16px; height: 16px; }
.next { padding-top: 64px; padding-bottom: 88px; }
.statusbar { display: flex; flex-wrap: wrap; margin: 0 0 48px; padding: 0; list-style: none; border: 1px solid var(--line-light); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: 13px; }
.statusbar li { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-right: 1px solid var(--line-light); }
.statusbar li:last-child { border-right: 0; }
.statusbar .sk { color: var(--ink-muted); }
.statusbar .sv { color: var(--ink); font-weight: 600; }
.next h2 { margin: 8px 0 12px; }
.next p.sub { max-width: 720px; margin: 0; color: var(--ink-muted); }
.preview-static *, .preview-static *::before, .preview-static *::after { animation: none !important; }
.preview-static .yaml li, .preview-static .match { opacity: 1; transform: none; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes breathe { from { transform: scale(0.6); opacity: 0.55; } to { transform: scale(1.9); opacity: 0; } }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes run-x { from { transform: translateX(0); opacity: 0; } 35% { opacity: 1; } to { transform: translateX(19px); opacity: 0.6; } }
@keyframes run-y { from { transform: translateY(0); opacity: 0; } 35% { opacity: 1; } to { transform: translateY(19px); opacity: 0.6; } }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .preview-mobile { display: block; }
  .preview-mobile > summary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; list-style: none; border: 1px solid var(--a-line-strong); border-radius: var(--r-sm); cursor: pointer; }
  .preview-mobile > summary::-webkit-details-marker { display: none; }
  .preview-mobile .mobile-drawer { top: var(--nav-h); }
}
@media (min-width: 1101px) {
  .mobile-drawer { display: none; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rig-body { grid-template-columns: 180px minmax(0, 1fr); }
  .code { padding-inline: 18px; }
  .yaml { column-gap: 12px; font-size: 11px; }
  .yaml li::before { width: 16px; margin-right: 8px; }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; --space-section: 64px; --size-h1: clamp(24px, 4vw, 30px); }
  .hero-title { font-size: clamp(24px, 4vw, 30px); }
  .hero { min-height: auto; padding-top: 48px; padding-bottom: 66px; }
  .lede { font-size: 15px; }
  .rig { height: 360px; }
  .rig-body { grid-template-columns: 150px minmax(0, 1fr); }
  .soc { width: 110px; height: 110px; }
  .soc-core { inset: 24px; }
  .yaml { columns: 1; font-size: 12px; line-height: 24px; }
  .code-head .meta { display: none; }
  .rig-chip::after { left: calc(50% + 60px); }
  .match { right: 16px; gap: 10px; }
  .match-rule { font-size: 12px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --space-section: 48px; }
  .header-wrap { gap: 10px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .header-tools { margin-left: auto; gap: 8px; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .lang { padding-inline: 10px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 22px; }
  .tilt, [data-tilt] { transform: none !important; }
  .badge { font-size: 11px; gap: 6px; }
  .plat-label { display: none; }
  .platforms { gap: 2px; margin-bottom: 32px; }
  .platforms a { padding-right: 6px; gap: 5px; font-size: 12px; }
  .plat-ico { width: 20px; height: 20px; }
  .rig { height: 388px; }
  .rig-body { grid-template-columns: 96px minmax(0, 1fr); }
  .rig-notch { left: 12px; gap: 8px; padding-inline: 8px; }
  .notch-sub { font-size: 8px; letter-spacing: 0.12em; }
  .soc { width: 64px; height: 82px; }
  .soc-core { inset: 14px 6px; }
  .soc-core .s1 { font-size: 12px; }
  .soc-core .s2 { font-size: 7px; letter-spacing: 0; }
  .soc-die { border-radius: var(--r-md); }
  .trace { display: none; }
  .rig-chip::after { left: calc(50% + 38px); }
  .pins-t, .pins-b { left: 8px; right: 8px; }
  .pins-l, .pins-r { top: 10px; bottom: 10px; width: 6px; }
  .pins-l { left: -6px; }
  .pins-r { right: -6px; }
  .code { padding: 22px 8px 0; }
  .code-head { font-size: 10px; }
  .yaml { font-size: 10px; line-height: 26px; }
  .yaml li::before { width: 12px; margin-right: 6px; }
  .match { right: 8px; max-width: calc(100% - 16px); padding-left: 14px; }
  .match-label { display: none; }
  .match-rule { font-size: 10px; }
  .match-mark { width: 30px; height: 30px; }
  .statusbar { margin-bottom: 32px; }
  .statusbar li { width: 50%; padding: 12px; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; border-bottom: 1px solid var(--line-light); }
  .footer-grid { gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 32px; }
  .next { padding-top: 48px; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
  .yaml li, .match { opacity: 1; transform: none; }
}