:root {
  color-scheme: dark;
  --bg: #0B0C33;
  --bg-panel: #04040A;
  --bg-panel-2: #13142C;
  --border: #2A2C4E;
  --accent: #2FCB8B;
  --accent-dark: #1E9C69;
  --text: #EEF0FA;
  --text-muted: #9A9EC0;
  --success: #3FD68F;
  --warn: #F2C14E;
  --error: #F2667A;
  --glow-a: #4B4FE0;
  --glow-b: #A77BFF;
  --glow-core: #F4D2FF;
  --ink-window: #0D0E1F;
  --ink-chrome: #10112A;
  --ink-rail: #0A0B19;
  --syn-key: #A9B6FF;
  --syn-str: #D7BBFF;
  --syn-num: #F4D2FF;
  --syn-com: #8F94B8;
  --syn-punc: #A0A4CB;
  --line-number: #5D618C;
  --text-rgb: 238 240 250;
  --muted-rgb: 154 158 192;
  --glow-a-rgb: 75 79 224;
  --glow-b-rgb: 167 123 255;
  --glow-core-rgb: 244 210 255;
  --accent-rgb: 47 203 139;
  --shadow-rgb: 2 2 12;
  --panel2-rgb: 19 20 44;
  --border-rgb: 42 44 78;
  --clear: transparent;
  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --r-tiny: 2px;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-link: 10px;
  --r-btn: 12px;
  --r-menu: 16px;
  --r-window: 18px;
  --r-card: 22px;
  --r-frame: 28px;
  --r-pill: 999px;
  --gutter: 24px;
  --content-width: 1180px;
  --reading-width: 800px;
  --head-width: 1280px;
  --head-height: 64px;
  --space-section: 104px;
  --shadow-float: 0 1px 0 rgb(var(--text-rgb) / .05) inset, 0 12px 30px -12px rgb(var(--shadow-rgb) / .75), 0 40px 90px -30px rgb(var(--shadow-rgb) / .9);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --time-fast: .18s;
  --time-reveal: .6s;
}

*, *::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-panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg, .badge-dot, .light, .ol-mark { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
button, a { -webkit-tap-highlight-color: var(--clear); }
:focus-visible { outline: 2px solid var(--glow-b); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--glow-a); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-normal); text-wrap: balance; }
h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.16; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; letter-spacing: -.02em; }
h3 { font-size: 22px; line-height: 1.4; }
h4 { font-size: 18px; line-height: 1.5; }
p { margin: 0 0 1.2em; }
strong { font-weight: var(--weight-strong); }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .9em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-menu);
  background: var(--ink-window);
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 32px; }
.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: var(--space-section); padding-bottom: var(--space-section); }
.section-head { max-width: 740px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-top: 0; margin-bottom: 16px; }
.section-head p, .muted { color: var(--text-muted); }
.word { white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 > *, .grid-3 > *, .head-bar > *, .footer-grid > *, .feature-panel > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.prose { min-width: 0; line-height: 1.85; }
.prose h2 { margin-top: 64px; }
.prose h3 { margin-top: 36px; }
.prose li + li { margin-top: 8px; }
.prose :not(pre) > code { padding: 2px 5px; border-radius: var(--r-xs); background: var(--bg-panel-2); color: var(--text); }
.prose a { text-decoration-color: var(--text-muted); }
.prose a:hover { text-decoration-color: var(--text); }
.prose section { scroll-margin-top: 24px; min-width: 0; }
.card, .surface {
  min-width: 0;
  padding: 28px;
  border: 1px solid rgb(var(--border-rgb) / .9);
  border-radius: var(--r-card);
  background: var(--bg-panel-2);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  background: var(--clear);
  color: var(--text);
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  letter-spacing: .005em;
  transition: transform var(--time-fast) var(--ease-out), background-color var(--time-fast), border-color var(--time-fast);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-panel);
  box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / .55), 0 10px 26px -10px rgb(var(--accent-rgb) / .65);
}
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--bg-panel); }
.btn-ghost { border-color: rgb(var(--text-rgb) / .28); background: rgb(var(--text-rgb) / .02); color: var(--text); }
.btn-ghost:hover, .btn-ghost.is-hover { border-color: rgb(var(--text-rgb) / .55); background: rgb(var(--text-rgb) / .05); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; transform: none; }
.btn.is-focus { outline: 2px solid var(--glow-b); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: 10px; z-index: 100; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border-radius: var(--r-sm); background: var(--bg-panel-2); color: var(--text); font-size: 14px; text-decoration: none; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: 8px 14px; }
.site-head, #site-header { position: relative; z-index: 60; background: var(--bg); color: var(--text); }
.head-bar {
  width: 100%;
  max-width: min(100%, calc(var(--head-width) + var(--gutter) * 2));
  min-height: var(--head-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name { font-size: 15px; font-weight: var(--weight-medium); letter-spacing: -.01em; }
.head-nav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--clear);
  color: rgb(var(--text-rgb) / .82);
  font: inherit;
  font-size: 14.5px;
  text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: rgb(var(--text-rgb) / .06); color: var(--text); }
