/* ============================================================
   paukuz：禮繫瑪家 · QR 階段網站
   Design system v2 — 博物館 / 美術館編輯級

   設計原則：
   · 編輯式排版，類似 MOMA / Tate / 國立新美術館
   · 嚴格的字級層次，標題大、內文穩
   · 一極大留白，物件被「鄭重對待」
   · 髮絲線（0.5px）取代厚邊框
   · 中文標題用宋體大字、族語用襯線斜體、編輯數字用羅馬字
   · 米麻紙底 + 暗紅 + 墨黑，色票精簡
   ============================================================ */

:root {
  /* Palette — 嚴選 4 色 */
  --c-paper:   #F1E9D6;   /* 米麻紙底 */
  --c-paper-2: #ECE2CB;   /* 紙底加深陰影 */
  --c-card:    #FBF7EA;   /* 展品卡背 */
  --c-card-2:  #FFFDF6;   /* 浮起層 */

  --c-ink:     #1F1812;   /* 主墨 */
  --c-ink-2:   #4A3D2E;   /* 次墨 */
  --c-ink-3:   #8C7A65;   /* 弱墨 */
  --c-ink-4:   #C2B299;   /* 極淡 */

  --c-red:     #7E2418;   /* 暗紅主色（更沈穩） */
  --c-red-d:   #5C1A12;
  --c-red-50:  #F5E8E4;

  --c-rule:    #C5B395;   /* 髮絲線 */
  --c-rule-d:  #8C7B5E;   /* 強調分隔線 */

  /* Type scale */
  --f-display: 56px;      /* 大型階段標題 */
  --f-h1: 38px;
  --f-h2: 24px;
  --f-h3: 17px;
  --f-body: 16px;
  --f-cap: 13px;          /* 圖說 / 細節 */
  --f-meta: 11px;         /* 標籤 / 號次 */

  /* Spacing — 8 倍率系統 */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;

  /* Effect */
  --sh-paper: 0 1px 0 rgba(255,253,246,0.4) inset, 0 2px 8px rgba(31,24,18,0.06);
  --sh-card:  0 1px 0 rgba(255,253,246,0.6) inset, 0 4px 14px rgba(31,24,18,0.08), 0 1px 2px rgba(31,24,18,0.04);
  --sh-lift:  0 12px 36px rgba(31,24,18,0.15), 0 4px 8px rgba(31,24,18,0.06);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Noto Serif TC", "Source Han Serif TC", "PingFang TC", serif;
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: var(--f-body);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1, "kern" 1;

  /* 紙紋：兩層細點疊加，呈現麻紙手感 */
  background-image:
    radial-gradient(rgba(126, 36, 24, 0.022) 1px, transparent 1.4px),
    radial-gradient(rgba(140, 105, 70, 0.024) 1.5px, transparent 1.8px),
    linear-gradient(180deg, rgba(255,253,246,0.4), transparent 40%);
  background-size: 22px 22px, 34px 34px, 100% 100%;
  background-position: 0 0, 11px 11px, 0 0;
  background-attachment: fixed;
}

::selection {
  background: rgba(126,36,24,0.18);
  color: var(--c-red-d);
}

/* ===== 容器 ===== */
.page {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-bottom: var(--s-16);
}

/* ===== 頂部品牌（編輯式） ===== */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-6) var(--s-4);
  border-bottom: 0.5px solid var(--c-rule);
  position: sticky;
  top: 0;
  background: rgba(241,233,214,0.92);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  z-index: 10;
}
.brand .logo {
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--c-red);
}
.brand .logo em {
  font-style: normal;
  color: var(--c-ink-2);
  font-weight: 500;
  margin-left: 6px;
  letter-spacing: 0.1em;
}
.brand .crumb {
  font-size: var(--f-meta);
  letter-spacing: 0.22em;
  color: var(--c-ink-3);
  font-weight: 500;
  text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

/* ===== Hero · 編輯主視覺（保留素描本框感，全寬呈現） ===== */
.hero {
  position: relative;
  padding: var(--s-4) 0 var(--s-4);
  text-align: center;
}
.hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  filter: contrast(1.04) saturate(1.05);
}
.hero-img.lineart {
  max-width: 480px;
  filter: contrast(1.05);
  opacity: 0.9;
  box-shadow: none;
  mix-blend-mode: multiply;
}

/* ===== Section ornament · 小裝飾插圖（章節間） ===== */
.ornament {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-10) var(--s-6) var(--s-8);
}
.ornament img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.02);
  opacity: 0.7;
}
.ornament .ornament-caption {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--c-ink-3);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-feature-settings: "smcp" 1;
}

