/* ============================================================
   微本香叙 · 古典国学主题（覆盖层）
   宣纸底 · 墨字 · 朱砂印 · 赭金线 —— 书卷气
   ============================================================ */
:root {
  --paper: #f4eddd;
  --paper-2: #faf6ec;
  --ink: #2b251c;
  --ink-soft: #6a6051;
  --line: #d9cdb4;
  --cinnabar: #9c3423;
  --cinnabar-dark: #7d281b;
  --gold: #8a6d3f;
  --gold-soft: #ede2c8;
  --shadow: 0 10px 30px rgba(74, 60, 35, 0.10);
  --serif: "Kaiti SC", "STKaiti", "Noto Serif SC", "Songti SC", serif;
}

/* ---------- 全局 ---------- */
body {
  font-family: var(--serif);
  background:
    radial-gradient(900px 500px at 85% -100px, #efe4cb 0%, transparent 60%),
    radial-gradient(700px 400px at -50px 100%, #ece2ca 0%, transparent 55%),
    var(--paper);
  color: var(--ink);
  letter-spacing: 0.02em;
}
h1, h2, h3, h4, .brand-name, .stat .num { font-family: var(--serif); }

/* ---------- 顶部导航：仿线装书边 ---------- */
.site-header {
  background: rgba(244, 237, 221, 0.94);
  border-bottom: 3px double var(--gold);
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 4px;
  background: var(--cinnabar); color: #f7f1e3;
  font-size: 20px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(247, 241, 227, 0.35);
  position: relative;
}
.brand-name { font-size: 20px; letter-spacing: 0.12em; }
.nav a { font-family: var(--serif); font-size: 15.5px; letter-spacing: 0.15em; }
.nav a:hover { background: var(--gold-soft); color: var(--ink); }
.nav a.active { color: var(--cinnabar); font-weight: 700; }
.nav a.active::after {
  content: ""; display: block; height: 2px; background: var(--cinnabar);
  margin: 2px 14px 0; border-radius: 2px;
}

/* ---------- 按钮：朱砂印泥 ---------- */
.btn {
  background: var(--cinnabar); border-color: var(--cinnabar);
  font-family: var(--serif); letter-spacing: 0.2em; border-radius: 4px;
}
.btn:hover { background: var(--cinnabar-dark); border-color: var(--cinnabar-dark); box-shadow: 0 6px 18px rgba(156, 52, 35, 0.28); }
.btn-ghost { background: transparent; color: var(--cinnabar); border: 1px solid var(--cinnabar); }
.btn-ghost:hover { background: rgba(156, 52, 35, 0.06); }

/* ---------- 首页 Hero：书卷大字 ---------- */
.hero {
  padding: 120px 0 130px;
  background:
    radial-gradient(1000px 460px at 50% -80px, #f0e6cd 0%, transparent 70%),
    transparent;
  position: relative; overflow: hidden;
}
.hero-tag {
  border: 1px solid var(--cinnabar); color: var(--cinnabar);
  border-radius: 2px; padding: 6px 22px;
  font-size: 14px; letter-spacing: 0.5em; text-indent: 0.5em;
  background: rgba(250, 246, 236, 0.7);
}
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: 0.08em; font-weight: 700; }
.hero p { color: var(--ink-soft); font-size: 17.5px; max-width: 640px; line-height: 2; }
.hero p::after {
  content: "❖"; display: block; color: var(--gold);
  font-size: 14px; margin-top: 22px; letter-spacing: 0;
}

/* ---------- 区块标题：朱砂题签 ---------- */
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head .kicker { color: var(--gold); font-size: 13.5px; }
.section-head .kicker::before, .section-head .kicker::after { content: " — "; color: var(--line); }
.section-head h2 { font-size: 34px; letter-spacing: 0.14em; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--cinnabar); margin: 16px auto 0;
}
.section-head p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 卡片：宣纸笺 ---------- */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px;
  position: relative;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 70%);
  opacity: 0.55;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cinnabar); }
.card .icon {
  background: var(--gold-soft); border-radius: 4px; color: var(--gold);
}
.card h3 { letter-spacing: 0.1em; }
.card p { color: var(--ink-soft); line-height: 1.9; }

