:root {
  --bg: #FFFFFF;
  --bg-panel: #F2F5F8;
  --bg-panel-2: #E8EDF2;
  --border: #E1E6EB;
  --accent: #36A9EE;
  --accent-dark: #1F7CBF;
  --accent-soft: #E7F4FD;
  --ink-link: #17679F;
  --text: #2E3439;
  --text-muted: #6B737A;
  --ink-muted: #56616B;
  --text-faint: #A3ABB3;
  --success: #2F9E6A;
  --warn: #C98A12;
  --error: #D2463C;
  --on-accent: #FFFFFF;
  --device-stroke: #D7DDE3;
  --device-notch: #CDD4DB;
  --screen-top: #EEF6FC;
  --screen-bottom: #F7FAFC;
  --lead: #B7BFC7;
  --toggle-off: #DCE2E8;
  --win-dot: #D3D9DF;
  --veil: rgba(38, 52, 68, 0.23);

  --shadow-device: 0 2px 6px rgba(38, 52, 68, 0.06), 0 30px 60px rgba(38, 52, 68, 0.10);
  --shadow-base: 0 2px 6px rgba(38, 52, 68, 0.06), 0 18px 34px rgba(38, 52, 68, 0.08);
  --shadow-win: 0 1px 2px rgba(38, 52, 68, 0.06), 0 12px 28px rgba(38, 52, 68, 0.08);
  --shadow-chip: 0 1px 2px rgba(38, 52, 68, 0.12);
  --shadow-btn: 0 1px 2px rgba(31, 124, 191, 0.20);
  --shadow-knob: 0 1px 2px rgba(38, 52, 68, 0.22);

  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-brand: 800;
  --weight-display: 900;
  --size-body: 16px;
  --size-small: 14px;
  --size-nav: 15px;
  --size-brand: 18px;
  --size-h1: clamp(34px, 3.4vw + 8px, 48px);
  --size-h1-small: clamp(24px, 7vw, 30px);
  --size-h2: clamp(24px, 3vw, 36px);
  --size-h3: clamp(18px, 2vw, 22px);
  --size-button: 15.5px;
  --size-lede: 17px;
  --size-os: 13.5px;
  --size-fact: 12.5px;
  --size-fact-small: 11.5px;
  --size-strip: clamp(26px, 4vw, 52px);
  --size-strip-first: clamp(26px, 2.4vw, 38px);
  --size-ui-xs: 9px;
  --size-ui-10: 10px;
  --size-ui-105: 10.5px;
  --size-ui-11: 11px;
  --size-ui-115: 11.5px;
  --size-ui-12: 12px;
  --size-ui-13: 13px;
  --size-point: 14.5px;

  --r-zero: 0;
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-round: 50%;
  --r-phone: 34px;
  --r-phone-screen: 27px;
  --r-seg: 7px;
  --r-seg-item: 5px;
  --r-laptop-base: 2px 2px 12px 12px / 2px 2px 10px 10px;
  --r-notch: 0 0 5px 5px;
  --r-home: 2px;
  --nav-h: 64px;
  --nav-span: 1280px;
  --shell: 1120px;
  --reading: 800px;
  --gutter: clamp(16px, 3vw, 32px);
  --stage-w: 1120px;
  --stage-h: 432px;
  --section-space: clamp(64px, 9vw, 120px);
  --motion-short: 150ms;
  --motion-reveal: 360ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--size-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
:focus-visible, .is-focus-sample {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
a { color: var(--ink-link); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }
svg, .status-dot, .brand-mark { flex-shrink: 0; }
h1, h2, h3 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:target { scroll-margin-block-start: 24px; }
.keep { white-space: nowrap; }
.wrap, .prose {
  width: 100%;
  max-width: var(--shell);
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose { max-width: var(--reading); line-height: 1.85; }
.prose .prose, .wrap .prose { padding-inline: 0; }
.prose h2:not(:first-child) { margin-top: 1.65em; }
.prose h3:not(:first-child) { margin-top: 1.35em; }
.prose, .card, .panel, .footer-in { overflow-wrap: anywhere; }
.sec { padding-block: var(--section-space); }
.wash { background: var(--bg-panel); color: var(--text); }
.has-decor, .hero, .strip { overflow-x: clip; }
.decor-cover { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.has-decor { position: relative; }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 16px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
pre code { overflow-wrap: normal; white-space: pre; }
:where(.grid, .card-grid, .footer-in, .strip-in, .swatch-grid) > * { min-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  max-width: 100%;
  padding: 7px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font: var(--weight-semibold) var(--size-button)/1.4 var(--font-body);
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--motion-short), color var(--motion-short), border-color var(--motion-short);
}
.btn svg { width: 16px; height: 16px; }
.btn-solid {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: var(--shadow-btn);
}
.btn-solid:is(:hover, .is-hover-sample) { background: var(--ink-link); color: var(--on-accent); border-color: var(--ink-link); }
.btn-line { background: var(--bg); color: var(--ink-link); border-color: var(--accent); }
.btn-line:is(:hover, .is-hover-sample) { background: var(--accent-soft); color: var(--ink-link); }
.btn:active, .btn.is-active-sample { box-shadow: inset var(--shadow-chip); }
.btn:disabled { background: var(--bg-panel-2); color: var(--ink-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.cta-row, .chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.text-link { display: inline-block; margin-top: 24px; font-size: var(--size-nav); font-weight: var(--weight-semibold); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.topbar {
  position: relative;
  z-index: 10;
  height: var(--nav-h);
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.topbar-in {
  max-width: min(100%, calc(var(--nav-span) + var(--gutter) * 2));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font: var(--weight-brand) var(--size-brand)/1.3 var(--font-display);
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; }
.topnav-desk { margin-inline-start: auto; min-width: 0; }
.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topnav a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--text);
  font-size: var(--size-nav);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--motion-short);
}
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--accent-dark); }
.topnav a[aria-current="page"] { font-weight: var(--weight-semibold); }
.topnav-sep { color: var(--text-faint); font-size: var(--size-small); user-select: none; }
.top-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.locale-control { position: relative; }
.lang, .nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--size-small);
  white-space: nowrap;
}
.lang svg { width: 15px; height: 15px; }
.lang-short { display: none; }
.locale-list {
  list-style: none;
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(190px, calc(100vw - 2 * var(--gutter)));
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-win);
}
.locale-list a, .menu-drawer a, .preview-drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  padding: 9px 12px;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
:is(.locale-list, .menu-drawer, .preview-drawer) a:is(:hover, [aria-current]) {
  background: var(--accent-soft);
  color: var(--ink-link);
}
.nav-toggle { display: none; min-width: 44px; min-height: 44px; padding: 0 8px; }
.nav-toggle svg { width: 20px; height: 20px; }
.menu-veil {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 0;
  background: var(--veil);
  color: var(--text);
}
.menu-drawer, .preview-drawer {
  position: absolute;
  z-index: 1;
  inset: 100% 0 auto;
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px var(--gutter) 18px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-win);
}
.menu-drawer ul, .preview-drawer ul { margin: 0; padding: 0; list-style: none; }
.drawer-locales { border-top: 1px solid var(--border); padding-top: 8px !important; margin-top: 8px !important; }
html.nav-open { overflow: hidden; }
.preview-menu { display: none; }
.preview-menu summary, .preview-locale summary { list-style: none; cursor: pointer; }
.preview-menu summary::-webkit-details-marker, .preview-locale summary::-webkit-details-marker { display: none; }

