:root {
  --bg: #FFFFFF;
  --bg-panel: #FFFFFF;
  --bg-panel-2: #F4F3EF;
  --bg-soft: #FAF9F7;
  --border: #E4E2DC;
  --border-strong: #CFCCC4;
  --accent: #F4581A;
  --accent-dark: #C2400C;
  --accent-soft: rgba(244,88,26,.09);
  --accent-dot: rgba(244,88,26,.30);
  --text: #141826;
  --text-muted: #5B6070;
  --text-faint: #8C909B;
  --success: #17A57E;
  --success-ink: #087252;
  --success-soft: rgba(23,165,126,.12);
  --warn: #D98A0B;
  --warn-ink: #815000;
  --error: #D2363A;
  --pointer: #6C4CF0;
  --toggle-off: #D9D6CE;
  --on-accent: #FFFFFF;
  --clear: transparent;
  --veil: rgba(20,24,38,.32);
  --font-display: "Inter","Noto Sans SC","PingFang SC","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","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --weight-display: 900;
  --radius: 6px;
  --radius-inner: 4px;
  --radius-mark: 2px;
  --radius-dot: 1px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --shadow-1: 0 1px 2px rgba(20,24,38,.05),0 10px 28px -12px rgba(20,24,38,.14);
  --shadow-2: 0 2px 6px rgba(20,24,38,.07),0 22px 44px -16px rgba(20,24,38,.24);
  --shadow-3: 0 3px 8px rgba(20,24,38,.12),0 16px 30px -10px rgba(108,76,240,.45);
  --shadow-cta: 0 1px 2px rgba(194,64,12,.25),0 10px 22px -10px rgba(244,88,26,.65);
  --shadow-knob: 0 1px 2px rgba(20,24,38,.25);
  --shadow-pointer: 0 4px 6px rgba(108,76,240,.35);
  --nav-h: 68px;
  --peek: 48px;
  --container: 1200px;
  --header-container: 1280px;
  --reading: 820px;
  --gutter: 48px;
  --section-space: 88px;
  --ease: .18s ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; padding: 0; }
