/* ============================================================
   谱 ZUPU · 官网样式
   设计语言与族谱应用同源：宣纸底 · 墨字 · 朱砂印 · 鎏金线。
   刻意与 familytree.design 一类「桌面软件蓝紫风」拉开差异 ——
   我们卖的是一部古籍的新生，不是一款工具。
   ============================================================ */

:root {
  --paper: #f6f1e5;        /* 宣纸 */
  --paper-2: #efe7d3;      /* 深宣纸 */
  --ink: #2b241c;          /* 浓墨 */
  --ink-2: #5b5142;        /* 淡墨 */
  --ink-3: #8d8270;        /* 灰墨 */
  --cinnabar: #b23a26;     /* 朱砂 */
  --cinnabar-deep: #8e2d1d;
  --gold: #8c6d2f;         /* 鎏金 */
  --gold-soft: #b79453;
  --line: rgba(139, 109, 47, .22);
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --shadow: 0 24px 60px -28px rgba(43, 36, 28, .35);
  --r: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  /* 宣纸纤维质感：极淡的斜向纹理 */
  background-image:
    repeating-linear-gradient(115deg, rgba(139,109,47,.022) 0 2px, transparent 2px 7px),
    radial-gradient(1200px 600px at 85% -10%, rgba(178,58,38,.05), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

::selection { background: rgba(178, 58, 38, .18); }

/* ---------- 印章 ---------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--cinnabar); color: #f7f2e7;
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(247,242,231,.35), 0 6px 16px -6px rgba(178,58,38,.55);
  user-select: none;
}
.seal.big { width: 72px; height: 72px; font-size: 44px; border-radius: 15px; margin-bottom: 22px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: .12em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn.primary {
  background: var(--cinnabar); color: #f7f2e7;
  box-shadow: 0 14px 30px -12px rgba(178, 58, 38, .55);
}
.btn.primary:hover { background: var(--cinnabar-deep); transform: translateY(-2px); }
.btn.ghost {
  border-color: var(--line); color: var(--ink-2); background: rgba(255,255,255,.35);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn.lg { padding: 16px 42px; font-size: 17px; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 30px;
  padding: 14px 30px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(43,36,28,.4); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-t { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .1em; }
.brand-t i { font-style: normal; font-size: 12px; color: var(--ink-3); letter-spacing: .3em; margin-left: 2px; }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a {
  font-size: 14.5px; color: var(--ink-2); letter-spacing: .08em; position: relative; padding: 4px 0;
}
.top-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 2px; background: var(--cinnabar); transition: all .22s ease;
  transform: translateX(-50%);
}
.top-nav a:hover { color: var(--ink); }
.top-nav a:hover::after { width: 100%; }
.btn-enter {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 999px;
  background: var(--cinnabar); color: #f7f2e7; font-size: 14px; font-weight: 600;
  letter-spacing: .08em; box-shadow: 0 10px 22px -10px rgba(178,58,38,.6);
  transition: transform .18s ease, background .18s ease;
}
.btn-enter:hover { background: var(--cinnabar-deep); transform: translateY(-1px); }
.btn-enter .arr { transition: transform .18s ease; }
.btn-enter:hover .arr { transform: translateX(3px); }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; }
.hero-vert {
  position: absolute; top: 120px; left: 4vw;
  writing-mode: vertical-rl; font-family: var(--serif);
  font-size: clamp(40px, 6vw, 78px); letter-spacing: .35em;
  color: rgba(139, 109, 47, .10); user-select: none; pointer-events: none;
  font-weight: 700;
}
.hero-vert.v2 { left: auto; right: 4vw; top: 420px; color: rgba(178, 58, 38, .08); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center; padding-top: 92px; padding-bottom: 96px;
}
.kicker {
  display: inline-block; font-size: 13.5px; letter-spacing: .3em;
  color: var(--gold); margin-bottom: 18px; font-weight: 600;
}
.kicker::before { content: "◆ "; font-size: 9px; vertical-align: 2px; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.22; letter-spacing: .04em; margin-bottom: 22px; font-weight: 700;
}
.hero h1 em {
  font-style: normal; color: var(--cinnabar); position: relative;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 10px; background: rgba(178,58,38,.14); z-index: -1;
}
.lede { color: var(--ink-2); font-size: 17px; margin-bottom: 30px; }
.lede b { color: var(--ink); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-points { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hero-points li {
  font-size: 14.5px; color: var(--ink-2); padding-left: 22px; position: relative;
}
.hero-points li::before {
  content: "❖"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 12px;
}
.hero-shot {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #fff; transform: rotate(.6deg);
  position: relative;
}
.hero-shot::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(139,109,47,.28);
  border-radius: 8px; pointer-events: none; z-index: 2;
}
.hero-shot img { width: 100%; }
.hero-shot figcaption {
  padding: 11px 16px; font-size: 12.5px; color: var(--ink-3);
  text-align: center; background: var(--paper-2); letter-spacing: .06em;
}

/* ---------- 数据条 ---------- */
.stats { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 55%, var(--paper)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 18px; text-align: center; }
.stat b {
  display: block; font-family: var(--serif); font-size: 40px; font-weight: 700;
  color: var(--cinnabar); line-height: 1.15;
}
.stat b i { font-style: normal; font-size: 20px; margin-left: 3px; color: var(--gold); }
.stat span { font-size: 13.5px; color: var(--ink-2); letter-spacing: .1em; }

/* ---------- 通用区块 ---------- */
.sec { padding: 92px 0; }
.sec-alt { background: color-mix(in srgb, var(--paper-2) 62%, var(--paper)); }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: .08em; font-weight: 700;
}
.sec-head h2::after {
  content: ""; display: block; width: 52px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--cinnabar), transparent);
  margin: 16px auto 0;
}

