:root {
  --c-bg: #FFFFFF;
  --c-panel: #F1FBE6;
  --c-panel-2: #F1ECFF;
  --c-line: #E6E6E6;
  --c-line-strong: #D6D6D6;
  --c-dot: #D9D9D9;
  --c-accent: #E8336E;
  --c-accent-dark: #B3184F;
  --c-on-accent: #FFFFFF;
  --c-ink: #121212;
  --c-muted: #6B6B6B;
  --c-success: #17A673;
  --c-warn: #C98200;
  --c-error: #D92D20;
  --c-ultra: #3B5BFF;
  --c-violet: #7C4DFF;
  --c-lime: #C8F031;
  --c-mint: #3DD9A0;
  --c-lime-line: #DCEFC6;
  --c-code-text: #F5F5F5;
  --c-code-key: #B8B8B8;
  --c-code-dim: #7A7A7A;
  --c-code-line: #262626;
  --c-clear: transparent;
  --f-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Hiragino Sans GB', 'Microsoft YaHei', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --f-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Hiragino Sans GB', 'Microsoft YaHei', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'SFMono-Regular', 'Cascadia Code', Consolas, 'Liberation Mono', Menlo, monospace;
  --fs-display: clamp(34px, 3.4vw, 48px);
  --fs-h2: 32px;
  --fs-h3: 22px;
  --fs-body: 16px;
  --fs-lede: 20px;
  --fs-desc: 17px;
  --fs-small: 14px;
  --fs-meta: 12.5px;
  --fw-regular: 400;
  --fw-medium: 500;
  --r-stage: 32px;
  --r-card: 24px;
  --r-win: 20px;
  --r-strip: 18px;
  --r-btn: 14px;
  --r-ctl: 10px;
  --r-chip: 8px;
  --r-small: 6px;
  --r-code: 4px;
  --r-tick: 2px;
  --r-indicator: 3px;
  --r-pill: 999px;
  --r-circle: 50%;
  --gutter: 32px;
  --reading-width: 1120px;
  --frame-width: 1312px;
  --nav-h: 72px;
  --hero-h: 788px;
  --space-section: 112px;
  --motion-fast: 180ms;
  --motion-reveal: 600ms;
  --ease-entry: cubic-bezier(0.2, 0.7, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; background: var(--c-bg); color: var(--c-ink); }
body { font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea { color: var(--c-ink); }
img, svg { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; flex-shrink: 0; }
button svg, a svg, .chip-dot, .eyebrow i, .kicker-dots i { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-accent-dark); outline-offset: 3px; border-radius: var(--r-tick); }
::selection { background: var(--c-lime); color: var(--c-ink); }
h1, h2, h3 { font-family: var(--f-display); font-weight: var(--fw-regular); letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: var(--fs-display); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.35; }
.keep { white-space: nowrap; }
.muted { color: var(--c-muted); }
.mono, code, pre { font-family: var(--f-mono); }
code { overflow-wrap: anywhere; }
pre { max-width: 100%; min-width: 0; overflow-x: auto; padding: 24px; border-radius: var(--r-card); background: var(--c-ink); color: var(--c-code-text); font-size: var(--fs-small); }
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.wrap { width: 100%; max-width: calc(var(--reading-width) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.frame { width: 100%; max-width: calc(var(--frame-width) + 128px); margin-inline: auto; padding-inline: 64px; }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-head { margin-bottom: 40px; }
.sec-title { margin-top: 16px; font-size: var(--fs-h2); }
.sec-lede { margin-top: 12px; max-width: 560px; color: var(--c-muted); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > *, .dl-grid > *, .footer-grid > *, .feature-rails > * { min-width: 0; }
.card, .panel { padding: 32px; border-radius: var(--r-card); background: var(--c-bg); color: var(--c-ink); border: 1px solid var(--c-line); min-width: 0; }
.card > * + * { margin-top: 16px; }
.panel { border: 0; border-radius: var(--r-stage); background: var(--c-panel); color: var(--c-ink); }
.panel-purple { background: var(--c-panel-2); color: var(--c-ink); }
.prose { max-width: 780px; min-width: 0; }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote { margin-block: 20px; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li + li { margin-top: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose :not(pre) > code { padding: 2px 5px; background: var(--c-panel-2); color: var(--c-ink); border-radius: var(--r-code); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px; border: 1px solid var(--c-clear); border-radius: var(--r-btn); font-size: var(--fs-body); font-weight: var(--fw-medium); text-align: center; transition: background-color var(--motion-fast), border-color var(--motion-fast); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--c-accent-dark); color: var(--c-on-accent); }
.btn-primary:active, .btn-primary.is-pressed { background: var(--c-accent-dark); color: var(--c-on-accent); transform: translateY(1px); }
.btn-ghost { background: var(--c-bg); color: var(--c-ink); border-color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-panel); color: var(--c-ink); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--c-line); color: var(--c-muted); border-color: var(--c-line); cursor: not-allowed; }
.btn.is-focus { outline: 2px solid var(--c-accent-dark); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; border-bottom: 1px solid var(--c-ink); padding-bottom: 2px; font-size: var(--fs-body); }
.text-link:hover { color: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.text-link svg { width: 16px; height: 16px; }
.topbar { position: relative; z-index: 30; height: var(--nav-h); background: var(--c-bg); color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.header-frame { height: 100%; width: 100%; max-width: min(100%, calc(1312px + var(--gutter) * 2)); padding-inline: var(--gutter); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-desc); font-weight: var(--fw-medium); letter-spacing: -0.01em; flex-shrink: 0; }
.brand-mark { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.desktop-nav { height: 100%; margin-left: auto; min-width: 0; position: relative; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-list li { height: 100%; }
.tab { position: relative; display: flex; align-items: center; height: 100%; padding-inline: 16px; color: var(--c-muted); font-size: var(--fs-small); white-space: nowrap; }
.tab:hover, .tab[aria-current="page"] { color: var(--c-ink); }
.tab[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: var(--r-indicator) var(--r-indicator) 0 0; background: var(--c-accent); }
.nav-marker { position: absolute; height: 3px; width: 1px; bottom: -1px; left: 0; background: var(--c-accent); color: var(--c-ink); border-radius: var(--r-indicator); transform-origin: left; pointer-events: none; opacity: 0; }
.desktop-nav.marker-ready .tab[aria-current]::after { display: none; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--c-line); border-radius: var(--r-btn); background: var(--c-bg); color: var(--c-ink); font-size: var(--fs-small); white-space: nowrap; }
.lang:hover { border-color: var(--c-ink); }
.lang svg { width: 16px; height: 16px; }
.lang-short { display: none; }
.lang-caret { color: var(--c-muted); }
.language-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 190px; list-style: none; padding: 8px; background: var(--c-bg); color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--r-btn); }
.language-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-chip); }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--c-panel-2); color: var(--c-ink); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--c-line); border-radius: var(--r-btn); background: var(--c-bg); color: var(--c-ink); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { position: absolute; z-index: 3; top: var(--nav-h); left: 0; right: 0; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; padding: 20px var(--gutter) 28px; background: var(--c-bg); color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.mobile-drawer ul { list-style: none; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.mobile-drawer a[aria-current] { background: var(--c-panel); color: var(--c-ink); }
.drawer-label { margin-top: 24px; padding-inline: 16px; color: var(--c-muted); font-size: var(--fs-small); }
.menu-veil { position: fixed; z-index: 1; inset: var(--nav-h) 0 0; border: 0; background: var(--c-line); color: var(--c-ink); }
.site-footer { margin-top: 80px; border-top: 1px solid var(--c-line); padding-top: 64px; padding-bottom: 32px; background: var(--c-bg); color: var(--c-ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 48px; }
.footer-intro { max-width: 290px; margin-top: 20px; color: var(--c-muted); font-size: var(--fs-small); }
.footer-heading { font-size: var(--fs-small); font-weight: var(--fw-medium); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links a { display: inline-block; padding-block: 6px; font-size: var(--fs-small); color: var(--c-muted); }
.footer-links a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 48px; border-top: 1px solid var(--c-line); padding-top: 24px; color: var(--c-muted); font-size: var(--fs-small); }
.footer-bottom .legal-links { display: flex; gap: 24px; margin-left: auto; }
.reveal { opacity: 1; transform: none; }
.reveal-pending .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal-pending .reveal { transition: opacity var(--motion-reveal) var(--ease-entry), transform var(--motion-reveal) var(--ease-entry); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { fill: currentColor; display: block; }
.decorated, .hero { overflow-x: clip; }
@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1280px) {
  .mobile-drawer, .menu-veil { display: none !important; }
}
@media (max-width: 900px) {
  .frame { padding-inline: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --fs-display: clamp(24px, 5vw, 30px); --fs-h2: 26px; --gutter: 20px; --space-section: 72px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .wrap { width: 100%; padding-inline: var(--gutter); }
  .header-frame { gap: 12px; }
  .brand { gap: 8px; font-size: var(--fs-small); }
  .brand-mark { width: 28px; height: 28px; }
  .header-tools { margin-left: auto; gap: 8px; }
  .lang { min-height: 44px; padding-inline: 12px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 24px; }
  .tilt, .route-card { transform: none; }
  .footer-grid { gap: 32px; }
  .footer-bottom .legal-links { margin-left: 0; }
  .cta-row .btn { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending .reveal:not(.shown) { opacity: 1; transform: none; }
}