/* ===========================================================
   胡叨叨 · 历史节目背景手册
   设计语言：博物馆展签 / 纸感米色 + 青金石蓝 + 赭红
   =========================================================== */

:root {
  --paper: #f7f3ea;
  --paper-2: #efe7d7;
  --ink: #1b1917;
  --ink-soft: #3d382f;
  --muted: #6d6659;
  --lapis: #1f4e8c;
  --lapis-2: #34689f;
  --ochre: #a4462e;
  --sand: #d9c9a8;
  --line: rgba(27, 25, 23, .14);
  --max: 1080px;
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: var(--lapis); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 阅读进度 ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--ochre); z-index: 60; transition: width .1s linear;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  font-family: var(--serif); font-size: 17px; letter-spacing: .12em;
  color: var(--ink); display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid var(--ochre);
  display: grid; place-items: center; font-size: 11px; color: var(--ochre);
  font-family: var(--serif);
}
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .18em; }
.nav { margin-left: auto; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-size: 13px; color: var(--muted); white-space: nowrap;
  letter-spacing: .04em; padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.on { color: var(--ink); border-bottom-color: var(--ochre); text-decoration: none; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  overflow: hidden; background: #1a130c; color: #f6efe2; isolation: isolate;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 11, 6, .62) 0%, rgba(16, 11, 6, .12) 38%, rgba(16, 11, 6, .86) 100%);
}
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px 64px; }
.kicker {
  font-size: 12px; letter-spacing: .26em; color: #e5c9a2; margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: #e5c9a2; opacity: .7; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(58px, 11vw, 132px); line-height: .92;
  margin: 0 0 18px; letter-spacing: .06em;
}
.hero .sub {
  font-family: var(--serif); font-size: clamp(18px, 2.4vw, 26px);
  color: #f0e3cd; margin: 0 0 22px; letter-spacing: .06em; font-weight: 400;
}
.hero .lead { max-width: 620px; font-size: 16px; line-height: 1.95; color: rgba(246, 239, 226, .82); margin: 0 0 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 12.5px; color: rgba(246, 239, 226, .7); letter-spacing: .06em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; font-size: 14px; letter-spacing: .1em;
  border: 1px solid rgba(246, 239, 226, .55); color: #f6efe2; background: transparent;
  transition: background .25s, color .25s, border-color .25s; cursor: pointer;
}
.btn:hover { background: #f6efe2; color: #1a130c; text-decoration: none; }
.btn.solid { background: #f6efe2; color: #1a130c; border-color: #f6efe2; }
.btn.solid:hover { background: transparent; color: #f6efe2; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- 通用区块 ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.block { padding: 86px 0; border-top: 1px solid var(--line); }
.block:first-of-type { border-top: none; }
.eyebrow {
  font-size: 11.5px; letter-spacing: .26em; color: var(--ochre);
  margin-bottom: 16px; font-weight: 600;
}
.block h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 3.3vw, 40px); line-height: 1.4;
  margin: 0 0 12px; letter-spacing: .02em;
}
.block .intro { max-width: 700px; color: var(--muted); font-size: 16px; margin: 0 0 34px; line-height: 1.95; }

.prose { max-width: 730px; font-size: 17px; line-height: 2.05; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--lapis); font-weight: 600; }
.prose em { font-style: normal; border-bottom: 1px solid var(--sand); padding-bottom: 1px; }

/* 图文双栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split.wide-text { grid-template-columns: 1.15fr .85fr; }

figure { margin: 0; }
figure img { display: block; width: 100%; border-radius: 2px; background: var(--paper-2); }
figcaption {
  font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 12px;
  padding-left: 14px; border-left: 2px solid var(--sand);
}
figcaption b { color: var(--ink-soft); font-weight: 600; }

/* ---------- 时间线 ---------- */
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.tl li {
  position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 22px;
  padding: 0 0 28px 26px; border-left: 1px solid var(--line);
}
.tl li:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl li::before {
  content: ""; position: absolute; left: -4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ochre);
}
.tl li.hl::before { width: 11px; height: 11px; left: -6px; top: 9px; box-shadow: 0 0 0 3px rgba(164, 70, 46, .16); }
.tl .y {
  font-family: var(--serif); font-size: 15px; color: var(--lapis);
  letter-spacing: .02em; line-height: 1.6; padding-top: 4px;
}
.tl .t { font-weight: 600; font-size: 16.5px; display: block; margin-bottom: 3px; }
.tl .d { color: var(--muted); font-size: 15px; line-height: 1.85; }

