:root {
  --c-bg: #000000;
  --c-panel: #0A0A0A;
  --c-panel-2: #141414;
  --c-line: #222222;
  --c-accent: #0F6FFF;
  --c-accent-dark: #0A4FCC;
  --c-accent-soft: #6FA8FF;
  --c-text: #EDEDED;
  --c-muted: #8A8A8A;
  --c-faint: #5C5C5C;
  --c-success: #4CC38A;
  --c-warn: #E5B454;
  --c-error: #F26B6B;
  --c-rig: #050505;
  --c-canvas-top: #000814;
  --c-canvas-bottom: #00030A;
  --c-node-line: #2A2A2A;
  --c-wire: #333333;
  --c-white: #FFFFFF;
  --c-white-2: #D4D4D4;
  --c-ink: var(--c-bg);
  --c-band-tint: #F1F6FF;
  --c-band-invert: var(--c-text);
  --c-band-text: #141414;
  --c-band-muted: #494949;
  --c-band-link: var(--c-accent-dark);
  --c-clear: transparent;
  --tint-accent-05: rgb(15 111 255 / .05);
  --tint-accent-08: rgb(15 111 255 / .08);
  --tint-accent-12: rgb(15 111 255 / .12);
  --tint-accent-16: rgb(15 111 255 / .16);
  --tint-accent-22: rgb(15 111 255 / .22);
  --tint-accent-30: rgb(15 111 255 / .30);
  --tint-accent-45: rgb(15 111 255 / .45);
  --tint-deep-12: rgb(10 79 204 / .12);
  --tint-soft-dot: rgb(111 168 255 / .16);
  --veil-white-03: rgb(255 255 255 / .03);
  --veil-white-06: rgb(255 255 255 / .06);
  --veil-white-10: rgb(255 255 255 / .10);
  --veil-white-14: rgb(255 255 255 / .14);
  --dot-neutral: rgb(255 255 255 / .07);
  --shade-60: rgb(0 0 0 / .60);
  --shade-45: rgb(0 0 0 / .45);
  --color-primary: var(--c-accent-dark);
  --color-accent: var(--c-accent);
  --color-text: var(--c-text);
  --color-bg: var(--c-bg);

  --f-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --f-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-h1: clamp(34px, 3.4vw, 48px);
  --fs-h2: clamp(26px, 3.4vw, 48px);
  --fs-h3: 22px;
  --w-regular: 400;
  --w-medium: 500;
  --r-shell: 32px;
  --r-card: 20px;
  --r-node: 16px;
  --r-note: 14px;
  --r-field: 12px;
  --r-tab: 10px;
  --r-mark: 8px;
  --r-icon: 6px;
  --r-canvas: 4px;
  --r-line: 2px;
  --r-pill: 999px;
  --r-dot: 50%;
  --nav-h: 64px;
  --shell-w: 1240px;
  --mast-w: 1280px;
  --read-w: 820px;
  --gutter: 32px;
  --section-space: 72px;
  --gap: 20px;
  --ease-ui: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: var(--w-regular) var(--fs-body)/1.6 var(--f-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: var(--c-clear); border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible, .demo-focus { outline: 2px solid var(--c-accent-soft); outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
svg, .status-dot { flex-shrink: 0; }
img { height: auto; }
h1, h2, h3 {
  margin: 0 0 .55em;
  font-family: var(--f-display);
  font-weight: var(--w-regular);
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); line-height: 1.1; text-wrap: pretty; }
h2 { font-size: var(--fs-h2); line-height: 1.15; text-wrap: balance; }
h3 { font-size: var(--fs-h3); line-height: 1.35; text-wrap: balance; }
:lang(ja) :is(h1, h2, h3, .lede__sub) { word-break: auto-phrase; }
:lang(ko) :is(h1, h2) { word-break: keep-all; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: var(--w-medium); }
pre, code, kbd { font-family: var(--f-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin: 1em 0;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-note);
  background: var(--c-rig);
  color: var(--c-text);
}
pre code { overflow-wrap: normal; white-space: inherit; }
:where(main, section, article, aside, div, li, .prose) { min-width: 0; }
:where(main, article) [id] { scroll-margin-top: 90px; }
.shell, .wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell { max-width: calc(var(--shell-w) + var(--gutter) * 2); }
.wrap { max-width: calc(var(--read-w) + var(--gutter) * 2); }
.section { padding-block: var(--section-space); }
.decor-bound { position: relative; isolation: isolate; overflow-x: clip; }
.keyword { white-space: nowrap; }
.muted { color: var(--c-muted); }
.prose { line-height: 1.8; }
.prose :is(h2, h3):not(:first-child) { margin-top: 1.4em; }
:where(.prose) a:not(.btn), .band a:not(.btn) { color: var(--c-accent-soft); text-decoration: underline; text-underline-offset: .2em; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  max-width: 100%;
  padding: 8px 24px;
  border-radius: var(--r-pill);
  font-size: var(--fs-body);
  font-weight: var(--w-medium);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: break-word;
  transition: transform var(--ease-ui), background var(--ease-ui);
}
.btn svg { width: 16px; height: 16px; }
.btn--solid {
  color: var(--c-ink);
  background: linear-gradient(180deg, var(--c-white), var(--c-white-2));
  box-shadow: 0 0 0 1px var(--veil-white-14), 0 8px 28px var(--veil-white-10);
}
.btn--solid:hover, .btn--solid.demo-hover { transform: translateY(-1px); }
.btn--ghost {
  color: var(--c-text);
  background: var(--veil-white-06);
  border: 1px solid var(--c-line);
}
.btn--ghost:hover, .btn--ghost.demo-hover { background: var(--veil-white-10); color: var(--c-text); }
.btn:not(:disabled):active, .btn.demo-press { transform: translateY(1px); }
.btn:disabled { color: var(--c-muted); background: var(--c-panel-2); border: 1px solid var(--c-line); box-shadow: none; transform: none; }
.btn--sm { min-height: 40px; padding-inline: 18px; font-size: 14px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.card, .panel {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--c-line);
  background: var(--c-panel);
  color: var(--c-text);
}
.card { border-radius: var(--r-card); }
.panel { border-radius: var(--r-shell); }
.card a:not(.btn):hover { text-decoration: underline; text-underline-offset: .2em; }

.masthead {
  position: relative;
  z-index: 5;
  background: var(--c-bg);
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line);
}
.masthead__bar {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(100%, calc(var(--mast-w) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 28px; height: 28px; border-radius: var(--r-mark); flex-shrink: 0; }
.brand__name { font: var(--w-medium) 16px/1.25 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.tabrail { height: 100%; min-width: 0; }
.tabrail ul {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tabrail li { height: 100%; }
.tabrail a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: 14px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--c-muted);
  transition: color var(--ease-ui);
}
.tabrail a:hover, .tabrail a[aria-current="page"] { color: var(--c-text); }
.tabrail a:hover, .brand:hover .brand__name { text-decoration: underline; text-underline-offset: .25em; }
.tabrail a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 14px -1px;
  height: 2px;
  border-radius: var(--r-line);
  background: var(--c-accent);
  box-shadow: 0 0 10px var(--tint-accent-45);
}
.masthead__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.language { position: relative; }
.lang, .hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  color: var(--c-muted);
  background: var(--c-bg);
}
.lang { min-height: 34px; font-size: var(--fs-small); white-space: nowrap; list-style: none; cursor: pointer; }
.lang::-webkit-details-marker { display: none; }
.lang:hover, .hamburger:hover { color: var(--c-text); border-color: var(--c-wire); }
.lang svg { width: 14px; height: 14px; }
.lang__short, .hamburger, .drawer, .nav-veil, .preview-menu { display: none; }
.lang-menu, .drawer ul, .site-footer ul { margin: 0; padding: 0; list-style: none; }
.lang-menu {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 8px) 0 auto auto;
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-field);
  background: var(--c-panel);
  color: var(--c-text);
}
.lang-menu a, .drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--r-mark);
}
.lang-menu a:hover, .drawer a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.lang-menu a[aria-current], .drawer a[aria-current] { background: var(--c-panel-2); color: var(--c-accent-soft); }
.hamburger { min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; }
.drawer {
  position: absolute;
  inset: calc(100% + 1px) 0 auto;
  max-height: calc(100dvh - var(--nav-h) - 1px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 20px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text);
}
.drawer ul + p { margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.nav-veil { position: fixed; inset: calc(var(--nav-h) + 1px) 0 0; background: var(--shade-60); color: var(--c-text); }

.site-footer {
  padding-block: 56px 84px;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
  color: var(--c-text);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr) minmax(0, 1.1fr) minmax(0, .7fr); gap: 28px; }