.caret-ico { width: 10px; height: 10px; }
.nav-more, .lang-picker { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  min-width: 232px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-menu);
  background: var(--bg-panel-2);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.menu-link { display: block; padding: 10px 12px; border-radius: var(--r-link); text-decoration: none; font-size: 14px; }
.menu-link:hover, .menu-link[aria-current="page"] { background: rgb(var(--text-rgb) / .05); color: var(--text); }
.menu-desc { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.head-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.head-tools::before { content: ""; width: 1px; height: 18px; background: rgb(var(--text-rgb) / .14); }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid rgb(var(--text-rgb) / .2);
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--text);
  font-size: 13.5px;
  text-decoration: none;
}
.lang-btn:hover { border-color: rgb(var(--text-rgb) / .42); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-short { display: none; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-panel-2);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 4;
  max-height: calc(100dvh - var(--head-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel-2);
  color: var(--text);
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer a { display: flex; align-items: center; 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="page"] { background: rgb(var(--text-rgb) / .06); color: var(--text); }
.drawer-label { margin: 20px 12px 8px; font-size: 13px; color: var(--text-muted); }
.nav-veil { position: fixed; inset: var(--head-height) 0 0; z-index: 2; border: 0; background: rgb(var(--shadow-rgb) / .7); color: var(--text); }
.static-disclosure > summary { list-style: none; cursor: pointer; }
.static-disclosure > summary::-webkit-details-marker { display: none; }
.site-footer {
  padding-top: 72px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 48px; }
.footer-brand p { max-width: 340px; margin-top: 20px; color: var(--text-muted); font-size: 14px; }
.footer-title { margin: 0 0 18px; font-size: 14px; font-weight: var(--weight-medium); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding-block: 4px; font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-nav .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity var(--time-reveal) var(--ease-out), transform var(--time-reveal) var(--ease-out); }
.decorated, [data-hero-visual] { position: relative; overflow-x: clip; }
@media (max-width: 1100px) {
  .head-nav { display: none; }
  .head-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .head-tools::before { display: none; }
  .footer-grid { gap: 28px; }
}
@media (min-width: 1101px) {
  .mobile-drawer, .nav-veil { display: none !important; }
}
@media (max-width: 768px) {
  :root { --space-section: 72px; }
  h1 { font-size: clamp(24px, 4.6vw, 30px); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .head-bar { gap: 12px; }
  .head-tools { gap: 8px; margin-left: auto; }
  .brand-name { font-size: 13px; }
  .brand { gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-btn { padding-inline: 10px; }
  .card, .surface { padding: 22px; }
  .tilt, [data-tilt] { transform: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  pre { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}