:root {
  --bg: #F6F7F4;
  --bg-panel: #EFF0EC;
  --bg-panel-2: #E7E8E3;
  --border: #DFE0DA;
  --border-strong: #CDCFC7;
  --accent: #B9771F;
  --accent-dark: #8E5A14;
  --accent-ring: rgba(185, 119, 31, 0.18);
  --text: #22221F;
  --text-soft: #45453F;
  --text-muted: #6E6E68;
  --text-faint: #9A9A93;
  --success: #3F7F57;
  --warn: #A0681A;
  --error: #B0453B;
  --surface: #FCFCFA;
  --chrome: #F2F3EF;
  --win-dot: #D3D4CE;
  --row-line: #ECEDE8;
  --side-bg: #F7F8F5;
  --menu-hover: #E9EAE5;
  --ink: #22221F;
  --ink-raise: #2B2B27;
  --ink-hover: #383833;
  --ink-line: #3A3A35;
  --ink-dot: #4C4C46;
  --on-ink: #F6F7F4;
  --log-fg: #DEDED7;
  --log-dim: #8D8D85;
  --log-info: #93AE9D;
  --log-warn: #D4A45E;
  --log-path: #B4BFC6;
  --topo-base: #E6E9E4;
  --topo-base-hi: #ECEEEA;
  --topo-base-lo: #DFE4E3;
  --topo-glow: #F3F4F0;
  --topo-wash: #D8DFE1;
  --topo-line: #D1D8D0;
  --topo-line-2: #CBD3D8;
  --topo-index: #BBC5BD;
  --canvas-edge: #D9DCD5;
  --mask-solid: #000;
  --veil: rgba(34, 34, 31, 0.24);
  --shadow-near: 0 1px 2px rgba(34, 34, 31, 0.08), 0 3px 8px -2px rgba(34, 34, 31, 0.06);
  --shadow-far: 0 28px 56px -22px rgba(40, 50, 46, 0.30), 0 64px 120px -48px rgba(40, 50, 46, 0.22);
  --shadow-float-near: 0 2px 4px rgba(20, 20, 18, 0.18), 0 10px 20px -8px rgba(20, 20, 18, 0.24);
  --shadow-float-far: 0 36px 72px -24px rgba(20, 24, 22, 0.42), 0 80px 140px -56px rgba(20, 24, 22, 0.30);
  --shadow-menu: 0 1px 2px rgba(34, 34, 31, 0.06), 0 18px 40px -16px rgba(34, 34, 31, 0.22);
  --shadow-card: 0 1px 2px rgba(34, 34, 31, 0.05), 0 10px 24px -14px rgba(34, 34, 31, 0.16);
  --r-ctl: 6px;
  --r-card: 10px;
  --r-pill: 999px;
  --r-round: 50%;
  --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;
  --weight-regular: 400;
  --weight-medium: 500;
  --gutter: 24px;
  --content-width: 1296px;
  --reading-width: 800px;
  --header-width: 1280px;
  --head-height: 64px;
  --section-space: 96px;
  --motion-fast: 160ms;
  --motion-reveal: 480ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); 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: 15px;
  line-height: 1.6;
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-ring); }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-ctl); }
[hidden] { display: none !important; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg, .badge-dot, .dot-on, .dots i { flex-shrink: 0; }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--weight-regular); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: 20px; line-height: 1.4; }
strong { font-weight: var(--weight-medium); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; min-width: 0; overflow-x: auto; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text); font-size: 13px; }
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.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); }
.grid > *, .hero-top > *, .footer-grid > *, .feature-tray > *, .dl-grid > * { min-width: 0; }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--text-muted); }
.stack > * + * { margin-top: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--on-ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose > * + *, .prose section > * + * { margin-top: 20px; }
.prose h2 { margin-top: 52px; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { line-height: 1.85; }
.prose ul, .prose ol { padding-left: 1.5em; list-style: revert; }
.prose li + li { margin-top: 8px; }
.prose :not(pre) > code { padding: 2px 5px; border-radius: var(--r-ctl); background: var(--bg-panel); color: var(--text); font-size: 0.9em; }
.panel, .card {
  padding: 28px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.panel { background: var(--bg-panel); color: var(--text); box-shadow: none; }
.card p { margin-top: 10px; color: var(--text-muted); }
.eyebrow { margin-bottom: 10px; color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  min-height: 46px; padding: 10px 22px; border: 1px solid var(--border);
  border-radius: var(--r-pill); background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: var(--weight-medium); letter-spacing: -0.005em;
  line-height: 1.5; text-align: center; text-decoration: none;
  transition: background-color var(--motion-fast) ease;
}
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: var(--shadow-near); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--ink-hover); color: var(--on-ink); border-color: var(--ink-hover); text-decoration: none; }
.btn-ghost { background: var(--bg-panel-2); color: var(--text); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--bg-panel); color: var(--text); text-decoration: none; }
.btn:active, .btn.is-pressed { background: var(--ink-raise); color: var(--on-ink); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border); box-shadow: none; }
.site-head, #site-header { position: relative; z-index: 40; }
.head-row {
  width: 100%; max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  padding-inline: var(--gutter); margin-inline: auto;
  min-height: var(--head-height); display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: var(--weight-medium); letter-spacing: -0.01em; justify-self: start; flex-shrink: 0; white-space: nowrap; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.nav { min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 14px;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text);
  font: inherit; font-size: 15px; white-space: nowrap; cursor: pointer;
}
.nav-link:hover { color: var(--text); background: var(--bg-panel); text-decoration: none; }
.nav-link.is-active, .nav-link[aria-current="page"] { color: var(--accent-dark); }
.chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav-more, .language-picker { position: relative; }
.nav-more > summary { list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 248px; padding: 6px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-menu);
}
.nav-menu a { display: block; padding: 10px 12px; min-height: 44px; border-radius: var(--r-ctl); color: var(--text); font-size: 14px; line-height: 1.5; }
.nav-menu a:hover { background: var(--bg-panel); color: var(--text); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--accent-dark); }
.nav-menu small { display: block; color: var(--text-muted); font-size: 12px; }
.head-tools { justify-self: end; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--bg); color: var(--text); font-size: 14px; white-space: nowrap;
}
.lang:hover, .menu-toggle:hover { background: var(--bg-panel); color: var(--text); }
.lang svg, .menu-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-short { display: none; }
.language-menu { left: auto; right: 0; transform: none; width: 190px; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: 10px; }
.mobile-drawer { display: none; }
.menu-veil { position: fixed; inset: var(--head-height) 0 0; z-index: -1; background: var(--veil); color: var(--text); border: 0; width: 100%; }
.preview-menu { display: none; }
.site-footer {
  padding-top: 60px; padding-bottom: 28px; border-top: 1px solid var(--border);
  background: var(--bg-panel); color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 0.8fr; gap: 40px; }
