/* 星伴 Starmate 介绍页
 *
 * 版式沿用 xmyun 系列站点：白底、扁平、大圆角、用淡彩色块区分内容，藏蓝做标题色、玫瑰粉做主色。
 * 星伴自己的部分：快乐体标题、圆体正文、App 壁纸那样的粉桃渐变和小星星，导航栏用毛玻璃。
 * 字体是 tools/build_assets.py 按页面文字裁出的子集，改了文案后重新跑一次脚本。
 */

@font-face {
  font-family: "Starmate KuaiLe";
  src: url("assets/fonts/kuaile.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Starmate Round";
  src: url("assets/fonts/round.woff2") format("woff2");
  font-display: swap;
}

:root {
  --page: #ffffff;
  --paper: #f8f4f7;
  --card: #ffffff;
  --line: #ece4ea;
  --ink: #2a2347;
  --ink-soft: #5b5573;
  --ink-mute: #8a839f;
  --brand: #c2386f;
  --brand-strong: #a3245a;
  --brand-soft: #fde8f0;
  --on-brand: #ffffff;

  /* 淡彩色块和配套的深色字：腮红、薰衣草、水蓝、奶黄、薄荷、蜜桃 */
  --tint-1: #fde8f0; --tint-1-ink: #c2386f;
  --tint-2: #efe8ff; --tint-2-ink: #7353cf;
  --tint-3: #e1f1fa; --tint-3-ink: #1d78a8;
  --tint-4: #fff3d9; --tint-4-ink: #a8670b;
  --tint-5: #e3f5ea; --tint-5-ink: #24814f;
  --tint-6: #ffece2; --tint-6-ink: #c0532c;

  --hero-grad: linear-gradient(165deg, #ffdbe4 0%, #fde3df 52%, #fcdcc8 100%);
  --hero-star: rgba(255, 255, 255, 0.95);
  --phone-rim: rgba(255, 255, 255, 0.92);
  --phone-shadow: 0 34px 70px -28px rgba(170, 50, 95, 0.45);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 12px 30px -12px rgba(150, 60, 100, 0.35);
  --nav-glass: rgba(255, 255, 255, 0.72);

  --font-display: "Starmate KuaiLe", "ZCOOL KuaiLe", ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Starmate Round", ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #131121;
    --paper: #1c192e;
    --card: #221e37;
    --line: #342f4d;
    --ink: #f3eefb;
    --ink-soft: #c6bfd9;
    --ink-mute: #938cab;
    --brand: #ff8fbf;
    --brand-strong: #ffb2d3;
    --brand-soft: #42213a;
    --on-brand: #2b0f1f;
    --tint-1: #3a2035; --tint-1-ink: #ff9ec7;
    --tint-2: #2c2650; --tint-2-ink: #bba7ff;
    --tint-3: #1a3346; --tint-3-ink: #8fd0f2;
    --tint-4: #3a3020; --tint-4-ink: #f2c46e;
    --tint-5: #1b382c; --tint-5-ink: #8ddcae;
    --tint-6: #3d271f; --tint-6-ink: #ffab86;
    --hero-grad: linear-gradient(165deg, #2c1b33 0%, #261b30 52%, #2e1f2a 100%);
    --hero-star: rgba(255, 220, 236, 0.85);
    --phone-rim: #2c2642;
    --phone-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.7);
    --glass: rgba(42, 34, 64, 0.72);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
    --nav-glass: rgba(19, 17, 33, 0.72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #131121;
  --paper: #1c192e;
  --card: #221e37;
  --line: #342f4d;
  --ink: #f3eefb;
  --ink-soft: #c6bfd9;
  --ink-mute: #938cab;
  --brand: #ff8fbf;
  --brand-strong: #ffb2d3;
  --brand-soft: #42213a;
  --on-brand: #2b0f1f;
  --tint-1: #3a2035; --tint-1-ink: #ff9ec7;
  --tint-2: #2c2650; --tint-2-ink: #bba7ff;
  --tint-3: #1a3346; --tint-3-ink: #8fd0f2;
  --tint-4: #3a3020; --tint-4-ink: #f2c46e;
  --tint-5: #1b382c; --tint-5-ink: #8ddcae;
  --tint-6: #3d271f; --tint-6-ink: #ffab86;
  --hero-grad: linear-gradient(165deg, #2c1b33 0%, #261b30 52%, #2e1f2a 100%);
  --hero-star: rgba(255, 220, 236, 0.85);
  --phone-rim: #2c2642;
  --phone-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.7);
  --glass: rgba(42, 34, 64, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  --nav-glass: rgba(19, 17, 33, 0.72);
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  /* 两款字体都只有一个字重，不让浏览器伪造粗体和斜体 */
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
}
p { margin: 0; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.1em 0.45em;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  word-break: break-all;
}
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 12px;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
}
.skip:focus { top: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn-primary:hover { background: var(--brand-strong); }
.btn-soft {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-soft:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-ghost {
  background: transparent;
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn-ghost:hover { background: var(--brand-soft); }
.btn-block { width: 100%; }
.btn-disabled {
  background: var(--paper);
  color: var(--ink-mute);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default;
}
.btn-disabled:hover { transform: none; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pill-btn:hover { background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.pill-btn .stars {
  padding-left: 8px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 14px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand-strong); }
.icon-btn .ico { width: 20px; height: 20px; }
.show-dark { display: none; }
:root[data-theme="dark"] .show-dark { display: block; }
:root[data-theme="dark"] .show-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .show-dark { display: block; }
  :root:not([data-theme="light"]) .show-light { display: none; }
}

/* ---------- 导航栏（毛玻璃） ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--page); }
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 11px; }
.brand-name { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.brand-en { color: var(--ink-mute); font-size: 13px; letter-spacing: 0.04em; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 首屏 ---------- */
.hero-section { padding-top: 16px; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  min-height: 560px;
  padding: 64px 0 0 64px;
  border-radius: var(--radius-xl);
  background: var(--hero-grad);
  overflow: hidden;
  isolation: isolate;
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
  color: var(--brand-strong);
  font-size: 14px;
}
.eyebrow .ico { width: 14px; height: 14px; }
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.hl {
  position: relative;
  color: var(--brand);
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.08em;
  height: 0.28em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  z-index: -1;
}
.lead { max-width: 30em; color: var(--ink); font-size: 19px; line-height: 1.75; }
.lead-sub { max-width: 32em; margin-top: 10px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-mute);
  font-size: 14px;
}
.hero-tags li { display: inline-flex; align-items: center; gap: 6px; }
.hero-tags li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 60%, transparent);
}

.hero-art { position: relative; min-height: 500px; }
.phone {
  position: absolute;
  width: 270px;
  border: 7px solid var(--phone-rim);
  border-radius: 40px;
  background: var(--phone-rim);
  box-shadow: var(--phone-shadow);
  overflow: hidden;
}
.phone img { width: 100%; border-radius: 33px; }
.phone-front { left: 6%; top: 34px; z-index: 2; transform: rotate(-4deg); }
.phone-back { left: 44%; top: 80px; z-index: 1; transform: rotate(7deg); }

.float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-border), var(--glass-shadow);
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-a { left: -4%; top: 150px; border-bottom-left-radius: 6px; }
.float-b { right: 6%; top: 46px; color: var(--brand-strong); animation-delay: -2s; }
.float-c {
  right: 14%;
  bottom: 70px;
  width: 52px;
  height: 52px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  color: var(--brand);
  animation-delay: -4s;
}
.float-c .ico { width: 24px; height: 24px; fill: color-mix(in srgb, var(--brand) 25%, transparent); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparkles svg {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  color: var(--hero-star);
  animation: twinkle 3.2s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}

/* ---------- 通用分区 ---------- */
.section { padding-block: 88px 0; }
.section.narrow { width: min(800px, 100% - 32px); }
.kicker {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 17px;
  text-align: center;
}
.section h2 {
  margin-top: 6px;
  font-size: clamp(30px, 4.2vw, 42px);
  text-align: center;
}
.section-sub {
  max-width: 34em;
  margin: 12px auto 0;
  font-size: 17px;
  text-align: center;
  text-wrap: balance;
}
.hero h1, .section h2, .lead, .lead-sub { text-wrap: balance; }

/* ---------- 功能 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.feature {
  padding: 26px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--t);
  transition: transform 0.25s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: var(--card);
  color: var(--c);
}
.feature-icon .ico { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 8px; font-size: 22px; }
.feature p { font-size: 15px; line-height: 1.8; }

/* ---------- 外观截图 ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  width: min(1120px, 100% - 32px);
  margin: 44px auto 0;
}
.shots:focus-visible { outline-offset: 8px; }
.shot { margin: 0; }
.shot img {
  width: 100%;
  border: 5px solid var(--card);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 24px 40px -30px rgba(80, 40, 90, 0.45);
  transition: transform 0.3s ease;
}
.shot:hover img { transform: translateY(-6px) rotate(-1deg); }
.shot figcaption {
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 14px;
  text-align: center;
}

/* ---------- 隐私 ---------- */
.privacy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding: 56px;
  border-radius: var(--radius-xl);
  background: var(--tint-2);
}
.privacy-copy { align-self: center; }
.privacy .kicker, .privacy h2 { text-align: left; }
.privacy .kicker { color: var(--tint-2-ink); }
.privacy-copy p:not(.kicker) { margin-top: 14px; font-size: 16px; }
.privacy-copy h2 + p { margin-top: 18px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--tint-2-ink);
  font-family: var(--font-display);
  font-size: 18px;
}
.text-link .ico { transition: transform 0.2s ease; }
.text-link:hover .ico { transform: translateX(4px); }
.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.privacy-points li {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--card);
}
.pp-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--tint-2);
  color: var(--tint-2-ink);
}
.pp-icon .ico { width: 22px; height: 22px; }
.privacy-points h3 { margin-bottom: 6px; font-size: 19px; }
.privacy-points p { font-size: 14.5px; line-height: 1.75; }

