:root {
  --bg: #ffffff;
  --bg-panel: #f6f6f5;
  --bg-panel-hover: #eeeeec;
  --bg-panel-2: #4b9cf2;
  --border: #e7e7e6;
  --accent: #ea5a35;
  --accent-dark: #c4401f;
  --accent-tint: #fde4db;
  --text: #1c1c1e;
  --text-muted: #6a6a70;
  --success: #2f9c6b;
  --success-ink: #216b49;
  --success-tint: #def2e8;
  --warn: #e2a21c;
  --warn-ink: #77530a;
  --warn-tint: #fbefd2;
  --error: #d23b3b;
  --error-ink: #a72c2c;
  --error-tint: #fbe5e5;
  --sky: #4b9cf2;
  --sky-tint: #e4f0fd;
  --sky-ink: #1d5aa0;
  --purple: #8253a2;
  --purple-tint: #eee5f5;
  --clear: transparent;
  --veil: rgba(28, 28, 30, .24);
  --glow-core: rgba(75, 156, 242, .34);
  --glow-mid: rgba(75, 156, 242, .13);
  --glow-edge: rgba(75, 156, 242, 0);
  --sheet-shade: rgba(28, 28, 30, .06);
  --shadow-xs: 0 1px 2px rgba(28, 28, 30, .05);
  --shadow-card: 0 1px 2px rgba(28, 28, 30, .04), 0 18px 48px -18px rgba(28, 28, 30, .18);
  --shadow-card-hover: 0 2px 4px rgba(28, 28, 30, .05), 0 26px 60px -20px rgba(28, 28, 30, .22);
  --shadow-btn: 0 1px 0 rgba(28, 28, 30, .06), 0 6px 16px -8px rgba(234, 90, 53, .55);
  --font-display: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-xs: 12px;
  --text-note: 12.5px;
  --text-sm: 13px;
  --text-nav: 15px;
  --text-body: 16px;
  --text-card: 16.5px;
  --text-lede: 17px;
  --text-brand: 18px;
  --text-h3: clamp(20px, 2vw, 24px);
  --text-h2: clamp(24px, 2.4vw, 34px);
  --text-h1: clamp(34px, 3.35vw, 48px);
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --tracking-title: -.02em;
  --tracking-brand: -.01em;
  --tracking-label: .02em;
  --leading-body: 1.6;
  --leading-title: 1.18;
  --r-canvas: 40px;
  --r-card: 28px;
  --r-pill: 999px;
  --r-shot: 8px;
  --r-mark: 10px;
  --r-squircle: 17px;
  --r-round: 50%;
  --r-none: 0;
  --gutter: 24px;
  --content-width: 1080px;
  --reading-width: 800px;
  --header-width: 1280px;
  --nav-h: 72px;
  --space-section: 104px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --time-fast: .2s;
  --time-card: .35s;
  --time-reveal: .6s;
  --z-header: 50;
  --z-veil: 40;
  --z-fab: 30;
  --z-tip: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
button:disabled { cursor: not-allowed; }
img, video { max-width: 100%; }
svg { flex-shrink: 0; max-width: 100%; }
img { vertical-align: middle; }
figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 3px; border-radius: var(--r-mark); }
::selection { background: var(--accent-tint); color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-normal); text-wrap: balance; }
h1 { margin: 0 0 18px; font-size: var(--text-h1); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
h2 { margin: 0 0 28px; font-size: var(--text-h2); line-height: 1.25; letter-spacing: var(--tracking-title); }
h3 { margin: 0 0 16px; font-size: var(--text-h3); line-height: 1.35; letter-spacing: var(--tracking-brand); }
h4 { font-size: var(--text-brand); }
p { margin: 0 0 20px; }
strong { font-weight: var(--weight-strong); }
small { font-size: var(--text-sm); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  max-width: 100%;
  min-width: 0;
  margin: 24px 0;
  padding: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-mark);
  font-size: var(--text-sm);
  line-height: 1.8;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
ul, ol { padding-inline-start: 1.4em; }
li + li { margin-top: 6px; }
section, article, aside, main, header, footer, nav,
.grid > *, .split > *, .head-row > *, .footer-grid > * { min-width: 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--reading { max-width: calc(var(--reading-width) + var(--gutter) * 2); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-heading { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-heading p { color: var(--text-muted); }
.section-heading > :last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.stack > * + * { margin-top: 24px; }
.nowrap, .title-word { white-space: nowrap; }
.muted { color: var(--text-muted); }
.text-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.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;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; fill: currentColor; }
.line-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link {
  position: absolute; left: 16px; top: 12px; z-index: var(--z-tip);
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--text); color: var(--bg); font-size: var(--text-nav);
}
.skip-link:not(:focus) {
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.btn {
  min-height: 46px; padding: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 100%; border-radius: var(--r-pill); border: 1px solid var(--clear);
  font-size: var(--text-nav); font-weight: var(--weight-strong); line-height: 1.35;
  text-align: center; white-space: normal;
  transition: background-color var(--time-fast) var(--ease), transform var(--time-fast) var(--ease), box-shadow var(--time-fast) var(--ease);
}
.btn:active, .btn.is-active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--bg); box-shadow: var(--shadow-btn); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--bg); }
.btn--soft { background: var(--bg-panel); color: var(--text); }
.btn--soft:hover, .btn--soft.is-hover { background: var(--bg-panel-hover); color: var(--text); }
.btn--outline { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn--outline:hover { background: var(--bg-panel); color: var(--text); }
.btn--wide { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); box-shadow: none; border-color: var(--border); }
.card, .panel {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--bg); color: var(--text); min-width: 0;
}
.card { box-shadow: var(--shadow-card); }
.panel--quiet { background: var(--bg-panel); color: var(--text); border-color: var(--clear); }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.decorated, .hero, .platform-field { position: relative; overflow-x: clip; }

