:root {
  --bg: #FDFDFD;
  --bg-panel: #F7F7F7;
  --bg-panel-2: #EFEFEF;
  --border: #E6E6E6;
  --border-strong: #D4D4D4;
  --line-draw: #B3B3B3;
  --lead: #9A9A9A;
  --dot: #DCDCDC;
  --face-l: #F0F0F0;
  --face-r: #E3E3E3;
  --accent: #3DD68C;
  --accent-hover: #36C981;
  --accent-dark: #1F9A60;
  --accent-ink: #167548;
  --accent-soft: rgba(61, 214, 140, .20);
  --text: #1A1A1A;
  --text-muted: #6E6E6E;
  --text-faint: #A0A0A0;
  --white: #FFFFFF;
  --success: #3DD68C;
  --warn: #D9A21B;
  --error: #D9534F;
  --clear: transparent;
  --veil: rgba(26, 26, 26, .24);
  --shadow-float: 0 1px 2px rgba(26, 26, 26, .04), 0 20px 44px -26px rgba(26, 26, 26, .20);
  --r-ctl: 6px;
  --r-card: 8px;
  --r-pill: 999px;
  --r-round: 50%;
  --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 Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --body-size: 15px;
  --small-size: 13px;
  --h1: clamp(34px, 3.1vw, 44px);
  --h2: clamp(24px, 2.3vw, 28px);
  --h3: 20px;
  --wrap: 1248px;
  --reading: 840px;
  --gutter: 24px;
  --header-height: 64px;
  --ease: .2s ease;
  --z-veil: 30;
  --z-header: 40;
  --z-fab: 20;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; padding: 0; }
html.nav-open { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  letter-spacing: -.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--h1); line-height: 1.16; }
h2 { font-size: var(--h2); line-height: 1.3; }
h3 { font-size: var(--h3); line-height: 1.45; }
ul, ol { padding-left: 1.5em; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
button svg, a svg, .badge-dot { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  white-space: pre;
  overscroll-behavior-inline: contain;
}
pre code { overflow-wrap: normal; white-space: pre; font-size: inherit; }
strong { font-weight: var(--weight-strong); }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--reading); margin-inline: auto; }
.grid { display: grid; gap: 24px; }
.grid > *, .bento > *, .footer-grid > *, .window-body > * { min-width: 0; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 32px; }
.section-head p { margin-top: 14px; color: var(--text-muted); }
.sec-title { font-size: var(--h2); line-height: 1.3; }
.sec-title .muted { margin-left: .4em; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.keep { white-space: nowrap; }
.flow > * + * { margin-top: 20px; }
.prose, .article-body { min-width: 0; overflow-wrap: break-word; line-height: 1.85; }
.prose > * + *, .article-body > * + * { margin-top: 20px; }
.prose h2, .article-body h2 { margin-top: 48px; }
.prose h3, .article-body h3 { margin-top: 32px; }
.prose li + li, .article-body li + li { margin-top: 8px; }
.prose img, .article-body img { display: block; }
.prose a, .article-body a { text-decoration-color: var(--text-muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-ctl);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background: var(--bg);
  color: var(--text);
  transition: background-color var(--ease), border-color var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary { background: var(--accent); border-color: var(--accent-dark); color: var(--text); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-hover); color: var(--text); }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--bg-panel); color: var(--text); }
