/* ==========================================================================
   香水千年 · 杂志式编辑风设计系统
   一次性项目级设计方向（非套用成熟风格模板）
   原则：暗底与米白章节交替、单一琥珀金强调色、hairline 规则线、
         克制圆角、几乎无阴影、无任何外部网络依赖。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #17110b;
  --cocoa: #241a11;
  --paper: #f5eee1;
  --paper-2: #fbf7ef;
  --amber: #c89b4a;
  --gold: #e8d5a3;
  --leaf: #66785a;
  --plum: #55384b;
  --line: rgba(200, 155, 74, 0.28);
  --line-ink: rgba(200, 155, 74, 0.18);
  --mut: #9a8f7e;
  --ink-soft: #c9bfaf;
  --paper-ink: #2a2117;
  --paper-text: #4c4030;
  --paper-mut: #7a6e5e;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Georgia", serif;
  --latin: "Cormorant Garamond", "Georgia", "Times New Roman", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;

  --wrap: 1240px;
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --r-sm: 3px;
  --r-md: 6px;
}

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

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

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-soft);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--amber); color: var(--ink); }

/* ---------- 2. 无障碍基础 ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 版式基元 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.serif { font-family: var(--serif); }
.latin { font-family: var(--latin); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.24;
  letter-spacing: 0.02em;
}

.lead-note {
  max-width: 62ch;
  font-size: 15.5px;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* ---------- 4. 顶栏 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(23, 17, 11, 0.96);
  border-bottom: 1px solid var(--line-ink);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 10px;
  flex: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
}
.brand svg { width: 18px; height: 18px; flex: none; }

.nav-track {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-track::-webkit-scrollbar { display: none; }

.nav-link {
  flex: none;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s, background-color 0.22s, border-color 0.22s;
}
.nav-link:hover { color: var(--gold); border-color: var(--line); }
.nav-link[aria-current="true"] {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 500;
}
.nav-link--page {
  margin-left: auto;
  border-color: var(--line);
  color: var(--gold);
}

/* ---------- 5. 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(560px, 88svh, 900px);
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(23, 17, 11, 0.94) 0%, rgba(23, 17, 11, 0.72) 44%, rgba(23, 17, 11, 0.18) 100%),
    linear-gradient(0deg, rgba(23, 17, 11, 0.98) 4%, rgba(23, 17, 11, 0.42) 52%, rgba(23, 17, 11, 0.30) 100%);
}
.rails {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.rails span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(200, 155, 74, 0.14);
}
.rails span:nth-child(1) { left: 33.333%; }
.rails span:nth-child(2) { left: 66.666%; }

.hero-inner {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(34px, 6vw, 62px);
  padding-top: clamp(120px, 22vh, 200px);
}
.hero-kicker {
  font-family: var(--latin);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--paper-2);
}
.hero h1 .l1 {
  display: block;
  font-size: clamp(52px, 8.4vw, 104px);
  line-height: 1.03;
}
.hero h1 .l2 {
  display: block;
  margin-top: 6px;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.28;
  font-weight: 700;
  color: var(--paper);
}
.hero h1 .l2 em {
  font-style: normal;
  color: var(--amber);
}
.hero-sub {
  margin-top: 20px;
  max-width: 52ch;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  color: #d8cfc0;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 30px;
  max-width: 620px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero-stats .stat {
  flex: 1 1 auto;
  min-width: 104px;
  margin-right: 18px;
  padding-right: 18px;
  border-right: 1px solid var(--line-ink);
}
.hero-stats .stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats .num {
  font-family: var(--latin);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
}
.hero-stats .lab {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mut);
}

/* ---------- 6. 章节底色 ---------- */
.band { padding: clamp(58px, 8vw, 110px) 0; }
.band--ink { background: var(--ink); }
.band--cocoa { background: var(--cocoa); }
.band--paper { background: var(--paper); color: var(--paper-text); }
.band--paper-2 { background: var(--paper-2); color: var(--paper-text); }
.band--paper .h2, .band--paper-2 .h2 { color: var(--paper-ink); }
.band--paper .lead-note, .band--paper-2 .lead-note { color: var(--paper-mut); }
.band--paper .eyebrow, .band--paper-2 .eyebrow { color: #8a6522; }
.band--paper .eyebrow::before, .band--paper-2 .eyebrow::before { background: #8a6522; }

.band-head { max-width: 74ch; margin-bottom: clamp(30px, 4vw, 48px); }
.band-head .h2 { margin-top: 14px; }
.band-head .lead-note { margin-top: 12px; }

/* ---------- 7. 序章：三调 + 浓度 ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 56px);
}
@media (min-width: 1000px) {
  .intro-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.prose p {
  margin-bottom: 14px;
  max-width: 62ch;
  font-size: 16px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--plum); font-weight: 600; }
.band--paper .prose strong { color: var(--plum); }

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 32px);
}
.panel h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--paper-ink);
}
.panel .hint { margin-top: 6px; font-size: 13px; color: var(--paper-mut); }

.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 22px 0 4px;
}
.pyramid .layer {
  width: 40%;
  padding: 12px 10px;
  text-align: center;
  color: #1b150f;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.pyramid .layer:nth-child(2) {
  width: 70%;
  margin-top: -8px;
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}
.pyramid .layer:nth-child(3) {
  width: 100%;
  margin-top: -8px;
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}
.pyramid .layer b { font-weight: 700; }
.pyramid .layer small { display: block; font-family: var(--latin); font-size: 11px; letter-spacing: 0.08em; opacity: 0.78; }
.layer--top { background: linear-gradient(180deg, #e0bb72, #c89b4a); }
.layer--mid { background: linear-gradient(180deg, #a9812f, #8a6522); color: #fbf7ef; }
.layer--base { background: linear-gradient(180deg, #4d3a20, #2f2313); color: #e8d5a3; }

.note-cards {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.note-card {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.note-card dt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--paper-ink);
}
.note-card dt span { font-family: var(--latin); font-weight: 600; color: #8a6522; margin-left: 6px; font-size: 12.5px; }
.note-card dd { margin-top: 4px; font-size: 13.5px; color: var(--paper-text); }

/* ---------- 8. 表格（窄屏转为堆叠卡片，避免横向滚动） ---------- */
.table-block { margin-top: clamp(30px, 4vw, 46px); }
.table-block h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--paper-ink);
}
.table-block .scale-bar {
  height: 12px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0e2c2, #c89b4a 58%, #6a4b1c);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 13.5px;
}
.data-table caption {
  text-align: left;
  font-size: 12.5px;
  color: var(--paper-mut);
  padding-bottom: 10px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(85, 56, 75, 0.16);
  vertical-align: top;
}
.data-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper-ink);
  border-bottom-color: rgba(85, 56, 75, 0.3);
}
.data-table td b { color: #7a4e12; font-weight: 700; }
.table-note { margin-top: 10px; font-size: 12.5px; color: var(--paper-mut); }

@media (max-width: 640px) {
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table caption { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table tr { padding: 12px 0; border-bottom: 1px solid rgba(85, 56, 75, 0.16); }
  .data-table td { display: grid; grid-template-columns: minmax(88px, 38%) 1fr; gap: 10px; padding: 5px 0; border: 0; }
  .data-table td::before {
    content: attr(data-label);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--paper-mut);
  }
}

/* ---------- 9. 时间线 ---------- */
.tl-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-ink);
  scroll-margin-top: 78px;
}
.tl-item:first-of-type { border-top: 0; }

