:root {
  --bg: #FFFFFF;
  --panel-lime: #F1FBE4;
  --panel-lilac: #F3EFFF;
  --line: #E6E6E6;
  --accent: #FF6A13;
  --accent-dark: #C2410C;
  --ink: #111111;
  --ink-soft: #2B2B2B;
  --ink-muted: #6B6B6B;
  --ok: #1FB877;
  --warn: #D99A00;
  --err: #E23B3B;
  --grape: #7C5CFF;
  --lime: #D7F542;
  --mint: #1FB877;
  --clear: transparent;
  --white-12: rgba(255,255,255,.12);
  --white-16: rgba(255,255,255,.16);
  --white-22: rgba(255,255,255,.22);
  --white-40: rgba(255,255,255,.40);
  --white-56: rgba(255,255,255,.56);
  --white-72: rgba(255,255,255,.72);
  --white-88: rgba(255,255,255,.90);
  --ink-14: rgba(17,17,17,.14);
  --ink-64: rgba(17,17,17,.64);
  --veil-flame: rgba(122,34,0,.22);
  --veil-flame-deep: rgba(92,22,0,.26);
  --shadow-lift: 0 8px 24px rgba(17,17,17,.07);
  --font-display: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-body: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-mono: "JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --r-container: 32px;
  --r-card: 24px;
  --r-panel: 20px;
  --r-field: 10px;
  --r-tag: 8px;
  --r-pill: 999px;
  --r-round: 50%;
  --r-line: 2px;
  --topbar-h: 72px;
  --gutter: 32px;
  --width-reading: 800px;
  --width-content: 1200px;
  --width-header: 1280px;
  --size-h1: clamp(34px,3.4vw,48px);
  --size-h2: clamp(26px,3vw,36px);
  --size-h3: 22px;
  --size-body: 16px;
  --size-small: 14px;
  --weight-regular: 400;
  --weight-medium: 500;
  --leading-body: 1.6;
  --leading-title: 1.1;
  --tracking-title: -.02em;
  --time-ui: .18s;
  --time-reveal: .55s;
  --ease-ui: ease;
}
*, *::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(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, select, textarea { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; border-radius: var(--r-tag); }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-regular); text-wrap: balance; }
h1 { font-size: var(--size-h1); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
h2 { font-size: var(--size-h2); line-height: 1.2; letter-spacing: var(--tracking-title); }
h3 { font-size: var(--size-h3); line-height: 1.35; }
p { margin: 0 0 1.25em; }
strong { font-weight: var(--weight-medium); }
small, .text-small { font-size: var(--size-small); }
.text-muted { color: var(--ink-muted); }
.keep-word { white-space: nowrap; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 40px; }
.wrap { width: 100%; max-width: calc(var(--width-content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: calc(var(--width-reading) + var(--gutter) * 2); }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-title { margin: 0 0 24px; }
.section-lede { max-width: 660px; color: var(--ink-muted); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid > *, .wrap > *, .prose, .prose div, .prose section, .prose article { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.card { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); color: var(--ink); min-width: 0; }
.card h3 { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.panel { position: relative; overflow-x: clip; border-radius: var(--r-container); padding: 64px; background: var(--panel-lime); color: var(--ink); }
.panel--lilac { background: var(--panel-lilac); color: var(--ink); }
.inset-section { padding-inline: 24px; }
.prose { line-height: 1.85; }
.prose h2 { margin: 64px 0 24px; scroll-margin-top: 32px; }
.prose h3 { margin: 36px 0 16px; scroll-margin-top: 32px; }
.prose a:not(.btn) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .2em; }
.prose li + li { margin-top: 10px; }
.prose :not(pre) > code { font-size: .9em; }
.prose figure { margin-inline: 0; max-width: 100%; }
.prose img { border-radius: var(--r-panel); }
.prose blockquote { margin-inline: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-size: 14px; }
.skip:focus { top: 12px; }
.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; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: 1px solid var(--clear);
  border-radius: var(--r-pill); font-size: 16px; line-height: 1.3; text-align: center;
  background: var(--bg); color: var(--ink);
  transition: background-color var(--time-ui) var(--ease-ui),border-color var(--time-ui) var(--ease-ui);
}
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--ink-soft); color: var(--bg); }
.btn--line { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn--line:hover, .btn--line.is-hover { border-color: var(--ink); }
.btn:active, .btn.is-active { border-color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); color: var(--ink-muted); border-color: var(--line); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.btn.is-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.text-link { text-decoration: underline; text-underline-offset: .25em; }
.topbar { position: relative; z-index: 40; height: var(--topbar-h); background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.topbar-in {
  position: relative; max-width: min(100%,calc(var(--width-header) + var(--gutter) * 2));
  height: 100%; 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: 11px; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.topnav { display: flex; align-items: center; height: 100%; min-width: 0; margin-left: auto; }
.tabs { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; gap: 0; }
.tabs li { display: flex; height: 100%; }
.tab { position: relative; display: flex; align-items: center; padding-inline: 18px; font-size: 15px; color: var(--ink-muted); white-space: nowrap; transition: color var(--time-ui) var(--ease-ui); }
.tab:hover, .tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: var(--r-line); background: var(--accent); color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-box { position: relative; }
.lang { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 13px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--ink); font-size: 14px; white-space: nowrap; }
.lang:hover { border-color: var(--ink); }
.lang svg { width: 16px; height: 16px; }
.caret { font-size: 11px; color: var(--ink-muted); }
.lang-short { display: none; }
.language-menu { position: absolute; top: calc(100% + 12px); right: 0; width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lift); z-index: 4; }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-field); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--panel-lime); color: var(--ink); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 3; padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--ink); max-height: calc(100dvh - var(--topbar-h)); overflow-y: auto; overscroll-behavior: contain; }
.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 16px; border-radius: var(--r-field); }
.mobile-drawer a[aria-current] { background: var(--panel-lime); color: var(--ink); }
.mobile-drawer p { margin: 20px 16px 8px; font-size: 14px; color: var(--ink-muted); }
.nav-veil { position: fixed; inset: var(--topbar-h) 0 0; z-index: 30; border: 0; padding: 0; background: var(--ink-64); color: var(--bg); }
.preview-mobile { display: none; }
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding-top: 64px; padding-bottom: 28px; background: var(--bg); color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.2fr .75fr; gap: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { margin: 20px 0 0; max-width: 300px; font-size: 14px; color: var(--ink-muted); }
.footer-title { margin: 0 0 18px; font-size: 15px; font-weight: var(--weight-medium); }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-list li + li { margin-top: 10px; }
.footer-list a { display: inline-block; padding-block: 3px; overflow-wrap: anywhere; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
html.reveal-ready .reveal { transition: opacity var(--time-reveal) var(--ease-ui),transform var(--time-reveal) var(--ease-ui); }
.reveal.shown { opacity: 1; transform: none; }
@media (min-width: 1400px) {
  .topbar-in { max-width: 1440px; padding-left: 64px; padding-right: 48px; gap: 0; }
  .header-tools { margin-left: 18px; }
}
@media (max-width: 1100px) {
  .topbar-in { gap: 14px; }
  .tab { padding-inline: 12px; }
  .tab[aria-current="page"]::after { left: 12px; right: 12px; }
  .footer-grid { gap: 28px; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .topnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) { display: block; }
  .preview-mobile { display: block; position: relative; }
  .preview-mobile > summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; }
  .preview-mobile nav { position: absolute; right: 0; top: calc(100% + 16px); width: min(280px,calc(100vw - 32px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 12px; }
  .preview-mobile nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; }
  .grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel { padding: 40px; }
}
@media (max-width: 768px) {
  :root { --size-h1: clamp(24px,5vw,30px); --gutter: 20px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar-in { gap: 10px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { padding-inline: 11px; min-height: 40px; }
  .lang svg { display: none; }
  .grid--2, .grid--3, .footer-grid { grid-template-columns: minmax(0,1fr); }
  .card { padding: 24px; }
  .panel { padding: 32px 20px; }
  .inset-section { padding-inline: 16px; }
  .footer-grid { gap: 32px; }
  .footer-bottom { margin-top: 32px; }
  .site-footer { margin-top: 56px; padding-top: 40px; }
  .tilt, [data-tilt] { transform: none !important; }
  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; }
}