:root {
  --bg: #ffffff;
  --bg-panel: #f2f4f6;
  --bg-panel-2: #e8ecf0;
  --border: #e1e5ea;
  --accent: #1e9ff2;
  --accent-dark: #0b78c2;
  --accent-ink: #09679f;
  --text: #2b3138;
  --text-muted: #6b737c;
  --text-muted-panel: #5d6771;
  --success: #2f9e5b;
  --warn: #c98a12;
  --error: #d64545;
  --on-accent: #ffffff;
  --tint: color-mix(in srgb, var(--accent) 6%, var(--bg));
  --ink: #172530;
  --ink-text: #ffffff;
  --ink-muted: #c5d4df;
  --ink-accent: #8bd4ff;
  --clear: transparent;

  --device-stroke: #d5dbe1;
  --alu-top: #ffffff;
  --alu-bottom: #eef1f4;
  --alu-low: #d9dee4;
  --alu-notch: #dfe4e9;
  --sky-1: #e3f2fd;
  --sky-2: #f7fbff;
  --halo: #eef7fe;
  --island: #1f2428;
  --shadow-rgb: 43 49 56;
  --veil: rgb(var(--shadow-rgb) / .22);
  --shadow-soft: 0 1px 2px rgb(var(--shadow-rgb) / .06), 0 24px 48px -24px rgb(var(--shadow-rgb) / .18);
  --shadow-hair: 0 1px 2px rgb(var(--shadow-rgb) / .05);

  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --color-primary: var(--accent-ink);
  --color-accent: var(--accent);
  --color-text: var(--text);
  --color-bg: var(--bg);
  --surface-ink: var(--text);
  --muted-ink: var(--text-muted-panel);
  --link-ink: var(--accent-ink);
  --body-size: 16px;
  --small-size: 14px;
  --micro-size: 12px;
  --body-leading: 1.75;
  --weight-display: 800;
  --weight-action: 600;
  --title-track: -.02em;
  --approved-track: -.03em;
  --title-size: clamp(34px, 2.6vw + 11px, 48px);
  --section-title: clamp(26px, 3vw, 40px);
  --r-card: 10px;
  --r-btn: 8px;
  --r-pill: 999px;
  --r-shot: 8px;
  --r-note: 15px;
  --r-icon-sm: 7px;
  --r-icon-lg: 13px;
  --r-focus: 4px;
  --r-line: 2px;
  --wrap: 1240px;
  --read: 800px;
  --gutter: 40px;
  --gap: 20px;
  --section-space: 80px;
  --head-h: 64px;
  --tap: 44px;
  --tab-w: 84px;
  --slider-w: 28px;
  --stage-w: min(700px, 92vw);
  --overlap: calc(var(--stage-w) * .1486);
  --fab-size: 52px;
  --ease-slide: .32s cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--head-h) + 24px);
  scrollbar-gutter: stable;
}
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--body-size)/var(--body-leading) var(--font-body);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main, section, article, aside, .wrap, .prose,
:where(.tiles, .site-foot-grid, .plat-grid, .feature-tabs, .chapter-split, .shot-layout, .swatches) > * {
  min-width: 0;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.read-wrap { max-width: var(--read); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:disabled, [aria-disabled="true"] { cursor: not-allowed; }
a { color: var(--link-ink); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-focus); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.18;
  letter-spacing: var(--title-track);
}
h1 { font-size: var(--title-size); text-wrap: pretty; }
h2 { font-size: var(--section-title); text-wrap: balance; }
h3 { font-size: clamp(19px, 2vw, 24px); text-wrap: balance; }
:lang(ja) :is(h1, h2, h3, .lede) { word-break: auto-phrase; }
:lang(ko) :is(h1, h2) { word-break: keep-all; }
.keep { white-space: nowrap; }
small, .small { font-size: var(--small-size); }
.muted { color: var(--muted-ink); }
code, pre, kbd, samp { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; font-size: .9em; }
pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--bg-panel);
  color: var(--text);
  white-space: pre;
}
pre code { overflow-wrap: normal; white-space: inherit; }
.prose :is(h2, h3):not(:first-child) { margin-block-start: 1.5em; }
.prose li + li { margin-block-start: .4em; }
:where(.btn, .brand, .head-tools, .platforms, .badge, .get-note, .device-card, .dl-fab) svg,
:where(.status-dot, .app-mark, .device-icon) { flex-shrink: 0; }

