:root {
  --bg: #030811;
  --bg-soft: #070e1b;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --gold: #f5c451;
  --gold-bright: #ffd977;
  --text: #e9eefb;
  --muted: #93a3bf;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(3, 8, 17, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img { border-radius: 9px; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn svg { width: 19px; height: 19px; }

.btn-small {
  padding: 9px 16px;
  font-size: 14px;
  color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.btn-primary {
  padding: 15px 26px;
  font-size: 16px;
  color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 12px 30px rgba(245, 196, 81, 0.22);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(245, 196, 81, 0.3); }

.btn-ghost {
  padding: 15px 24px;
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover { border-color: rgba(245, 196, 81, 0.4); }

.btn-block { width: 100%; margin-top: 20px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
}

.hero-glow {
  position: absolute;
  inset: -20% 30% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.12) 0%, rgba(245, 196, 81, 0) 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.25);
  background: rgba(245, 196, 81, 0.06);
  color: #e8cf95;
  font-size: 13px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.8);
}

h1 {
  margin: 22px 0 6px;
  font-size: clamp(42px, 6.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 20%, #b9c6de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 0.14em;
}

.lead {
  margin: 0 0 30px;
  max-width: 30em;
  color: var(--muted);
  font-size: 16px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.meta { margin: 18px 0 0; font-size: 13px; color: #6f7f9b; }

.platform-row { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.platform-pill .platform-name { font-weight: 600; letter-spacing: 0.02em; }
.platform-pill .platform-state { font-size: 12px; color: var(--muted); }

.platform-pill.is-active {
  border-color: rgba(245, 196, 81, 0.45);
  background: rgba(245, 196, 81, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.platform-pill.is-active:hover {
  border-color: rgba(245, 196, 81, 0.75);
  background: rgba(245, 196, 81, 0.14);
}

.platform-pill.is-active .platform-state { color: var(--gold); }

.platform-pill.is-pending {
  opacity: 0.55;
  border-style: dashed;
  cursor: not-allowed;
}

.hero-media { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #1c2638, #0a1220 45%, #1a2233);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  border-radius: 38px;
  overflow: hidden;
  background: #030811;
  aspect-ratio: 390 / 844;
}

.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.phone-hero { width: min(330px, 100%); transform: rotate(-2.5deg); }

.qr-card {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.qr-card img { border-radius: 10px; background: #fff; padding: 6px; }
.qr-card strong { display: block; font-size: 14px; }
.qr-card span { font-size: 12px; color: var(--muted); }

.section { padding: 96px 0; position: relative; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 36px; text-align: left; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.feature:hover { border-color: rgba(245, 196, 81, 0.32); transform: translateY(-2px); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 18px;
  color: var(--gold);
  background: rgba(245, 196, 81, 0.09);
  border: 1px solid rgba(245, 196, 81, 0.18);
}

.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  justify-items: center;
}

.phone-shot { width: min(280px, 100%); }
.phone-shot figcaption { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }

.install-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.steps span { font-size: 13px; color: var(--gold); font-variant-numeric: tabular-nums; padding-top: 2px; }
.steps strong { display: block; font-size: 15px; margin-bottom: 2px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

.notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(245, 196, 81, 0.3);
  background: rgba(245, 196, 81, 0.05);
  color: #dcc48f;
  font-size: 13px;
}

.version-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}

.version-card h3 { margin: 0 0 18px; font-size: 17px; }
.version-card dl { margin: 0; display: grid; gap: 12px; }
.version-card dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.version-card dt { color: var(--muted); }
.version-card dd { margin: 0; }

.sha-label { margin: 22px 0 6px; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.sha {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #8fa1bd;
  word-break: break-all;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 56px;
}

.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { border-radius: 8px; }
.footer-links { display: flex; gap: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold); }
.footer-note { margin: 6px 0 0; font-size: 12px; color: #5f6e88; max-width: 60em; }

.mobile-download { display: none; }

.wechat-tip {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f5c451;
  color: #1a1405;
  font-size: 13px;
  font-weight: 600;
}

.wechat-tip[hidden] { display: none; }

.wechat-tip button {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.policy { padding: 64px 0 80px; }
.policy h1 { margin: 0 0 10px; font-size: 34px; color: var(--text); background: none; -webkit-text-fill-color: currentColor; }
.policy .updated { margin: 0 0 34px; color: var(--muted); font-size: 13px; }
.policy h2 { margin: 34px 0 10px; font-size: 19px; }
.policy p, .policy li { color: #b3c0d6; font-size: 15px; }
.policy ul { padding-left: 20px; }
.policy .back { display: inline-block; margin-top: 34px; color: var(--gold); font-size: 14px; }

@media (max-width: 900px) {
  .hero-grid, .install-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .hero-media { margin-top: 24px; }
  .qr-card { left: 0; bottom: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-row { gap: 16px; }
  .nav { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--max)); }
  .header-inner { height: 60px; }
  h1 { font-size: 40px; }
  .lead { font-size: 15px; }
  .cta-row .btn { flex: 1 1 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 1fr; }
  .phone-shot { width: min(300px, 100%); }
  .section { padding: 68px 0; }
  .qr-card { position: static; margin-top: 20px; width: 100%; }
  .hero-media { flex-direction: column; align-items: center; }
  .qr-card { justify-content: flex-start; }
  .qr-card span { white-space: nowrap; }
  .phone-hero { transform: none; }
  .mobile-download {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 25;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    color: #1a1405;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  }
  body { padding-bottom: 84px; }
  .footer-note { padding-bottom: 4px; }
}
