:root {
  --bg: #f9fafc;
  --bg-panel: #ffffff;
  --bg-panel-2: #2b2585;
  --bg-plate: #eef0f5;
  --line: #dfe2ea;
  --line-strong: #c6cbd7;
  --grid-line: #d4d9e4;
  --accent: #4a32d4;
  --accent-dark: #2f1fa0;
  --accent-tint: #4a32d42e;
  --ink: #1d1f26;
  --text: #1d1f26;
  --text-muted: #5a6070;
  --on-dark: #ffffff;
  --on-dark-muted: #ffffffbd;
  --on-dark-line: #ffffff47;
  --veil: #1d1f2680;
  --wave-hi: #3a32a8;
  --wave-mid: #322b97;
  --c-mint: #5fdcc8;
  --c-yellow: #ffcc21;
  --c-orange: #ff9f43;
  --c-pink: #ff8fc8;
  --c-green: #1fae7a;
  --c-red: #e2456f;
  --success: var(--c-green);
  --warn: var(--c-orange);
  --error: var(--c-red);
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 0;
  --radius-shot: 2px;
  --radius-logo: 7px;
  --radius-dot: 50%;
  --h1-size: clamp(28px, 3.4vw, 48px);
  --rule-size: clamp(15px, 1.46vw, 21px);
  --gutter: 88px;
  --nav-h: 64px;
  --horizon: 150px;
  --content-width: 1120px;
  --header-width: 1280px;
  --reading-width: 780px;
  --section-space: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --speed: .18s;
  --focus-width: 2px;
  --hairline: 1px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea, a { -webkit-tap-highlight-color: var(--accent-tint); }
button { border-radius: var(--radius); }
img { max-width: 100%; }
svg { display: block; max-width: 100%; }
svg, .icon, .badge-dot { flex-shrink: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: var(--h1-size); line-height: 1.15; font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.4; font-weight: 800; }
p { margin-top: 0; }
code, pre, kbd { 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-plate);
  color: var(--ink);
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius);
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 28px; }
.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: var(--gutter); top: 8px; z-index: 100;
  padding: 8px 14px; background: var(--ink); color: var(--on-dark);
  text-decoration: none; font-size: 14px;
}
.skip:not(:focus) {
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.reading { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-heading { margin-top: 0; margin-bottom: 20px; }
.section-intro { max-width: 44em; color: var(--text-muted); margin-bottom: 32px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.eyebrow { font: 600 12px var(--font-mono); letter-spacing: .06em; color: var(--text-muted); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > *, .bento > *, .feature-tabs > *, .footer-grid > *, .plat-grid > * { min-width: 0; }
.stack > * + * { margin-top: 20px; }
.panel, .card {
  min-width: 0;
  padding: 26px;
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  color: var(--text);
}
.card h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.prose { min-width: 0; }
.prose p, .prose li { line-height: 1.85; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose a { color: var(--accent); }
.prose blockquote { margin-inline: 0; }
.prose > :first-child { margin-top: 0; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border: var(--hairline) solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-panel); color: var(--ink);
  font-size: 15px; font-weight: 600; line-height: 1.6;
  text-align: center; text-decoration: none;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--on-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--ink); color: var(--on-dark); }
.btn-accent { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); color: var(--on-dark); }
.btn:active { border-color: var(--accent); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-plate); color: var(--text-muted); border-color: var(--line-strong); cursor: not-allowed;
}
.btn.is-focus { outline: var(--focus-width) solid var(--accent); outline-offset: 3px; }
.cta-row, .get-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-row > *, .get-actions > * { min-width: 0; max-width: 100%; }
.get-note { margin: 14px 0 24px; font-size: 13px; color: var(--text-muted); }
.get-note [data-pkg-ver] { font: 600 12.5px var(--font-mono); color: var(--ink); }
#site-header { position: relative; z-index: 50; }
.topbar-shell { background: var(--bg); color: var(--text); border-bottom: var(--hairline) solid var(--line); }
.topbar {
  position: relative; z-index: 3; min-height: var(--nav-h);
  padding-inline: var(--gutter); margin-inline: auto;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg); color: var(--text);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 15.5px;
  letter-spacing: -.01em; color: var(--ink); flex-shrink: 0;
}
.brand img, .brand-mark {
  display: block; width: 30px; height: 30px; flex-shrink: 0;
  border-radius: var(--radius-logo);
}
.brand-mark { background: var(--bg-panel); color: var(--ink); border: var(--hairline) solid var(--line-strong); }
.desktop-nav { margin-left: auto; min-width: 0; }
.nav {
  display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
  gap: 0; font-size: 14.5px; white-space: nowrap;
}
.nav li { display: flex; align-items: center; }
.nav li + li::before { content: "·"; margin-inline: 13px; color: var(--line-strong); font-weight: 700; }
.nav a { display: block; text-decoration: none; color: var(--text-muted); padding-block: 6px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 8px;
}
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-control { position: relative; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px;
  padding: 5px 12px; border: var(--hairline) solid var(--line-strong);
  border-radius: var(--radius); background: var(--bg-panel); color: var(--text); font-size: 13.5px;
  white-space: nowrap;
}
.lang svg { width: 15px; height: 15px; color: var(--text-muted); }
.lang:hover { border-color: var(--ink); }
.lang-short { display: none; }
.language-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 8;
  min-width: 180px; padding: 6px;
  border: var(--hairline) solid var(--line-strong); background: var(--bg-panel); color: var(--ink);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-plate); color: var(--ink); }
.menu-toggle {
  display: none; min-width: 44px; min-height: 44px; padding: 10px;
  border: var(--hairline) solid var(--line-strong); background: var(--bg-panel); color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 6;
  padding: 16px var(--gutter) 24px;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-panel); color: var(--ink); border-bottom: var(--hairline) solid var(--line-strong);
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; text-decoration: none; }
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-plate); color: var(--ink); }
.drawer-languages { margin-top: 16px; padding-top: 12px; border-top: var(--hairline) solid var(--line); }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 1; border: 0; background: var(--veil); color: var(--on-dark); }
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: 64px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 44px; }
.site-footer .brand { color: var(--on-dark); }
.site-footer p { color: var(--on-dark-muted); font-size: 14px; }
.site-footer h2 { font-size: 15px; margin-top: 0; margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-description { margin-top: 20px; max-width: 29em; }
.footer-languages, .footer-legal { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-languages { margin-top: 36px; }
.footer-bottom { margin-top: 28px; padding-top: 24px; border-top: var(--hairline) solid var(--on-dark-line); font-size: 13px; }
.footer-bottom p { font-size: 13px; margin-top: 12px; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.reveal-ready .reveal.shown { opacity: 1; transform: none; }
.decorated, .hero, .deep { overflow-x: clip; }
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .nav li + li::before { margin-inline: 9px; }
}
@media (min-width: 1101px) {
  .mobile-drawer, .nav-veil { display: none; }
}
@media (max-width: 768px) {
  :root { --h1-size: clamp(24px, 4vw, 30px); --section-space: 56px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topbar { gap: 8px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand img, .brand-mark { width: 26px; height: 26px; }
  .header-tools { margin-left: auto; gap: 8px; }
  .lang { min-height: 44px; padding-inline: 9px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang svg { display: none; }
  .tilt, [data-tilt] { transform: none !important; }
  .panel, .card { padding: 20px; }
  .footer-languages { gap: 10px 16px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand { font-size: 12px; }
  .header-tools { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal { opacity: 1; transform: none; }
}