/* ---------- 下载 ---------- */
.editions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
  align-items: stretch;
}
.edition {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.edition-main {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent);
}
.badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 14px;
}
.edition-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
}
.edition-icon img { border-radius: 15px; }
.edition-icon-beta { background: var(--tint-2); color: var(--tint-2-ink); }
.edition-icon-play { background: var(--tint-5); color: var(--tint-5-ink); }
.edition-icon .ico { width: 26px; height: 26px; }
.edition h3 { font-size: 24px; }
.edition-desc { margin-top: 8px; font-size: 15px; line-height: 1.8; }
.edition-facts {
  flex: 1;
  margin: 14px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-mute);
}
.edition-facts li { position: relative; padding-left: 16px; margin-top: 4px; }
.edition-facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 55%, transparent);
}
.edition-facts code { font-size: 0.92em; background: var(--card); }
.edition-meta {
  min-height: 1.6em;
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 13.5px;
  text-align: center;
  text-wrap: balance;
}
.checksum { margin-top: 8px; font-size: 13px; }
.checksum summary {
  color: var(--ink-mute);
  text-align: center;
  cursor: pointer;
  list-style: none;
}
.checksum summary::-webkit-details-marker { display: none; }
.checksum summary:hover { color: var(--brand-strong); }
.checksum-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.checksum-row code { flex: 1; font-size: 12px; line-height: 1.6; background: var(--card); padding: 8px 10px; }
.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
}
.copy-btn:hover { color: var(--brand-strong); }
.copy-btn.done { color: var(--tint-5-ink); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--paper);
}
.step-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-size: 20px;
}
.steps h3 { font-size: 19px; }
.steps p { margin-top: 4px; font-size: 14.5px; line-height: 1.75; }

