* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --green: #16a34a;
  --amber: #f59e0b;
  --text: #1f2937;
  --text-soft: #6b7280;
  --border: #e5e7eb;
  --bg: #f1f5f9;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px; /* 给底部导航留空间 */
}
button { font-family: inherit; }

/* 视图 */
.view { max-width: 720px; margin: 0 auto; }

/* Hero */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%); color: #fff; }
.hero-inner { max-width: 720px; margin: 0 auto; padding: 52px 20px 48px; text-align: center; }
.hero-eyebrow { font-size: 14px; opacity: 0.9; letter-spacing: 2px; }
.hero h1 { font-size: 28px; font-weight: 800; margin: 10px 0 8px; }
.hero-sub { font-size: 15px; opacity: 0.92; }
.hero-actions { margin-top: 22px; display: flex; justify-content: center; }
.btn-primary { padding: 12px 28px; border-radius: 9px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; background: #fff; color: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-ghost-dark { background: #fff; color: #dc2626; border: 1px solid #fecaca; border-radius: 9px; font-size: 15px; font-weight: 600; cursor: pointer; padding: 12px 0; }

/* 区块 */
.section { padding: 32px 16px; }
.section-alt { background: #fff; }
.section-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 22px; }

/* 功能特点 */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 16px; }
.feature-icon { font-size: 26px; }
.feature-name { font-size: 15px; font-weight: 700; margin: 8px 0 4px; }
.feature-desc { font-size: 13px; color: var(--text-soft); }

/* 数据优势 */
.advantage-list { display: flex; flex-direction: column; gap: 10px; }
.advantage-item { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 10px; padding: 14px 16px; }
.adv-num { font-size: 18px; font-weight: 800; color: var(--primary); }
.adv-txt { font-size: 15px; font-weight: 600; }

/* 套餐 */
.plans { display: flex; flex-direction: column; gap: 12px; }
.plan {
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; align-items: center; justify-content: space-between; position: relative;
}
.plan.hot { border-color: var(--primary); }
.plan-tag { position: absolute; top: -1px; right: 16px; background: var(--amber); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 0 0 8px 8px; }
.plan-name { font-size: 17px; font-weight: 700; }
.plan-desc { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.plan-right { text-align: right; }
.plan-price { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.plan-price small { font-size: 13px; font-weight: 500; }
.plan-buy { margin-top: 8px; padding: 8px 18px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.plan.hot .plan-buy { background: linear-gradient(135deg, #2563eb, #0ea5e9); }

/* 会员权益 */
.benefit-list { display: flex; flex-direction: column; gap: 8px; }
.benefit-item { background: #fff; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.benefit-item span { color: var(--green); font-weight: 800; margin-right: 8px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border-radius: 10px; padding: 14px 16px; }
.faq-q { font-weight: 700; font-size: 14px; }
.faq-a { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

/* 页脚 */
.footer { text-align: center; padding: 32px 16px 24px; background: #0f172a; color: #cbd5e1; font-size: 13px; line-height: 1.8; }
.footer-brand { font-size: 16px; font-weight: 700; color: #fff; }
.footer-icp { margin-top: 10px; font-size: 12px; color: #64748b; }

/* 会员页头部 */
.vip-head { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; padding: 26px 20px; display: flex; align-items: center; gap: 14px; }
.member-avatar { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.member-account { font-size: 16px; font-weight: 700; }
.member-status { font-size: 13px; opacity: 0.9; margin-top: 2px; }

/* 充值记录 */
.recharge-list { display: flex; flex-direction: column; gap: 8px; }
.recharge-item { background: #fff; border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; font-size: 13px; }
.recharge-item .re-ok { color: var(--green); font-weight: 700; }
.recharge-empty { color: var(--text-soft); text-align: center; padding: 20px; font-size: 13px; }
.logout-btn { margin: 20px 16px; }

/* 登录/注册 */
.auth-box { max-width: 420px; margin: 24px auto; background: #fff; border-radius: 14px; padding: 22px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.auth-tab { flex: 1; padding: 12px 0; border: none; background: none; font-size: 16px; font-weight: 700; color: var(--text-soft); cursor: pointer; border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-form label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 12px; }
.auth-form input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-error { color: #dc2626; font-size: 13px; min-height: 18px; margin-bottom: 6px; }
.auth-form .btn-primary { width: 100%; }

/* 底部导航 */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom, 0);
  max-width: 720px; margin: 0 auto;
}
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 7px; border: none; background: none; color: #94a3b8; cursor: pointer; font-size: 11px; }
.bn-item .bn-icon { font-size: 20px; line-height: 1; }
.bn-item.active { color: var(--primary); }

/* 提示 */
.toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(15,23,42,.85); color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 999; display: none; }