.site-head, #site-header { position: relative; z-index: var(--z-header); background: var(--bg); color: var(--text); }
.head-row {
  position: relative; width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  margin-inline: auto; min-height: var(--nav-h); padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: block; width: 34px; height: 34px; border-radius: var(--r-mark); flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: var(--text-brand); font-weight: var(--weight-medium); letter-spacing: var(--tracking-brand); }
.nav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 30px; }
.nav-list li { margin: 0; flex-shrink: 0; }
.nav-list a { display: block; padding: 6px 0; font-size: var(--text-nav); color: var(--text-muted); }
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--text); font-weight: var(--weight-strong); }
.head-tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-wrap { position: relative; }
.lang {
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; border: 0; background: var(--bg); color: var(--text);
  font-size: var(--text-nav); font-weight: var(--weight-medium); white-space: nowrap;
}
.lang-caret { font-size: var(--text-xs); color: var(--text-muted); }
.lang-short { display: none; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 188px;
  padding: 8px; margin: 0; list-style: none; border: 1px solid var(--border);
  border-radius: var(--r-mark); background: var(--bg); color: var(--text); box-shadow: var(--shadow-card);
}
.lang-menu li { margin: 0; }
.lang-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-mark); }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--text); }
.menu-toggle {
  display: none; min-width: 44px; min-height: 44px; padding: 10px;
  border: 1px solid var(--border); border-radius: var(--r-round); background: var(--bg); color: var(--text);
}
.menu-toggle svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mobile-drawer { display: none; }
.menu-veil { position: fixed; inset: 0; z-index: var(--z-veil); border: 0; background: var(--veil); color: var(--text); }
.preview-mobile { display: none; }
.preview-language { position: relative; }
.preview-language > summary { list-style: none; cursor: pointer; }
.preview-language > summary::-webkit-details-marker { display: none; }

.site-footer {
  padding-top: 72px; padding-bottom: 32px;
  background: var(--bg); color: var(--text); border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 56px; }
.footer-brand p { max-width: 360px; margin-top: 20px; font-size: var(--text-nav); color: var(--text-muted); }
.footer-heading { margin: 0 0 18px; font-size: var(--text-body); font-weight: var(--weight-strong); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-block; padding: 5px 0; color: var(--text-muted); font-size: var(--text-nav); }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-languages { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; font-size: var(--text-sm); }
.footer-languages a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-languages a[aria-current="true"] { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--text-sm); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

.prose { min-width: 0; line-height: 1.85; }
.prose h2 { margin-top: 64px; }
.prose h3 { margin-top: 36px; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose a:not(.btn):not(.appstore-btn) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.prose img { height: auto; }
.prose > :first-child { margin-top: 0; }
.prose :is(h2, h3, section)[id] { scroll-margin-top: 32px; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(16px); }
.reveal-ready .reveal { transition: opacity var(--time-reveal) var(--ease), transform var(--time-reveal) var(--ease); }
.reveal-ready .reveal.shown { opacity: 1; transform: none; }

@media (max-width: 1200px) {
  .head-row { gap: 16px; }
  .nav { display: none; }
  .head-tools { margin-left: auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-drawer:not([hidden]) {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    padding: 16px var(--gutter) 24px;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); color: var(--text); border-top: 1px solid var(--border); box-shadow: var(--shadow-card);
  }
  .mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
  .mobile-drawer li { margin: 0; }
  .mobile-drawer a { display: block; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-mark); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel); color: var(--text); }
  .drawer-language-heading { margin: 20px 16px 8px; color: var(--text-muted); font-size: var(--text-sm); }
  .preview-mobile { display: block; position: relative; }
  .preview-mobile > summary { display: grid; list-style: none; place-items: center; }
  .preview-mobile > summary::-webkit-details-marker { display: none; }
  .preview-mobile .preview-drawer { position: absolute; right: 0; top: 100%; width: min(320px, calc(100vw - 32px)); padding: 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-mark); box-shadow: var(--shadow-card); }
  .preview-drawer a { display: block; padding: 12px; min-height: 48px; }
}
@media (max-width: 768px) {
  :root { --text-h1: clamp(24px, 4.8vw, 30px); --space-section: 72px; }
  .grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .head-row { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: var(--text-body); }
  .brand-mark { width: 30px; height: 30px; }
  .head-tools { margin-left: auto; gap: 8px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .card, .panel { padding: 24px; }
  pre { padding: 18px; }
  .tilt, [data-tilt] { transform: none !important; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
}