/* 移动端科幻风格下载页样式 */
:root {
  --bg-0: #05060d;
  --bg-1: #0b1022;
  --bg-2: #0f1733;
  --text: #e6eaf7;
  --muted: #aab0c2;
  --accent: #5ad3ff;
  --accent-2: #a371ff;
  --success: #50e3a4;
  --danger: #ff6b8a;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #132048 0%, var(--bg-1) 30%, var(--bg-0) 70%) no-repeat,
              linear-gradient(180deg, var(--bg-1), var(--bg-0));
  overscroll-behavior-y: none;
}

/* 星空背景画布 */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: transparent;
}

.page {
  position: relative;
  z-index: 1;
  padding: 20px 16px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}
.logo { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(90,211,255,.35)); }
.brand-text .title {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 20px;
}
.brand-text .subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card.hero {
  position: relative;
  margin: 16px 0 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(90,211,255,.25);
  box-shadow:
    0 40px 80px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.15);
  overflow: hidden;
}

.hero-content { padding: 18px 16px 20px; }
.hero h2 {
  margin: 8px 0 6px;
  font-family: "Orbitron", sans-serif;
  font-size: 22px;
  letter-spacing: .4px;
}
.hero .desc {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  background: linear-gradient(180deg, rgba(90,211,255,.25), rgba(163,113,255,.22));
  border: 1px solid rgba(163,113,255,.4);
  box-shadow: 0 8px 18px rgba(90,211,255,.2), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }
.btn-icon { font-size: 18px; }

.btn-android { background: linear-gradient(180deg, rgba(90,211,255,.28), rgba(80,227,164,.24)); border-color: rgba(80,227,164,.45); }
.btn-ios { background: linear-gradient(180deg, rgba(90,211,255,.28), rgba(163,113,255,.28)); border-color: rgba(163,113,255,.5); }
.btn.primary { box-shadow: 0 10px 22px rgba(90,211,255,.28), inset 0 1px 0 rgba(255,255,255,.25); filter: saturate(1.1) brightness(1.06); }

.qr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 2px 4px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(90,211,255,.28);
}
.qr-img { width: 80px; height: 80px; border-radius: 8px; }
.qr-text strong { display: block; font-size: 14px; }
.qr-text span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.hero-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 80%;
  height: 60%;
  background: radial-gradient(600px 300px at 80% 20%, rgba(90,211,255,.28), transparent 60%),
              radial-gradient(500px 260px at 20% 60%, rgba(163,113,255,.22), transparent 60%);
  filter: blur(20px) saturate(1.2);
  pointer-events: none;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 18px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(90,211,255,.22);
}
.feature-icon { font-size: 18px; }
.feature-text h3 { margin: 0; font-size: 15px; font-weight: 600; }
.feature-text p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.footer { text-align: center; color: var(--muted); font-size: 12px; }
.footer .legal { margin: 12px 0 4px; }
.footer .copyright { margin: 0; opacity: .8; }

/* 平板与桌面增强 */
@media (min-width: 768px) {
  .page { padding: 28px 24px 60px; }
  .brand { gap: 16px; }
  .logo { width: 48px; height: 48px; }
  .brand-text .title { font-size: 24px; }
  .brand-text .subtitle { font-size: 14px; }
  .hero h2 { font-size: 26px; }
  .hero .desc { font-size: 15px; }
  .cta { grid-template-columns: repeat(2, 1fr); }
  .qr-img { width: 96px; height: 96px; }
}

/* 弹窗样式 */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5,6,13,.6);
  backdrop-filter: blur(4px);
  z-index: 10;
}
.modal.show { display: flex; }
.modal-card {
  width: 86%;
  max-width: 420px;
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(163,113,255,.35);
  box-shadow: 0 20px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.15);
}
.modal-card h3 { margin: 2px 0 8px; font-size: 18px; font-family: "Orbitron", sans-serif; }
.modal-desc { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-close { width: auto; padding: 10px 14px; }