:root {
  --bg: #0f1329;
  --bg-deep: #0a0e20;
  --surface: #1a2040;
  --surface-2: #222a52;
  --line: #2c3465;
  --accent: #2f74fd;
  --accent-2: #6aa2ff;
  --gold: #f5c453;
  --gold-deep: #e0a32e;
  --text: #f5f7fa;
  --muted: #a6aecf;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 19, 41, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; overflow: hidden;
  display: grid; place-items: center; background: transparent;
}
.brand .logo img { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  background: var(--accent); color: #fff;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 620px;
  background: radial-gradient(600px 320px at 50% 0%, rgba(47,116,253,.35), transparent 70%);
  pointer-events: none;
}
.hero .tag-line {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(47,116,253,.14); color: var(--accent-2);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-size: 52px; line-height: 1.15; margin: 0 0 18px; letter-spacing: -.5px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 14px;
  background: #000; border: 1px solid var(--line); color: #fff;
}
.store-badge .apple { font-size: 24px; line-height: 1; }
.store-badge small { display: block; font-size: 11px; color: #b9c0d8; }
.store-badge b { font-size: 16px; }

/* ---------- 截图扇形 ---------- */
.fan {
  position: relative;
  height: 610px;
  max-width: 760px;
  margin: 64px auto 0;
}
.fan::before {
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 560px; height: 360px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(47,116,253,.28), transparent);
  pointer-events: none;
}
.fan-phone {
  position: absolute; top: 0; left: 50%;
  width: 262px; aspect-ratio: 919 / 1998;
  border-radius: 38px; overflow: hidden;
  background: #0a0d1c; border: 1px solid var(--line);
  box-shadow: 0 36px 80px rgba(0,0,0,.55);
}
.fan-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fan-phone.side {
  z-index: 1;
  width: 224px;
  filter: brightness(.72) saturate(.9);
  transform-origin: 50% 92%;
  transition: filter .25s ease;
}
.fan-phone.side:hover { filter: brightness(.9) saturate(.95); }
.fan-phone.left  { transform: translateX(-50%) translate(-186px, 46px) rotate(-9deg); }
.fan-phone.right { transform: translateX(-50%) translate(186px, 46px) rotate(9deg); }
.fan-phone.center {
  z-index: 2;
  transform: translateX(-50%);
  box-shadow: 0 46px 100px rgba(0,0,0,.65), 0 0 0 1px rgba(106,162,255,.16);
}

/* ---------- 区块 ---------- */
section { padding: 66px 0; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: 34px; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(47,116,253,.16); color: var(--accent-2); font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.feature .pro {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  background: rgba(245,196,83,.14); color: var(--gold);
  font-size: 11px; font-weight: 700; vertical-align: 1px;
}

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .n {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- 会员 ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; text-align: center; position: relative;
}
.plan.hot { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #4a3608;
  font-size: 12px; font-weight: 800; padding: 4px 14px; border-radius: 999px;
}
.plan .name { font-size: 16px; color: var(--muted); }
.plan .price { font-size: 40px; font-weight: 800; margin: 10px 0 4px; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; }
.plan li { color: var(--muted); font-size: 14px; padding: 7px 0 7px 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }

.note {
  margin-top: 30px; text-align: center; color: var(--muted); font-size: 13px;
  background: var(--bg-deep); border: 1px dashed var(--line); border-radius: 14px; padding: 16px;
}

/* ---------- 底部 ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 30px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .links { display: flex; gap: 22px; font-size: 14px; }
footer .links a { color: var(--muted); }
footer .copy { color: var(--muted); font-size: 13px; }
footer .copy a { color: var(--muted); text-decoration: none; }
footer .copy a:hover { text-decoration: underline; }

/* ---------- 法律页 ---------- */
.legal { padding: 50px 0 80px; }
.legal .head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.legal h1 { font-size: 32px; margin: 0; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .body { max-width: 780px; }
.legal h2 { font-size: 18px; margin: 34px 0 10px; color: var(--text); }
.legal p { color: var(--muted); margin: 8px 0; }
.legal p.small { font-size: 13px; }

.lang-switch { display: inline-flex; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 8px; cursor: pointer;
}
.lang-switch button.active { background: var(--accent); color: #fff; }
.lang-en { display: none; }
body.en .lang-en { display: block; }
body.en .lang-zh { display: none; }

@media (max-width: 820px) {
  .hero h1 { font-size: 38px; }
  .features, .steps, .plans { grid-template-columns: 1fr; }
  .nav-links a:not(.keep) { display: none; }
  .fan { height: 465px; margin-top: 48px; }
  .fan::before { width: 420px; height: 280px; }
  .fan-phone { width: 198px; border-radius: 30px; }
  .fan-phone.side { width: 170px; }
  .fan-phone.left  { transform: translateX(-50%) translate(-140px, 34px) rotate(-9deg); }
  .fan-phone.right { transform: translateX(-50%) translate(140px, 34px) rotate(9deg); }
}

@media (max-width: 480px) {
  .fan { height: 400px; }
  .fan::before { width: 340px; height: 230px; }
  .fan-phone { width: 166px; border-radius: 25px; }
  .fan-phone.side { width: 143px; }
  .fan-phone.left  { transform: translateX(-50%) translate(-118px, 28px) rotate(-9deg); }
  .fan-phone.right { transform: translateX(-50%) translate(118px, 28px) rotate(9deg); }
}