.site-footer {
  padding-block: 60px 24px;
  background: var(--bg-panel);
  color: var(--text);
  border-top: 1px solid var(--border);
}
.footer-in { display: grid; grid-template-columns: 1.45fr .75fr 1.25fr .7fr; gap: 28px; }
.footer-in h2 { font-size: var(--size-nav); margin-bottom: 12px; }
.footer-in ul { list-style: none; margin: 0; padding: 0; }
.footer-in li + li { margin-top: 7px; }
.footer-in p, .footer-base { color: var(--ink-muted); font-size: var(--size-small); }
.footer-in p { margin-top: 14px; }
.footer-in a:not(.brand), .footer-base a { font-size: var(--size-small); }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; }
.footer-base-in { display: contents; }
.footer-base::before { content: ""; width: 100%; border-top: 1px solid var(--border); margin-bottom: 10px; }

.card, .panel {
  min-width: 0;
  padding: clamp(16px, 3vw, 28px);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.card { box-shadow: var(--shadow-win); }
.panel { background: var(--bg-panel); color: var(--text); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }

.reveal-ready .reveal {
  transition: opacity var(--motion-reveal) ease, transform var(--motion-reveal) ease;
}
.reveal-ready .reveal:not(.shown):not(:focus-within) { opacity: 0; transform: translateY(10px); }

@media (max-width: 1280px) {
  .topbar-in { gap: 18px; }
  .topnav { gap: 8px; }
}
@media (max-width: 1100px), (max-width: 1280px) and (min-width: 821px) {
  :is(html:not([lang="zh-CN"]) .topbar, .topbar--local-long) .topnav-desk { display: none; }
  :is(html:not([lang="zh-CN"]) .topbar, .topbar--local-long) .nav-toggle { display: inline-flex; }
  :is(html:not([lang="zh-CN"]) .topbar, .topbar--local-long) .top-tools { margin-inline-start: auto; }
}
@media (max-width: 820px) {
  .topnav-desk { display: none; }
  .nav-toggle { display: inline-flex; }
  .top-tools { margin-inline-start: auto; }
  .topbar-in { gap: 8px; }
  .preview-menu { display: block; }
  .footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1 { font-size: var(--size-h1-small); }
}
@media (max-width: 640px) {
  .tilt, [data-tilt] { transform: none !important; }
}
@media (max-width: 430px) {
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .brand { gap: 6px; }
  .footer-in { gap: 24px 14px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}