/* ===== 階段專屬視覺（kid drawing） ===== */
.stage-art {
  padding: var(--s-8) var(--s-6) var(--s-4);
  text-align: center;
  position: relative;
}
.stage-art img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(1.02);
}
.stage-art .art-caption {
  margin-top: var(--s-3);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--c-ink-3);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.stage-art .art-caption .creator {
  color: var(--c-ink-2);
  font-style: normal;
  font-weight: 500;
  margin-left: var(--s-2);
}

/* Margin float · 段落側邊小裝飾 */
.deco-float-left {
  float: left;
  width: 60px;
  height: auto;
  margin: 6px var(--s-4) var(--s-2) calc(-1 * var(--s-3));
  mix-blend-mode: multiply;
  opacity: 0.65;
  shape-outside: circle();
}
.deco-float-right {
  float: right;
  width: 60px;
  height: auto;
  margin: 6px calc(-1 * var(--s-3)) var(--s-2) var(--s-4);
  mix-blend-mode: multiply;
  opacity: 0.65;
  shape-outside: circle();
}

/* ===== 階段標題（編輯式 hero） ===== */
.stage-head {
  text-align: center;
  padding: var(--s-2) var(--s-5) var(--s-12);
  position: relative;
}
.stage-marker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-family: "Noto Serif TC", serif;
}
.stage-marker .roman {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-style: italic;
  color: var(--c-red);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant: small-caps;
}
.stage-marker .label {
  font-size: var(--f-meta);
  letter-spacing: 0.35em;
  color: var(--c-ink-3);
  text-transform: uppercase;
  font-weight: 600;
  border-left: 0.5px solid var(--c-rule);
  padding-left: var(--s-3);
}
.stage-title {
  font-family: "Noto Serif TC", "Source Han Serif TC", serif;
  font-size: var(--f-display);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: 0.08em;
  line-height: 1.15;
  margin-bottom: var(--s-6);
  text-indent: 0.08em;
}
.stage-rukai {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  color: var(--c-red-d);
  line-height: 1.95;
  letter-spacing: 0.02em;
  padding: 0 var(--s-4);
  max-width: 480px;
  margin: 0 auto;
}
.stage-rukai .word {
  display: inline-block;
  white-space: nowrap;
}
.stage-rukai .word + .word::before {
  content: "·";
  color: var(--c-ink-3);
  margin: 0 var(--s-2);
  font-style: normal;
}
.stage-rukai .ch {
  font-style: normal;
  color: var(--c-ink-2);
  font-family: "Noto Serif TC", serif;
  font-size: 12px;
  margin-left: 3px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ===== 編輯標籤（章節） ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0 var(--s-6);
  margin: var(--s-10) 0 var(--s-5);
  font-family: "Noto Serif TC", serif;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--c-red);
}
.section-label .label-roman {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--c-red);
  font-size: 14px;
  font-weight: 500;
}
.section-label .label-text {
  font-size: var(--f-meta);
  letter-spacing: 0.3em;
  color: var(--c-ink-2);
  text-transform: uppercase;
  font-weight: 700;
}

/* ===== 階段文字（首段 drop cap、雜誌式） ===== */
.essay {
  padding: 0 var(--s-6);
  font-size: var(--f-body);
  line-height: 2;
  color: var(--c-ink);
  letter-spacing: 0.02em;
}
.essay p {
  margin-bottom: var(--s-5);
  text-align: justify;
  text-justify: inter-character;
}
.essay p:last-child { margin-bottom: 0; }
.essay p strong {
  color: var(--c-red-d);
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(126,36,24,0.10) 65%);
  padding: 0 2px;
}
.essay p.lead {
  font-size: 17.5px;
  line-height: 1.95;
  color: var(--c-ink);
}
.essay p.lead::first-letter {
  font-family: "Noto Serif TC", "Source Han Serif TC", serif;
  font-weight: 700;
  font-size: 54px;
  float: left;
  line-height: 0.88;
  margin: 6px 8px 0 0;
  color: var(--c-red);
  letter-spacing: 0;
}
.essay .placeholder-todo {
  display: block;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  color: var(--c-ink-3);
  background: rgba(194,178,153,0.18);
  border-left: 2px solid var(--c-rule-d);
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-4);
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* ===== 雜誌式分隔線 ===== */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin: var(--s-12) var(--s-6);
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: var(--c-rule);
}
.rule .glyph {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--c-red);
  font-size: 14px;
  letter-spacing: 0.4em;
  font-feature-settings: "smcp" 1;
}

