/* ── tokens ─────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --accent: #0071e3;
  --accent-soft: #eaf3ff;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e5e5ea;
  --card: #ffffff;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, .45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000000;
    --bg-soft: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #86868b;
    --line: #2c2c2e;
    --card: #1c1c1e;
    --accent-soft: #10263f;
    --shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
  }
}

/* ── base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 2 * clamp(20px, 5vw, 48px)); margin-inline: auto; }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.nav-inner {
  width: min(1080px, 100% - 2 * clamp(20px, 5vw, 48px));
  margin-inline: auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12.5px;
  transition: color .2s;
}

.nav-link:hover { color: var(--text); }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: clamp(56px, 8vw, 92px) 0 12px; text-align: center; }

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 25%;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.eyebrow {
  margin: 26px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: 1px;
}

.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

h1 {
  margin: 12px auto 0;
  font-size: clamp(2.7rem, 6vw, 4.2rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.tagline {
  max-width: 26em;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.sub {
  max-width: 58ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  transition: filter .2s, transform .2s;
}

.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.985); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.link {
  color: var(--accent);
  font-size: 15.5px;
}

.link:hover { text-decoration: underline; }

.meta {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 12.5px;
}

/* ── hero visual ────────────────────────────────────────── */
.visual { padding: 34px 0 10px; }

.visual-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 58px);
  border-radius: 32px;
  background:
    radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg-soft);
  overflow: hidden;
}

.visual-panel > img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .08);
}

.visual-panel.narrow > img { max-width: 780px; }

.visual-caption {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

/* ── sections ───────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 96px) 0 0; scroll-margin-top: 60px; }

.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.section-sub {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* ── features ───────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 36px;
  margin-top: 46px;
}

.feature-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent);
}

.feature-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 16px 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ── split ──────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  margin-top: 46px;
}

.split.rev .split-text { order: 2; }
.split.rev .split-media { order: 1; }

.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

.split p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.75; }

.split-media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.split-media .plain {
  box-shadow: none;
  border-radius: 24px;
}

/* ── track diagram ──────────────────────────────────────── */
.tracks {
  margin-top: 44px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.track {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.track:last-child { border-bottom: 0; }

.track-name { font-size: 13.5px; font-weight: 550; }
.track-note { color: var(--faint); font-size: 11.5px; }

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  overflow: hidden;
}

.wave i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* ── install ────────────────────────────────────────────── */
.install-box {
  margin-top: 42px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 26px;
  background: var(--bg-soft);
}

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }

.steps li {
  position: relative;
  padding-left: 46px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.steps strong { color: var(--text); font-weight: 600; }

.note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.note strong { color: var(--text); }

/* ── download card ──────────────────────────────────────── */
.download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 42px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.download h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.download p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.sha {
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  word-break: break-all;
}

.copy {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: none;
  color: var(--faint);
  font-size: 10px;
  cursor: pointer;
}

.copy:hover { color: var(--text); }

/* ── footer ─────────────────────────────────────────────── */
.foot {
  margin-top: clamp(64px, 9vw, 100px);
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 24px 0 36px;
  color: var(--faint);
  font-size: 12px;
}

.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-text, .split.rev .split-media { order: initial; }
}

@media (max-width: 640px) {
  .app-icon { width: 88px; height: 88px; }
  h1 { font-size: 2.4rem; }
  .tagline { max-width: none; }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .download { flex-direction: column; align-items: flex-start; }
  .track { grid-template-columns: 76px 1fr; }
  .track-note { display: none; }
  .visual-panel { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ── 0.3.1: quick install + screenshot details ─────────── */
code {
  font-family: var(--mono);
  font-size: .92em;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border-radius: 5px;
  padding: 1px 5px;
}

.quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

@media (max-width: 900px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr; } }

.quick-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 20px;
}

.quick-card .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.quick-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -.01em;
}

.quick-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }

.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.shot figcaption b { color: var(--text); font-weight: 600; }

.gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 860px) { .gallery.two { grid-template-columns: 1fr; } }

.shot.wide { margin-top: 34px; }

.shot.wide img { border-radius: 12px; }

.gallery { align-items: stretch; }
.gallery .shot { display: flex; flex-direction: column; }
.gallery .shot figcaption { margin-top: auto; padding-top: 12px; }

/* 小屏防溢出 */
.sha, .sha span { overflow-wrap: anywhere; word-break: break-word; }
.download { flex-wrap: wrap; }
.download > * { min-width: 0; }
.quick-card p, .feature p, .steps li, .note { overflow-wrap: anywhere; }
