/* ============================================================
   qwcp 合规站 · 参考样式
   暖米 + 墨色，克制传统感；移动优先。
   颜色、字号集中在 :root，改这里即可。
   ============================================================ */

:root {
  --ink:        #1f1b16;
  --ink-soft:   #4a423a;
  --paper:      #faf7f2;
  --paper-2:    #f3ede3;
  --line:       #e2d8c8;
  --accent:     #8c3b2e;   /* 朱砂 */
  --accent-dk:  #6d2c22;
  --ok:         #2f6b4f;
  --radius:     10px;
  --maxw:       760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
}

.serif { font-family: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif; }

/* ---------- 布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand { font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-soft); letter-spacing: .08em; }
nav.top { display: flex; gap: 18px; font-size: 14px; }
nav.top a { color: var(--ink-soft); text-decoration: none; }
nav.top a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 36px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.hero h1 {
  font-size: 26px; line-height: 1.45; margin: 0 0 14px; font-weight: 600; letter-spacing: .02em;
}
.hero p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }
.hero .note { font-size: 13px; color: #7c7268; margin-top: 16px; }

/* ---------- 区块 ---------- */
section { padding: 36px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h2 { font-size: 19px; margin: 0 0 18px; font-weight: 600; letter-spacing: .04em; }
h2::before {
  content: ""; display: inline-block; width: 4px; height: 17px;
  background: var(--accent); margin-right: 10px; vertical-align: -3px; border-radius: 2px;
}
h3 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }

/* ---------- 商品卡 ---------- */
.plans { display: grid; gap: 14px; }
@media (min-width: 620px) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 20px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 2px 0 rgba(140,59,46,.12); }
.plan .tag {
  align-self: flex-start; font-size: 11px; letter-spacing: .1em;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 1px 9px; margin-bottom: 10px;
}
.plan ul { margin: 6px 0 16px; padding-left: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.plan li { position: relative; padding-left: 16px; margin: 4px 0; }
.plan li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; }
.price { font-size: 26px; font-weight: 600; color: var(--accent-dk); }
.price .unit { font-size: 13px; font-weight: 400; color: var(--ink-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 13px 22px; font-size: 15px; font-weight: 600; letter-spacing: .04em;
  min-height: 46px; cursor: pointer;
}
.btn:active { background: var(--accent-dk); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:active { background: var(--paper-2); }

/* ---------- 信息表 ---------- */
.info { width: 100%; border-collapse: collapse; font-size: 14px; }
.info th, .info td { text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.info th { width: 96px; color: var(--ink-soft); font-weight: 400; }
.info td { color: var(--ink); }

/* ---------- 提示条 ---------- */
.caveat {
  background: var(--paper-2); border-left: 3px solid var(--accent);
  padding: 12px 14px; font-size: 13px; color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- 页脚（每页必须有） ---------- */
footer.site {
  margin-top: 8px; padding: 28px 0 40px;
  border-top: 1px solid var(--line); background: var(--paper-2);
  font-size: 13px; color: var(--ink-soft); line-height: 2;
}
footer.site a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
footer.site a:hover { color: var(--accent); border-bottom-color: var(--accent); }
footer.site .foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
footer.site .foot-copy { color: #8a8076; font-size: 12px; }

/* ---------- 工具类 ---------- */
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.mt0 { margin-top: 0; }
.tar { text-align: right; }

/* ---------- 移动端修正：防止头部导航把页面撑宽 ---------- */
@media (max-width: 560px) {
  header.site .wrap {
    height: auto;
    min-height: 56px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  nav.top {
    gap: 10px 14px;
    font-size: 13px;
    flex-wrap: wrap;
  }
  .brand { font-size: 16px; }
  .brand small { font-size: 10px; }
  .hero { padding: 30px 0 26px; }
  .hero h1 { font-size: 22px; }
  .info th { width: 84px; font-size: 13px; }
  .info td { font-size: 13px; }
  .price { font-size: 23px; }
}

/* 兜底：任何元素都不应造成横向滚动 */
html, body { overflow-x: hidden; }