/* ===== 小作品縮圖排版（輔助元素，不搶戲） ===== */
.gallery {
  padding: 0 var(--s-6) var(--s-4);
}
.gallery-intro {
  padding: 0;
  margin-bottom: var(--s-5);
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
}
.gallery-intro::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--c-rule-d);
  align-self: center;
  flex-shrink: 0;
}
.gallery-intro h3 {
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink-2);
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
  flex-shrink: 0;
}
.gallery-intro p {
  font-size: 12px;
  color: var(--c-ink-3);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

/* 縮圖網格 3 欄 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.specimen {
  padding: 0;
  margin: 0;
  position: relative;
  background: transparent;
  border: none;
  text-align: center;
}
.specimen .spec-num {
  display: none;
}
.specimen .spec-img-wrap {
  background: var(--c-card);
  border: 0.5px solid var(--c-rule);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--s-3);
}
.specimen .spec-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: 0;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(1.04);
}
.specimen .spec-caption {
  font-family: "Noto Serif TC", serif;
  margin-top: var(--s-2);
  padding: 0;
  text-align: center;
}
.specimen .spec-name-rukai {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  color: var(--c-red);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.specimen .spec-name-zh {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-ink);
  line-height: 1.4;
  margin-top: 1px;
}
.specimen .spec-meta {
  display: block;
  gap: 0;
  font-size: 9px;
  color: var(--c-ink-3);
  letter-spacing: 0.05em;
  font-style: italic;
  border-top: none;
  padding-top: 2px;
  margin-top: 2px;
}
.specimen .spec-meta span { display: inline; }
.specimen .spec-meta .creator { color: var(--c-ink-2); font-style: normal; font-weight: 500; }
.specimen .spec-meta span + span::before { content: ""; }
.specimen .spec-meta br { display: none; }

/* ===== 孩子的聲音 · Oral History 風格 ===== */
.voices {
  padding: 0 var(--s-5);
}
.voice-card {
  background: var(--c-card-2);
  border: none;
  border-top: 0.5px solid var(--c-rule);
  border-radius: 0;
  padding: var(--s-8) var(--s-5) var(--s-6);
  margin-bottom: 0;
  position: relative;
  transition: background .25s var(--ease);
}
.voice-card:last-child { border-bottom: 0.5px solid var(--c-rule); }
.voice-card.playing {
  background: linear-gradient(180deg, var(--c-card-2), #FFF1E8);
}

.voice-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.voice-num {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--c-red);
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 400;
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
  flex-shrink: 0;
}
.voice-name {
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: 0.06em;
}
.voice-name small {
  display: inline;
  font-size: 11px;
  font-weight: 400;
  color: var(--c-ink-3);
  letter-spacing: 0.08em;
  margin-left: var(--s-2);
  font-style: italic;
}

/* 大引號 + 雜誌式拉開 */
.voice-quote {
  position: relative;
  padding: var(--s-2) var(--s-4) var(--s-4);
  font-size: 16px;
  line-height: 2;
  color: var(--c-ink);
  margin: var(--s-2) 0 var(--s-5);
  font-family: "Noto Serif TC", "Source Han Serif TC", serif;
  font-weight: 400;
  text-align: justify;
  text-justify: inter-character;
}
.voice-quote p {
  margin-bottom: var(--s-3);
}
.voice-quote p:last-child {
  margin-bottom: 0;
}
.voice-quote::before {
  content: "\201C";  /* 西式大引號裝飾 */
  position: absolute;
  top: -18px;
  left: -4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1;
  color: var(--c-red);
  opacity: 0.22;
  font-style: italic;
  font-weight: 700;
}
.voice-quote em {
  font-style: normal;
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  color: var(--c-red-d);
  font-weight: 500;
  margin: 0 1px;
}

/* ===== 播放控制（含時間 + 波形） ===== */
.player {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-4);
  border-top: 0.5px solid var(--c-rule);
}

/* 時間顯示 */
.player-time {
  display: flex;
  justify-content: space-between;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 11px;
  color: var(--c-ink-3);
  margin-top: 6px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.player-time .now { color: var(--c-red); font-weight: 500; }

/* 波形（5 條小直線跳動） */
.waveform {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
  margin-left: var(--s-2);
}
.waveform .bar {
  width: 2px;
  height: 30%;
  background: var(--c-red);
  border-radius: 1px;
  transition: height 0.08s linear;
  opacity: 0.7;
}
.voice-card:not(.playing) .waveform .bar {
  height: 20% !important;
  opacity: 0.3;
}
.play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--c-red);
  background: var(--c-paper);
  color: var(--c-red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
  position: relative;
}
.play-btn:hover {
  background: var(--c-red);
  color: #FFFDF6;
}
.voice-card.playing .play-btn {
  background: var(--c-red);
  color: #FFFDF6;
}
.play-btn:active { transform: scale(0.94); }
.play-btn svg { width: 18px; height: 18px; }
.play-btn .icon-pause { display: none; }
.voice-card.playing .play-btn .icon-play { display: none; }
.voice-card.playing .play-btn .icon-pause { display: block; }

