/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #7c3aed;
  --accent-light: #f5f3ff;
  --alipay: #1677FF;
  --wechat: #07C160;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #f9fafb;
}

body { min-height: 100vh; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Nav ──────────────────────────────────────── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 860px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.logo { font-weight: 700; font-size: 16px; color: var(--text); }
.nav-tag {
  background: var(--accent-light); color: var(--accent);
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.nav-login {
  margin-left: auto;
  padding: 6px 14px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-login:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ── Language toggle ──────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.5;
}
.lang-btn.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.lang-btn:hover:not(.active) { color: #374151; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 60%, #7c3aed 100%);
  padding: 72px 20px 80px;
  text-align: center;
  color: #fff;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px; padding: 4px 16px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.accent { color: #fbbf24; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.82); line-height: 1.6; margin-bottom: 32px; }
.btn-primary {
  display: inline-block;
  background: #f97316; color: #fff;
  padding: 14px 36px; border-radius: 8px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  border: none; text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: #ea580c; text-decoration: none; }

/* ── Compare ──────────────────────────────────── */
.compare { padding: 72px 20px; background: #fff; }
.compare h2, .pricing h2, .activate h2, .faq h2 {
  font-size: 28px; font-weight: 800; text-align: center; margin-bottom: 8px;
}
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px;
}
@media (max-width: 600px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.compare-card.pro { border-color: var(--accent); background: var(--accent-light); }
.plan-badge {
  position: absolute; top: -12px; right: 20px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 20px; }
.plan-price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.compare-card ul { list-style: none; display: grid; gap: 10px; }
.compare-card li { font-size: 14px; line-height: 1.5; }
.compare-card li.dim { color: var(--muted); }

/* ── Pricing / Pay ────────────────────────────── */
.pricing { padding: 72px 20px; background: #f9fafb; }
.pricing-sub { text-align: center; color: var(--muted); margin-bottom: 32px; }
.email-row { max-width: 400px; margin: 0 auto 28px; }
.email-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.email-row input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; outline: none;
  transition: border-color 0.15s;
}
.email-row input:focus { border-color: var(--accent); }

/* ── Plan Tabs ────────────────────────────────── */
.plan-tabs {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}
.plan-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 28px; border-radius: 12px;
  border: 2px solid var(--border); background: #fff;
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 130px;
}
.plan-tab:hover { border-color: var(--accent); }
.plan-tab.active {
  border-color: var(--accent); background: var(--accent-light);
  box-shadow: 0 4px 16px rgba(124,58,237,0.15);
}
.plan-tab.best.active { border-color: #f97316; background: #fff7ed; }
.tab-name { font-size: 14px; font-weight: 700; color: var(--text); }
.tab-price { font-size: 26px; font-weight: 800; color: var(--accent); margin: 2px 0; }
.plan-tab.best.active .tab-price { color: #f97316; }
.tab-unit { font-size: 11px; color: var(--muted); }
.tab-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #f97316; color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  white-space: nowrap;
}

.pay-methods { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.pay-card {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 28px 24px; min-width: 240px; text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pay-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(124,58,237,0.1); }

.pay-logo {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 18px; font-weight: 700; margin-bottom: 10px;
}
.alipay-logo { color: var(--alipay); }
.wechat-logo { color: var(--wechat); }
.pay-price { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 20px; }

.btn-pay {
  width: 100%; padding: 13px 0; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer; border: none;
  background: var(--alipay); color: #fff;
  transition: opacity 0.15s;
}
.btn-pay:hover { opacity: 0.88; }
.btn-pay.wechat { background: var(--wechat); }
.btn-pay:disabled { opacity: 0.45; cursor: not-allowed; }

.qr-container { margin-top: 20px; }
.qr-container canvas { border-radius: 8px; border: 1px solid var(--border); }
.qr-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.polling-hint { font-size: 12px; color: var(--accent); margin-top: 6px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── Activate Steps ───────────────────────────── */
.activate { padding: 72px 20px; background: #fff; }
.steps { display: grid; gap: 16px; margin-top: 36px; max-width: 640px; margin-left: auto; margin-right: auto; }
.step { display: flex; align-items: flex-start; gap: 16px; }
.step-num {
  flex: 0 0 36px; height: 36px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.step-text { font-size: 15px; line-height: 1.6; padding-top: 6px; }

/* ── FAQ ──────────────────────────────────────── */
.faq { padding: 72px 20px; background: #f9fafb; }
.faq-list { max-width: 640px; margin: 36px auto 0; display: grid; gap: 16px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; }
.faq-q { font-weight: 700; margin-bottom: 8px; }
.faq-a { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ── Footer ───────────────────────────────────── */
.footer {
  background: #1e1b4b; color: rgba(255,255,255,0.6);
  padding: 24px 20px; text-align: center; font-size: 13px;
}
.footer a { color: rgba(255,255,255,0.8); }
