:root {
  color-scheme: light;
  --c-bg: #E4ECF3;
  --c-bg-top: #F2F6FA;
  --c-panel: #F6F9FC;
  --c-panel-2: #D7E2EC;
  --c-tray-end: #EAF1F8;
  --c-white: #FFFFFF;
  --c-white-0: rgba(255,255,255,0);
  --c-white-70: rgba(255,255,255,.7);
  --c-white-90: rgba(255,255,255,.9);
  --c-border: #C6D4E2;
  --c-border-soft: rgba(198,212,226,.72);
  --c-groove: rgba(215,226,236,.45);
  --c-accent: #1D6FA8;
  --c-accent-lift: #2A80BC;
  --c-accent-dark: #134E7A;
  --c-accent-05: rgba(29,111,168,.05);
  --c-accent-07: rgba(29,111,168,.07);
  --c-accent-12: rgba(29,111,168,.12);
  --c-accent-18: rgba(29,111,168,.18);
  --c-line: rgba(29,111,168,.42);
  --c-text: #142030;
  --c-muted: #55677B;
  --c-faint: #9AABBD;
  --c-ink-05: rgba(20,32,48,.05);
  --c-jade: #2E9D7A;
  --c-jade-ink: #1D6B53;
  --c-jade-soft: rgba(46,157,122,.15);
  --c-amber: #C9821F;
  --c-amber-ink: #875410;
  --c-amber-soft: rgba(201,130,31,.16);
  --c-error: #C8443A;
  --flag-red: var(--c-error);
  --flag-blue: #24498C;
  --flag-white: var(--c-white);
  --flag-edge: rgba(20,32,48,.16);

  --sh-tray: 0 24px 40px rgba(29,111,168,.12),0 4px 12px rgba(29,111,168,.06);
  --sh-brick: 0 10px 22px -6px rgba(29,111,168,.16),0 1px 2px rgba(20,32,48,.06);
  --sh-hub: 0 18px 40px -8px rgba(29,111,168,.24),0 2px 6px rgba(29,111,168,.08);
  --sh-window: 0 24px 48px -10px rgba(29,111,168,.24),0 2px 8px rgba(20,32,48,.08);
  --sh-cap: 0 14px 30px -8px rgba(29,111,168,.22),0 2px 4px rgba(20,32,48,.05);
  --sh-soft: 0 6px 18px -8px rgba(29,111,168,.18);
  --sh-panel: 0 18px 40px var(--c-accent-12);
  --sh-btn: 0 14px 26px -12px rgba(29,111,168,.55);
  --sh-ghost: 0 10px 24px -14px rgba(29,111,168,.35);
  --hl-edge: inset 0 0 0 1px rgba(255,255,255,.85);
  --hl-top: inset 0 1px 0 rgba(255,255,255,.95);
  --f-display: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans","Microsoft YaHei",system-ui,sans-serif;
  --f-body: "Inter","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --f-mono: "JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --r-tray: 24px;
  --r-brick: 16px;
  --r-panel: 14px;
  --r-btn: 10px;
  --r-nav: 8px;
  --r-tag: 6px;
  --r-pill: 999px;
  --rn-tray: 24;
  --rn-brick: 16;
  --rn-hub: 20;
  --rn-win: 14;
  --rn-tag: 6;
  --w-wrap: 1280px;
  --gutter: 40px;
  --header-h: 72px;
  --toc-h: 52px;
  --anchor-gap: 16px;
  --tap: 44px;
  --float-gap: 20px;
  --float-size: 40px;
  --float-clear: 88px;
  --s-gap: 16px;
  --card-pad: clamp(16px, 3vw, 32px);
  --section-y: clamp(48px, 8vw, 104px);
  --t-display: clamp(52px, 5vw, 64px);
  --t-section: clamp(26px, 3.6vw, 36px);
  --t-card: clamp(18px, 2vw, 22px);
  --t-body: 16px;
  --t-note: 14px;
  --t-label: 13px;
  --w-heavy: 800;
  --w-bold: 700;
  --w-medium: 600;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--anchor-gap));
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: var(--t-body)/1.6 var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(h1,h2,h3,h4,p,ul,ol,figure,blockquote,pre,dl,dd) { margin: 0; }
:where(h1,h2,h3,h4) { font-family: var(--f-display); line-height: 1.2; }
h1, h2 { text-wrap: balance; }
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-section); }
h3 { font-size: var(--t-card); }
p, .title-pretty { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
svg, .icon, .dot { flex-shrink: 0; }
[hidden] { display: none !important; }
small, .fine { color: var(--c-muted); font-size: var(--t-note); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: var(--r-nav); }
.no-break, .nowrap, .price-unit { white-space: nowrap; }
.mono, code, pre, .price-unit { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  overflow-x: auto;
  padding: var(--s-gap);
  background: var(--c-panel-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
}
pre code { white-space: pre; overflow-wrap: normal; }
.sprite, .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap {
  width: 100%;
  max-width: var(--w-wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.stack > * + * { margin-block-start: var(--s-gap); }
.grid, .card-grid { display: grid; gap: var(--s-gap); }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
:where(.grid, .card-grid, .head-row, .foot-grid, .hero-grid, .feature-browser) > * { min-width: 0; }
.panel, .card {
  min-width: 0;
  padding: var(--card-pad);
  background: var(--c-panel);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-panel), var(--hl-top);
}
.clip-decor { position: relative; overflow-x: clip; }
.clip-decor > .stripe-halo { position: absolute; inset-inline: 0; max-width: 100%; pointer-events: none; }
.intro { max-width: 38em; color: var(--c-muted); }
.prose { min-width: 0; max-width: 48em; }
.prose > * + * { margin-block-start: 1em; }
.prose > :is(h2,h3) { margin-block-start: 1.55em; }
.prose :is(ol,ul) { padding-inline-start: 1.5em; }
.prose li + li { margin-block-start: .4em; }
.prose a { color: var(--c-accent-dark); text-underline-offset: .16em; }
.h-plain {
  font-family: var(--f-display); font-weight: var(--w-heavy); font-size: var(--t-display);
  line-height: 1.1; letter-spacing: -.02em; color: var(--c-text);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; max-width: 100%; padding: 0 24px; border: 1px solid var(--c-white-0);
  border-radius: var(--r-btn); font-size: var(--t-body); font-weight: var(--w-bold);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: var(--c-white);
  background: linear-gradient(180deg,var(--c-accent-lift),var(--c-accent));
  box-shadow: var(--sh-btn), var(--hl-top);
}
.btn-ghost, .btn-secondary {
  color: var(--c-text); background: var(--c-panel); border-color: var(--c-border);
  box-shadow: var(--sh-ghost), var(--hl-top);
}
.btn:not(:disabled):hover, .demo-hover { transform: translateY(-1px); }
:is(.btn-ghost,.btn-secondary):hover, .btn-ghost.demo-hover { border-color: var(--c-faint); }
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; background: var(--c-panel-2); color: var(--c-muted); box-shadow: none; }
.eyebrow {
  display: inline-flex; align-items: center; max-width: 100%; min-height: 28px;
  padding: 2px 12px; border-radius: var(--r-pill); background: var(--c-panel);
  border: 1px solid var(--c-border-soft); font-size: var(--t-label);
  font-weight: var(--w-medium); color: var(--c-accent-dark);
}
.reveal { transition: opacity .36s var(--ease), transform .36s var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(16px); }
.reveal.pending:focus-within, .reveal.shown { opacity: 1; transform: none; }
#server-status {
  margin-block: 24px;
  padding: var(--s-gap);
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
  overflow: hidden;
}
#server-status + * { margin-block-start: 24px; }

/* Top bar and language picker */
.site-header, #site-header { position: relative; z-index: 20; height: var(--header-h); }
.head-row { height: 100%; display: flex; flex-wrap: nowrap; align-items: center; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  text-decoration: none; white-space: nowrap; color: var(--c-text);
}
.brand img { width: 28px; height: 28px; flex: none; }
.brand-word { font: var(--w-heavy) 20px/1.3 var(--f-display); letter-spacing: -.02em; }
.nav { flex: 1; min-width: 0; margin-left: auto; }
.nav-list {
  display: flex; justify-content: flex-end; align-items: center; list-style: none;
  gap: 4px; padding: 0; margin: 0;
}
.nav-list > li { display: flex; align-items: center; position: relative; }
.nav-list > li + li::before {
  content: "·"; color: var(--c-faint); padding-inline: 7px; flex-shrink: 0;
  font-weight: var(--w-bold); font-size: 15px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px;
  font-size: 15px; color: var(--c-muted); text-decoration: none; white-space: nowrap;
  padding: 6px 2px; background: none; border: 0; cursor: pointer; transition: color .2s ease;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-more.is-current > .nav-link { color: var(--c-text); }
.nav-link[aria-current="page"], .nav-more.is-current > .nav-link { font-weight: var(--w-medium); }
.nav-link svg { width: 14px; height: 14px; }
.m-menu > summary, .preview-language > summary { list-style: none; }
.m-menu > summary::-webkit-details-marker,
.preview-language > summary::-webkit-details-marker { display: none; }
.nav-more, .lang-box, .preview-language { position: relative; }
.nav-sub, .lang-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 35;
  min-width: 168px; padding: 6px; background: var(--c-panel);
  border: 1px solid var(--c-border-soft); border-radius: var(--r-panel);
  box-shadow: var(--sh-panel), var(--hl-top);
}
.nav-sub a, .lang-panel a {
  display: flex; align-items: center; min-height: 36px; padding: 8px 12px;
  border-radius: var(--r-nav); font-size: var(--t-note); text-decoration: none; white-space: nowrap;
}
.nav-sub a:hover, .lang-panel a:hover, .lang-panel a[aria-current] { background: var(--c-accent-07); }
.head-actions { display: flex; align-items: center; flex: none; gap: 14px; margin-left: 12px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  white-space: nowrap; font-size: var(--t-note); color: var(--c-muted); background: none;
  border: 0; cursor: pointer; padding: 6px 8px; border-radius: var(--r-nav);
}
.lang:hover, .lang[aria-expanded="true"] { color: var(--c-text); background: var(--c-accent-07); }
.lang-name { white-space: nowrap; }
.lang svg, .m-lang svg { width: 16px; height: 16px; }
.lang .chev { width: 12px; height: 12px; }
.head-rule { width: 1px; height: 18px; background: var(--c-border); flex: none; }
.btn-login {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  padding-inline: 18px; border-radius: var(--r-nav); background: var(--c-accent-dark);
  color: var(--c-white); font-size: var(--t-note); font-weight: var(--w-medium);
  text-decoration: none; white-space: nowrap; box-shadow: var(--sh-soft), var(--hl-top);
}
.btn-login:hover { background: var(--c-text); }
.m-menu, .m-toggle, .m-panel, .m-veil { display: none; }
.m-toggle, .m-menu > summary {
  align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap);
  border-radius: var(--r-nav); border: 1px solid var(--c-border); color: var(--c-text);
  background: var(--c-panel); cursor: pointer;
}
.m-toggle svg, .m-menu > summary svg { width: 20px; height: 20px; }
.m-toggle[aria-expanded="true"] { background: var(--c-panel-2); }
html.nav-open { overflow: hidden; }
.m-panel {
  position: fixed; inset-block-start: var(--header-h); inset-inline-end: 0; z-index: 32;
  width: min(360px, 100%); height: calc(100dvh - var(--header-h));
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom,0px));
  background: var(--c-panel); border-block-start: 1px solid var(--c-border);
  box-shadow: var(--sh-panel);
}
.m-panel a {
  display: flex; align-items: center; width: 100%; min-height: var(--tap);
  padding: 10px 12px; border-radius: var(--r-nav); text-decoration: none;
}
.m-panel a:hover, .m-panel a[aria-current] { background: var(--c-accent-07); font-weight: var(--w-medium); }
.m-lang {
  display: flex; align-items: center; gap: 8px; padding: 12px 12px 4px;
  margin-block-start: 8px; border-block-start: 1px solid var(--c-border);
  font-size: var(--t-note); color: var(--c-muted);
}
.m-veil { position: fixed; inset: var(--header-h) 0 0; z-index: 31; background: var(--flag-edge); }