.footer-brand p { max-width: 300px; margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.footer-title { margin-bottom: 16px; font-size: 14px; font-weight: var(--weight-medium); }
.footer-links { display: grid; gap: 7px; }
.footer-links a { display: inline-block; padding-top: 3px; padding-bottom: 3px; color: var(--text-muted); font-size: 13px; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--accent-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--text-muted); }
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(12px); }
.reveal { transition: opacity var(--motion-reveal) ease, transform var(--motion-reveal) ease; }
.reveal.shown { opacity: 1; transform: none; }
.hero { padding-top: 44px; overflow-x: clip; padding-bottom: 30px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 452px; column-gap: 64px; align-items: end; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 28px;
  padding: 3px 12px 3px 11px; margin-bottom: 22px; max-width: 100%;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-soft); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.01em;
}
.badge-dot { position: relative; width: 7px; height: 7px; border-radius: var(--r-round); background: var(--accent); }
.badge-dot::after { content: ""; position: absolute; inset: -4px; border-radius: var(--r-round); background: var(--accent-ring); }
.hero-title { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.hero-title > span { display: block; }
.hero-title .t2 { color: var(--text-muted); }
.hero-aside { padding-bottom: 2px; }
.hero-desc { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.hero-desc strong { color: var(--text); font-weight: var(--weight-medium); }
.meta-rows { display: grid; gap: 12px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.meta-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; }
.meta-row dt { color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; }
.meta-row dd { margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li, .tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface);
  color: var(--text-soft); font-family: var(--font-mono); font-size: 12px;
  max-width: 100%; overflow: hidden; overflow-wrap: anywhere;
}
.platforms { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.plat { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; color: var(--text-soft); font-size: 13.5px; }
.plat svg { width: 15px; height: 15px; flex: none; fill: currentColor; }
.plat:hover { color: var(--accent-dark); text-decoration: none; }
@media (max-width: 1280px) {
  .head-row { display: flex; justify-content: space-between; }
  .nav { margin-left: auto; }
  .head-tools { margin-left: 16px; }
}
@media (max-width: 1180px) {
  .hero-top { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 44px; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .head-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block; position: absolute; top: var(--head-height); left: 0; right: 0;
    z-index: 3; max-height: calc(100dvh - var(--head-height)); overflow-y: auto;
    overscroll-behavior: contain; padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text);
    box-shadow: var(--shadow-menu);
  }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); border-radius: var(--r-ctl); }
  .mobile-drawer a:hover { background: var(--bg-panel); color: var(--text); text-decoration: none; }
  .mobile-drawer a[aria-current="page"] { color: var(--accent-dark); }
  .drawer-languages { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
  .preview-menu { display: block; position: relative; }
  .preview-menu summary { display: flex; min-height: 44px; align-items: center; padding-inline: 12px; border: 1px solid var(--border); border-radius: var(--r-pill); cursor: pointer; }
  .preview-menu .nav-menu { left: auto; right: 0; transform: none; }
}
@media (max-width: 920px) {
  .hero { padding-top: 32px; }
  .hero-top { grid-template-columns: 1fr; row-gap: 26px; }
  .hero-aside { max-width: 560px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero-title { font-size: clamp(24px, 4vw, 30px); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 56px; }
  .head-row { gap: 8px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand-mark { width: 26px; height: 26px; }
  .head-tools { gap: 6px; margin-left: auto; }
  .lang { min-height: 44px; padding-inline: 10px; }
  .lang-text { display: none; }
  .lang-short { display: inline; }
  .language-menu { right: 0; }
  .hero-title { font-size: clamp(26px, 7.4vw, 30px); }
  h2 { font-size: 25px; }
  .cta-row { margin-top: 22px; }
  .btn { min-height: 44px; padding: 10px 20px; font-size: 14.5px; }
  .grid, .footer-grid { grid-template-columns: 1fr; }
  .panel, .card { padding: 22px; }
  .footer-grid { gap: 28px; }
  .tilt, [data-tilt] { transform: none !important; }
  .chips { flex-direction: row; flex-wrap: wrap; }
}
@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; }
}