:root {
  --bg: #fcfcfc;
  --bg-panel: #ffffff;
  --bg-panel-2: #f4f5f4;
  --border: #e6e7e6;
  --border-strong: #dadcda;
  --line-2: #c2c6c3;
  --line-3: #989d9a;
  --accent: #32b36f;
  --accent-dark: #1d7a4a;
  --accent-soft: #e3f4ea;
  --text: #171a18;
  --text-muted: #6b706d;
  --success: #2f9e5e;
  --warn: #c98a16;
  --error: #d6453d;
  --clear: transparent;
  --shadow-float: 0 1px 2px rgba(23, 26, 24, .07);
  --radius-card: 8px;
  --radius-btn: 6px;
  --radius-chip: 4px;
  --radius-logo: 7px;
  --radius-shot: 10px;
  --radius-pill: 999px;
  --radius-round: 50%;
  --font-display: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', '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, 'SF Mono', Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --frame: 1304px;
  --reading-frame: 860px;
  --header-frame: 1280px;
  --gutter: 32px;
  --topline-h: 64px;
  --section-space: 140px;
  --ease-ui: 150ms ease;
  --ease-reveal: 650ms ease;
  --route-cycle: 4.5s;
  --layer-header: 40;
  --layer-fab: 30;
}

*, *::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;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}
::selection { background: var(--accent-soft); color: var(--text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.02em; }
h3 { font-size: 21px; letter-spacing: -.01em; }
p, ul, ol, dl { margin-top: 0; }
strong { font-weight: var(--weight-medium); color: var(--text); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  background: var(--bg-panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  line-height: 1.9;
  tab-size: 2;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 40px; }
:where(section, h2, h3, [id]) { scroll-margin-top: 24px; }
.frame, .wrap {
  width: 100%;
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--reading-frame); }
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 16px; }
.section-head p, .muted { color: var(--text-muted); }
.section-head p:last-child { margin-bottom: 0; }
.no-break { white-space: nowrap; }
.grid { display: grid; gap: 24px; }
.grid > *, .mast-grid > *, .footer-grid > *, .feature-grid > *, .two-up > * { min-width: 0; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stack > * + * { margin-top: 24px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
}
.skip-link:focus { transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--clear);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  font-weight: var(--weight-medium);
  letter-spacing: -.005em;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--ease-ui), border-color var(--ease-ui), color var(--ease-ui);
}
.btn-ico { width: 16px; height: 16px; flex-shrink: 0; }
.btn--solid { background: var(--accent); border-color: var(--accent-dark); color: var(--text); }
.btn--solid:hover, .btn--solid.is-hover { background: var(--accent-dark); color: var(--bg-panel); }
.btn--line { background: var(--bg-panel); border-color: var(--border-strong); color: var(--text); }
.btn--line:hover, .btn--line.is-hover { border-color: var(--line-2); }
.btn--line .btn-ico { width: 14px; height: 14px; color: var(--text-muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn.is-focus { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.topline {
  position: relative;
  z-index: var(--layer-header);
  background: var(--bg-panel);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.topline-row {
  height: var(--topline-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-frame {
  width: 100%;
  max-width: min(100%, calc(var(--header-frame) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: var(--weight-medium);
  letter-spacing: -.01em;
}
.mark-tile {
  display: block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-logo);
  background: var(--bg-panel-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.mark-short { display: none; }
.desktop-nav { margin-left: auto; min-width: 0; }
.dotnav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
}
.dotnav li { display: flex; align-items: center; min-width: 0; }
.dotnav li + li::before { content: "·"; color: var(--line-3); margin-inline: 14px; flex-shrink: 0; }
.dotnav a { color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.dotnav a:hover, .dotnav a[aria-current="page"] { color: var(--text); }
.topline-end, .header-tools { display: flex; align-items: center; gap: 28px; }
.header-tools { flex-shrink: 0; position: relative; }
.lang {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  min-height: 32px;
  padding: 5px 10px 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.lang:hover { border-color: var(--line-2); }
.lang-caret { color: var(--text-muted); font-size: 11px; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  z-index: 5;
}
.language-menu a, .mobile-drawer a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.language-menu a:hover, .language-menu a[aria-current="true"] {
  background: var(--bg-panel-2);
  color: var(--text);
  border-radius: var(--radius-chip);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
.mobile-drawer, .menu-veil { display: none; }

.mast { padding-top: 88px; padding-bottom: 96px; overflow-x: clip; }
.mast-grid { display: grid; grid-template-columns: 45fr 55fr; gap: 72px; align-items: center; }
.lead-col { min-width: 0; }
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.state-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-round);
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--text);
}
.headline-row { display: block; }
.headline-row--accent { color: var(--accent); }
.lede { margin: 28px 0 0; max-width: 31em; font-size: 15.5px; line-height: 1.8; color: var(--text-muted); }
.device-row {
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 13px;
  line-height: 1;
  color: var(--text);
}
.device { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; }
.device-ico { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-muted); }
.device-split { width: 1px; height: 16px; background: var(--border-strong); flex-shrink: 0; }
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 12.5px;
  text-decoration: none;
}
.store-chip .device-ico { width: 12px; height: 12px; color: var(--text); }

.card, .panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
  min-width: 0;
}
.card h3, .panel h3 { margin: 0 0 18px; }
.card p { color: var(--text-muted); }
.card p:last-child { margin-bottom: 0; }
.prose { min-width: 0; line-height: 1.9; overflow-wrap: break-word; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose p, .prose ul, .prose ol { margin-bottom: 24px; }
.prose li + li { margin-top: 8px; }
.prose pre { margin-block: 28px; }
.prose img { max-width: 100%; }
.reveal { opacity: 1; transform: none; }
.reveal.reveal-watch { opacity: 0; transform: translateY(16px); transition: opacity var(--ease-reveal), transform var(--ease-reveal); }
.reveal.reveal-watch.shown { opacity: 1; transform: none; }

.site-footer {
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-brand p { max-width: 29em; margin-top: 20px; color: var(--text-muted); font-size: 14px; }
.footer-title { margin: 0 0 18px; font-size: 14px; font-weight: var(--weight-medium); }
.footer-links { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.copyright p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.legal-links a { color: var(--text-muted); }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .topline-row { position: relative; z-index: 3; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 2;
    max-height: calc(100dvh - var(--topline-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--border-strong);
    background: var(--bg-panel);
    color: var(--text);
  }
  .mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
  .mobile-drawer li + li { border-top: 1px solid var(--border); }
  .mobile-drawer a[aria-current] { color: var(--accent-dark); }
  .drawer-languages { margin-top: 20px; border-top: 1px solid var(--border-strong); padding-top: 16px; }
  .drawer-label { margin: 0 12px 8px; font-size: 12px; color: var(--text-muted); }
  .menu-veil:not([hidden]) {
    display: block;
    position: fixed;
    inset: var(--topline-h) 0 0;
    z-index: 1;
    border: 0;
    padding: 0;
    background: var(--text);
    color: var(--bg-panel);
    opacity: .12;
  }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .mast { padding-top: 48px; padding-bottom: 72px; }
  .mast-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 768px) {
  h1, .headline { font-size: clamp(24px, 4.6vw, 30px); }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .preview-topline .topline-row { height: auto; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
  .preview-topline .topline-end { width: 100%; justify-content: space-between; gap: 16px; }
  .preview-topline .dotnav { font-size: 13px; }
  .preview-topline .dotnav li + li::before { margin-inline: 9px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .header-tools { margin-left: auto; gap: 8px; }
  .mark-full { display: none; }
  .mark-short { display: inline; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .header-tools .lang { min-height: 44px; }
  .topline-row { gap: 10px; }
  .mark { gap: 7px; font-size: 14px; }
  .two-up, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { gap: 32px; }
  .card, .panel { padding: 22px; }
  .tilt, [data-tilt] { transform: none !important; }
  .section-head { margin-bottom: 28px; }
  pre { padding: 18px; }
  .copyright { flex-direction: column; }
  .device-row { gap: 14px 16px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .mark-short { font-size: 12px; }
  .mark-tile { width: 26px; height: 26px; }
  .header-tools { gap: 5px; }
  .header-tools .lang { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.reveal-watch { opacity: 1; transform: none; }
}