/* ---------- 功能卡 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  background: rgba(255,255,255,.55); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.feat-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  color: var(--cinnabar); background: rgba(178,58,38,.08);
  border: 1px solid rgba(178,58,38,.18);
}
.feat h3 { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; margin-bottom: 8px; }
.feat p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- 场景大图 ---------- */
.scene {
  margin-top: 44px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff;
}
.scene.mobile { max-width: 420px; margin-inline: auto; }
.scene img { width: 100%; }
.scene figcaption {
  padding: 11px 16px; font-size: 12.5px; color: var(--ink-3);
  text-align: center; background: var(--paper-2); letter-spacing: .06em;
}

/* ---------- AI 区 ---------- */
.sec-ai {
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(178,58,38,.07), transparent 55%),
    color-mix(in srgb, var(--paper-2) 62%, var(--paper));
}
.ai-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: 52px; align-items: center; }
.ai-copy h2 {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.35; letter-spacing: .05em; margin-bottom: 20px; font-weight: 700;
}
.ai-rules { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.ai-rules li {
  background: rgba(255,255,255,.6); border: 1px solid var(--line);
  border-left: 3px solid var(--cinnabar); border-radius: 0 10px 10px 0;
  padding: 15px 20px;
}
.ai-rules b { display: block; font-family: var(--serif); font-size: 16.5px; margin-bottom: 3px; }
.ai-rules span { font-size: 14px; color: var(--ink-2); }
.shot-ai { margin-top: 0; }

/* ---------- 治理阶梯 ---------- */
.tiers {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-bottom: 10px;
}
.tier {
  background: rgba(255,255,255,.55); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px 20px; position: relative;
}
.tier-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 26px; padding: 0 8px; border-radius: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 14px;
}
.tier-badge.t0 { background: rgba(140,109,47,.14); color: var(--gold); }
.tier-badge.t1 { background: rgba(140,109,47,.22); color: var(--gold); }
.tier-badge.t2 { background: rgba(178,58,38,.14); color: var(--cinnabar); }
.tier-badge.t3 { background: var(--cinnabar); color: #f7f2e7; }
.tier h3 { font-family: var(--serif); font-size: 17.5px; margin-bottom: 6px; letter-spacing: .05em; }
.tier p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 对比表 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.6); }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th {
  font-family: var(--serif); font-size: 15.5px; letter-spacing: .08em;
  background: var(--paper-2); color: var(--ink);
}
.cmp thead th.hl { color: var(--cinnabar); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.cmp td.hl { color: var(--ink); font-weight: 500; background: rgba(178,58,38,.045); }
.cmp td { color: var(--ink-2); }

/* ---------- 场景三卡 ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sc {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; background: rgba(255,255,255,.55);
}
.sc h3 { font-family: var(--serif); font-size: 18px; letter-spacing: .06em; margin-bottom: 8px; }
.sc h3::before { content: "「"; color: var(--gold); }
.sc h3::after { content: "」"; color: var(--gold); }
.sc p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq {
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.55); padding: 0 22px;
  transition: border-color .2s ease;
}
.faq[open] { border-color: var(--gold-soft); }
.faq summary {
  cursor: pointer; padding: 17px 0; font-weight: 600; font-size: 15.5px;
  list-style: none; position: relative; padding-right: 34px; letter-spacing: .03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: 20px; color: var(--gold); transition: rotate .2s ease;
}
.faq[open] summary::after { rotate: 45deg; }
.faq p { padding: 0 0 18px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 底部 CTA ---------- */
.cta {
  text-align: center; padding: 110px 0;
  background:
    radial-gradient(800px 400px at 50% 110%, rgba(178,58,38,.12), transparent 60%),
    var(--ink);
  color: #efe7d3;
}
.cta h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); letter-spacing: .1em; margin-bottom: 14px; }
.cta p { color: rgba(239,231,211,.75); margin-bottom: 34px; font-size: 16px; }
.cta .seal { box-shadow: inset 0 0 0 2px rgba(247,242,231,.35), 0 10px 30px -8px rgba(178,58,38,.8); }

/* ---------- 页脚 ---------- */
.foot { background: #241e17; color: rgba(239,231,211,.66); padding: 40px 0; }
.foot-grid { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot .seal { width: 34px; height: 34px; font-size: 19px; border-radius: 8px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { display: block; color: #efe7d3; font-family: var(--serif); letter-spacing: .12em; font-size: 16px; }
.foot-brand span { font-size: 12.5px; letter-spacing: .2em; }
.foot-nav { margin-left: auto; display: flex; gap: 22px; }
.foot-nav a { font-size: 13.5px; }
.foot-nav a:hover { color: #efe7d3; }
.foot-copy { width: 100%; font-size: 12.5px; color: rgba(239,231,211,.4); border-top: 1px solid rgba(239,231,211,.12); padding-top: 18px; margin-top: 6px; }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .top-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; }
  .hero-vert { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .scene-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 30px; }
  .sec { padding: 64px 0; }
}
