/* ============================================================
   全局 & 变量
   ============================================================ */
:root {
  --bg:        #0d0f1a;
  --bg2:       #12152b;
  --bg3:       #1a1f3a;
  --card:      #161b35;
  --border:    rgba(99,120,255,0.18);
  --accent:    #6378ff;
  --accent2:   #a78bfa;
  --text:      #e2e8f0;
  --muted:     #8892b0;
  --success:   #34d399;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
               system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 90px 0; }

/* ============================================================
   按钮
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-primary.btn-block { width: 100%; padding: 14px; border-radius: var(--radius); margin-top: 10px; }

.btn-ghost {
  background: transparent;
  color: var(--accent2);
  border: 1.5px solid var(--accent);
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(99,120,255,.1); }

/* ============================================================
   导航
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(13,15,26,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.logo i { color: var(--accent); font-size: 20px; }
.navbar nav { display: flex; gap: 24px; flex: 1; }
.navbar nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.navbar nav a:hover { color: #fff; }

/* ============================================================
   英雄区
   ============================================================ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,120,255,0.18) 0%, transparent 70%);
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%);
  left: 50%; top: 60%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.badge {
  display: inline-block;
  background: rgba(99,120,255,0.15);
  border: 1px solid var(--border);
  color: var(--accent2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 56px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.stat span { font-size: 13px; color: var(--muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ============================================================
   区块标题
   ============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 16px; }

/* ============================================================
   套餐卡片
   ============================================================ */
.plans { background: var(--bg2); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.plan-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(99,120,255,0.5); }
.plan-card.popular {
  border-color: var(--accent);
  background: linear-gradient(160deg, #1a1f3a 60%, rgba(99,120,255,0.08));
}
.plan-badge {
  position: absolute;
  top: -1px; right: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
}
.plan-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.plan-price {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price span { font-size: 18px; font-weight: 500; color: var(--muted); }
.plan-duration { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li i { color: var(--success); font-size: 12px; }

/* ============================================================
   功能特点
   ============================================================ */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(99,120,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-card h4 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   使用步骤
   ============================================================ */
.howto { background: var(--bg2); }
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.step-item {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
}
.step-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  opacity: .4;
  margin-bottom: 12px;
}
.step-item h4 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.step-item p { font-size: 13px; color: var(--muted); }
.step-arrow {
  font-size: 20px;
  color: var(--border);
  align-self: center;
  display: flex;
  align-items: center;
}

/* ============================================================
   常见问题
   ============================================================ */
.faq { background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--card);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background .2s;
}
.faq-q:hover { background: var(--bg3); }
.faq-q i { transition: transform .2s; flex-shrink: 0; color: var(--muted); }
.faq-q.open i { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  background: var(--bg3);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  transition: max-height .3s ease, padding .3s;
}
.faq-a.open { max-height: 300px; padding: 16px 20px; }

/* ============================================================
   联系方式
   ============================================================ */
.contact { background: var(--bg2); }
.contact-cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 48px;
  color: var(--text);
  transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-card i { font-size: 32px; color: var(--accent); }
.contact-card span { font-size: 15px; font-weight: 600; color: #fff; }
.contact-card small { font-size: 12px; color: var(--muted); }

/* ============================================================
   页脚
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ============================================================
   弹窗
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(.95); } to { opacity:1; transform: scale(1); } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg3);
  border: none;
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: color .2s;
}
.modal-close:hover { color: #fff; }
.modal-step h3 { font-size: 20px; color: #fff; margin-bottom: 6px; }
.modal-plan-name { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.modal-price { font-size: 24px; font-weight: 800; color: var(--accent2); margin-bottom: 20px; }

/* QR 标签 */
.qr-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.qr-tab {
  flex: 1;
  padding: 9px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.qr-tab.active { border-color: var(--accent); color: #fff; background: rgba(99,120,255,0.12); }
.qr-wrapper { text-align: center; margin-bottom: 14px; }
.qr-box img { width: 200px; height: 200px; border-radius: 10px; }
.qr-placeholder {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  gap: 8px;
  text-align: center;
  padding: 12px;
}
.qr-placeholder i { font-size: 32px; color: var(--accent); opacity: .5; }
.qr-placeholder small { color: rgba(136,146,176,.5); font-size: 10px; }
.qr-hint { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 16px; background: rgba(99,120,255,0.07); padding: 10px; border-radius: 8px; }
.qr-hint strong { color: #fff; }
.hidden { display: none !important; }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.required { color: #f87171; }
.modal-hint { font-size: 13px; color: var(--muted); margin-bottom: 20px; background: var(--bg3); padding: 12px; border-radius: 8px; }

/* 成功页 */
.success-icon { text-align: center; font-size: 56px; color: var(--success); margin-bottom: 16px; }
#stepSuccess h3 { text-align: center; font-size: 22px; color: #fff; margin-bottom: 12px; }
#stepSuccess p { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.success-email { color: var(--accent2) !important; font-weight: 700; font-size: 16px !important; }
.success-hint { font-size: 13px !important; }
.success-hint strong { color: #fff; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 680px) {
  .navbar nav { display: none; }
  .hero-stats { gap: 16px; }
  .stat strong { font-size: 22px; }
  .step-arrow { display: none; }
  .steps-row { flex-direction: column; align-items: center; }
  .modal { padding: 28px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