/* Footer */
.site-footer, #site-footer { background: var(--c-panel); }
.foot-band { background: var(--c-panel-2); border-block: 1px solid var(--c-border); }
.foot-band-row { display: flex; align-items: baseline; gap: 12px 28px; padding-block: 16px; }
.foot-band-title { flex: none; font-weight: var(--w-bold); color: var(--c-accent-dark); }
.foot-links {
  display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0;
  gap: 4px 16px;
}
.foot-links a { display: inline-flex; align-items: center; min-height: 28px; color: var(--c-muted); text-underline-offset: .2em; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--c-accent-dark); }
.foot-grid {
  display: grid; grid-template-columns: 1.05fr 1.5fr .85fr; gap: 24px 48px;
  padding-block: 40px;
}
.foot-grid p { max-width: 28em; color: var(--c-muted); }
.foot-grid h2 { font-size: var(--t-body); margin-block-end: 8px; }
.foot-end {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 24px; padding-block: 16px; border-block-start: 1px solid var(--c-border);
}

@media (max-width: 1100px) {
  .head-row { gap: 16px; }
  .head-actions { gap: 8px; margin-left: 0; }
  .nav-list > li + li::before { padding-inline: 4px; }
}
@media (max-width: 960px) {
  .nav, .head-rule { display: none; }
  .head-actions { margin-left: auto; }
  .m-toggle, .m-menu > summary { display: inline-flex; }
  .m-menu, .m-menu[open] > .m-panel, .m-panel.is-open, .m-veil.is-open { display: block; }
  .foot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  :root { --t-display: clamp(28px, 8vw, 40px); }
  .foot-band-row { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --float-gap: 16px; }
  .no-break { white-space: normal; }
  .tilt, [data-tilt] { transform: none !important; }
  .clip-decor > .stripe-halo { max-width: 100%; }
  .foot-grid { grid-template-columns: minmax(0,1fr); }
  .head-row { gap: 6px; }
  .head-actions { gap: 6px; }
  .brand { gap: 5px; }
  .brand img { width: 22px; height: 22px; }
  .brand-word { font-size: 16px; }
  .btn-login { padding-inline: 9px; }
  .lang { font-size: 12px; padding-inline: 3px; gap: 3px; }
  .lang .chev { display: none; }
}
@media (max-width: 480px) { .m-panel { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal.pending { opacity: 1; transform: none; }
}