:root {
  --bg: #0b1120;
  --card: rgba(17, 24, 39, 0.85);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #818cf8;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.4);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: min(860px, 100%); margin: 0 auto; padding: 0 5vw; }

.bg-glow { position: fixed; width: 380px; height: 380px; border-radius: 50%; filter: blur(100px); opacity: 0.5; z-index: -3; }
.glow-a { top: -100px; left: -60px; background: radial-gradient(circle, rgba(129, 140, 248, 0.4), transparent 70%); }
.glow-b { bottom: -120px; right: -80px; background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%); }

.bg-grid {
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none; z-index: -4;
}

/* ── Nav ── */
.hero { padding: 20px 0 48px; }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; }
.brand span { font-size: 0.85rem; color: var(--muted); }
.brand-mark { font-size: 1.4rem; }

.nav-links { display: flex; gap: 18px; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--accent); }

.theme-toggle {
  border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px;
  background: transparent; color: var(--text);
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}

/* ── Hero ── */
.hero-body { margin-top: 32px; }
.hero-text h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 12px; }
.hero-text p { color: var(--muted); margin: 0; }

/* ── Sections ── */
.section { margin: 0 auto 56px; }
.section > h2 { font-size: 1.5rem; margin: 0 0 20px; }

/* ── Steps ── */
.steps { display: grid; gap: 16px; }

.step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
}

.step-num {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.15);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 800;
}

.step-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 14px; }

.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
}

.faq-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ── Footer ── */
.footer { padding: 24px 0 32px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; justify-content: center; }

/* ── Light ── */
body.light {
  --bg: #f3f6ff; --card: #ffffff; --text: #0f172a; --muted: #64748b;
  --accent: #6366f1; --border: rgba(148, 163, 184, 0.35);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
body.light .nav { background: rgba(255, 255, 255, 0.8); }
body.light .bg-grid { background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px); }
body.light .bg-glow { opacity: 0.35; }

/* ── To Top ── */
.to-top {
  position: fixed; right: 18px; bottom: 18px;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  cursor: pointer; display: none;
}
.to-top.show { display: grid; place-items: center; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; justify-content: center; }
  .nav-links { width: 100%; justify-content: center; }
  .step { flex-direction: column; gap: 10px; }
}