/* ---------- 常见问题 ---------- */
.faq { display: grid; gap: 12px; margin-top: 40px; }
.faq details {
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: background-color 0.2s ease;
}
.faq details[open] { background: var(--brand-soft); }
.faq summary {
  position: relative;
  padding: 18px 56px 18px 24px;
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: transform 0.25s ease, margin-top 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 24px 20px; font-size: 15.5px; }

/* ---------- 结尾 ---------- */
.cta {
  position: relative;
  padding: 64px 32px;
  border-radius: var(--radius-xl);
  background: var(--hero-grad);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta h2 { position: relative; z-index: 2; margin: 0; }
.cta p { position: relative; z-index: 2; margin-top: 10px; font-size: 17px; }
.cta .hero-actions { position: relative; z-index: 2; justify-content: center; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 88px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
}
.footer-brand span { color: var(--ink-mute); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand-strong); }
.footer-note { grid-column: 1 / -1; color: var(--ink-mute); font-size: 13px; }
.footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 隐私政策页 ---------- */
.policy-page { padding-top: 28px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 15px;
}
.back-link:hover { background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.policy-hero { margin-top: 28px; text-align: center; }
.policy-hero h1 { margin-top: 6px; font-size: clamp(34px, 5vw, 48px); }
.lang-switch { display: inline-flex; gap: 8px; margin-top: 22px; }
.lang-switch a {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-size: 16px;
}
.lang-switch a:hover { background: var(--brand); color: var(--on-brand); text-decoration: none; }

.policy {
  margin-top: 40px;
  padding: 44px 48px 48px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.85;
}
.policy h2 { font-size: clamp(26px, 3.4vw, 32px); }
.policy h2 + p { margin-top: 8px; color: var(--ink-mute); font-size: 14px; }
.policy h3 { margin: 36px 0 4px; font-size: 22px; }
.policy h4 { margin: 26px 0 2px; font-size: 19px; }
.policy p { margin-top: 10px; }
.policy h3:first-of-type + p {
  margin-top: 12px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--ink);
}
.policy ul, .policy ol { margin: 10px 0 0; padding-left: 1.5em; }
.policy li { margin-top: 6px; padding-left: 4px; }
.policy li::marker { color: var(--brand); }
.policy strong { color: var(--ink); font-family: var(--font-display); font-weight: 400; }
.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.policy table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.policy th, .policy td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.policy th { color: var(--ink); font-family: var(--font-display); font-weight: 400; }
.policy td:first-child { width: 34%; color: var(--ink); }
.policy tbody tr:last-child td { border-bottom: 0; }