.sec { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.sec--white { background: var(--bg); color: var(--text); }
.sec--panel { background: var(--bg-panel); color: var(--text); }
.sec--tint { background: var(--tint); color: var(--text); }
.sec--ink {
  --surface-ink: var(--ink-text);
  --muted-ink: var(--ink-muted);
  --link-ink: var(--ink-accent);
  background: var(--ink);
  color: var(--surface-ink);
}
.clip-decor { position: relative; overflow-x: clip; }
.decor-fill { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card, .panel {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  --muted-ink: var(--text-muted-panel);
  --link-ink: var(--accent-ink);
}
.card { box-shadow: var(--shadow-soft); }
.panel { background: var(--bg-panel); color: var(--text); }
.card :last-child, .panel :last-child { margin-block-end: 0; }
.card :is(h2, h3) a, .panel :is(h2, h3) a { text-decoration: none; }
.card :is(h2, h3) a:hover, .panel :is(h2, h3) a:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 8px 22px;
  border: 1px solid var(--clear);
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: var(--weight-action);
  line-height: 1.35;
  letter-spacing: -.005em;
  text-decoration: none;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--color-primary); color: var(--on-accent); box-shadow: var(--shadow-soft); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-hair); }
.btn-ghost svg { color: var(--text-muted); }
.btn:not(:disabled, [aria-disabled="true"]):hover, .btn.is-hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:not(:disabled, [aria-disabled="true"]):active, .btn.is-pressed { transform: translateY(1px); box-shadow: var(--shadow-hair); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted-panel); box-shadow: none; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.head-shell {
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  height: var(--head-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  font: 700 15px/1.25 var(--font-display);
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand:hover { text-decoration: underline; }
.brand-name { min-width: 0; text-wrap: balance; }
.brand-en { color: var(--accent-ink); }
.brand-zh { color: var(--text); }
.app-mark { display: block; width: 30px; height: 30px; border-radius: var(--r-icon-sm); }
.app-mark--lg {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: var(--r-icon-lg);
  box-shadow: var(--shadow-soft);
}
.primary { display: flex; align-self: stretch; min-width: 0; margin-inline-start: auto; }
.tabs {
  --i: 0;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tabs > li { display: flex; align-self: stretch; min-width: 0; }
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tab-w);
  color: var(--text-muted);
  font-size: var(--small-size);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.tab:hover, .tab:focus-visible { color: var(--text); text-decoration: underline; }
.tab[aria-current] { color: var(--text); font-weight: var(--weight-action); }
.tabs::after {
  content: "";
  position: absolute;
  inset-inline-start: calc((var(--tab-w) - var(--slider-w)) / 2);
  bottom: -1px;
  width: var(--slider-w);
  height: 2px;
  border-radius: var(--r-line);
  background: var(--accent);
  transform: translateX(calc(var(--i) * var(--tab-w)));
  transition: transform var(--ease-slide);
  pointer-events: none;
}
.primary:not([data-active]), .primary[data-active=""] { --no-slider: none; }
.tabs::after { display: var(--no-slider, block); }
.primary[data-active="download"] .tabs { --i: 1; }
.primary[data-active="about"] .tabs { --i: 2; }
.primary[data-active="deepdoc"] .tabs { --i: 3; }
.primary[data-active="tutorial"] .tabs { --i: 4; }
.primary[data-active="features"] .tabs { --i: 5; }
.primary[data-active="glossary"] .tabs { --i: 6; }
.primary[data-active="blog"] .tabs { --i: 7; }
.primary .tabs:has(> li:nth-child(1) > .tab:is(:hover, :focus-visible)) { --i: 0; }
.primary .tabs:has(> li:nth-child(2) > .tab:is(:hover, :focus-visible)) { --i: 1; }
.primary .tabs:has(> li:nth-child(3) > .tab:is(:hover, :focus-visible)) { --i: 2; }
.primary .tabs:has(> li:nth-child(4) > .tab:is(:hover, :focus-visible)) { --i: 3; }
.primary .tabs:has(> li:nth-child(5) > .tab:is(:hover, :focus-visible)) { --i: 4; }
.primary .tabs:has(> li:nth-child(6) > .tab:is(:hover, :focus-visible)) { --i: 5; }
.primary .tabs:has(> li:nth-child(7) > .tab:is(:hover, :focus-visible)) { --i: 6; }
.primary .tabs:has(> li:nth-child(8) > .tab:is(:hover, :focus-visible)) { --i: 7; }
html:not(:lang(zh)) .tab { width: auto; padding-inline: 10px; }
html:not(:lang(zh)) .tabs::after { display: none; }
html:not(:lang(zh)) .tab[aria-current] { border-bottom: 2px solid var(--accent); }

.head-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lang-switch { position: relative; }
.lang, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
}
.lang {
  min-height: 32px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  white-space: nowrap;
}
.lang:hover, .menu-toggle:hover { color: var(--text); }
.lang svg { width: 14px; height: 14px; }
.lang-short { display: none; }
.menu-toggle {
  display: none;
  min-width: var(--tap);
  min-height: var(--tap);
  border-radius: var(--r-btn);
}
.menu-toggle svg { width: 20px; height: 20px; }
.lang-menu, .nav-drawer {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.lang-menu {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 144px;
  max-height: calc(100dvh - var(--head-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  border-radius: var(--r-card);
}
.nav-drawer {
  display: none;
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  top: 100%;
  max-height: calc(100dvh - var(--head-h) - 1px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 20px;
}
.nav-drawer p { margin: 14px 0 4px; padding-inline: 12px; }
.nav-drawer ul, .site-foot ul { padding: 0; margin: 0; list-style: none; }
:is(.nav-drawer, .lang-menu) a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px;
  border-radius: var(--r-btn);
  color: var(--text);
  text-decoration: none;
}
:is(.nav-drawer, .lang-menu) a:is(:hover, [aria-current]) {
  background: var(--tint);
  color: var(--accent-ink);
}
.nav-veil { position: fixed; z-index: 1; inset: calc(var(--head-h) + 1px) 0 0; background: var(--veil); color: var(--text); }

.site-foot {
  padding-block: 64px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-panel);
  color: var(--text);
}
.site-foot-grid { display: grid; grid-template-columns: 1.25fr .85fr 1.2fr .7fr; gap: 32px; }
.site-foot h2 { font-size: 15px; line-height: 1.4; }
.site-foot .brand { margin-block-end: 12px; }
.site-foot p, .site-foot li { font-size: var(--small-size); }
.site-foot li + li { margin-block-start: 4px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-platforms { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.foot-end {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted-panel);
  font-size: var(--micro-size);
}

.reveal { opacity: 1; }
html.reveal-ready .reveal { transition: opacity .45s ease; }
html.reveal-ready .reveal:not(.shown):not(:focus-within) { opacity: 0; }

@media (max-width: 1280px) {
  html:not(:lang(zh)) .primary { display: none; }
  html:not(:lang(zh)) .head-tools { margin-inline-start: auto; }
  html:not(:lang(zh)) .menu-toggle { display: inline-flex; }
  html:not(:lang(zh)) .nav-drawer:not([hidden]) { display: block; }
}
@media (max-width: 1024px) {
  .primary { display: none; }
  .head-tools { margin-inline-start: auto; }
  .menu-toggle { display: inline-flex; }
  .nav-drawer:not([hidden]) { display: block; }
  .head-shell { gap: 8px; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --title-size: clamp(24px, 3.9vw, 30px); --section-space: 48px; }
  .site-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (max-width: 640px) {
  .brand { gap: 6px; }
  .brand-name { max-width: min(16.5rem, calc(100vw - 155px)); }
  .lang { min-height: var(--tap); padding-inline: 8px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .tilt, .decor-tilt, [class*="tilt"] { transform: none !important; rotate: none !important; }
  .site-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; }
}