.btn-ghost .arrow { color: var(--text-muted); }
.btn:active, .btn.is-active { border-color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); }
.btn.is-focus { outline: 2px solid var(--text); outline-offset: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.card, .panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.panel { background: var(--bg-panel); color: var(--text); }
.card > * + *, .panel > * + * { margin-top: 14px; }
.card-link { display: block; text-decoration: none; transition: border-color var(--ease); }
.card-link:hover { border-color: var(--border-strong); }
.topbar, #site-header {
  position: relative;
  z-index: var(--z-header);
  background: var(--bg);
  color: var(--text);
}
.topbar { height: var(--header-height); border-bottom: 1px solid var(--border); }
.header-in {
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  padding-inline: var(--gutter);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: block; width: 28px; height: 28px; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 16px; font-weight: var(--weight-medium); letter-spacing: -.005em; }
.site-nav { margin-left: auto; min-width: 0; }
.site-nav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.site-nav a {
  display: block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--bg-panel-2); color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.topbar-sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: var(--small-size);
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  white-space: nowrap;
}
.lang:hover { color: var(--text); border-color: var(--border-strong); }
.lang-caret { font-size: 10px; color: var(--text-muted); }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  padding: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; border-radius: var(--r-ctl); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
}
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.mobile-drawer {
  position: absolute;
  inset-inline: 0;
  top: var(--header-height);
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; width: 100%; align-items: center; min-height: 44px; padding: 10px 14px; text-decoration: none; border-radius: var(--r-ctl); }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel-2); color: var(--text); }
.drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: var(--z-veil); border: 0; background: var(--veil); color: var(--text); cursor: default; }
.site-footer { border-top: 1px solid var(--border); padding-top: 48px; padding-bottom: 28px; background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1.4fr .7fr; gap: 40px; }
.footer-intro { max-width: 29em; margin-top: 16px; color: var(--text-muted); font-size: 14px; }
.footer-title { margin-bottom: 16px; font-size: 14px; font-weight: var(--weight-medium); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: 8px; }
.footer-list a { font-size: var(--small-size); color: var(--text-muted); text-decoration: none; }
.footer-list a:hover { color: var(--text); text-decoration: underline; }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal-ready .reveal.shown { opacity: 1; transform: none; }

