/* ============================================================
   单子 Danzi 站点样式 —— 暖色生意人风格，移动端优先
   无外部依赖（无 CDN 字体/图标），国内访问快
   ============================================================ */

:root {
  --red: #c7402a;
  --red-dark: #a53320;
  --red-light: #f6e3dd;
  --gold: #d9a441;
  --gold-light: #faf1de;
  --ink: #2b2622;
  --ink-soft: #5c544c;
  --muted: #8a7f72;
  --paper: #faf6ef;
  --card: #ffffff;
  --line: #e8dfd2;
  --green: #2e7d4f;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(43, 38, 34, 0.07);
  --maxw: 860px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(199, 64, 42, 0.35);
}
.brand small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.nav-links { display: flex; gap: 20px; font-size: 15px; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--red); text-decoration: none; }
@media (max-width: 560px) { .nav-links { display: none; } }

/* ---------- 布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(1000px 380px at 85% -10%, var(--gold-light), transparent 60%),
    radial-gradient(800px 300px at -10% 110%, var(--red-light), transparent 55%);
}
.hero-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red-dark);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 44px);
  line-height: 1.28;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--red); font-style: normal; }
.hero-sub {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(199, 64, 42, 0.35);
}
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn small { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; }

/* 首页三活块 */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
@media (max-width: 720px) { .hero-cards { grid-template-columns: 1fr; } }
.live-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  border-top: 4px solid var(--line);
}
.live-card.green { border-top-color: var(--green); }
.live-card.gold { border-top-color: var(--gold); }
.live-card.red { border-top-color: var(--red); }
.live-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.live-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- 功能网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.feat-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 12px;
  background: var(--red-light);
}
.feat h3 { font-size: 16.5px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--ink-soft); }

.section-title { font-size: 26px; text-align: center; margin-bottom: 8px; }
.section-desc { text-align: center; color: var(--muted); margin-bottom: 36px; font-size: 15.5px; }

/* ---------- 隐私承诺条 ---------- */
.promise {
  background: linear-gradient(135deg, #2b2622, #413a33);
  color: #f5efe6;
  border-radius: 18px;
  padding: 40px 36px;
}
.promise .section-title { color: #fff; }
.promise .section-desc { color: rgba(245, 239, 230, 0.72); }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 720px) { .promise-grid { grid-template-columns: 1fr; } }
.promise-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px;
}
.promise-item b { display: block; font-size: 16px; margin-bottom: 6px; color: var(--gold); }
.promise-item p { font-size: 14px; color: rgba(245, 239, 230, 0.78); }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.price-card.hot { border-color: var(--red); position: relative; }
.price-card.hot::after {
  content: "最受欢迎";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 12.5px;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name { font-size: 17px; font-weight: 700; }
.price-num { font-size: 38px; font-weight: 800; color: var(--red); margin: 10px 0 2px; }
.price-num small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-per { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.price-list { list-style: none; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.price-list li { padding: 6px 0 6px 26px; position: relative; }
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}
.price-list li.no { color: var(--muted); }
.price-list li.no::before { content: "—"; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 16px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: "+"; color: var(--red); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: var(--ink-soft); }

/* ---------- 法务文章页 ---------- */
.doc { padding: 44px 0 64px; }
.doc-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 44px 48px;
}
@media (max-width: 640px) { .doc-card { padding: 28px 22px; } }
.doc-kicker { color: var(--red); font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.doc h1 { font-size: 28px; margin-bottom: 6px; }
.doc-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 28px; }
.doc h2 {
  font-size: 19px;
  margin: 34px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
}
.doc h3 { font-size: 16px; margin: 20px 0 8px; }
.doc p { margin-bottom: 12px; color: var(--ink-soft); font-size: 15.5px; }
.doc ul, .doc ol { margin: 0 0 14px 22px; color: var(--ink-soft); font-size: 15.5px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--ink); }
.doc .callout {
  background: var(--gold-light);
  border: 1px solid #ecd9ac;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: #6b5410;
  margin: 14px 0;
}
.doc .callout.red { background: var(--red-light); border-color: #ecc9c0; color: var(--red-dark); }
.doc-toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 26px;
  font-size: 14.5px;
}
.doc-toc b { display: block; margin-bottom: 6px; font-size: 15px; }
.doc-toc ol { margin: 0 0 0 20px; }
.doc-toc a { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 90px 20px; }
.nf-code { font-size: 64px; font-weight: 800; color: var(--red); }
.nf p { color: var(--muted); margin: 10px 0 24px; }
