/*
  晨曦 CHENXI · 护肤刊物站
  风格锚：杂志编辑风（editorial）—— 刊号/栏目名/页码这类刊物零件当版面元素用，
  衬线大标题走极端字号，图片出血，通栏与窄栏混排，深色内页做节奏对比。
  三个数：字距 0.05em / 行高 1.9 / 正文宽 760px
*/

:root {
  --tracking: 0.05em;
  --leading: 1.9;
  --measure: 760px;
  --wide: 1240px;

  --ink: #211b16;
  --ink-mid: #857567;
  --ink-light: #c4b8aa;
  --bg: #f7f3ec;
  --bg-warm: #efe5d9;
  --deep: #241b15;
  --deep-mid: #9d8875;
  --accent: #9c4426;
  --line: rgba(33, 27, 22, 0.14);
  --line-deep: rgba(247, 243, 236, 0.18);

  /* 中文回退链要覆盖 Mac / Windows / Android —— 实测线上 fonts.gstatic.com 的
     Noto SC 子集会 404，只留 Noto 的话中文会掉到浏览器默认字体（宋体或更差）。
     系统字体排在 Noto 前面，网络字体拿不到时中文照样是对的。 */
  --sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB',
          'Source Han Sans SC', 'Noto Sans SC', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', 'Songti SC', 'Source Han Serif SC',
           'Noto Serif SC', 'SimSun', serif;

  /* 间距刻度：段 < 块 < 节，1 : 2.5 : 6 */
  --sp-1: 18px;
  --sp-2: 44px;
  --gap-section: 108px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: var(--leading);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* 胶片颗粒：全站一层，极淡，呼应暖调摄影。
   刻意不用 mix-blend-mode —— 全屏固定层做混合会让浏览器每帧重新合成整个视口，
   长页 + 大图时滚动会掉帧。这个透明度下，混合与直接叠加肉眼没有区别。 */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 900;
  opacity: 0.045;
  /* 自己占一个合成层，否则下面的内容一动就要连它一起重新栅格化 */
  transform: translateZ(0);
  contain: strict;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }

/* ── 排版基线 ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0 0 var(--sp-1); }
h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.2; letter-spacing: 0.01em; }
h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.32; }
h3 { font-size: 21px; line-height: 1.5; }
p  { margin: 0 0 var(--sp-1); }

.kicker {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.lede { font-size: 17px; color: var(--ink-mid); max-width: 46ch; }
.link-accent {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent);
  font-size: 13px; letter-spacing: 0.08em;
  padding-bottom: 2px; transition: opacity .25s;
}
.link-accent:hover { opacity: .6; }

.btn {
  display: inline-block; padding: 15px 34px;
  border: 1px solid currentColor; color: var(--ink);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; background: none; cursor: pointer;
  font-family: var(--sans);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.on-dark { color: var(--bg); }
.btn.on-dark:hover { background: var(--bg); color: var(--deep); }

/* 只写 margin-inline —— 用 margin 简写会把下面那条节间距清成 0（类选择器优先级更高） */
.wrap { max-width: var(--wide); margin-inline: auto; padding: 0 40px; }
.wrap-narrow { max-width: var(--measure); margin-inline: auto; padding: 0 40px; }
main > section { margin-bottom: var(--gap-section); }
/* 页脚前再留一口气：正文最后一节和深色页脚之间不该只有节间距 */
main > section:last-child { margin-bottom: calc(var(--gap-section) * 1.25); }

/* 节标题：栏目名 + 编号，刊物零件 */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; border-bottom: 1px solid var(--line);
  padding-bottom: 16px; margin-bottom: var(--sp-2);
}
.sec-head h2 { margin: 0; }
.sec-head .folio {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--ink-mid); white-space: nowrap;
}