.player-info { flex: 1; min-width: 0; }
.player-hint {
  font-size: 12px;
  color: var(--c-ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
  font-weight: 600;
}
.audio-track {
  height: 1px;
  background: var(--c-rule);
  position: relative;
}
.audio-track .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--c-red);
  transition: width .1s linear;
}

/* 沒音檔狀態 */
.voice-card.no-audio .play-btn {
  border-color: var(--c-ink-4);
  color: var(--c-ink-4);
  cursor: not-allowed;
}
.voice-card.no-audio .play-btn:hover { background: var(--c-paper); color: var(--c-ink-4); }
.voice-card.no-audio .player-hint::after {
  content: " ｜ 待錄音";
  color: var(--c-ink-4);
  font-style: italic;
  font-size: 11px;
}

/* ===== 字幕同步 highlight ===== */
.voice-quote p {
  transition: background .35s ease, color .3s ease;
  padding: 4px 8px;
  margin: -4px -8px var(--s-3);
  border-radius: 4px;
}
.voice-quote p.active {
  background: linear-gradient(135deg, rgba(126,36,24,0.08), rgba(184,133,63,0.06));
  color: var(--c-ink);
}

/* ===== 訪客次數小徽章 ===== */
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 11px;
  color: var(--c-ink-3);
  letter-spacing: 0.12em;
  margin-left: var(--s-2);
}
.visit-counter::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-red);
  opacity: 0.45;
}
.visit-counter .count {
  color: var(--c-red);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-style: normal;
}

/* ===== 浮動「回階段選單」按鈕 ===== */
.fab-back {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: rgba(126,36,24,0.92);
  color: #FBF7EA;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px rgba(31,24,18,0.22), 0 2px 4px rgba(31,24,18,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.fab-back:hover { background: var(--c-red-d); transform: translateY(-2px); }
.fab-back:active { transform: translateY(0); }
.fab-back svg { width: 14px; height: 14px; }

/* ===== 族語 popover ===== */
.voice-quote em.glossary-term,
.essay strong.glossary-term {
  cursor: help;
  position: relative;
  border-bottom: 1px dashed var(--c-red);
}
.glossary-popover {
  position: fixed;
  background: var(--c-ink);
  color: #FBF7EA;
  padding: var(--s-4) var(--s-5);
  border-radius: 8px;
  font-family: "Noto Serif TC", serif;
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  font-feature-settings: "palt" 1;
}
.glossary-popover.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.glossary-popover .term {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  color: #F2C8B8;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.glossary-popover .meaning {
  font-size: 14px;
  color: #FBF7EA;
}
.glossary-popover .ctx {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #C2B299;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* ===== 下一階段尾彩蛋 ===== */
.next-hint {
  display: none;
  margin: var(--s-8) var(--s-6) 0;
  padding: var(--s-5) var(--s-6);
  background: linear-gradient(135deg, rgba(126,36,24,0.06), rgba(184,133,63,0.06));
  border: 0.5px solid var(--c-rule);
  border-radius: 8px;
  text-align: center;
  animation: hintFadeIn 0.6s var(--ease);
}
.next-hint.show { display: block; }
.next-hint .hint-label {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--c-red);
  font-size: 11px;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.next-hint .hint-text {
  font-family: "Noto Serif TC", serif;
  color: var(--c-ink);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: var(--s-3);
}
.next-hint .hint-text strong { color: var(--c-red-d); font-weight: 700; }
.next-hint a {
  display: inline-block;
  padding: 8px 18px;
  background: var(--c-red);
  color: #FBF7EA;
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: "Noto Serif TC", serif;
  transition: background .15s var(--ease);
}
.next-hint a:hover { background: var(--c-red-d); }
@keyframes hintFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 階段導覽（編輯頁尾） ===== */
.nav-stages {
  display: flex;
  border-top: 0.5px solid var(--c-rule-d);
  margin: var(--s-12) var(--s-6) 0;
}
.nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s-5) var(--s-2);
  color: var(--c-ink-2);
  text-decoration: none;
  font-family: "Noto Serif TC", serif;
  transition: color .15s var(--ease);
}
.nav-link:hover { color: var(--c-red); }
.nav-link.prev { text-align: left; align-items: flex-start; border-right: 0.5px solid var(--c-rule); padding-right: var(--s-4); }
.nav-link.next { text-align: right; align-items: flex-end; padding-left: var(--s-4); }
.nav-link .dir {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--c-red);
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-bottom: var(--s-2);
  font-feature-settings: "smcp" 1;
}
.nav-link .stitle {
  font-weight: 700;
  color: var(--c-ink);
  font-size: 16px;
  letter-spacing: 0.06em;
}
.nav-link.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ===== 落款 ===== */
.colophon {
  text-align: center;
  padding: var(--s-12) var(--s-6) var(--s-8);
  margin-top: var(--s-8);
  border-top: 0.5px solid var(--c-rule);
  font-family: "Noto Serif TC", serif;
  font-size: 11px;
  color: var(--c-ink-3);
  letter-spacing: 0.2em;
  line-height: 2.2;
}
.colophon .seal {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--c-red);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: var(--s-3);
  display: block;
}
.colophon .seal::before,
.colophon .seal::after {
  content: " · ";
  color: var(--c-ink-4);
  margin: 0 var(--s-2);
}

