:root {
  --bg: #0a0e1a;
  --bg-soft: #111726;
  --surface: #151c2e;
  --surface-2: #1b2438;
  --border: #243047;
  --text: #e8edf6;
  --text-muted: #97a3b8;
  --primary: #3b82f6;
  --primary-2: #6366f1;
  --accent: #22d3ee;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #22d3ee 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.55);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background glow ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
}
.bg-glow {
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.28), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.3px;
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 22px -6px rgba(99, 102, 241, 0.7);
}
.brand span.tld { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--text-muted);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(59, 130, 246, 0.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(59, 130, 246, 0.95); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 80px;
  text-align: center;
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 13.5px;
  margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 70px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.stat .num {
  font-size: 34px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ---------- Section ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 14px; font-weight: 700; }
.section-head p { color: var(--text-muted); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.5); box-shadow: var(--shadow); }
.feature:hover::before { opacity: 1; }
.feature .ico {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(99,102,241,0.2));
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step .n {
  counter-increment: step;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 16px;
  font-size: 17px;
}
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ---------- CTA ---------- */
.cta-band {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(99,102,241,0.25), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--text-muted); margin-bottom: 28px; position: relative; }
.cta-band .hero-cta { position: relative; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  margin-top: 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer .brand { margin-bottom: 14px; }
.footer-col h5 { font-size: 15px; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Download page ---------- */
.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 16.5px; }

.platform-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 36px;
}
.tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.tab.active { background: var(--gradient); color: #fff; border-color: transparent; }
.tab:hover:not(.active) { border-color: var(--primary); color: var(--text); }

.mirror-list { display: grid; gap: 16px; }
.mirror {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s, transform 0.2s;
  flex-wrap: wrap;
}
.mirror:hover { border-color: rgba(99,102,241,0.5); transform: translateY(-2px); }
.mirror .info { display: flex; align-items: center; gap: 16px; }
.mirror .flag {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.mirror .meta strong { font-size: 16px; display: block; }
.mirror .meta span { color: var(--text-muted); font-size: 13px; }
.mirror .actions { display: flex; align-items: center; gap: 12px; }
.mirror .speed { color: var(--accent); font-size: 13.5px; font-weight: 600; }

.note {
  margin-top: 30px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #b6f0fa;
  font-size: 14px;
  text-align: center;
}
.note code { background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 6px; font-size: 13px; }

/* ---------- Simple download page steps ---------- */
.dl-step { max-width: 760px; margin: 34px auto 0; text-align: left; }
.step-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.mirror.dl-main {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 14px 40px -16px rgba(99, 102, 241, 0.5);
}

/* 备用下载（收进主下载卡片内，下载按钮正下方，纯文字链接） */
.mirror.dl-main .actions {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.mirror.dl-main .actions-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dl-backup-link {
  display: block;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.dl-backup-link:hover {
  color: var(--accent);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 18px;
  }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .features, .stats, .steps { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 50px; }
  .section { padding: 60px 0; }
  .mirror { flex-direction: column; align-items: flex-start; }
}