.tl-when {
  font-family: var(--latin);
  font-size: clamp(17px, 1.9vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
}
.tl-when .era {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
}

.tl-body {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.tl-body .idx {
  font-family: var(--latin);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: rgba(200, 155, 74, 0.42);
}
.tl-body h3 {
  margin-top: 2px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.28;
  color: var(--paper-2);
}
.band--paper .tl-body h3, .band--paper-2 .tl-body h3 { color: var(--paper-ink); }
.tl-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.band--paper .tl-tag, .band--paper-2 .tl-tag { color: #8a6522; border-color: rgba(138, 101, 34, 0.4); }
.tl-thesis {
  margin-top: 12px;
  max-width: 66ch;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.band--paper .tl-thesis, .band--paper-2 .tl-thesis { color: var(--paper-text); }

.tl-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
  list-style: none;
}
.tl-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.tl-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--amber);
}
.band--paper .tl-points li::before, .band--paper-2 .tl-points li::before { background: #8a6522; }
.tl-points b { font-weight: 600; color: var(--gold); }
.band--paper .tl-points b, .band--paper-2 .tl-points b { color: #7a4e12; }

@media (min-width: 760px) {
  .tl-points { grid-template-columns: 1fr 1fr; gap: 10px 26px; }
}
@media (min-width: 960px) {
  .tl-item { grid-template-columns: 156px 1fr; gap: 34px; }
  .tl-body { padding-left: 28px; }
}

/* ---------- 10. 图片组与灯箱 ---------- */
.fig-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 700px) {
  .fig-grid { grid-template-columns: repeat(2, 1fr); }
  .fig-grid .fig--wide { grid-column: 1 / -1; }
}
.fig {
  margin: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #0f0b07;
}
.fig-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.fig-btn img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.fig--wide .fig-btn img { aspect-ratio: 16 / 9; }
.fig--tall .fig-btn img { aspect-ratio: 4 / 3; }
.fig-btn:hover img { transform: scale(1.02); }
.fig figcaption {
  padding: 9px 12px 11px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #cbbfae;
}
.band--paper .fig figcaption, .band--paper-2 .fig figcaption { color: #6b5c48; }
.fig figcaption .prov { color: var(--amber); }
.band--paper .fig figcaption .prov, .band--paper-2 .fig figcaption .prov { color: #8a6522; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 40px);
  background: rgba(15, 11, 7, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox figure {
  margin: 0;
  max-width: min(1000px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox img {
  max-height: 74svh;
  width: auto;
  margin: 0 auto;
  border-radius: var(--r-sm);
}
.lightbox figcaption { font-size: 13px; color: #e0d6c6; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 11. 知识手册页 ---------- */
.know-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 34px);
}
@media (min-width: 860px) {
  .know-grid { grid-template-columns: repeat(2, 1fr); }
  .know-grid .span-2 { grid-column: 1 / -1; }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.6vw, 28px);
  background: rgba(46, 36, 25, 0.5);
}
.band--paper .card, .band--paper-2 .card { background: var(--paper-2); }
.card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--paper-2);
}
.band--paper .card h3, .band--paper-2 .card h3 { color: var(--paper-ink); }
.card p, .card li { font-size: 14px; }
.card p { margin-top: 10px; color: var(--ink-soft); }
.band--paper .card p, .band--paper-2 .card p { color: var(--paper-text); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--gold);
}
.chip--lead { background: rgba(200, 155, 74, 0.16); font-weight: 500; }
.band--paper .chip, .band--paper-2 .chip { color: #6b4a12; border-color: rgba(138, 101, 34, 0.35); }

.mat-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; list-style: none; }
@media (min-width: 560px) { .mat-list { grid-template-columns: repeat(2, 1fr); } }
.mat-list li { position: relative; padding-left: 14px; font-size: 13.5px; }
.mat-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 1px; background: var(--amber); }
.mat-list i { font-style: normal; font-family: var(--latin); color: var(--mut); font-size: 12px; }
.band--paper .mat-list li::before, .band--paper-2 .mat-list li::before { background: #8a6522; }

.facts { display: grid; gap: 0; margin-top: 16px; }
.facts .fact { border-top: 1px solid var(--line); padding: 11px 0; }
.facts .fact dt { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--gold); }
.band--paper .facts .fact dt, .band--paper-2 .facts .fact dt { color: #7a4e12; }
.facts .fact dd { margin-top: 4px; font-size: 13.5px; }

/* ---------- 12. 页脚 ---------- */
.site-foot {
  background: var(--ink);
  border-top: 1px solid var(--line-ink);
  padding: clamp(40px, 6vw, 68px) 0 44px;
}
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1.3fr; } }
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold);
}
.foot-brand svg { width: 20px; height: 20px; }
.foot-brand em { font-family: var(--latin); font-style: normal; font-size: 12.5px; color: var(--mut); letter-spacing: 0.1em; }
.site-foot p { margin-top: 12px; font-size: 12.5px; line-height: 1.85; color: #8a7c68; }
.source-list { list-style: none; margin-top: 14px; }
.source-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #a99b85;
}
.source-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--amber); }
.source-list a { color: #c9b183; text-decoration-color: rgba(201, 177, 131, 0.4); text-underline-offset: 3px; }
.foot-legal { margin-top: 26px; border-top: 1px solid var(--line-ink); padding-top: 18px; font-size: 11.5px; color: #6e6252; }

/* ---------- 13. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 95;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
}
.to-top.is-shown { display: flex; }
.to-top svg { width: 20px; height: 20px; }
.to-top:focus-visible { outline-color: var(--paper-2); }

/* ---------- 14. 动效与降级 ---------- */
/* 仅在 JS 可用（<html class="has-js">）时启用入场上浮，保证禁用脚本时内容完整可读 */
.js-reveal {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .has-js .js-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  }
  .has-js .js-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fig-btn img { transition: none; }
  .hero-wash { background-attachment: scroll; }
}

@media print {
  .site-head, .to-top, .lightbox, .rails { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 15. 补充规则：米白章节对比度 与 香材方形图组 ---------- */

/* 时间线出现在米白/浅色章节时的对比度修正 */
.band--paper .tl-when,
.band--paper-2 .tl-when { color: #7a4e12; }
.band--paper .tl-when .era,
.band--paper-2 .tl-when .era { color: #8a7c68; }
.band--paper .tl-body,
.band--paper-2 .tl-body { border-left-color: rgba(138, 101, 34, 0.32); }
.band--paper .tl-body .idx,
.band--paper-2 .tl-body .idx { color: rgba(138, 101, 34, 0.34); }
.band--paper .fig,
.band--paper-2 .fig { background: #e6dcc9; }

/* 香材图鉴：正方形图组，窄屏两列、桌面三列 */
.fig-grid--mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-grid--mats .fig-btn img { aspect-ratio: 1 / 1; }
.fig-grid--mats .fig figcaption { min-height: 64px; }
.fig-grid--mats .fig--wide .fig-btn img { aspect-ratio: 4 / 3; }
@media (min-width: 700px) {
  .fig-grid--mats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 页脚版权与权利声明清单 */
.legal-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.legal-list li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: #a99b85;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--amber);
}
.foot-legal a { color: #c9b183; }
@media (max-width: 640px) {
  .legal-list li { font-size: 11.5px; }
}