:root {
  --bg: #ffffff;
  --panel: #f6f6f7;
  --panel-2: #2e3033;
  --border: #e8e8ea;
  --accent: #de5b4d;
  --accent-dark: #b8463a;
  --accent-ring: rgba(222, 91, 77, .14);
  --text: #333436;
  --muted: #7c7e83;
  --text-secondary: #62656b;
  --success: #3f9a6b;
  --warn: #c9891c;
  --error: #c83a3a;
  --on-accent: #ffffff;
  --stroke-cyan: #8ccfdd;
  --sketch: #d9dadc;
  --sketch-text: #b3b5b9;
  --gutter-num: #a8adb5;
  --gutter-rule: rgba(255, 255, 255, .06);
  --veil: rgba(20, 22, 26, .22);
  --clear: transparent;
  --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, "SF Mono", Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --tracking-title: -.02em;
  --r-section: 32px;
  --r-device: 28px;
  --r-float: 20px;
  --r-code: 16px;
  --r-btn: 12px;
  --r-mark: 8px;
  --r-small: 6px;
  --r-shot: 10px;
  --r-fact-section: 40px;
  --r-pill: 999px;
  --r-round: 50%;
  --shadow-device: 0 48px 96px -32px rgba(20, 22, 26, .18), 0 2px 6px rgba(20, 22, 26, .04);
  --shadow-panel: 0 32px 80px -32px rgba(20, 22, 26, .14);
  --shadow-pill: 0 1px 2px rgba(20, 22, 26, .04);
  --shadow-btn: 0 12px 24px -14px rgba(184, 70, 58, .65), inset 0 1px 0 rgba(255, 255, 255, .14);
  --shadow-mark: 0 6px 12px -8px rgba(20, 22, 26, .28);
  --gutter: 24px;
  --line-gutter: 64px;
  --wrap: 1120px;
  --reading: 800px;
  --header-wrap: 1280px;
  --header-height: 64px;
  --section-space: 160px;
  --duration: 200ms;
  --duration-reveal: 500ms;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --focus-width: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
svg, .ico, .dot { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: var(--focus-width) solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: var(--r-small);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-title);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 3.4vw, 48px); }
h2 { font-size: clamp(27px, 3vw, 40px); }
h3 { font-size: 22px; }
p, li, dd { overflow-wrap: break-word; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: .9em; overflow-wrap: anywhere; }
pre {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 24px;
  background: var(--panel);
  color: var(--text);
  border-radius: var(--r-code);
  line-height: 1.9;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}