/* ---------- 进入视口时轻轻浮上来（只在脚本可用时隐藏） ---------- */
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots {
    display: flex;
    gap: 16px;
    width: 100%;
    padding: 4px 16px 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: thin;
  }
  .shot { flex: 0 0 200px; scroll-snap-align: start; }
  .privacy { grid-template-columns: 1fr; padding: 44px 36px; }
  .editions { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 44px 24px 0;
    text-align: center;
  }
  .hero-copy { padding-bottom: 0; }
  .lead, .lead-sub { margin-inline: auto; }
  .hero-actions, .hero-tags { justify-content: center; }
  .hero-art { min-height: 400px; width: min(440px, 100%); margin-inline: auto; }
  .phone { width: 210px; border-width: 6px; border-radius: 32px; }
  .phone img { border-radius: 26px; }
  .phone-front { left: 8%; top: 36px; }
  .phone-back { left: 44%; top: 70px; }
  .float-a { left: 0; top: 150px; }
  .float-b { right: 0; top: 30px; }
  .float-c { right: 6%; bottom: 60px; }
}

@media (max-width: 560px) {
  .brand-en { display: none; }
  .pill-btn span:not(.stars) { display: none; }
  .pill-btn { padding: 0 12px; }
  .hero { border-radius: 32px; padding: 36px 18px 0; }
  .hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .lead-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-art { min-height: 340px; }
  .phone { width: 176px; border-radius: 28px; }
  .phone img { border-radius: 22px; }
  .phone-front { left: 4%; }
  .phone-back { left: 46%; top: 66px; }
  .float { font-size: 14px; padding: 9px 13px; }
  .float-a { top: 128px; }
  .section { padding-top: 64px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 22px 20px 24px; }
  .privacy { padding: 32px 20px; border-radius: 32px; }
  .privacy-points { grid-template-columns: 1fr; }
  .edition { padding: 26px 22px 22px; }
  .cta { padding: 48px 20px; border-radius: 32px; }
  .policy { padding: 30px 20px 32px; border-radius: 28px; font-size: 15.5px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}