html.nav-open { overflow: hidden; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { border-radius: var(--radius); }
button { color: var(--text); background: var(--bg-panel); }
img, svg { display: block; max-width: 100%; }
svg, .icon, .dot { flex-shrink: 0; }
img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pointer); outline-offset: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }
.wrap {
  width: 100%; max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto; padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section--muted { background: var(--bg-panel-2); color: var(--text); }
.decorated { position: relative; overflow-x: clip; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid > *, .hero__top > *, .pane__body > *, .footer-grid > *, .rail-step > * { min-width: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(34px,3.4vw,48px); line-height: 1.14; letter-spacing: -.015em; font-weight: var(--weight-display); margin: 0 0 24px; }
h2 { font-size: clamp(28px,3vw,40px); line-height: 1.2; letter-spacing: -.015em; font-weight: var(--weight-display); margin: 0 0 28px; }
h3 { font-size: 22px; line-height: 1.35; font-weight: var(--weight-heavy); margin: 0 0 14px; }
h4 { font-size: 18px; margin: 0 0 12px; }
p { margin: 0 0 18px; }
.keep { white-space: nowrap; }
.hot { color: var(--accent); }
.title-line { display: block; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.mono, code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .88em; }
pre {
  margin: 20px 0; padding: 20px; max-width: 100%; min-width: 0;
  overflow-x: auto; background: var(--bg-panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); line-height: 1.75;
}
pre code { white-space: pre; overflow-wrap: normal; font-size: 13px; }
.prose, .doc-content { min-width: 0; }
.prose p, .doc-content p { line-height: 1.9; }
.prose a:not(.btn), .doc-content a:not(.btn) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .doc-content h2 { margin-top: 52px; }
.prose h3, .doc-content h3 { margin-top: 32px; }
.prose li, .doc-content li { margin-block: 8px; }
.prose img { border-radius: var(--radius); }
.yaml-tag {
  margin: 0 0 14px; font-family: var(--font-mono); font-size: 13.5px;
  font-weight: var(--weight-bold); letter-spacing: .02em; color: var(--accent);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 10px 26px; border: 1px solid var(--clear);
  border-radius: var(--radius); font-family: var(--font-display); font-size: 16px;
  font-weight: var(--weight-heavy); text-align: center;
  background: var(--bg-panel); color: var(--text); line-height: 1.4;
  transition: background-color var(--ease),border-color var(--ease),transform var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--solid { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--accent-dark); color: var(--on-accent); transform: translateY(-1px); }
.btn--line { background: var(--bg-panel); color: var(--text); border-color: var(--border-strong); font-weight: var(--weight-bold); }
.btn--line:hover { border-color: var(--text); transform: translateY(-1px); }
.btn--quiet { background: var(--bg-panel-2); 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; }
.card, .panel {
  padding: 28px; min-width: 0; background: var(--bg-panel); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.card--lift { transition: transform var(--ease),box-shadow var(--ease); }
.card--lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.topbar { position: relative; z-index: 40; height: var(--nav-h); background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.header-shell {
  position: relative; width: 100%; max-width: min(100%,calc(var(--header-container) + var(--gutter) * 2));
  height: 100%; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brandmark {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: 18px; letter-spacing: -.01em; white-space: nowrap;
}
.brandmark img { width: 32px; height: 32px; flex-shrink: 0; }
.desktop-nav { margin-left: auto; min-width: 0; }
.navrail { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.navrail__item {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 12px;
  border-radius: var(--radius); font-size: 15px; font-weight: var(--weight-medium);
  color: var(--text-muted); transition: color var(--ease),background-color var(--ease); white-space: nowrap;
}
.navrail__item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.navrail__item:hover { color: var(--text); background: var(--bg-panel-2); }
.navrail__item[aria-current="page"] { color: var(--text); font-weight: var(--weight-bold); }
.navrail__item[aria-current="page"] svg { stroke: var(--accent); }
.desktop-nav .navrail__item[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.language { position: relative; }
.langpick {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-weight: var(--weight-medium); color: var(--text);
  background: var(--bg-panel); white-space: nowrap; list-style: none;
}
.langpick::-webkit-details-marker { display: none; }
.langpick:hover { border-color: var(--border-strong); }
.langpick svg { width: 15px; height: 15px; fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; }
.langpick__caret { color: var(--text-muted); font-size: 11px; }
.lang-short { display: none; }
.language-menu {
  position: absolute; z-index: 45; right: 0; top: calc(100% + 12px); min-width: 180px;
  padding: 8px; background: var(--bg-panel); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-2);
}
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--radius); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel-2); color: var(--text); }
.menu-toggle {
  display: none; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--bg-panel); color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.mobile-drawer {
  position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 43;
  padding: 18px var(--gutter); background: var(--bg-panel); color: var(--text);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-2);
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 14px; }
.drawer-languages { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 30; border: 0; border-radius: 0; background: var(--veil); color: var(--text); }
.site-footer { background: var(--bg-panel-2); color: var(--text); border-top: 1px solid var(--border); padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.25fr .7fr; gap: 40px; }
.footer-intro { max-width: 310px; margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.footer-heading { margin-bottom: 16px; font-family: var(--font-mono); color: var(--accent-dark); font-size: 13px; font-weight: var(--weight-bold); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--text-muted); font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.reveal { opacity: 1; transform: none; }
.reveal-pending { opacity: 0; transform: translateY(14px); transition: opacity .55s ease,transform .55s 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: 1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1280px) {
  .mobile-drawer, .nav-veil { display: none !important; }
}
@media (max-width: 960px) {
  :root { --gutter: 20px; --section-space: 64px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(24px,5vw,30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 48px; }
  .header-shell { gap: 8px; }
  .brandmark { gap: 7px; }
  .brandmark span { font-size: 16px; }
  .brandmark img { width: 28px; height: 28px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .langpick { padding: 8px; min-height: 44px; }
  .langpick svg { display: none; }
  .header-tools { margin-left: auto; gap: 6px; }
  .grid, .footer-grid { grid-template-columns: minmax(0,1fr); }
  .btn { min-height: 48px; padding: 10px 20px; }
  .card, .panel { padding: 22px; }
  .tilt, [data-tilt] { transform: none !important; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .reveal-pending { opacity: 1; transform: none; }
}