/* 用户确认的静态 Bento 首屏 */
.hero { padding-top: 28px; padding-bottom: 40px; overflow-x: clip; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 560px 86px; gap: 12px; }
.cell { border: 1px solid var(--border); border-radius: var(--r-card); position: relative; min-width: 0; }
.cell-float { transition: transform .25s ease, border-color .25s ease; }
.cell-float:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.cell-main { grid-column: span 6; background: var(--bg); color: var(--text); padding: 44px 44px 28px; display: flex; flex-direction: column; }
.main-stack { margin: auto 0; }
.badge { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 4px 12px 4px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-size: var(--small-size); overflow-wrap: anywhere; }
.badge-dot { width: 7px; height: 7px; border-radius: var(--r-round); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-title { margin-top: 30px; font-size: var(--h1); font-weight: var(--weight-normal); line-height: 1.16; letter-spacing: -.015em; }
.hero-title .l1, .hero-title .l2 { display: block; }
.hero-title .l2 { color: var(--accent-ink); }
.hero .cta-row { margin-top: 30px; }
.hero-desc { margin-top: 26px; max-width: 31em; font-size: var(--body-size); line-height: 1.75; color: var(--text-muted); }
.hero-desc strong { color: var(--text); font-weight: var(--weight-medium); }
.chips { margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li, .kchip { font-family: var(--font-mono); font-size: 12px; line-height: 1; color: var(--text); padding: 7px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); max-width: 100%; overflow-wrap: anywhere; }
.platforms { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 26px; }
.platforms-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; }
.platforms ul { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
.pf { display: inline-flex; align-items: center; gap: 8px; font-size: var(--small-size); color: var(--text-muted); text-decoration: none; transition: color var(--ease); }
.pf svg { width: 16px; height: 16px; display: block; fill: currentColor; }
.pf:hover { color: var(--text); }
.cell-figure {
  grid-column: span 6;
  overflow: hidden;
  background-color: var(--bg-panel);
  color: var(--text);
  background-image: radial-gradient(circle, var(--dot) 1px, var(--clear) 1.4px);
  background-size: 18px 18px;
  background-position: 9px 9px;
  box-shadow: var(--shadow-float);
}
.fig-cap { position: absolute; left: 20px; top: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; z-index: 1; }
.fig-cap-zh { font-size: 12px; color: var(--text-muted); }
.fig-cap-en { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.fig-svg { position: absolute; left: 16px; top: 38px; width: calc(100% - 32px); height: calc(100% - 50px); display: block; }
.deck { fill: var(--bg); stroke: var(--line-draw); stroke-width: 1; }
.slot { fill: var(--bg-panel); stroke: var(--border-strong); stroke-width: 1; }
.face-l { fill: var(--face-l); stroke: var(--line-draw); stroke-width: 1; stroke-linejoin: round; }
.face-r { fill: var(--face-r); stroke: var(--line-draw); stroke-width: 1; stroke-linejoin: round; }
.t-client { font-family: var(--font-display); font-size: 13px; fill: var(--text); text-anchor: middle; }
.t-core { font-family: var(--font-display); font-size: 18px; fill: var(--text); text-anchor: middle; }
.t-sub { font-family: var(--font-mono); font-size: 9.5px; fill: var(--text-muted); text-anchor: middle; }
.t-proto { font-family: var(--font-mono); font-size: 11px; fill: var(--text); text-anchor: middle; }
.diagram-callout { stroke: var(--line-draw); stroke-width: 1; fill: none; }
.callout-dot { fill: var(--bg); stroke: var(--line-draw); stroke-width: 1; }
.callout-en { font-family: var(--font-mono); font-size: 11px; fill: var(--text-muted); text-anchor: end; }
.callout-zh { font-family: var(--font-body); font-size: 10.5px; fill: var(--text-muted); text-anchor: end; }
.flow-line { stroke: var(--lead); stroke-width: 1.2; stroke-dasharray: 3 3; fill: none; }
.node-halo { fill: var(--accent-soft); }
.node { fill: var(--accent); }
.cell-sm { padding: 16px 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.cell-kernel { grid-column: span 3; background: var(--bg-panel-2); color: var(--text); }
.cell-license { grid-column: span 5; background: var(--bg-panel); color: var(--text); }
.cell-feature { grid-column: span 4; background: var(--bg); color: var(--text); }
.sm-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.kchips { display: flex; flex-wrap: wrap; gap: 8px; }
.kchip { padding: 6px 10px; border-color: var(--border-strong); background: var(--bg); color: var(--text); }
.lic { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.4; }
.lic div { display: flex; gap: 6px; }
.lic dt { color: var(--text-muted); }
.lic dd { color: var(--text); }
.feat { font-size: 14px; color: var(--text); }
.dot-sep { color: var(--text-muted); padding-inline: 6px; }
.sec-download { border-top: 1px solid var(--border); padding-top: 48px; padding-bottom: 88px; }
.dl-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.dl-cell { display: block; min-width: 0; padding: 28px 24px; text-decoration: none; border-left: 1px solid var(--border); background: var(--bg); color: var(--text); }
.dl-cell:first-child { border-left: 0; }
.dl-cell:hover { background: var(--bg-panel); color: var(--text); }
.dl-os { font-size: 16px; color: var(--text); }
.dl-app { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.decorated { position: relative; overflow-x: clip; }
.decorative-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .header-tools { margin-left: auto; gap: 10px; }
  .menu-toggle { display: inline-flex; }
  .topbar-sep { display: none; }
}
@media (min-width: 1101px) {
  .mobile-drawer, .nav-veil { display: none !important; }
}
@media (max-width: 1100px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .cell-main, .cell-figure, .cell-kernel, .cell-license, .cell-feature { grid-column: auto; }
  .cell-main { min-height: 500px; }
  .cell-figure { height: 520px; }
  .cell-sm { min-height: 86px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --h1: clamp(24px, 4vw, 30px); }
  .grid-three { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-in { gap: 10px; }
  .brand-name { font-size: 14px; }
  .lang { padding-inline: 9px; }
  .header-tools { gap: 8px; margin-left: auto; }
  .cell-main { min-height: 0; padding: 32px 22px 22px; }
  .main-stack { margin: 0; }
  .hero-title .l1, .hero-title .l2 { font-size: clamp(21px, 5.4vw, 30px); }
  .platforms { flex-direction: column; align-items: flex-start; gap: 12px; }
  .platforms ul { flex-wrap: wrap; gap: 16px; }
  .cell-figure { height: 420px; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-cell:nth-child(odd) { border-left: 0; }
  .dl-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
  .dl-cell { padding: 24px 16px; }
  .grid-two, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 22px; }
  .tilt, [data-tilt] { transform: none !important; }
  .chips, .kchips { flex-direction: row; flex-wrap: wrap; }
  .sec-title .muted { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .cell-float:hover { transform: none; }
}