:root {
  --bg: #FFFFFF;
  --bg-panel: #F3F4F8;
  --bg-panel-2: #E9EBF3;
  --border: #E2E4EC;
  --accent: #4E5BEF;
  --accent-dark: #3640C4;
  --text: #1A1B26;
  --text-muted: #5E6275;
  --text-faint: #9A9DAE;
  --success: #2BB98A;
  --success-tint: #DDF5EC;
  --warn: #C98A12;
  --error: #D2443B;
  --accent-tint: #EEF0FE;
  --accent-soft: #DDE0FC;
  --accent-frame: #BEC3FA;
  --lav-1: #E8EAFD;
  --lav-2: #D6DAFB;
  --veil: rgb(26 27 38 / .28);
  --clear: transparent;

  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', 'Malgun Gothic', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --size-body: 16px;
  --size-small: 14px;
  --size-meta: 13px;
  --size-code: .92em;
  --size-h1: clamp(34px, 2.2vw + 14px, 48px);
  --size-h2: clamp(25px, 2vw + 5px, 32px);
  --size-h3: clamp(20px, 1vw + 12px, 26px);
  --size-hero-h1: clamp(34px, 2.2vw + 14px, 48px);
  --size-lede: 17px;
  --size-mobile-h1: 28px;
  --size-mobile-lede: 15.5px;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 800;
  --tracking-title: -.015em;
  --tracking-hero: -.022em;
  --tracking-caption: .16em;

  --radius-mark: 2px;
  --radius-bar: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-win: 12px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --shadow-win: 0 0 0 1px rgb(26 27 38 / .05), 0 6px 14px -6px rgb(26 27 38 / .10), 0 44px 88px -22px rgb(54 64 196 / .22);
  --shadow-card: 0 0 0 1px rgb(26 27 38 / .05), 0 4px 10px -4px rgb(26 27 38 / .08), 0 22px 40px -16px rgb(54 64 196 / .18);
  --shadow-btn: 0 8px 20px -8px rgb(78 91 239 / .60);
  --shadow-btn-sm: 0 4px 10px -4px rgb(78 91 239 / .55);
  --shadow-knob: 0 1px 2px rgb(26 27 38 / .22);
  --focus-ring: 0 0 0 3px rgb(78 91 239 / .16);
  --paw-shadow: rgb(54 64 196 / .22);

  --gutter: 48px;
  --measure-page: 1160px;
  --measure-head: 1360px;
  --measure-hero: 1360px;
  --measure-prose: 76ch;
  --header-h: 72px;
  --peek: 40px;
  --tap: 44px;
  --section-space: clamp(64px, 8vw, 120px);
  --feature-space: 128px;
  --card-pad: clamp(18px, 2.5vw, 32px);
  --ease: .2s ease;
  --reveal-ease: .46s ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
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: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
svg, .icon, .dot, .dot-ok { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:where(h1, h2, h3, h4) {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-title);
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: var(--size-h1); line-height: 1.2; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.wrap, .head-shell {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap { max-width: min(100%, calc(var(--measure-page) + 2 * var(--gutter))); }
.head-shell { max-width: min(100%, calc(var(--measure-head) + 2 * var(--gutter))); }
.sec { padding-block: var(--section-space); }
.band {
  padding-top: 112px;
  padding-bottom: 120px;
  background: var(--bg-panel);
  color: var(--text);
}
.band h2 { margin-top: 10px; }
.band .band-intro { margin-top: 14px; max-width: 620px; color: var(--text-muted); }
.eyebrow-dash {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: var(--radius-mark);
  background: var(--success);
}
.eyebrow {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: var(--size-meta);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
}
:where(.layout-grid, .card-grid, .hero-grid, .win-body, .foot-grid, .feature-row, .swatch-grid) > * { min-width: 0; }
:where(main, .site-foot) { overflow-wrap: break-word; }
.decor-field { position: relative; overflow-x: clip; isolation: isolate; }
.decor-field > .decor-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.tilt { transform: rotate(-2deg); } /* 仅用于定尺装饰 */
.prose { max-width: var(--measure-prose); min-width: 0; }
.prose > * + * { margin-block-start: 1em; }
.prose :where(h2, h3) { margin-block: 2em .65em; }
.prose :where(ul, ol) { padding-inline-start: 1.5em; }
.prose li + li { margin-block-start: .4em; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: var(--size-code); overflow-wrap: anywhere; }
:not(pre) > code {
  padding: .12em .32em;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text);
}
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-small);
  white-space: pre;
}
pre code { font-size: inherit; overflow-wrap: normal; white-space: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 8px 26px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-bold);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease), transform var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--bg); box-shadow: var(--shadow-btn); }
.btn-primary:not(:disabled):is(:hover, .is-hover) { background: var(--accent-dark); color: var(--bg); transform: translateY(-1px); }
.btn-ghost { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-ghost:not(:disabled):is(:hover, .is-hover) { background: var(--accent-tint); color: var(--accent-dark); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled { background: var(--bg-panel-2); color: var(--text-muted); box-shadow: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.site-head {
  position: relative;
  z-index: 10;
  height: var(--header-h);
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.site-head .head-shell { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3.4vw, 48px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; display: block; }
.brand-name { font-family: var(--font-display); font-weight: var(--weight-display); font-size: 18px; letter-spacing: -.01em; color: var(--text); }
.head-nav { min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease);
}
.nav-list a:hover { background: var(--bg-panel); color: var(--text); }
.nav-list a[aria-current="page"], .nav-drawer a[aria-current="page"] {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: var(--weight-bold);
}
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-picker, .preview-lang { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-muted);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
}
.lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-caret { font-size: 11px; color: var(--text-faint); }
.lang-short { display: none; }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 3;
  width: min(176px, calc(100vw - 2 * var(--gutter)));
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.lang-list a, .nav-drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}
.lang-list a:hover, .nav-drawer a:hover { background: var(--bg-panel); color: var(--accent-dark); }
.lang-list a[aria-current], .nav-drawer a[aria-current="true"] { color: var(--accent-dark); font-weight: var(--weight-bold); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-drawer, .nav-veil { display: none; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer ul + ul { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.preview-lang > summary, .preview-menu > summary { list-style: none; }
.preview-lang > summary::-webkit-details-marker, .preview-menu > summary::-webkit-details-marker { display: none; }
.preview-menu { display: none; }

.site-foot {
  background: var(--bg-panel);
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-block: 64px 24px;
}
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .75fr) minmax(0, 1.2fr) minmax(0, .65fr); gap: 32px; }
.site-foot .brand { align-items: flex-start; }
.site-foot .brand-name { align-self: center; }
.foot-intro { margin-top: 14px; max-width: 34ch; color: var(--text-muted); }
.foot-title { margin: 0 0 12px; font-size: var(--size-body); }
.foot-links, .foot-terms, .foot-legal { list-style: none; padding: 0; margin: 0; }
.foot-links { display: grid; gap: 8px; }
.foot-links a, .foot-legal a { color: var(--text-muted); text-decoration: none; }
.foot-links a:hover, .foot-legal a:hover { color: var(--accent-dark); text-decoration: underline; }
.foot-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-terms a {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--size-meta);
  text-decoration: none;
}
.foot-terms a:hover { color: var(--accent-dark); border-color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--size-small); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 16px; }
.card, .panel {
  min-width: 0;
  padding: var(--card-pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
}
.panel-soft { background: var(--bg-panel); color: var(--text); }
.card :where(h3, h4) + p { margin-top: 10px; }
.reveal { opacity: 1; }
.reveal-ready .reveal:not(.shown):not(:focus-within) { opacity: 0; transform: translateY(10px); }
.reveal-ready .reveal { transition: opacity var(--reveal-ease), transform var(--reveal-ease); }

@media (max-width: 1280px) {
  .site-head:not(:lang(zh-CN)) .head-nav { display: none; }
  .site-head:not(:lang(zh-CN)) .nav-toggle { display: inline-flex; }
}
@media (max-width: 960px) {
  :root { --gutter: 28px; }
  .head-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .preview-menu { display: block; }
  .preview-head .head-tools { order: 1; }
  .preview-head .preview-menu { order: 2; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.site-head .nav-drawer:not([hidden]), .preview-menu[open] .nav-drawer {
  display: block;
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  top: 100%;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.nav-veil:not([hidden]) {
  display: block;
  position: fixed;
  z-index: 1;
  inset: var(--header-h) 0 0;
  background: var(--veil);
  color: var(--text);
  touch-action: none;
}
@media (max-width: 768px) {
  h1 { font-size: var(--size-mobile-h1); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-head .head-shell { gap: 8px; }
  .site-head .brand { gap: 8px; }
  .site-head .brand-name { font-size: var(--size-body); }
  .site-head:not(:lang(zh-CN)) .brand { flex-shrink: 1; min-width: 0; }
  .site-head:not(:lang(zh-CN)) .brand-name { overflow-wrap: anywhere; line-height: 1.2; }
  .head-tools { margin-left: auto; gap: 6px; }
  .lang { min-height: var(--tap); padding-inline: 9px; gap: 4px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .band { padding-block: 64px 72px; }
  .tilt, .device, .cfg { transform: none; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@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; }
}