/* 法智助手 H5 样式 */
:root {
  --primary: #1a4d8f;
  --primary-dark: #123a6d;
  --primary-light: #e8f0fa;
  --accent: #d4a017;
  --text: #1a1a2e;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-dark: #0f1c2e;
  --bg-section: #f7f9fc;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(26, 77, 143, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* ===== 导航 ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}
.navbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 20px; font-weight: 700; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; color: var(--text-light); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 500; cursor: pointer; border: none;
  transition: all .2s; text-align: center;
}
.btn-small { padding: 6px 14px; font-size: 13px; }
.btn-large { padding: 14px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0f1c2e 0%, #1a3a5f 55%, #24547f 100%);
  color: #fff; padding: 80px 20px 60px; text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
.hero-stats { display: flex; justify-content: center; gap: 60px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ===== Section ===== */
.section { padding: 70px 20px; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section h2 { font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-light); margin-bottom: 44px; font-size: 16px; }
.section-dark .section-sub { color: rgba(255,255,255,0.6); }

/* ===== 能力卡片 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg); border: 1px solid #eee; border-radius: var(--radius);
  padding: 26px 22px; transition: all .3s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--primary-light); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.feature-card p { font-size: 14px; color: var(--text-light); }

/* ===== 套餐 ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card {
  background: #fff; color: var(--text); border-radius: var(--radius);
  padding: 32px 26px; position: relative; transition: all .3s;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.pricing-card.featured { border: 2px solid var(--accent); transform: scale(1.03); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 16px; border-radius: 20px;
}
.plan-name { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.plan-price { font-size: 42px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.plan-unit { font-size: 15px; color: var(--text-light); font-weight: 400; }
.plan-desc { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li { padding: 8px 0; font-size: 14px; color: var(--text); border-bottom: 1px dashed #eee; }
.plan-features li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-section); border-radius: 10px; margin-bottom: 12px; padding: 0 20px;
}
.faq-item summary {
  cursor: pointer; padding: 18px 0; font-size: 15px; font-weight: 500;
  list-style: none; position: relative;
}
.faq-item summary::after { content: "＋"; position: absolute; right: 0; color: var(--primary); font-size: 18px; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 0 18px; font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: #fff; text-align: center; padding: 30px 20px; }
.footer p { font-size: 14px; }
.footer-note { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 8px; }

/* ===== 弹窗 ===== */
.modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5); align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
  background: #fff; border-radius: 16px; padding: 30px; width: 90%; max-width: 380px;
  position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--text-light);
}
.modal h3 { font-size: 20px; margin-bottom: 18px; text-align: center; }
.order-info { background: var(--bg-section); border-radius: 8px; padding: 16px; margin-bottom: 20px; font-size: 14px; }
.order-info div { display: flex; justify-content: space-between; padding: 6px 0; }
.order-info .label { color: var(--text-light); }
.modal-note { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .pricing-card.featured { transform: none; }
  .hero-stats { gap: 30px; }
  .stat-num { font-size: 28px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
  .nav-links .btn { display: none; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 16px 40px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }
}
