:root {
  --accent: #6c5ce7;
  --accent-dark: #5546d6;
  --text: #16161a;
  --muted: #6b7280;
  --bg: #f7f7fb;
  --card: #ffffff;
  --border: #e8e8f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #a29bfe);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta {
  padding: 9px 18px; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

.hero { padding: 88px 0 64px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; background: #eeeaff; color: var(--accent);
  font-size: 12px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.18; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 20px auto 0; max-width: 640px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 10px; font-size: 15px; font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(108, 92, 231, 0.25); }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 56px 0 0; padding: 26px 0; background: #fff; border: 1px solid var(--border); border-radius: 14px;
}
.stat { text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 26px; color: var(--accent); }
.stat span { font-size: 12px; color: var(--muted); }

.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; letter-spacing: -0.5px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: #eeeaff; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p { font-size: 13px; line-height: 1.75; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
}
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 16px 40px rgba(108, 92, 231, 0.16); }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-size: 18px; }
.plan .desc { font-size: 12px; color: var(--muted); margin-top: 6px; min-height: 34px; }
.price { margin: 14px 0 4px; font-size: 34px; font-weight: 700; color: var(--accent); }
.price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0 26px; flex: 1; }
.plan li { font-size: 13px; color: #374151; padding: 7px 0; display: flex; gap: 8px; align-items: center; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; }
.plan .btn-primary { box-shadow: none; }

.footer { border-top: 1px solid var(--border); padding: 30px 0 44px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; padding: 48px 0 72px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.panel h2 { font-size: 20px; margin-bottom: 22px; }
.pay-item {
  display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 12px;
}
.pay-item.selected { border-color: var(--accent); background: #faf9ff; }
.pay-logo {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; background: #1677ff;
}
.pay-logo.wechat { background: #07c160; }
.pay-logo.card { background: #f59e0b; }
.pay-item .name { font-size: 14px; font-weight: 600; }
.pay-item .hint { font-size: 11px; color: var(--muted); margin-top: 3px; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfcfdd; margin-left: auto; }
.pay-item.selected .radio { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }
.qr-box {
  margin-top: 8px; border: 1px dashed var(--border); border-radius: 12px; padding: 20px;
  text-align: center; background: #fbfbff;
}
.qr {
  width: 148px; height: 148px; margin: 0 auto 12px; border-radius: 8px;
  background:
    repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0/12px 12px;
  position: relative; border: 8px solid #fff; outline: 1px solid #e5e5ef;
}
.qr::after {
  content: ""; position: absolute; inset: 40px; background: #fff; border-radius: 4px;
  background-image: linear-gradient(45deg, #6c5ce7 25%, transparent 25%, transparent 75%, #6c5ce7 75%),
                    linear-gradient(45deg, #6c5ce7 25%, transparent 25%, transparent 75%, #6c5ce7 75%);
  background-size: 14px 14px; background-position: 0 0, 7px 7px;
}
.qr-box p { font-size: 12px; color: var(--muted); }
.countdown { margin-top: 10px; font-size: 12px; color: #ef4444; }

.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 9px 0; }
.summary-row b { color: var(--text); font-weight: 600; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border); margin-top: 14px; padding-top: 18px;
}
.summary-total span { font-size: 13px; color: var(--muted); }
.summary-total b { font-size: 32px; color: #ef4444; }
.pay-btn {
  width: 100%; margin-top: 22px; height: 52px; border: none; border-radius: 12px;
  background: #1677ff; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.secure { margin-top: 14px; text-align: center; font-size: 11px; color: var(--muted); }
