:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-panel: #0f1012;
  --bg-panel2: #16171a;
  --border: #23252a;
  --accent: #e6e7ea;
  --accent-dark: #b9bcc3;
  --text: #f4f5f7;
  --muted: #8a8f98;
  --success: #4cc3d9;
  --warn: #f2c94c;
  --error: #eb5b5b;
  --device-edge: #2c2f35;
  --stage-hi: #4a4f57;
  --stage-mid: #1d1f23;
  --faint: #50555e;
  --scan: rgba(230,231,234,.58);
  --success-ring: rgba(76,195,217,.16);
  --orbit-a: rgba(185,188,195,.34);
  --orbit-b: rgba(185,188,195,.15);
  --clear: rgba(8,9,11,0);
  --veil: rgba(8,9,11,.8);
  --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,"SF Mono",Menlo,Consolas,monospace;
  --weight-normal: 400;
  --weight-heading: 500;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-ui: 14px;
  --text-body: 15px;
  --text-lede: 16px;
  --text-h1: clamp(34px,3.4vw,48px);
  --text-h2: clamp(24px,2.5vw,36px);
  --text-h3: 20px;
  --line-body: 1.6;
  --line-prose: 1.85;
  --line-heading: 1.2;
  --ls-display: -.025em;
  --ls-cjk: -.02em;
  --ls-ui: -.005em;
  --r-card: 6px;
  --r-btn: 6px;
  --r-pill: 4px;
  --r-shot: 6px;
  --r-device: 18px;
  --r-mark: 7px;
  --r-round: 50%;
  --wrap: 1200px;
  --reading: 780px;
  --head-wrap: 1280px;
  --gutter: 40px;
  --header-h: 64px;
  --section-gap: 160px;
  --rig-w: clamp(600px,56vw,900px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --ease: cubic-bezier(.4,0,.2,1);
  --time-ui: .15s;
  --time-reveal: .6s;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
html.nav-open { overflow: hidden; }
body {
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; background: none; border: 0; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: var(--clear); }
img, svg { max-width: 100%; }
img { display: block; }
svg { flex-shrink: 0; }
button svg, a svg { pointer-events: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: var(--r-pill); }
::selection { background: var(--accent); color: var(--bg); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.reading { width: 100%; max-width: calc(var(--reading) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid > *, .split > *, .hero-grid > *, .footer-grid > *, .plat-grid > * { min-width: 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 { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 8px 12px; background: var(--accent); color: var(--bg); border-radius: var(--r-btn); font-size: var(--text-sm); }
.skip:focus { top: 12px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-heading); line-height: var(--line-heading); letter-spacing: var(--ls-display); text-wrap: balance; }
:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3,
:lang(zh-TW) h1, :lang(zh-TW) h2, :lang(zh-TW) h3,
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3,
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { letter-spacing: var(--ls-cjk); }
h1 { font-size: var(--text-h1); line-height: 1.14; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
.keep { white-space: nowrap; }
.muted, .h1-sub, .section-title span { color: var(--muted); }
.h1-main, .h1-sub { display: block; }
.mono, code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .88em; overflow-wrap: anywhere; }
pre { max-width: 100%; min-width: 0; overflow-x: auto; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--accent-dark); line-height: 1.8; }
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
strong, b { font-weight: var(--weight-heading); }
.prose, .document-body { min-width: 0; line-height: var(--line-prose); }
.prose p, .document-body p { margin-block: 18px; }
.prose h2, .document-body h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3, .document-body h3 { margin-top: 36px; margin-bottom: 16px; }
.prose ul, .prose ol, .document-body ul, .document-body ol { padding-left: 1.5em; margin-block: 20px; }
.prose li + li, .document-body li + li { margin-top: 8px; }
.prose a:not(.btn):not(.appstore-btn), .document-body a:not(.btn):not(.appstore-btn) { text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 4px; }
.prose > *, .document-body > * { max-width: 100%; }
.lede { max-width: 30em; margin-top: 22px; font-size: var(--text-lede); line-height: 1.78; color: var(--muted); }
.lede strong { color: var(--text); }
.lede code { color: var(--accent-dark); }
.section { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.section + .section { border-top: 1px solid var(--border); }
.section-title { margin-top: 48px; margin-bottom: 40px; max-width: 27em; }
.sec-head { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.sec-head .no { color: var(--text); flex-shrink: 0; }
.sec-head .rule { height: 1px; flex: 1; background: var(--border); color: var(--muted); }
.page-intro { padding-top: 80px; padding-bottom: 64px; }
.stack > * + * { margin-top: var(--space-5); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.card, .panel { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); min-width: 0; }
.panel-raised { background: var(--bg-panel2); color: var(--text); }
.card p, .panel p { color: var(--muted); margin-top: 12px; }
.card-link { display: block; transition: border-color var(--time-ui) ease; }
.card-link:hover { border-color: var(--muted); }
.actions, .button-specimens { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; max-width: 100%; padding: 9px 16px;
  font-size: var(--text-ui); font-weight: var(--weight-heading); letter-spacing: var(--ls-ui);
  border: 1px solid var(--clear); border-radius: var(--r-btn); text-align: center;
  transition: background-color var(--time-ui) ease,border-color var(--time-ui) ease,color var(--time-ui) ease;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--bg); }
.btn-primary:active { background: var(--text); color: var(--bg); }
.btn-ghost { background: var(--bg-panel); border-color: var(--border); color: var(--text); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--bg-panel2); border-color: var(--device-edge); color: var(--text); }
.btn .arr { color: var(--muted); font-family: var(--font-mono); font-size: var(--text-sm); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel2); border-color: var(--border); color: var(--muted); cursor: not-allowed; }
.btn.is-focus { outline: 1px solid var(--accent); outline-offset: 3px; }
.site-head { position: sticky; top: 0; z-index: 40; height: var(--header-h); border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); }
.head-inner {
  position: relative; height: 100%; width: 100%;
  max-width: min(100%,calc(var(--head-wrap) + var(--gutter) * 2));
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-family: var(--font-display); font-size: var(--text-body); font-weight: var(--weight-heading); letter-spacing: -.01em; }
.brand-logo, .brand-mark { width: 26px; height: 26px; flex-shrink: 0; border-radius: var(--r-round); }
.brand-mark { position: relative; background: var(--bg-panel2); color: var(--muted); border: 1px solid var(--device-edge); border-radius: var(--r-mark); }
.brand-mark::after { content: ""; position: absolute; inset: 5px; border: 1px solid var(--faint); border-radius: var(--r-round); }
.brand-short { display: none; }
.nav { display: flex; align-items: stretch; height: 100%; min-width: 0; margin-left: auto; }
.nav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; gap: 0; }
.nav li { display: flex; height: 100%; }
.nav a { position: relative; display: flex; align-items: center; padding-inline: 13px; min-height: 44px; font-size: var(--text-ui); color: var(--muted); white-space: nowrap; transition: color var(--time-ui) ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 1px; background: var(--accent); color: var(--bg); }
.head-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-sep { width: 1px; height: 16px; background: var(--border); color: var(--muted); margin-right: 4px; }
.lang-wrap { position: relative; }
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 5px 10px; font-size: var(--text-sm); color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-btn); }
.lang:hover { color: var(--text); border-color: var(--device-edge); }
.lang svg { width: 14px; height: 14px; }
.caret { font-size: 10px; line-height: 1; }
.lang-short { display: none; }
.lang-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 190px; padding: 6px; list-style: none; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel2); color: var(--text); z-index: 45; }
.lang-menu a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 9px 12px; font-size: var(--text-ui); border-radius: var(--r-pill); }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--bg); color: var(--text); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg-panel); color: var(--text); }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 28px; background: var(--bg-panel); color: var(--text); border-bottom: 1px solid var(--border); z-index: 44; }
.mobile-drawer ul { list-style: none; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--muted); }
.mobile-drawer a[aria-current], .mobile-drawer a:hover { color: var(--text); }
.drawer-label { margin-top: 24px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.nav-veil { position: fixed; inset: var(--header-h) 0 0; z-index: 39; background: var(--veil); color: var(--text); cursor: default; }
.preview-mobile-nav { display: none; }
.site-footer { border-top: 1px solid var(--border); padding-top: 64px; padding-bottom: 96px; background: var(--bg); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 64px; }
.footer-brand p { max-width: 30em; margin-top: 20px; font-size: var(--text-sm); line-height: 1.85; }
.footer-title { color: var(--text); font-size: var(--text-ui); margin-bottom: 20px; font-weight: var(--weight-heading); }
.footer-links { list-style: none; }
.footer-links a { display: inline-block; padding-top: 6px; padding-bottom: 6px; font-size: var(--text-sm); }
.footer-links a:hover, .footer-langs a:hover { color: var(--text); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 48px; font-size: var(--text-sm); }
.footer-langs [aria-current] { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--border); margin-top: 32px; padding-top: 24px; font-size: var(--text-xs); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(14px); }
html.reveal-ready .reveal { transition: opacity var(--time-reveal) var(--ease),transform var(--time-reveal) var(--ease); }
.decorated, .hero, [data-decorated] { position: relative; overflow-x: clip; }
@media (max-width: 1279px) {
  .head-inner { gap: 16px; }
  .head-tools { margin-left: auto; }
  .site-head .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-sep { display: none; }
  .preview-mobile-nav { display: block; position: relative; }
  .preview-mobile-nav summary { list-style: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-btn); cursor: pointer; }
  .preview-mobile-nav nav { position: absolute; top: 54px; right: 0; width: min(84vw,360px); max-height: 75dvh; overflow-y: auto; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); padding: 12px; }
  .preview-mobile-nav nav a { display: flex; align-items: center; min-height: 48px; width: 100%; padding: 10px 12px; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 768px) {
  :root { --text-h1: 28px; --text-h2: 26px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .head-inner { gap: 8px; }
  .brand { gap: 8px; font-size: var(--text-sm); }
  .head-inner .brand-full { display: none; }
  .head-inner .brand-short { display: inline; }
  .head-tools { margin-left: auto; gap: 6px; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .lang { min-height: 44px; padding-inline: 9px; }
  .lede { font-size: var(--text-body); }
  .section-title { margin-top: 32px; }
  .page-intro { padding-top: 48px; padding-bottom: 40px; }
  .footer-grid { gap: 32px 20px; }
  .footer-bottom { padding-right: 60px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}