:root {
  --c-bg: #ffffff;
  --c-panel: #f6f7f9;
  --c-ink-block: #0c0e14;
  --c-border: #e6e8ec;
  --c-accent: #f76808;
  --c-accent-dark: #c2410c;
  --c-text: #0f1115;
  --c-muted: #5f6672;
  --c-success: #1a9b5b;
  --c-warn: #d99100;
  --c-error: #d92d20;
  --c-on-accent: #0f1115;
  --c-ink-card: #151821;
  --c-ink-line: #262a35;
  --c-ink-line-strong: #323745;
  --c-on-ink: #f3f4f7;
  --c-on-ink-muted: #a3aab6;
  --c-on-ink-soft: #969eac;
  --c-on-ink-faint: #929aa8;
  --c-clear: transparent;
  --rgb-accent: 247 104 8;
  --rgb-white: 255 255 255;
  --rgb-black: 0 0 0;
  --rgb-ink-block: 12 14 20;
  --rgb-text: 15 17 21;
  --f-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-card: 8px;
  --r-block: 12px;
  --r-pill: 999px;
  --r-circle: 50%;
  --r-mark: 2px;
  --r-shot: 10px;
  --shadow-card: 0 1px 2px rgb(var(--rgb-text) / .06);
  --shadow-menu: 0 1px 2px rgb(var(--rgb-text) / .06), 0 12px 32px -12px rgb(var(--rgb-text) / .18);
  --shadow-device: inset 0 1px 0 rgb(var(--rgb-white) / .04), 0 1px 2px rgb(var(--rgb-black) / .4), 0 8px 16px -4px rgb(var(--rgb-black) / .35), 0 24px 48px -12px rgb(var(--rgb-black) / .5), 0 48px 80px -24px rgb(var(--rgb-black) / .45);
  --gutter: 24px;
  --page-gutter: 24px;
  --reading-width: 1120px;
  --header-width: 1280px;
  --header-h: 64px;
  --section-space: 140px;
  --rule-row: 42px;
  --scan-cycle: 6s;
  --ease-ui: cubic-bezier(.2, .7, .2, 1);
  --time-ui: 180ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: var(--c-clear); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-accent-dark); outline-offset: 4px; }
::selection { background: var(--c-accent); color: var(--c-text); }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 3.35vw, 48px); line-height: 1.14; }
h2 { font-size: clamp(24px, 2.3vw, 32px); }
h3 { font-size: 21px; }
p { margin-top: 0; }
code, pre, kbd { font-family: var(--f-mono); font-size: .875em; }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  color: var(--c-text);
  line-height: 1.9;
  tab-size: 2;
}
pre code { font-size: inherit; overflow-wrap: normal; word-break: normal; white-space: pre; }
hr { border: 0; border-top: 1px solid var(--c-border); margin-block: 32px; }
.wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap > *, .grid > *, .split > *, .prose, .panel, .surface-card { min-width: 0; }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section--panel { background: var(--c-panel); color: var(--c-text); }
.section--lined { border-top: 1px solid var(--c-border); }
.stack > * + * { margin-top: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; }
.surface-card, .panel {
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--shadow-card);
}
.surface-card h3, .panel h3 { margin-top: 0; }
.muted { color: var(--c-muted); }
.hl { color: var(--c-accent-dark); }
.nowrap { white-space: nowrap; }
.small { font-size: 13px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-text);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  max-width: 100%;
  border: 1px solid var(--c-clear);
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--time-ui), border-color var(--time-ui), color var(--time-ui);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn--primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: inset 0 1px 0 rgb(var(--rgb-white) / .22), 0 10px 26px -10px rgb(var(--rgb-accent) / .7);
}
.btn--primary:hover, .btn--primary.is-hover { background: var(--c-accent-dark); color: var(--c-bg); }
.btn--secondary { border-color: var(--c-border); background: var(--c-bg); color: var(--c-text); }
.btn--secondary:hover { background: var(--c-panel); color: var(--c-text); }
.btn--ghost {
  border-color: rgb(var(--rgb-white) / .18);
  background: rgb(var(--rgb-white) / .02);
  color: var(--c-on-ink);
}
.btn--ghost:hover { border-color: rgb(var(--rgb-white) / .38); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; box-shadow: none; }
.btn.is-focus { outline: 2px solid var(--c-accent-dark); outline-offset: 4px; }
.masthead {
  position: relative;
  z-index: 40;
  height: var(--header-h);
  background: var(--c-bg);
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
}
.masthead__inner {
  height: 100%;
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.brand__mark {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
}
.brand__mark--placeholder {
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-card);
}
.brand__name { font-family: var(--f-display); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand__sub { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-muted); }
.brand__sub::before { content: ""; width: 1px; height: 14px; background: var(--c-border); }
.primary-nav { margin-left: auto; min-width: 0; }
.primary-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-clear);
  color: var(--c-muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-current { background: var(--c-panel); color: var(--c-text); }
.nav-link[aria-current="page"] { font-weight: 650; }
.nav-link__caret { width: 10px; height: 10px; }
.nav-more, .language-picker { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--shadow-menu);
}
.menu-group { display: flex; flex-direction: column; min-width: 0; }
.menu-group__label { padding: 2px 10px 6px; font-size: 11.5px; font-weight: 600; color: var(--c-muted); }
.menu-item {
  display: flex;
  flex-direction: column;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--r-card);
  text-decoration: none;
}
.menu-item:hover, .menu-item[aria-current="page"] { background: var(--c-panel); color: var(--c-text); }
.menu-item__name { font-size: 14px; font-weight: 600; }
.menu-item__desc { font-size: 12px; line-height: 1.5; color: var(--c-muted); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}
.lang svg { width: 15px; height: 15px; color: var(--c-muted); }
.lang__short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 174px;
  padding: 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: var(--shadow-menu);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; border-radius: var(--r-card); }