/* ===== 入口頁（index 總覽） ===== */
.entry-list {
  padding: 0 var(--s-6);
}
.entry-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 0.5px solid var(--c-rule);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: background .15s var(--ease);
}
.entry-row:last-child { border-bottom: 0.5px solid var(--c-rule); }
.entry-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(126,36,24,0);
  transition: background .15s var(--ease);
  pointer-events: none;
}
.entry-row:active::after { background: rgba(126,36,24,0.04); }
.entry-row .e-roman {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--c-red);
  font-size: 28px;
  width: 56px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.entry-row .e-body { flex: 1; min-width: 0; }
.entry-row .e-title {
  font-family: "Noto Serif TC", serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--s-2);
  letter-spacing: 0.08em;
}
.entry-row .e-rukai {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  color: var(--c-red-d);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.entry-row .e-rukai .ch {
  font-style: normal;
  color: var(--c-ink-2);
  font-family: "Noto Serif TC", serif;
  font-size: 11px;
  margin-left: 2px;
  letter-spacing: 0.06em;
}
.entry-row .e-arrow {
  align-self: center;
  color: var(--c-ink-3);
  font-size: 18px;
  font-family: Georgia, serif;
  font-style: italic;
}

/* ===== 引言 / 標語 ===== */
.epigraph {
  padding: var(--s-10) var(--s-8);
  margin: 0 var(--s-6) var(--s-8);
  background:
    linear-gradient(0deg, rgba(251,247,234,0.88), rgba(251,247,234,0.88)),
    url("assets/gallery/fieldnotes-2.jpg") center / cover no-repeat;
  border: 0.5px solid var(--c-rule);
  position: relative;
  font-family: "Noto Serif TC", serif;
  text-align: center;
}
.epigraph p {
  font-size: 17px;
  line-height: 2;
  color: var(--c-ink);
  font-style: italic;
  letter-spacing: 0.04em;
  max-width: 360px;
  margin: 0 auto;
}
.epigraph cite {
  display: block;
  margin-top: var(--s-4);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--c-red);
  font-style: normal;
  text-transform: uppercase;
  transition: letter-spacing .2s var(--ease);
}

/* 整塊引言可點擊 */
.epigraph-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s var(--ease);
}
.epigraph-link .epigraph {
  cursor: pointer;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.epigraph-link:hover .epigraph {
  box-shadow: 0 8px 24px rgba(126,36,24,0.12);
  border-color: var(--c-red);
}
.epigraph-link:hover .epigraph cite {
  letter-spacing: 0.32em;
}
.epigraph-link:active { transform: scale(0.99); }

/* ===== Mobile 微調（極窄手機） ===== */
@media (max-width: 380px) {
  .stage-title { font-size: 44px; letter-spacing: 0.06em; }
  .voice-quote { font-size: 16px; }
  .essay p.lead::first-letter { font-size: 44px; }
  .hero { padding: var(--s-10) var(--s-5) var(--s-6); }
  .hero-img { max-width: 280px; }
}

/* ===== Tablet / 桌面（萬一被掃到大屏） ===== */
@media (min-width: 760px) {
  .page { max-width: 720px; }
  .stage-title { font-size: 68px; }
  .voice-quote { font-size: 18px; }
}

/* 隱藏列印用 */
@media print {
  body { background: white; }
  .brand, .nav-stages { display: none; }
}
