/* ============================================================
   谱来Score · 介绍站
   深色中性表面 + 靛紫主色（App seed #7777AA）
   ============================================================ */

:root {
  --bg: #0e0e12;
  --bg-soft: #131319;
  --surface: #1a1a22;
  --surface-2: #23232d;
  --line: rgba(232, 230, 244, 0.09);
  --text: #e9e7f2;
  --text-2: #a5a3b5;
  --text-3: #6e6c7d;

  --primary: #c7c4f2;
  --primary-ink: #23224b;
  --accent: #8f8ade;
  --glow: 143, 138, 222; /* --accent 的 rgb 分量 */
  --shot-filter: none;

  --r-lg: 20px;
  --shell: min(1160px, calc(100% - 48px));

  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(var(--glow), 0.3); color: #fff; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

p { margin: 0; }

.i {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.logo-mark { width: 30px; height: 30px; display: block; flex: 0 0 auto; }
.logo-mark svg { width: 100%; height: 100%; display: block; }

/* ── 导航 ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(14, 14, 18, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.stuck {
  background: rgba(14, 14, 18, 0.9);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: var(--shell);
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand strong { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-tail { display: flex; align-items: center; gap: 12px; }
.nav-links + .nav-tail { margin-left: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn .i { width: 15px; height: 15px; }

.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: color 0.2s;
}

.text-link .i { width: 14px; height: 14px; }
.text-link:hover { color: var(--text); }

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 64px 0 auto;
  z-index: 59;
  background: rgba(14, 14, 18, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px 18px;
  display: none;
  flex-direction: column;
}

.mobile-menu.on { display: flex; }
.mobile-menu a { padding: 12px 10px; border-radius: 10px; font-size: 15px; color: var(--text-2); }
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

/* ── Hero ── */

.hero {
  position: relative;
  padding: clamp(44px, 6vw, 80px) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px; left: -200px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(var(--glow), 0.16), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .mark { color: var(--primary); }

.hero-sub {
  margin-top: 20px;
  font-size: 16.5px;
  color: var(--text-2);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
}

.hero-actions .btn { height: 46px; padding: 0 26px; font-size: 15px; }

.hero-meta {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.device {
  position: relative;
  padding: 12px;
  border-radius: 26px;
  background: linear-gradient(160deg, #282833, #15151c 60%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}

.device-screen {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1280 / 750;
  background: #000;
}

.device-screen img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--shot-filter);
  transition: filter 0.45s ease;
}

/* ── 区块 ── */

section.block {
  position: relative;
  padding: clamp(44px, 5.2vw, 72px) 0;
  scroll-margin-top: 64px;
}

/* ── 实机画面轮换 ── */

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-transform: uppercase;
}

.slide-count { font-family: var(--mono); font-size: 12px; color: var(--text-3); }

.showcase-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.showcase-copy { min-width: 0; }

.showcase-copy h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 14px;
}

.showcase-copy p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.8;
  min-height: 3.6em;
}

.slide-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 28px; }