.language-menu a:hover, .language-menu [aria-current="true"] { background: var(--c-panel); color: var(--c-text); }
.burger {
  display: none;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-text);
}
.burger svg { width: 20px; height: 20px; }
.mobile-nav {
  position: absolute;
  z-index: 3;
  inset: var(--header-h) 0 auto;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  color: var(--c-text);
}
.mobile-nav a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-card); text-decoration: none; }
.mobile-nav a:hover, .mobile-nav a[aria-current] { background: var(--c-panel); color: var(--c-text); }
.mobile-nav__label { margin: 16px 14px 4px; font-size: 13px; color: var(--c-muted); }
.nav-veil { position: fixed; z-index: 2; inset: var(--header-h) 0 0; border: 0; background: rgb(var(--rgb-black) / .35); color: var(--c-bg); }
.preview-disclosure > summary { list-style: none; cursor: pointer; }
.preview-disclosure > summary::-webkit-details-marker { display: none; }
.site-footer { margin-top: var(--section-space); padding-top: 64px; padding-bottom: 28px; border-top: 1px solid var(--c-border); background: var(--c-panel); color: var(--c-text); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; }
.footer-grid > * { min-width: 0; }
.footer-brand p { max-width: 28em; margin-top: 20px; color: var(--c-muted); font-size: 14px; }
.footer-title { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: block; padding-block: 6px; font-size: 13px; color: var(--c-muted); text-decoration: none; }
.footer-links a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 12px; color: var(--c-muted); }
.footer-languages, .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-bottom p { margin: 0; }
.reveal { opacity: 1; transform: none; }
html.reveal-enabled .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
html.reveal-enabled .reveal { transition: opacity .6s var(--ease-ui), transform .6s var(--ease-ui); }
.prose { overflow-wrap: break-word; }
.prose h2 { margin-top: 64px; scroll-margin-top: 88px; }
.prose h3 { margin-top: 36px; }
.prose p, .prose li { max-width: 78ch; }
.prose li + li { margin-top: 10px; }
.prose a { color: var(--c-accent-dark); }
.decoration-host { position: relative; overflow-x: clip; }
@media (min-width: 1281px) {
  .mobile-nav, .nav-veil { display: none !important; }
}
@media (max-width: 1280px) {
  .brand__sub { display: none; }
}
@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .header-tools { margin-left: auto; }
  .burger { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 5vw, 30px); }
  .grid, .split { grid-template-columns: minmax(0, 1fr); }
  :root { --section-space: 88px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --page-gutter: 12px; }
  .wrap { width: 100%; padding-inline: var(--gutter); }
  .masthead__inner { padding-inline: 16px; gap: 8px; }
  .brand__name { font-size: 15px; }
  .brand__sub { display: none; }
  .header-tools { margin-left: auto; gap: 6px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang { min-height: 44px; padding-inline: 12px; }
  .surface-card, .panel { padding: 20px; }
  .btn { padding-inline: 20px; font-size: 15px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .site-footer { padding-top: 40px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-enabled .reveal:not(.shown) { opacity: 1; transform: none; }
}