/* ===== 设计变量 ===== */
:root {
  --red: #C8102E;
  --red-dark: #A00D25;
  --gold: #D4A017;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
}

/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text); line-height: 1.75; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 10px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600; transition: all .2s; border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--border); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: 14px 36px; font-size: 16px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { font-size: 18px; font-weight: 700; white-space: nowrap; }
.brand-mark { color: var(--red); }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  padding: 6px 10px; border-radius: 6px; font-size: 14px; color: var(--text-light);
}
.site-nav a:hover, .site-nav a.active { color: var(--red); background: rgba(200,16,46,.06); }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--text);
}

/* ===== Hero ===== */
.hero { padding: 88px 0 72px; text-align: center; background: linear-gradient(180deg, #FFF7F0 0%, var(--bg) 100%); }
.hero h1 { font-size: 44px; line-height: 1.3; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .sub { margin: 20px auto 36px; max-width: 640px; font-size: 18px; color: var(--text-light); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-light); }

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }
.section-title { text-align: center; font-size: 30px; margin-bottom: 12px; }
.section-desc { text-align: center; color: var(--text-light); max-width: 620px; margin: 0 auto 48px; }
.section-desc a, .section-desc a:visited { color: var(--red); }

/* ===== 卡片网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.card .icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-light); }
.card p a { color: var(--red); }

/* ===== 步骤条 ===== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-top: 16px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 24px; width: 32px; height: 32px;
  background: var(--red); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.step h3 { font-size: 16px; margin: 10px 0 6px; }
.step p { font-size: 14px; color: var(--text-light); }

/* ===== 文章排版（内容页） ===== */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: 34px; line-height: 1.4; margin-bottom: 12px; }
.article .lead { font-size: 17px; color: var(--text-light); margin-bottom: 40px; }
.article h2 { font-size: 24px; margin: 48px 0 16px; padding-left: 12px; border-left: 4px solid var(--red); }
.article h3 { font-size: 18px; margin: 28px 0 10px; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 14px 24px; }
.article a:not(.btn) { color: var(--red); border-bottom: 1px dashed var(--red); }
.article .tip {
  background: #FFF7F0; border-left: 4px solid var(--gold);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0; font-size: 14px;
}

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-soft); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td .hl { color: var(--red); font-weight: 600; }

/* ===== FAQ 折叠 ===== */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.faq-item summary {
  padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "＋"; color: var(--red); font-size: 18px; }
.faq-item[open] summary::after { content: "－"; }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--text-light); font-size: 14px; }
.faq-item .faq-body a { color: var(--red); }

/* ===== 定价卡 ===== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--red); box-shadow: var(--shadow); }
.price-card .plan-tag { font-size: 13px; color: var(--gold); font-weight: 700; }
.price-card h3 { font-size: 20px; margin: 6px 0 12px; }
.price-card .price { font-size: 34px; font-weight: 700; margin-bottom: 20px; }
.price-card .price small { font-size: 14px; color: var(--text-light); font-weight: 400; }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li { font-size: 14px; padding: 5px 0; color: var(--text-light); }
.price-card li::before { content: "✓ "; color: var(--red); font-weight: 700; }

/* ===== CTA 横幅 ===== */
.cta-band { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; text-align: center; padding: 64px 24px; }
.cta-band h2 { font-size: 28px; margin-bottom: 12px; }
.cta-band p { opacity: .85; margin-bottom: 28px; }
.cta-band .btn { background: #fff; color: var(--red); }
.cta-band .btn:hover { opacity: .9; }

/* ===== 小程序码 ===== */
.qrcode-wrap {
  margin-top: 44px; display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.qrcode-box {
  width: 200px; height: 200px; border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px; text-align: center; background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
.qrcode-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qrcode-tip { color: var(--text-light); font-size: 14px; margin: 0; }

/* Hero 内嵌小程序码（横向紧凑卡片） */
.hero-qr {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 18px; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 24px 16px 16px; box-shadow: var(--shadow);
}
.hero-qr .qrcode-box { width: 120px; height: 120px; box-shadow: none; }
.hero-qr__cap { font-size: 16px; font-weight: 700; color: var(--text); }
.hero-qr__sub { font-size: 14px; color: var(--text-light); margin-top: 6px; }

/* 页脚小程序码 */
.footer-qr { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.footer-qr .qrcode-box { width: 100px; height: 100px; box-shadow: none; border-color: #374151; }
.footer-qr__cap { font-size: 13px; color: #9CA3AF; line-height: 1.6; }

/* ===== 页脚 ===== */
.site-footer { background: #111827; color: #9CA3AF; padding: 56px 0 0; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer .footer-grid a { display: block; font-size: 14px; padding: 4px 0; }
.site-footer .footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding: 18px 24px; font-size: 13px; text-align: center; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .card-grid, .card-grid.cols-3, .card-grid.cols-2, .steps, .steps.cols-3, .price-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 48px 0; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid.cols-3, .card-grid.cols-2, .steps, .steps.cols-3, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* 更新说明与备案入口 */
.content-note { max-width: 820px; margin: 24px auto 0; color: var(--text-light); font-size: 14px; }
.content-note a { color: var(--red); }
.footer-bottom a { display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: #fff; }
section[id] { scroll-margin-top: 84px; }