/* ---------- 卡片网格 ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 6px;
}
.card { background: var(--paper); padding: 26px 24px 28px; }
.card .meta { font-size: 11.5px; letter-spacing: .16em; color: var(--ochre); margin-bottom: 10px; }
.card h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; font-weight: 600; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }
.card p + p { margin-top: 8px; }

/* ---------- 图集 ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px; margin-top: 10px;
}
.gallery.dense { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }
.gallery figure { cursor: zoom-in; }
.gallery figure img {
  aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.gallery.contain figure img { object-fit: contain; background: #f1ead9; aspect-ratio: 3 / 4; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { border-left: none; padding-left: 0; margin-top: 9px; font-size: 12.5px; }
.gallery figcaption b { display: block; font-size: 13.5px; margin-bottom: 2px; color: var(--ink); }

/* ---------- 人物 ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.person { background: var(--paper-2); }
.person-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: saturate(.95); }
.person-body { padding: 26px 26px 30px; }
.person .role { font-size: 11.5px; letter-spacing: .18em; color: var(--ochre); margin-bottom: 8px; }
.person h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; font-weight: 600; }
.person .life { font-size: 13px; color: var(--muted); letter-spacing: .08em; margin-bottom: 16px; }
.person p { font-size: 15px; line-height: 1.92; margin: 0 0 10px; color: var(--ink-soft); }
.person .say {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(27, 25, 23, .12);
  font-family: var(--serif); font-size: 15.5px; color: var(--lapis); line-height: 1.8;
}

/* ---------- 单张图 ---------- */
.single-photo { margin: 6px auto 0; }
.single-photo img { width: 100%; display: block; border-radius: 2px; }
.single-photo figcaption { border-left: none; padding-left: 0; text-align: center; font-size: 12.5px; }

/* ---------- 引文 ---------- */
.pull { padding: 96px 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.pull blockquote {
  margin: 0 auto; max-width: 860px; text-align: center;
  font-family: var(--serif); font-size: clamp(23px, 3.2vw, 36px);
  line-height: 1.62; color: var(--lapis); letter-spacing: .03em;
}
.pull cite {
  display: block; margin-top: 22px; font-style: normal; font-size: 12.5px;
  letter-spacing: .2em; color: var(--muted);
}

/* ---------- 互动 ---------- */
.ask { display: grid; gap: 14px; margin-top: 8px; }
.ask .q {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start;
  padding: 24px 26px; background: var(--paper-2); border-left: 3px solid var(--ochre);
}
.ask .n { font-family: var(--serif); font-size: 22px; color: var(--ochre); line-height: 1.2; }
.ask .q p { margin: 0; font-size: 16.5px; }
.ask .q small { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.ask-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-foot { background: #1b1917; color: #c9c0b0; padding: 66px 0 44px; font-size: 13.5px; line-height: 1.85; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.site-foot h4 { color: #f0e7d6; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .14em; margin: 0 0 14px; }
.site-foot a { color: #d8c9a8; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; color: #a49b8b; }
.site-foot .fine { margin-top: 26px; color: #7c7364; font-size: 12px; }
.lattice {
  height: 12px; opacity: .5;
  background-image:
    linear-gradient(45deg, rgba(217, 201, 168, .5) 25%, transparent 25%, transparent 75%, rgba(217, 201, 168, .5) 75%),
    linear-gradient(45deg, rgba(217, 201, 168, .5) 25%, transparent 25%, transparent 75%, rgba(217, 201, 168, .5) 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px;
}

/* ---------- 灯箱 ---------- */
.lb {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(14, 10, 6, .95); padding: 40px 24px 28px;
  align-items: center; justify-content: center; flex-direction: column;
}
.lb.on { display: flex; }
.lb img { max-width: min(1200px, 92vw); max-height: 82vh; object-fit: contain; }
.lb .cap { color: #e6d9c2; font-size: 13px; margin-top: 16px; text-align: center; max-width: 760px; line-height: 1.7; }
.lb .close {
  position: absolute; top: 18px; right: 22px; color: #e6d9c2; font-size: 26px;
  cursor: pointer; line-height: 1; background: none; border: 0;
}

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .topbar-in { gap: 16px; padding: 12px 18px; }
  .nav { gap: 16px; }
  .hero { min-height: 76vh; }
  .hero-in { padding: 0 20px 44px; }
  .block { padding: 60px 0; }
  .wrap { padding: 0 20px; }
  .split, .split.wide-text { grid-template-columns: 1fr; gap: 28px; }
  .people { grid-template-columns: 1fr; }
  .tl li { grid-template-columns: 1fr; gap: 4px; }
  .pull { padding: 64px 0; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
