:root {
  --bg: #FFFFFF;
  --bg-panel: #F7F7F8;
  --bg-panel-2: #EFEFF1;
  --border: #E5E5E7;
  --border-strong: #D6D6DA;
  --chrome-dot: #D2D2D6;
  --accent: #1A4B3A;
  --accent-dark: #0F2E24;
  --text: #121213;
  --text-muted: #6B6B70;
  --success: #2F8F5B;
  --warn: #B7791F;
  --error: #C2412D;
  --on-accent: #FFFFFF;
  --on-ink: #FFFFFF;
  --clear: transparent;
  --veil: rgba(18, 18, 19, .24);
  --aurora-ink: #050A0B;
  --aurora-ink-2: #0A1714;
  --aurora-planet: #030607;
  --aurora-cyan: #8FE6E2;
  --aurora-cyan-soft: rgba(143, 230, 226, .28);
  --aurora-amber: #F4B865;
  --aurora-amber-soft: rgba(244, 184, 101, .55);
  --aurora-star: rgba(255, 255, 255, .75);
  --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", "Apple SD Gothic Neo", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-container: 32px;
  --radius-device: 28px;
  --radius-card: 20px;
  --radius-field: 12px;
  --radius-url: 14px;
  --radius-focus: 6px;
  --radius-tick: 2px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --shadow-card: 0 1px 2px rgba(18, 18, 19, .05), 0 24px 48px rgba(18, 18, 19, .07);
  --shadow-pop: 0 1px 2px rgba(18, 18, 19, .04), 0 12px 32px rgba(18, 18, 19, .08);
  --shadow-switch: 0 1px 2px rgba(18, 18, 19, .18);
  --gutter: 40px;
  --content-width: 1120px;
  --reading-width: 760px;
  --nav-h: 64px;
  --peek: 88px;
  --text-base: 16px;
  --text-small: 14px;
  --text-caption: 12px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --time-fast: .18s;
  --time-reveal: .5s;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; vertical-align: middle; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
input, textarea, select { min-width: 0; max-width: 100%; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1.25em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-regular); text-wrap: balance; }
h1 { font-size: clamp(34px, 2.2vw + 17px, 48px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 24px; }
h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 24px; }
h3 { font-size: 22px; line-height: 1.35; margin: 0 0 16px; letter-spacing: -.01em; }
h4 { font-size: 18px; margin: 0 0 12px; }
strong { font-weight: var(--weight-strong); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .88em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  background: var(--bg-panel);
  color: var(--text);
  line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-focus); }
