:root {
  --bg: #FFFFFF;
  --bg-panel: #F8F7F5;
  --bg-panel-2: #F1F0EC;
  --border: #E7E5E0;
  --border-strong: #D9D6CF;
  --accent: #2A2F45;
  --accent-dark: #151826;
  --accent-soft: #4C5476;
  --accent-tint: #EEF0F5;
  --text: #1B1C22;
  --text-muted: #6B6E78;
  --text-faint: #9A9CA4;
  --success: #2F9E6B;
  --warn: #C98A12;
  --error: #D2463C;
  --on-accent: #FFFFFF;
  --butter-bg: #FDF8E7;
  --butter-line: #F0E0AC;
  --butter-ink: #8A6A12;
  --mint-bg: #EEF8F3;
  --mint-line: #CBEAD9;
  --mint-ink: #2C7A57;
  --mint-mark: #C4EAD7;
  --sky-bg: #EFF5FC;
  --sky-line: #D0E1F3;
  --sky-ink: #2F5F8F;
  --lilac-bg: #F5F1FA;
  --lilac-line: #E0D6F0;
  --lilac-ink: #6A4F9A;
  --peach-bg: #FDF2EC;
  --peach-line: #F3D5C5;
  --peach-ink: #A2522E;
  --halo-apricot: #FCE5D0;
  --halo-mint: #DDF2E8;
  --tl-red: #FF5F57;
  --tl-yellow: #FEBC2E;
  --tl-green: #28C840;
  --folder-back: #A3BBD1;
  --folder-front-a: #CCDCEB;
  --folder-front-b: #B2C8DD;
  --folder-ink: #7D97B1;
  --icon-a: #FFFFFF;
  --icon-b: #F1F0EC;
  --clear: transparent;
  --hairline-ink: rgba(21, 24, 38, .08);
  --veil: rgba(21, 24, 38, .24);
  --shadow-ink: #1B1C22;
  --shadow-xs: 0 1px 2px rgba(27, 28, 34, .05);
  --shadow-far: 0 12px 30px rgba(27, 28, 34, .06), 0 1px 3px rgba(27, 28, 34, .03);
  --shadow-float: 0 24px 60px rgba(27, 28, 34, .08), 0 2px 6px rgba(27, 28, 34, .04);
  --shadow-near: 0 30px 64px rgba(27, 28, 34, .11), 0 3px 8px rgba(27, 28, 34, .05);
  --shadow-window: 0 44px 96px rgba(27, 28, 34, .14), 0 12px 28px rgba(27, 28, 34, .06);
  --shadow-btn: 0 10px 24px rgba(42, 47, 69, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  --shadow-knob: 0 1px 3px rgba(21, 24, 38, .22);
  --r-xs: 7px;
  --r-sm: 10px;
  --r-btn: 12px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --r-circle: 50%;
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 40px;
  --content-width: 1240px;
  --reading-width: 800px;
  --nav-h: 72px;
  --section-space: 104px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration: 200ms;
  --k: 1;
}
*, *::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);
  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, video { max-width: 100%; vertical-align: middle; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--mint-mark); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; text-wrap: balance; }