/* ── 开场：刊物封面帘（只在首页、每个会话第一次进站时出现） ── */
.curtain {
  position: fixed; inset: 0; z-index: 1200; background: var(--bg);
  display: grid; place-items: center; text-align: center;
  transition: transform 1s cubic-bezier(.76,0,.24,1);
}
.curtain.lift { transform: translateY(-101%); }
.curtain-inner { transition: opacity .6s ease, transform .8s var(--ease); }
.curtain.lift .curtain-inner { opacity: 0; transform: translateY(-18px); }
.curtain-issue { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.curtain-mark {
  font-family: var(--serif); font-size: clamp(56px, 9vw, 118px); line-height: 1;
  letter-spacing: .16em; text-indent: .16em; color: var(--ink);
}
.curtain-sub { font-size: 10px; letter-spacing: .3em; color: var(--ink-light); margin-top: 20px; }
.curtain-rule { width: 0; height: 1px; background: var(--accent); margin: 30px auto 0; animation: rule 1.1s var(--ease) forwards; }
@keyframes rule { to { width: 108px; } }

/* ── 翻页帘：和开场帘同一套语言，从下往上扫过整屏 ── */
.wipe {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--bg); transform: translateY(100%); visibility: hidden;
  pointer-events: none; display: grid; place-items: center;
  border-top: 1px solid var(--accent);
}
.wipe-mark {
  font-family: var(--serif); font-size: 44px; letter-spacing: .2em;
  text-indent: .2em; color: var(--ink-light);
}

/* 锚点跳转的落点避开吸顶页头（原生 scroll-behavior 接管，不需要 JS） */
[id] { scroll-margin-top: 100px; }

/* ── 按节揭幕（JS 加 .reveal-init 才生效，无脚本时内容照常可见） ── */
.reveal-init { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-init.in { opacity: 1; transform: none; }

/* ── 阅读进度条 ── */
.rail {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--accent); z-index: 1000;
}

/* ── 页头 ── */
.site-head {
  position: sticky; top: 0; z-index: 800;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; padding: 22px 40px;
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s;
}
.site-head.stuck { border-bottom-color: var(--line); padding-top: 16px; padding-bottom: 16px; }
.site-title {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  letter-spacing: 0.14em; text-decoration: none; line-height: 1.1;
}
.site-title small {
  display: block; font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.22em; color: var(--ink-mid); margin-top: 3px;
}
.site-nav { display: flex; gap: 30px; align-items: baseline; }
.site-nav a {
  position: relative; color: var(--ink-mid); text-decoration: none;
  font-size: 12.5px; letter-spacing: 0.1em; padding-bottom: 3px;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--accent); }
.nav-issue { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink-light); }