.arr {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.arr .i { width: 16px; height: 16px; }

.arr:hover {
  color: var(--primary);
  border-color: rgba(var(--glow), 0.5);
  background: rgba(var(--glow), 0.08);
}

.dots { display: flex; gap: 8px; }

.dots button {
  width: 18px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--surface-2);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.dots button.on { width: 34px; background: var(--primary); }

.showcase-stage { position: relative; outline: none; }
.showcase-stage:focus-visible .device { box-shadow: 0 0 0 2px var(--primary); }

.slide-track {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.slide-track img {
  flex: 0 0 25%;
  width: 25%;
  height: 100%;
  object-fit: cover;
}

.slide-progress {
  height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.slide-progress i { display: block; height: 100%; width: 0; background: var(--primary); }
.slide-progress.run i { animation: slideFill 4.8s linear forwards; }
.slide-progress.paused i { animation-play-state: paused; }
@keyframes slideFill { to { width: 100%; } }

.copy-swap { animation: copyIn 0.35s ease both; }
@keyframes copyIn { from { opacity: 0.35; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── 版本对照 ── */

.section-title {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 18px;
}

.plan-table { border-top: 1px solid var(--line); }

.plan-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.plan-row.head { font-size: 13px; color: var(--text-3); }
.plan-row.head b { font-weight: 600; color: var(--text); font-size: 15px; }
.plan-row.head b:nth-child(2) { color: var(--text-2); }
.plan-row.head b:last-child { color: var(--primary); }
.plan-row > span { color: var(--text-2); }
.plan-row em { font-style: normal; color: var(--text-2); }
.plan-row i { font-style: normal; color: var(--text-3); font-size: 15px; }
.plan-row i:last-child { color: var(--primary); font-weight: 600; }

.plan-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.85;
}

.plan-note a { color: var(--primary); border-bottom: 1px solid rgba(var(--glow), 0.4); }

/* ── 其他功能清单 ── */

.more {
  margin-top: clamp(40px, 5vw, 68px);
  border-top: 1px solid var(--line);
}

.more-list { margin: 0; padding: 0; }

.more-list > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.more-list dt { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.more-list dd { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.8; }
.more-list code { font-family: var(--mono); font-size: 13px; }

/* ── 配色 ── */

.themes-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.themes-txt h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 14px;
}

.themes-txt p { font-size: 15px; color: var(--text-2); }

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sw {
  width: 34px; height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
  padding: 0;
}

.sw:hover { transform: translateY(-2px); }

.sw.on {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px currentColor;
}

.sw span {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.sw:hover span { opacity: 1; }

.mini-app {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}

.mini-body {
  display: grid;
  grid-template-columns: 72px 1fr;
}

.mini-rail {
  border-right: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mini-rail .it {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: var(--text-3);
}

.mini-rail .it.on { color: var(--text); }

.mini-rail .pill {
  width: 32px; height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.mini-rail .it.on .pill { background: rgba(var(--glow), 0.24); color: var(--primary); }
.mini-rail svg { width: 14px; height: 14px; }

.mini-main { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mini-main h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid transparent;
  font-size: 12px;
  transition: border-color 0.3s;
}

.mini-row.on { border-color: rgba(var(--glow), 0.5); background: rgba(var(--glow), 0.08); }

.mini-row .sq {
  width: 22px; height: 26px;
  border-radius: 4px;
  background: #e7e7ea;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.mini-row .sq::after {
  content: "";
  position: absolute;
  inset: 5px 3px;
  background: repeating-linear-gradient(180deg, #9a9aa4 0 1px, transparent 1px 4px);
}

.mini-row .t small { display: block; color: var(--text-3); font-size: 10.5px; margin-top: 2px; }

.mini-btn {
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 11.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 6px;
  transition: background 0.3s;
}

/* ── 下载 ── */

.download {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: clamp(28px, 4vw, 48px);
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dl-head img {
  width: 64px; height: 64px;
  border-radius: 17px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dl-head h2 { font-size: clamp(24px, 2.8vw, 34px); }

.dl-ver {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}

.dl-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}

.dl-card {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.dl-card .top { display: flex; align-items: center; gap: 9px; }
.dl-card h3 { font-size: 16px; }

.dl-card .badge {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(var(--glow), 0.2);
  color: var(--primary);
  font-weight: 600;
}

.dl-card .spec {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

.dl-card .btn { margin-top: 18px; width: 100%; }

.dl-card .hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
  margin-top: 12px;
}

.dl-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3);
}

details.sha { margin-top: 16px; font-size: 12px; color: var(--text-3); }
details.sha summary { cursor: pointer; }
details.sha code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── 授权 + 问答 ── */

.license h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 14px;
}

.license p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 46em;
  line-height: 1.85;
}

.license a {
  color: var(--primary);
  border-bottom: 1px solid rgba(var(--glow), 0.4);
  padding-bottom: 1px;
}

.faq-list { margin-top: 28px; }

.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.faq-q:hover { color: var(--primary); }

.faq-q .pm {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  position: relative;
  color: var(--text-3);
}

.faq-q .pm::before,
.faq-q .pm::after {
  content: "";
  position: absolute;
  inset: 50% 3px auto;
  height: 1.4px;
  background: currentColor;
  border-radius: 2px;
}

.faq-q .pm::after { transform: rotate(90deg); transition: transform 0.3s; }
.faq-item.open .faq-q .pm::after { transform: rotate(0deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.85;
}

/* ── 页脚 ── */

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 24px;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-slogan { font-size: 13px; color: var(--text-3); }
.footer-copy { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }

/* ── 滚动出现 ── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .slide-track { transition: none; }
  .slide-progress.run i { animation: none; width: 100%; }
  .copy-swap { animation: none; }
}

/* ── 响应式 ── */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .stage { max-width: 720px; }
  .showcase-grid { grid-template-columns: 1fr; gap: 26px; }
  .showcase-copy p { min-height: 0; }
  .themes-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-tail { margin-left: auto; }
  .nav-burger { display: flex; }
  .more-list > div { grid-template-columns: 1fr; gap: 6px; }
  .plan-row { grid-template-columns: 1.7fr repeat(3, 1fr); gap: 6px; font-size: 13px; padding: 14px 2px; }
  .plan-row.head b { font-size: 13px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  body { font-size: 15px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero-actions .btn { flex: 1 1 auto; }
  .dl-cards { grid-template-columns: 1fr; }
  .device { padding: 8px; border-radius: 18px; }
  .device-screen { border-radius: 12px; }
  .showcase-top { margin-bottom: 14px; }
  .showcase-copy h2 { font-size: 26px; }
  .showcase-copy p { font-size: 14px; }
  .slide-ctrl { margin-top: 18px; }
  .arr { width: 30px; height: 30px; }
  .footer-copy { margin-left: 0; }
}