h1, .h1 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; }
h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 22px; font-weight: 750; }
p { margin-block: 0 1.15em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
small, .small { font-size: 13px; }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.mono, code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .88em; overflow-wrap: anywhere; word-break: normal; }
:not(pre) > code { background: var(--bg-panel-2); color: var(--accent-dark); padding: .12em .35em; border-radius: var(--r-xs); }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 36px; }
.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(--section-space); padding-bottom: var(--section-space); }
.section--panel { background: var(--bg-panel); color: var(--text); }
.section--soft { background: var(--bg-panel-2); color: var(--text); }
.section-heading { margin-bottom: 40px; max-width: 760px; }
.section-heading h2 { margin: 10px 0 16px; }
.section-heading p { color: var(--text-muted); }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .04em; color: var(--text-muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > *, .hero__grid > *, .footer__grid > *, .feature-browser > *, .card > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.card, .panel {
  min-width: 0;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
}
.card h3 { margin: 18px 0 12px; }
.card p { color: var(--text-muted); }
.card__foot { margin-top: 24px; }
.icon-square {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-btn);
  background: var(--c-bg, var(--bg-panel));
  color: var(--c-ink, var(--accent));
  border: 1px solid var(--c-line, var(--border));
}
.icon-square svg { width: 22px; height: 22px; }
.c-butter { --c-bg: var(--butter-bg); --c-line: var(--butter-line); --c-ink: var(--butter-ink); }
.c-mint { --c-bg: var(--mint-bg); --c-line: var(--mint-line); --c-ink: var(--mint-ink); }
.c-sky { --c-bg: var(--sky-bg); --c-line: var(--sky-line); --c-ink: var(--sky-ink); }
.c-lilac { --c-bg: var(--lilac-bg); --c-line: var(--lilac-line); --c-ink: var(--lilac-ink); }
.c-peach { --c-bg: var(--peach-bg); --c-line: var(--peach-line); --c-ink: var(--peach-ink); }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font: 600 15.5px/1.35 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background-color var(--duration), border-color var(--duration);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--on-accent); transform: translateY(-1px); }
.btn--ghost { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn--ghost:hover, .btn--ghost.is-hover { background: var(--bg); color: var(--accent); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active, .btn.is-active { transform: translateY(1px); box-shadow: var(--shadow-xs); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.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--small { min-height: 44px; font-size: 14px; padding: 10px 16px; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--c-line, var(--butter-line));
  border-radius: var(--r-pill);
  background: var(--c-bg, var(--butter-bg));
  color: var(--c-ink, var(--butter-ink));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.badge__dot { width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--success); color: var(--on-accent); box-shadow: 0 0 0 3px var(--mint-mark); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.top, #site-header { position: relative; z-index: 50; background: var(--bg); color: var(--text); }
.top__inner {
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text); text-decoration: none; font: 800 17px/1.3 var(--font-display); letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.nav__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__list li { display: flex; align-items: center; flex-shrink: 0; }
.nav__list li + li::before { content: "·"; color: var(--text-faint); margin-inline: 13px; font-weight: 700; }
.nav__link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 2px; color: var(--text-muted); border-radius: var(--r-xs); font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--accent); font-weight: 650; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language { position: relative; }
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 8px 13px 8px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); font: 500 13.5px/1.2 var(--font-body); box-shadow: var(--shadow-xs); white-space: nowrap; }
.lang svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-muted); }
.lang__caret { color: var(--text-muted); font-size: 11px; }
.lang__short { display: none; }
.language__list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 4; min-width: 180px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); }
.language__list a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--r-xs); text-decoration: none; }
.language__list a:hover, .language__list a[aria-current] { background: var(--accent-tint); color: var(--accent); }
.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-btn); background: var(--bg); color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil { display: none; }
.site-footer { border-top: 1px solid var(--border); background: var(--bg-panel); color: var(--text); padding-top: 64px; padding-bottom: 28px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr .7fr; gap: 40px; }
.footer__brand p { max-width: 25em; margin-top: 18px; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.footer__title { margin: 0 0 16px; font-size: 14px; font-weight: 700; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__links a { display: inline-block; padding-block: 4px; font-size: 14px; color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer__links a:hover { color: var(--accent); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: var(--text-muted); }
.prose { min-width: 0; line-height: 1.9; }
.prose h2 { margin-top: 2.4em; margin-bottom: .8em; }
.prose h3 { margin-top: 1.8em; margin-bottom: .7em; }
.prose li + li { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose img { border-radius: var(--r-lg); }
.prose a { overflow-wrap: anywhere; }
.prose section, [id] { scroll-margin-top: 24px; }
.decorated { position: relative; overflow-x: clip; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal { transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.reveal.shown { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    z-index: 3;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px var(--gutter) 28px;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-float);
  }
  .mobile-drawer:not([hidden]) { display: block; }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer a { display: flex; width: 100%; align-items: center; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--accent-tint); color: var(--accent); }
  .mobile-drawer__languages { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
  .mobile-drawer__languages p { padding-inline: 14px; color: var(--text-muted); font-size: 13px; }
  .nav-veil:not([hidden]) { display: block; position: fixed; inset: var(--nav-h) 0 0; z-index: 1; border: 0; background: var(--veil); color: var(--text); }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --section-space: 72px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: clamp(24px, 5.5vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 56px; }
  .grid, .grid--two { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 24px; }
  .tilt, [data-tilt] { transform: none; }
  .top__inner { gap: 10px; }
  .brand { gap: 6px; font-size: 15px; }
  .brand__mark { width: 27px; height: 27px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang { min-height: 38px; padding-inline: 10px; }
  .lang svg { display: none; }
  .btn { min-height: 46px; padding-inline: 18px; font-size: 15px; }
  .footer__grid { gap: 30px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { margin-top: 32px; }
  pre { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}