/* ── 首页 Hero：全幅出血 + 压字 ── */
.hero-full {
  position: relative; height: 92vh; min-height: 560px;
  margin: 0 0 var(--gap-section); overflow: hidden;
  background: var(--bg-warm);
}
.hero-full .hero-bg { position: absolute; inset: -8% 0; will-change: transform; }
.hero-full .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
/* 只压文字落脚的局部，不铺满黑罩 */
.hero-full::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(36,27,21,0) 42%, rgba(36,27,21,.34) 68%, rgba(36,27,21,.62) 100%);
}
.hero-inner {
  position: absolute; z-index: 2; right: 0; bottom: 0; top: 0;
  width: min(52%, 620px); padding: 0 56px 0 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: #fdfaf5;
}
.hero-inner .kicker { color: #e8b79f; }
.hero-inner h1 {
  font-style: italic; font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.08; margin-bottom: 26px; color: #fdfaf5;
}
.hero-inner h1 .line { display: block; overflow: hidden; }
.hero-inner h1 .line-inner { display: block; }
.hero-inner p { color: rgba(253,250,245,.82); max-width: 34ch; margin-bottom: 30px; }
.hero-meta {
  position: absolute; z-index: 2; left: 40px; bottom: 34px;
  display: flex; gap: 28px; align-items: baseline;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(253,250,245,.7);
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #e8b79f; }
.scroll-cue {
  position: absolute; z-index: 2; right: 40px; bottom: 34px;
  font-size: 10px; letter-spacing: 0.24em; color: rgba(253,250,245,.7);
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue i { display: block; width: 40px; height: 1px; background: rgba(253,250,245,.5); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ''; position: absolute; inset: 0; background: #e8b79f;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }

/* ── 走马灯 ── */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; overflow: hidden; margin-bottom: var(--gap-section);
  background: var(--bg-warm);
}
.ticker-track { display: flex; gap: 0; width: max-content; animation: slide 34s linear infinite; }
.ticker-track span {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--ink-mid); padding: 0 26px; white-space: nowrap;
}
.ticker-track span::after { content: '·'; margin-left: 26px; color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ── 本期目录：编辑式索引，hover 浮出配图 ── */
.contents { position: relative; }
.toc-list { border-top: 1px solid var(--line); }
.toc-row {
  display: grid; grid-template-columns: 64px 1fr 190px 40px;
  gap: 24px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
.toc-row:hover { background: var(--bg-warm); padding-left: 20px; }
.toc-row .no { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink-light); }
.toc-row:hover .no { color: var(--accent); }
.toc-row .ttl { font-family: var(--serif); font-size: 25px; line-height: 1.3; }
.toc-row .dept { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mid); }
.toc-row .arw { font-size: 17px; color: var(--ink-light); justify-self: end; transition: transform .35s var(--ease), color .35s; }
.toc-row:hover .arw { transform: translateX(6px); color: var(--accent); }
.toc-peek {
  position: fixed; z-index: 700; width: 200px; aspect-ratio: 4/5;
  pointer-events: none; opacity: 0; overflow: hidden;
  transform: translate(-50%, -50%) scale(.94) rotate(-2deg);
  transition: opacity .3s, transform .4s var(--ease);
  box-shadow: 0 22px 50px rgba(33,27,22,.28);
}
.toc-peek.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.toc-peek img { width: 100%; height: 100%; object-fit: cover; }

/* ── 前后拖拽对比 ── */
.compare-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.compare {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  cursor: ew-resize; user-select: none; background: var(--bg-warm);
  touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-layer { clip-path: inset(0 0 0 50%); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: rgba(253,250,245,.9); z-index: 3; transform: translateX(-1px);
  box-shadow: 0 0 18px rgba(33,27,22,.4);
}
.compare .handle::after {
  content: '↔'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(253,250,245,.95); color: var(--deep);
  display: grid; place-items: center; font-size: 16px;
  box-shadow: 0 6px 20px rgba(33,27,22,.3);
}
.compare .tag {
  position: absolute; bottom: 16px; z-index: 2;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: #fdfaf5; background: rgba(36,27,21,.55); padding: 6px 12px;
  backdrop-filter: blur(4px);
}
.compare .tag.l { left: 16px; }
.compare .tag.r { right: 16px; }
.compare-note { font-size: 12px; color: var(--ink-light); margin-top: 14px; }

/* ── 横向拖动展开的产品跨页 ── */
.spread-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: var(--sp-2); }
.spread {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 40px 24px; scrollbar-width: none; cursor: grab;
}
.spread::-webkit-scrollbar { display: none; }
.spread.dragging { cursor: grabbing; scroll-snap-type: none; }
.spread-card { flex: 0 0 min(400px, 76vw); scroll-snap-align: center; }
.spread-card .ph { overflow: hidden; aspect-ratio: 4/5; background: var(--bg-warm); margin-bottom: 18px; }
.spread-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.spread-card:hover .ph img { transform: scale(1.06); }
.spread-card .num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.spread-card h3 { margin-bottom: 6px; }
.spread-card p { font-size: 14px; color: var(--ink-mid); margin: 0; }

/* ── 深色成分内页 ── */
.ledger {
  background: var(--deep); color: #f4ece2;
  padding: 104px 0; margin: 0 0 var(--gap-section);
}
.ledger .kicker { color: #d99f80; }
.ledger h2 { color: #f8f2e9; }
.ledger-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 80px; align-items: center; }
.ledger-figure { overflow: hidden; }
.ledger-figure img { width: 100%; height: auto; }
.ledger dl { margin: var(--sp-2) 0 0; border-top: 1px solid var(--line-deep); }
.ledger dl > div {
  display: grid; grid-template-columns: 56px 1fr 96px; gap: 22px;
  padding: 20px 0; border-bottom: 1px solid var(--line-deep); align-items: baseline;
}
.ledger dl .idx { font-family: var(--serif); font-style: italic; font-size: 24px; color: #d99f80; }
.ledger dl dt { font-family: var(--serif); font-size: 20px; }
.ledger dl dd { margin: 6px 0 0; font-size: 13.5px; color: var(--deep-mid); grid-column: 2; }
.ledger dl .pct { font-family: var(--serif); font-size: 20px; color: #f8f2e9; text-align: right; }

/* ── 日记卡片网格 ── */
.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 34px; }
.jcard { text-decoration: none; color: var(--ink); display: block; }
.jcard .ph { overflow: hidden; aspect-ratio: 3/2; background: var(--bg-warm); margin-bottom: 22px; }
.jcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; filter: saturate(.94); }
.jcard:hover .ph img { transform: scale(1.05) rotate(-.5deg); filter: saturate(1.06); }
.jcard .date { font-size: 11px; letter-spacing: 0.16em; color: var(--ink-mid); margin-bottom: 12px; }
.jcard h3 { margin-bottom: 11px; transition: color .3s; }
.jcard:hover h3 { color: var(--accent); }
.jcard .excerpt { font-size: 13.5px; color: var(--ink-mid); margin: 0; }
.jcard.wide { grid-column: span 3; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.jcard.wide .ph { aspect-ratio: 16/10; margin-bottom: 0; }
.jcard.wide h3 { font-size: clamp(24px, 2.4vw, 32px); }
.jcard.wide .excerpt { font-size: 15px; }

/* ── 标签筛选 ── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-2); }
.filters button {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.14em;
  padding: 9px 18px; border: 1px solid var(--line); background: none;
  color: var(--ink-mid); cursor: pointer; transition: all .3s var(--ease);
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.jcard[hidden] { display: none; }
.empty-note { color: var(--ink-light); font-family: var(--serif); font-style: italic; }

/* ── 产品页 tab ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: var(--sp-2); }
.tabs button {
  flex: 1; background: none; border: none; cursor: pointer;
  font-family: var(--serif); font-size: 19px; color: var(--ink-light);
  padding: 16px 8px; position: relative; text-align: left;
  transition: color .3s;
}
.tabs button .no { font-style: italic; font-size: 13px; display: block; letter-spacing: .1em; }
.tabs button::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s var(--ease);
}
.tabs button:hover { color: var(--ink-mid); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { transform: scaleX(1); }
/* align-items 用 stretch：图片列的高度跟着文字列走。
   换成 center + aspect-ratio 会让 .ph 溢出 section，压进下一节的留白里。 */
.panel { display: none; grid-template-columns: 1fr 1fr; gap: 72px; align-items: stretch; }
.panel.on { display: grid; animation: fadeup .5s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }
.panel .ph { overflow: hidden; min-height: 500px; background: var(--bg-warm); }
.panel .ph img { width: 100%; height: 100%; object-fit: cover; }
.spec { border-top: 1px solid var(--line); margin-top: var(--sp-2); }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec dt, .spec .k { color: var(--ink-mid); letter-spacing: .1em; }
.spec .v { text-align: right; }
.price { font-family: var(--serif); font-style: italic; font-size: 26px; margin: var(--sp-1) 0 0; }

/* ── 仪式页：步骤展开 ── */
.steps { border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step-head {
  width: 100%; background: none; border: none; cursor: pointer;
  display: grid; grid-template-columns: 68px 1fr 92px 32px; gap: 24px; align-items: baseline;
  padding: 26px 4px; text-align: left; font-family: inherit; color: var(--ink);
  transition: padding-left .35s var(--ease);
}
.step-head:hover { padding-left: 16px; }
.step-head .no { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--ink-light); }
.step.open .step-head .no { color: var(--accent); }
.step-head .ttl { font-family: var(--serif); font-size: 24px; }
.step-head .dur { font-size: 11px; letter-spacing: .18em; color: var(--ink-mid); }
.step-head .sign { font-size: 20px; color: var(--ink-light); justify-self: end; transition: transform .4s var(--ease); }
.step.open .step-head .sign { transform: rotate(45deg); color: var(--accent); }
.step-body { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.step-body-inner { display: grid; grid-template-columns: 68px 1fr 260px; gap: 24px; padding: 0 4px 34px; }
.step-body-inner .txt { grid-column: 2; color: var(--ink-mid); max-width: 46ch; }
.step-body-inner .txt strong { color: var(--ink); font-weight: 500; }
.step-body-inner .ph { overflow: hidden; aspect-ratio: 4/3; }
.step-body-inner .ph img { width: 100%; height: 100%; object-fit: cover; }

/* ── 肤质自测 ── */
.quiz {
  background: var(--bg-warm); padding: 64px 56px;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start;
}
.quiz-side { position: sticky; top: 120px; }
.quiz-side h2 { margin-bottom: 14px; }
.quiz .q { margin-bottom: var(--sp-2); }
.quiz .q:last-of-type { margin-bottom: var(--sp-1); }
.quiz .q p { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 16px; }
.quiz .opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz .opts button {
  font-family: var(--sans); font-size: 13px; letter-spacing: .06em;
  padding: 11px 20px; border: 1px solid var(--line); background: rgba(255,255,255,.5);
  color: var(--ink-mid); cursor: pointer; transition: all .3s var(--ease);
}
.quiz .opts button:hover { border-color: var(--ink); color: var(--ink); }
.quiz .opts button.on { background: var(--accent); border-color: var(--accent); color: #fdfaf5; }
.quiz-out {
  border-top: 1px solid var(--line); margin-top: var(--sp-2); padding-top: var(--sp-1);
  min-height: 92px;
}
.quiz-out .placeholder { color: var(--ink-light); font-family: var(--serif); font-style: italic; font-size: 17px; }
.quiz-out h3 { color: var(--accent); margin-bottom: 10px; }
.quiz-out p { color: var(--ink-mid); font-size: 14px; max-width: 52ch; }

/* ── 正文页 ── */
.post-cover { position: relative; height: 74vh; min-height: 420px; overflow: hidden; margin-bottom: 64px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36,27,21,.72) 0%, rgba(36,27,21,.1) 46%, transparent 70%);
}
.post-cover .cap {
  position: absolute; left: 0; right: 0; bottom: 44px; z-index: 2;
  max-width: var(--wide); margin: 0 auto; padding: 0 40px; color: #fdfaf5;
}
.post-cover .cap .kicker { color: #e8b79f; margin-bottom: 14px; }
.post-cover .cap h1 { color: #fdfaf5; max-width: 22ch; margin-bottom: 12px; }
.post-cover .cap .byline { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(253,250,245,.75); }

.post-layout {
  display: grid; grid-template-columns: 200px minmax(0, var(--measure)) 1fr;
  gap: 56px; max-width: 1320px; margin: 0 auto var(--gap-section); padding: 0 40px;
}
.toc-side { position: sticky; top: 110px; align-self: start; }
.toc-side .lbl { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 16px; }
.toc-side a {
  display: block; font-size: 13px; color: var(--ink-mid); text-decoration: none;
  padding: 7px 0 7px 14px; border-left: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.toc-side a:hover, .toc-side a.on { color: var(--accent); border-color: var(--accent); }

.post-body { max-width: var(--measure); }
.post-body > p:first-of-type::first-letter {
  float: left; font-family: var(--serif); font-size: 62px; line-height: .9;
  margin: 2px 10px 0 -2px; color: var(--accent);
}
.post-body h3 { margin: var(--sp-2) 0 var(--sp-1); }
.post-body h3 .num { font-style: italic; color: var(--accent); margin-right: 10px; }
/* 边注：浮进右侧页边空白，位置就是它在正文里被插入的位置。
   杂志排版的标志性动作，也把 post-layout 右边那条空栏用起来了。 */
.post-body .mnote {
  float: right; clear: right;
  width: 190px; margin: 6px -216px 22px 40px;
  font-size: 12px; line-height: 1.75; color: var(--ink-mid);
  border-top: 1px solid var(--accent); padding-top: 12px;
  letter-spacing: .02em;
}
.post-body .mnote b {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 26px; font-weight: 500; color: var(--accent);
  line-height: 1.1; margin-bottom: 8px;
}
.post-body .mnote em { font-style: normal; color: var(--ink); }

.post-body figure { margin: var(--sp-2) 0; }
.post-body figure.bleed { width: min(112%, 100vw); margin-left: min(-6%, 0px); clear: right; }
.post-body figcaption { font-size: 12px; color: var(--ink-mid); margin-top: 12px; letter-spacing: .04em; }
.post-body blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45; color: var(--accent); margin: var(--sp-2) 0;
  padding-left: 26px; border-left: 2px solid var(--accent);
}
.post-body .callout {
  background: var(--bg-warm); padding: 30px 34px; margin: var(--sp-2) 0;
  font-size: 14px; color: var(--ink-mid);
}
.post-body .callout strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 17px; }
.post-body ul { padding-left: 20px; color: var(--ink-mid); }
.post-body li { margin-bottom: 8px; }
.post-end { margin-top: var(--sp-2); padding-top: var(--sp-1); border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .18em; color: var(--ink-light); text-transform: uppercase; }

.post-next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }

/* ── 关于页时间线 ── */
.timeline { border-top: 1px solid var(--line); }
.timeline > div { display: grid; grid-template-columns: 130px 1fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline .yr { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--accent); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--ink-mid); font-size: 14px; margin: 0; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.duo .ph { overflow: hidden; }
.duo .ph img { width: 100%; transition: transform .8s var(--ease); }
.duo .ph:hover img { transform: scale(1.045) rotate(-.4deg); }

/* ── 页脚 ── */
.site-foot { background: var(--deep); color: var(--deep-mid); padding: 84px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; }
.foot-grid h4 { font-family: var(--serif); color: #f8f2e9; font-size: 17px; font-weight: 500; margin: 0 0 18px; }
.foot-brand .mark { font-family: var(--serif); font-size: 40px; color: #f8f2e9; letter-spacing: .1em; margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--deep-mid); text-decoration: none; font-size: 13.5px; padding: 5px 0; transition: color .3s; }
.foot-grid a:hover { color: #e8b79f; }
.sub { display: flex; gap: 0; border-bottom: 1px solid var(--line-deep); margin-top: 8px; }
.sub input {
  flex: 1; background: none; border: none; color: #f8f2e9;
  font-family: var(--sans); font-size: 13px; letter-spacing: .06em; padding: 12px 0;
}
.sub input::placeholder { color: rgba(157,136,117,.8); }
.sub input:focus { outline: none; }
.sub button {
  background: none; border: none; color: #e8b79f; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.sub-ok { font-size: 12px; color: #e8b79f; margin-top: 10px; min-height: 18px; }
.foot-base {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line-deep); margin-top: 64px; padding-top: 26px;
  font-size: 11px; letter-spacing: .14em; color: rgba(157,136,117,.75);
}

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .toc-side { display: none; }
  /* 没有页边空白了，边注收回正文流里当引注块 */
  .post-body .mnote {
    float: none; width: auto; margin: var(--sp-1) 0;
    border-top: none; border-left: 2px solid var(--accent); padding: 4px 0 4px 18px;
  }
  .post-body .mnote b { display: inline; font-size: 20px; margin-right: 8px; }
  .jgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --gap-section: 60px; --sp-2: 30px; --wide: 100%; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .site-head { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .site-nav { gap: 20px; width: 100%; overflow-x: auto; }
  .nav-issue { display: none; }

  .hero-full { height: auto; min-height: 0; }
  .hero-full .hero-bg { position: relative; inset: 0; aspect-ratio: 4/5; }
  .hero-full::before { background: linear-gradient(to top, rgba(36,27,21,.9) 0%, rgba(36,27,21,.3) 52%, rgba(36,27,21,.1) 100%); }
  .hero-inner { position: relative; width: 100%; padding: 0 20px 30px; margin-top: -46vw; }
  .hero-inner h1 { font-size: 38px; }
  .hero-meta, .scroll-cue { display: none; }

  .toc-row { grid-template-columns: 40px 1fr 22px; gap: 14px; padding: 20px 0; }
  .toc-row .dept { display: none; }
  .toc-row .ttl { font-size: 20px; }
  .toc-peek { display: none; }

  .compare-sec, .ledger-grid, .panel.on, .duo, .post-next { grid-template-columns: 1fr; gap: 28px; }
  .ledger { padding: 56px 0; }
  .ledger dl > div { grid-template-columns: 38px 1fr 62px; gap: 12px; }

  .spread { padding: 0 20px 20px; gap: 18px; }
  .jgrid { grid-template-columns: 1fr; gap: 34px; }
  .jcard.wide { grid-column: span 1; grid-template-columns: 1fr; gap: 18px; }

  .tabs { flex-direction: column; }
  .tabs button { font-size: 17px; padding: 13px 0; }
  .step-head { grid-template-columns: 40px 1fr 26px; gap: 12px; padding: 20px 0; }
  .step-head .no { font-size: 22px; }
  .step-head .ttl { font-size: 19px; }
  .step-head .dur { display: none; }
  .step-body-inner { grid-template-columns: 1fr; gap: 16px; padding: 0 0 24px; }
  .step-body-inner .txt { grid-column: 1; max-width: 100%; }

  .quiz { padding: 34px 22px; grid-template-columns: 1fr; gap: 28px; }
  .quiz-side { position: static; }

  .post-cover { height: 62vh; min-height: 340px; }
  .post-cover .cap { padding: 0 20px; bottom: 28px; }
  .post-layout { padding: 0 20px; }
  .post-body figure.bleed { width: 100%; margin-left: 0; }
  .post-body > p:first-of-type::first-letter { font-size: 56px; }

  .timeline > div { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-foot { padding: 48px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtain { display: none; }
  .curtain-rule { animation: none; }
  .ticker-track { animation: none; }
  .scroll-cue i::after { animation: none; }
  .jcard .ph img, .spread-card .ph img, .duo .ph img { transition: none !important; }
  body::after { display: none; }
}