pre code { font-size: .875rem; white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 40px; }
:where(section, article, aside, main, div, li) { min-width: 0; }
:where([id]) { scroll-margin-top: 28px; }
.wrap, .reading, .head-wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); }
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.head-wrap { max-width: min(100%, calc(var(--header-wrap) + var(--gutter) * 2)); }
.section { padding-top: var(--section-space); padding-bottom: 0; }
.section:last-child { padding-bottom: var(--section-space); }
.section-heading { text-align: center; margin: 0 auto 40px; max-width: 800px; }
.section-heading h2 { margin-top: 0; margin-bottom: 16px; }
.section-heading p { color: var(--text-secondary); margin: 0; }
.prose { line-height: 1.95; }
.prose h2 { margin-top: 72px; margin-bottom: 24px; }
.prose h3 { margin-top: 40px; margin-bottom: 16px; }
.prose :first-child { margin-top: 0; }
.prose p { margin-block: 20px; }
.prose li + li { margin-top: 10px; }
.prose a { overflow-wrap: anywhere; }
.prose blockquote { margin-inline: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.decorated, .hero { overflow-x: clip; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid > *, .flex > * { min-width: 0; }
.flex { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card, .panel {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-float);
  padding: 32px;
}
.panel { border-radius: var(--r-section); box-shadow: var(--shadow-panel); padding: 48px; }
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.fact-section {
  margin-inline: var(--gutter);
  padding-top: 80px;
  padding-bottom: 80px;
  border-radius: var(--r-fact-section);
  background: var(--panel);
  color: var(--text);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font-size: 15px;
  line-height: 1.5;
  font-weight: var(--weight-semibold);
  letter-spacing: -.005em;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  transition: background-color var(--duration) ease, border-color var(--duration) ease, color var(--duration) ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-pill); }
.btn-ghost:hover { color: var(--accent-dark); border-color: var(--accent); }
.btn:active { background: var(--accent-dark); color: var(--on-accent); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--panel);
  color: var(--text-secondary);
  border-color: var(--border);
  box-shadow: none;
  cursor: not-allowed;
}
.btn.is-focus { outline: var(--focus-width) solid var(--accent-dark); outline-offset: 3px; }
.site-head, #site-header { position: relative; z-index: 50; background: var(--bg); color: var(--text); }
.site-head { min-height: var(--header-height); }
.head-wrap { min-height: var(--header-height); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: var(--weight-bold); letter-spacing: -.01em; flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { display: block; width: 32px; height: 32px; flex: none; border-radius: var(--r-mark); }
.brand-placeholder { position: relative; background: var(--bg); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-mark); }
.brand-placeholder::after { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--sketch); border-radius: var(--r-small); }
.desktop-nav { margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 30px; }
.nav-list a { position: relative; display: inline-block; padding-block: 6px; font-size: 14.5px; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-list a:hover { color: var(--accent-dark); }
.nav-list a[aria-current="page"] { font-weight: var(--weight-semibold); }
.nav-arc { position: absolute; left: -4px; bottom: -3px; width: calc(100% + 8px); height: 7px; color: var(--stroke-cyan); overflow: visible; }
.head-tools { display: flex; align-items: center; flex-shrink: 0; gap: 12px; }
.language { position: relative; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0 6px 22px; border: 0; border-left: 1px solid var(--border); background: var(--bg); color: var(--text-secondary); font-size: 14px; min-height: 44px; white-space: nowrap; cursor: pointer; }
.lang-short { display: none; }
.language-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 192px; list-style: none; margin: 0; padding: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-code); box-shadow: var(--shadow-panel); z-index: 4; }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--text); text-decoration: none; border-radius: var(--r-small); }
.language-menu a:hover, .language-menu [aria-current="true"] { background: var(--panel); color: var(--text); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; background: var(--veil); color: var(--text); z-index: 1; border: 0; }
.site-footer { margin-top: var(--section-space); padding-top: 64px; padding-bottom: 40px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 64px; }
.footer-brand p { max-width: 370px; color: var(--text-secondary); font-size: 14px; }
.footer-title { margin: 0 0 16px; font-size: 14px; font-weight: var(--weight-semibold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding-block: 6px; font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-languages { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; }
.footer-languages a { padding-block: 8px; font-size: 13px; color: var(--text-secondary); }
.footer-languages [aria-current="true"] { color: var(--text); font-weight: var(--weight-semibold); }
.copyright { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; font-size: 12px; color: var(--text-secondary); }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(14px); }
.reveal-ready .reveal { transition: opacity var(--duration-reveal) var(--ease), transform var(--duration-reveal) var(--ease); }
.reveal-ready .reveal.shown { opacity: 1; transform: none; }
@media (max-width: 1280px) {
  .head-wrap { gap: 20px; }
  .nav-list { gap: 20px; }
}
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .head-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .lang { border-left: 0; padding-left: 0; }
  .mobile-drawer {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 3;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--gutter) 24px;
  }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: var(--r-small); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--panel); color: var(--text); }
  .drawer-languages { border-top: 1px solid var(--border); margin-top: 16px !important; padding-top: 16px !important; }
}
@media (max-width: 768px) {
  h1 { font-size: clamp(24px, 4vw, 30px); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .panel { padding: 28px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --line-gutter: 44px; }
  .head-wrap { gap: 8px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; }
  .head-tools { margin-left: auto; gap: 6px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { padding-right: 4px; }
  .card, .panel { padding: 24px; }
  .tilt, [class*="tilt-"] { transform: none !important; }
  .fact-section { margin-inline: var(--gutter); padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand { font-size: 12px; }
}
@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; }
}