:target { scroll-margin-top: 88px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: var(--text-small); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--content-width) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading p, .muted { color: var(--text-muted); }
.panel { border-radius: var(--radius-container); padding: 40px; background: var(--bg-panel); color: var(--text); }
.panel-wide { margin-inline: 24px; border-radius: var(--radius-container); background: var(--bg-panel); color: var(--text); }
.card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.card h3 a { color: var(--text); }
.grid { display: grid; gap: 24px; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .row > *, .feature-layout > *, .footer-grid > *, .download-card > * { min-width: 0; }
.nowrap { white-space: nowrap; }
.text-link { color: var(--accent); font-weight: var(--weight-medium); }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 24px; border: 1px solid var(--clear);
  border-radius: var(--radius-pill); font-size: 15px; font-weight: var(--weight-medium); letter-spacing: -.005em;
  text-align: center; line-height: 24px;
  transition: background var(--time-fast), border-color var(--time-fast), color var(--time-fast);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-primary:active, .btn-primary.is-active { background: var(--accent-dark); color: var(--on-accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-ghost:hover, .btn-ghost.is-hover { border-color: var(--border-strong); background: var(--bg-panel); color: var(--text); }
.btn-ghost:active { background: var(--bg-panel-2); 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(--accent); outline-offset: 3px; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 页头使用独立宽版心，不复用正文 wrap。 */
#site-header { position: relative; z-index: 50; }
.topbar {
  height: var(--nav-h); max-width: min(100%, calc(1280px + var(--gutter) * 2)); margin-inline: auto;
  display: flex; align-items: center; gap: 28px; padding-inline: var(--gutter);
  position: relative; z-index: 50; background: var(--bg); color: var(--text);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); font-size: 16px; font-weight: var(--weight-medium); letter-spacing: -.005em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.desktop-nav { margin-left: auto; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.nav-links > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0; color: var(--text); white-space: nowrap; position: relative; transition: color var(--time-fast); }
.nav-link:hover { color: var(--text-muted); text-decoration: none; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; border-radius: var(--radius-tick); background: var(--accent); color: var(--on-accent); }
.chev { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--time-fast); }
.nav-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-more, .language-picker { position: relative; }
.more-panel, .language-panel {
  position: absolute; top: calc(100% + 6px); right: -12px; min-width: 184px;
  padding: 8px; list-style: none; margin: 0; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); z-index: 60;
}
.more-panel a, .language-panel a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; width: 100%; padding: 9px 12px; border-radius: var(--radius-field); font-size: var(--text-small); color: var(--text); }
.more-panel a:hover, .language-panel a:hover { background: var(--bg-panel); color: var(--text); text-decoration: none; }
.more-panel a[aria-current="page"], .language-panel a[aria-current="true"] { color: var(--accent); }
.more-panel small { font-size: var(--text-caption); color: var(--text-muted); line-height: 1.4; }
.nav-more > [aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text); font-size: var(--text-small); white-space: nowrap; }
.lang:hover { background: var(--bg-panel-2); color: var(--text); }
.hamburger { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text); }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 40; width: 100%; background: var(--veil); color: var(--text); }
.static-drop > summary { cursor: pointer; list-style: none; }
.static-drop > summary::-webkit-details-marker { display: none; }

/* 正文与页脚。 */
.prose { min-width: 0; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose li { margin-block: .45em; }
.prose a { text-decoration: underline; }
.prose img { max-width: 100%; }
.site-footer { padding-top: 64px; padding-bottom: 28px; border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 56px; }
.footer-brand p { max-width: 320px; font-size: var(--text-small); color: var(--text-muted); margin-top: 20px; }
.footer-heading { font-size: var(--text-small); font-weight: var(--weight-medium); margin: 0 0 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a { color: var(--text-muted); font-size: var(--text-small); display: inline-block; padding-block: 3px; }
.footer-list a:hover { color: var(--accent); }
.footer-languages { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; }
.footer-languages a { font-size: var(--text-small); padding-block: 8px; color: var(--text-muted); }
.footer-languages a[aria-current="true"] { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; font-size: var(--text-caption); color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { color: var(--text-muted); }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--time-reveal) var(--ease), transform var(--time-reveal) var(--ease); }
html.reveal-ready .reveal.shown { opacity: 1; transform: none; }
.decorated, [data-hero-visual] { overflow-x: clip; }
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .nav-tools { margin-left: auto; }
  .hamburger { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gutter) 28px; background: var(--bg); color: var(--text);
    border-top: 1px solid var(--border); 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; color: var(--text); border-radius: var(--radius-field); }
  .mobile-drawer a:hover { background: var(--bg-panel); color: var(--text); text-decoration: none; }
  .mobile-drawer a[aria-current] { color: var(--accent); }
  .drawer-languages { border-top: 1px solid var(--border); margin-top: 12px !important; padding-top: 12px !important; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  h1 { font-size: clamp(24px, 4vw, 30px); }
  .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .panel { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar { gap: 8px; }
  .brand { gap: 8px; font-size: var(--text-small); }
  .lang { padding-inline: 12px; font-size: 13px; }
  .nav-tools { gap: 2px; margin-left: auto; }
  .grid-two, .grid-three, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .panel, .card { padding: 24px; }
  .panel-wide { margin-inline: 12px; }
  .footer-grid { gap: 32px; }
  .tilt, .stage, [data-tilt] { transform: none !important; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}