/* ---------- 内页题头 ---------- */
.page-hero {
  padding: 84px 0 60px; text-align: center;
  background: radial-gradient(800px 320px at 50% -60px, #f0e6cd 0%, transparent 70%);
  border-bottom: 3px double var(--gold);
}
.page-hero .kicker { color: var(--gold); letter-spacing: 0.4em; font-size: 13.5px; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: 0.12em; }
.page-hero p { color: var(--ink-soft); max-width: 640px; margin: 18px auto 0; line-height: 2; }

/* ---------- 正文排版 ---------- */
.prose { font-size: 16.5px; line-height: 2.1; }
.prose h3 { color: var(--cinnabar-dark); font-size: 21px; letter-spacing: 0.08em; }
.prose h3::before { content: "§ "; color: var(--gold); }
.list-check { list-style: none; padding-left: 0; }
.list-check li { padding: 7px 0 7px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.list-check li::before { content: "✦"; position: absolute; left: 6px; color: var(--cinnabar); }
.note-box {
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: 0 4px 4px 0; color: var(--ink-soft);
  font-size: 14.5px; line-height: 1.9;
}
.video-slot {
  border: 2px dashed var(--gold); border-radius: 6px; background: var(--paper-2);
  padding: 46px 20px; text-align: center; color: var(--ink-soft); font-size: 14.5px;
  letter-spacing: 0.1em;
}
.video-slot::before { content: "▶ "; color: var(--cinnabar); font-size: 22px; display: block; margin-bottom: 10px; }

/* ---------- 粉丝钩子：关注有礼横幅 ---------- */
.hook-banner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f7efdd 0%, #f1e5c8 100%);
  border: 1px solid var(--gold); border-radius: 6px;
  padding: 30px 34px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hook-banner::after {
  content: "礼"; position: absolute; right: -14px; bottom: -26px;
  font-size: 130px; color: rgba(156, 52, 35, 0.07); font-family: var(--serif);
  font-weight: 700; line-height: 1;
}
.hook-seal {
  flex-shrink: 0; width: 72px; height: 72px; background: var(--cinnabar);
  color: #f7f1e3; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; box-shadow: inset 0 0 0 3px rgba(247,241,227,.3);
}
.hook-body h3 { font-size: 22px; letter-spacing: 0.08em; margin-bottom: 8px; }
.hook-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.hook-body .gift { color: var(--cinnabar); font-weight: 700; }
.qr-box {
  flex-shrink: 0; width: 128px; text-align: center;
}
.qr-frame {
  width: 118px; height: 118px; margin: 0 auto 8px;
  border: 2px dashed var(--cinnabar); border-radius: 6px; background: #fffdf6;
  display: flex; align-items: center; justify-content: center;
  color: var(--cinnabar); font-size: 13px; letter-spacing: 0.1em; line-height: 1.7;
  padding: 8px;
}
.qr-box small { color: var(--ink-soft); font-size: 12px; display: block; }

/* ---------- 订阅通讯 ---------- */
.sub-panel {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 44px 36px; box-shadow: var(--shadow); position: relative;
}
.sub-panel::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--line);
  border-radius: 3px; pointer-events: none;
}
.sub-panel h3 { font-size: 24px; letter-spacing: 0.14em; margin-bottom: 10px; }
.sub-panel > p { color: var(--ink-soft); font-size: 15px; line-height: 2; margin-bottom: 24px; }
.sub-row { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; position: relative; }
.sub-row input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--serif); font-size: 15px; background: #fffdf6; color: var(--ink); outline: none;
}
.sub-row input:focus { border-color: var(--cinnabar); }
.sub-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
.sub-msg.ok { color: #3d7a4f; }
.sub-msg.err { color: var(--cinnabar-dark); }

/* ---------- 雅集活动卡 ---------- */
.event-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 30px 32px; margin-bottom: 22px; position: relative; transition: all .25s;
}
.event-card:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.event-card .ev-tag {
  display: inline-block; background: var(--cinnabar); color: #f7f1e3;
  font-size: 12.5px; letter-spacing: 0.25em; padding: 4px 14px; border-radius: 2px; margin-bottom: 14px;
}
.event-card h3 { font-size: 21px; letter-spacing: 0.06em; margin-bottom: 12px; }
.event-card .ev-meta { color: var(--ink-soft); font-size: 14.5px; line-height: 2; }
.event-card .ev-meta b { color: var(--ink); font-weight: 700; }

/* ---------- 统计数字：改为品牌三味 ---------- */
.stat .num { color: var(--cinnabar); }
.stat .label { color: var(--ink-soft); letter-spacing: 0.1em; }

/* ---------- 页脚：墨色书背 ---------- */
.site-footer { background: #241f17; color: #b3a992; border-top: 4px solid var(--cinnabar); }
.site-footer h4 { color: #ede4d0; letter-spacing: 0.15em; }
.site-footer .qr-frame { border-color: #b3a992; background: transparent; color: #b3a992; }
.copyright { border-top: 1px solid #3b3427; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 真实二维码图片 ---------- */
.qr-frame.qr-photo { border-style: solid; border-color: var(--gold); background: #fffdf6; padding: 5px; }
.qr-frame.qr-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.site-footer .qr-frame.qr-photo { border-color: var(--gold); }