.footer-grid .brand { margin-bottom: 12px; }
.footer-grid p, .footer-grid li, .footer-end { color: var(--c-muted); font-size: 14px; }
.footer-grid h2 { margin-bottom: 12px; font-size: 15px; letter-spacing: 0; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a[aria-current="true"] { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: .22em; }
.footer-end {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}

.band { --band-muted: var(--c-muted); --band-link: var(--c-accent-soft); background: var(--c-bg); color: var(--c-text); }
.band--tint, .band--invert { --band-muted: var(--c-band-muted); --band-link: var(--c-band-link); color: var(--c-band-text); }
.band--tint { background: var(--c-band-tint); }
.band--invert { background: var(--c-band-invert); }
.band .muted { color: var(--band-muted); }
.band a:not(.btn) { color: var(--band-link); }
.band:focus-within :focus-visible { outline-color: var(--band-link); }

.reveal { opacity: 1; }
.reveal-ready .reveal { transition: opacity .55s ease, transform .55s ease; }
.reveal-ready .reveal:not(.shown):not(:focus-within) { opacity: 0; transform: translateY(10px); }

@media (max-width: 1280px) {
  .masthead__bar { gap: 24px; }
  .tabrail a { padding-inline: 10px; }
  .tabrail a[aria-current="page"]::after { inset-inline: 10px; }
}
@media (max-width: 1120px) {
  :root:not(:lang(zh)) .tabrail { display: none; }
  :root:not(:lang(zh)) :is(.hamburger, .drawer:not([hidden]), .nav-veil:not([hidden])) { display: flex; }
  :root:not(:lang(zh)) .drawer:not([hidden]) { display: block; }
}
@media (max-width: 1023px) {
  .masthead__bar { gap: 14px; }
  .tabrail { display: none; }
  .hamburger { display: inline-flex; }
  .masthead__tools { margin-left: auto; }
  .drawer:not([hidden]), .nav-veil:not([hidden]), .preview-menu { display: block; }
  .preview-menu .drawer { display: none; }
  .preview-menu[open] .drawer { display: block; }
  .preview-menu summary { cursor: pointer; list-style: none; }
  .preview-menu summary::-webkit-details-marker { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --fs-h1: clamp(24px, 7vw, 30px); --section-space: 56px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --section-space: 44px; }
  .tilt { transform: none !important; }
  .brand__name { max-width: min(16.5rem, calc(100vw - 128px)); }
  .masthead .brand { flex-shrink: 1; min-width: 0; }
  .masthead .brand__name { font-size: 14px; }
  .lang__full, .lang svg { display: none; }
  .lang__short { display: inline; }
  .lang { padding-inline: 9px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-grid__brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}