/* ═══════════════════════════════════════════════════════════
   Netflix 案例 · 長文版
   韓系奶油風格 · Long-form Article
   Palette: 奶茶橘 #E5856E · 鼠尾草綠 #84A59D · 奶油底 #FAF6EF
═══════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

:root {
  --bg:              #FAF6EF;
  --bg-paper:        #F5EEE1;
  --bg-warm:         #FDF9F3;
  --bg-card:         #FFFFFF;
  --bg-mist:         #F1E9DA;
  --bg-deep:         #EFE7D6;

  --border:          rgba(62, 52, 45, 0.10);
  --border-soft:     rgba(62, 52, 45, 0.06);
  --border-accent:   rgba(229, 133, 110, 0.28);

  --text-hi:         #2E2520;
  --text:            #4A3F37;
  --text-toned:      #6A5C50;
  --text-muted:      #8A7B6E;
  --text-dimmed:     #B5A696;

  --primary:         #E5856E;   /* 奶茶橘 */
  --primary-soft:    #F4C5B4;
  --primary-wash:    #FBE5DC;
  --primary-deep:    #C56850;

  --secondary:       #84A59D;   /* 鼠尾草綠 */
  --secondary-soft:  #C2D4CE;
  --secondary-wash:  #E2EAE7;
  --secondary-deep:  #5F827A;

  --butter:          #E8C8A0;
  --rose:            #D89A9F;
  --rose-deep:       #B07176;
  --olive:           #A8A474;

  --measure:         740px;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, -apple-system, sans-serif;
  font-size: 17.5px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02", "ss03";
  overflow-x: hidden;
}

.serif        { font-family: 'Fraunces', 'Noto Serif TC', 'Source Han Serif TC', serif; font-feature-settings: "ss01", "ss02", "ss03"; }
.italic-serif { font-family: 'Instrument Serif', 'Fraunces', 'Noto Serif TC', serif; font-style: italic; }
.mono         { font-family: 'JetBrains Mono', 'Noto Sans TC', ui-monospace, monospace; }

::selection { background: var(--primary-wash); color: var(--primary-deep); }

/* ═══ 閱讀進度條 ═══ */
.progress-rail {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 90;
  background: rgba(62, 52, 45, 0.06);
}
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.12s linear;
}

/* ═══ 頂部細列 ═══ */
.topbar {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(250, 246, 239, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  opacity: 0; transform: translateY(-100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.topbar.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-weight: 500; font-style: italic;
  color: var(--text-hi); font-size: 15px; letter-spacing: -0.01em;
}
.brand::before {
  content: "";
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: inset -2px -3px 4px rgba(0,0,0,0.12), 0 2px 6px rgba(229, 133, 110, 0.35);
  flex-shrink: 0;
}
.topbar .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══ 背景紋理 ═══ */
.bg-paper {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(229, 133, 110, 0.07) 0%, transparent 35%),
    radial-gradient(circle at 82% 78%, rgba(132, 165, 157, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(62, 52, 45, 0.02) 100%);
  pointer-events: none;
}
.bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(74, 63, 55, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.32;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 82%);
  pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none; opacity: 0.5;
  animation: floatDrift 24s ease-in-out infinite;
  will-change: transform;
}
.orb-peach  { width: 620px; height: 620px; background: radial-gradient(circle, rgba(229, 133, 110, 0.55), transparent 70%); top: -180px; left: -160px; animation-duration: 26s; }
.orb-sage   { width: 700px; height: 700px; background: radial-gradient(circle, rgba(132, 165, 157, 0.50), transparent 70%); bottom: -260px; right: -200px; animation-duration: 32s; animation-direction: reverse; }
.orb-butter { width: 420px; height: 420px; background: radial-gradient(circle, rgba(232, 200, 160, 0.50), transparent 70%); top: 40%; left: 44%; opacity: 0.32; animation-duration: 22s; animation-delay: -8s; }

@keyframes floatDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.04); }
  66%      { transform: translate(-30px, 40px) scale(0.98); }
}

/* ═══ Chip ═══ */
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px;
  background: var(--primary-wash);
  border: 1px solid var(--border-accent);
  color: var(--primary-deep);
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', 'Noto Sans TC', monospace;
  white-space: nowrap;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: chipDotPulse 2.4s ease-in-out infinite; flex-shrink: 0; }
.chip-sage { background: var(--secondary-wash); border-color: rgba(132, 165, 157, 0.35); color: var(--secondary-deep); }
.chip-sage .chip-dot { background: var(--secondary); }
.chip-mist { background: var(--bg-mist); border-color: var(--border); color: var(--text-toned); }
.chip-mist .chip-dot { background: var(--text-toned); }

@keyframes chipDotPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

/* ═══ 封面 ═══ */
.cover {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 120px 40px 100px;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.cover-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1080px; margin: 0 auto;
}
.cover .kicker-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.cover h1 {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-hi);
  margin-bottom: 30px;
  max-width: 16em;
}
.cover h1 em {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-style: normal; font-weight: 500;
  color: var(--primary-deep);
}
.br-sm { display: none; }
.cover .subtitle {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.6; font-weight: 400;
  color: var(--text-toned);
  max-width: 30em;
  margin-bottom: 48px;
}
.cover-hook {
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(74, 63, 55, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 34px 38px 36px;
  position: relative;
}
.cover-hook .quote-mark {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: 92px; line-height: 0.55; color: var(--primary);
  opacity: 0.32; display: block; margin-bottom: 14px;
}
.cover-hook p { font-size: 18px; line-height: 1.8; color: var(--text); }
.cover-hook p + p { margin-top: 14px; color: var(--text-toned); }
.cover-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin-top: 46px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.cover-meta .sep { color: var(--text-dimmed); }
.scroll-cue {
  margin-top: 54px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dimmed);
}
.scroll-cue .line {
  display: block; width: 54px; height: 1px;
  background: linear-gradient(90deg, var(--text-dimmed), transparent);
}
.scroll-cue .arrow { color: var(--primary); animation: nudgeDown 2.6s ease-in-out infinite; }
@keyframes nudgeDown {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ═══ 主體版面 ═══ */
.layout {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 40px 40px;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

/* ═══ 目錄 ═══ */
.toc {
  position: sticky; top: 96px;
  padding-right: 8px;
  border-right: 1px solid var(--border-soft);
}
.toc .toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px;
}
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 6px 10px 6px 0;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px; line-height: 1.45;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -1px;
  transition: color 0.22s ease, border-color 0.22s ease;
}
.toc a .n {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 14px; color: var(--text-dimmed); min-width: 18px;
  transition: color 0.22s ease;
}
.toc a:hover { color: var(--text-hi); }
.toc a.active {
  color: var(--primary-deep); border-left-color: var(--primary);
  font-weight: 600;
}
.toc a.active .n { color: var(--primary); }

/* ═══ 文章 ═══ */
.article { max-width: var(--measure); }

.article > * { margin-bottom: 26px; }
.sec > p, .sec > ul, .sec > ol, .sec > .table-caption { margin-bottom: 24px; }
.sec > *:last-child { margin-bottom: 0; }

.article p { font-size: 17.5px; line-height: 1.95; color: var(--text); }
.article p strong, .article li strong { color: var(--text-hi); font-weight: 700; }
.article em { font-style: normal; color: var(--primary-deep); }

.lead {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 21px !important; line-height: 1.78 !important;
  color: var(--text-toned) !important;
  font-weight: 400;
}

/* 章節標題 */
.sec { scroll-margin-top: 96px; }
.sec-head { margin: 78px 0 34px; }
.sec-head:first-child { margin-top: 0; }
.sec-num {
  font-family: 'Instrument Serif', 'Fraunces', serif;
  font-style: italic; font-weight: 400;
  font-size: 46px; line-height: 1;
  color: var(--primary); opacity: 0.55;
  display: block; margin-bottom: 8px;
}
h2.sec-title {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-variation-settings: "opsz" 120;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.25; font-weight: 500; letter-spacing: -0.02em;
  color: var(--text-hi);
  text-wrap: balance;
}
h3 {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 24px; line-height: 1.4; font-weight: 600;
  color: var(--text-hi); letter-spacing: -0.01em;
  margin: 48px 0 18px;
  display: flex; align-items: baseline; gap: 12px;
}
h3::before {
  content: ""; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-soft);
  transform: translateY(-4px);
}
h4 {
  font-size: 18px; font-weight: 700; color: var(--text-hi);
  margin: 32px 0 12px; line-height: 1.5;
}

/* 清單 */
.article ul { list-style: none; display: flex; flex-direction: column; gap: 11px; padding-left: 2px; }
.article ul li {
  position: relative; padding-left: 26px;
  font-size: 17px; line-height: 1.8; color: var(--text);
}
.article ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary); opacity: 0.7;
}

/* 有結果標記的清單（✅ / ❌） */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 20px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 17px; line-height: 1.6;
}
.checklist li::before { display: none; }
.checklist li.fail { background: rgba(216, 154, 159, 0.10); border-color: rgba(216, 154, 159, 0.32); }
.checklist li.fail .txt { color: var(--rose-deep); font-weight: 700; }
.mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
  margin-top: 2px;
}
.mark-check { background: var(--secondary-wash); color: var(--secondary-deep); }
.mark-cross { background: rgba(216, 154, 159, 0.22); color: var(--rose-deep); }
.mark-arrow { background: var(--primary-wash); color: var(--primary-deep); }

/* ═══ 引用 / 重點句 ═══ */
.pull {
  position: relative;
  margin: 40px 0;
  padding: 34px 38px 34px 42px;
  background: var(--bg-paper);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 23px; line-height: 1.62; font-weight: 500;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.pull::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px;
  width: 4px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-soft));
}
.pull p + p { margin-top: 14px; }
.pull.sage::before { background: linear-gradient(180deg, var(--secondary), var(--secondary-soft)); }
.pull.plain {
  background: transparent; border: none; border-radius: 0;
  padding: 8px 0 8px 30px;
}

/* 大引號的引言區塊 */
.quote-block {
  position: relative;
  margin: 44px 0;
  padding: 40px 44px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  box-shadow: 0 8px 30px rgba(74, 63, 55, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.quote-block .qm {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 84px; line-height: 0.5; color: var(--primary);
  opacity: 0.3; display: block; margin-bottom: 20px;
}
.quote-block p {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 20px; line-height: 1.75; color: var(--text-hi);
}
.quote-block cite {
  display: block; margin-top: 18px;
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══ 卡片式插件 ═══ */
.callout {
  margin: 36px 0;
  padding: 28px 32px;
  border-radius: 22px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(74, 63, 55, 0.04);
}
.callout-label {
  display: flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', 'Noto Sans TC', monospace;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1.5;
  color: var(--primary-deep);
  margin-bottom: 14px;
}
.callout-label::before {
  content: ""; flex-shrink: 0;
  width: 18px; height: 1px; background: var(--primary); opacity: 0.6;
}
.callout p { font-size: 17px; line-height: 1.8; }
.callout p + p { margin-top: 12px; }

/* 書裡的話說 — 鼠尾草綠 */
.book-note {
  margin: 40px 0;
  padding: 30px 34px;
  border-radius: 22px;
  background: var(--secondary-wash);
  border: 1px solid rgba(132, 165, 157, 0.32);
  position: relative;
}
.book-note > .callout-label { color: var(--secondary-deep); }
.book-note > .callout-label::before { background: var(--secondary); }
.book-note p { font-size: 17px; line-height: 1.82; color: var(--text); }
.book-note p + p { margin-top: 14px; }
.book-note strong { color: var(--secondary-deep); }
.book-note .tag {
  display: inline-block;
  font-weight: 700; color: var(--secondary-deep);
  background: rgba(255,255,255,0.6);
  border-radius: 6px; padding: 1px 7px;
  margin-right: 2px;
}

/* 生活比喻 — 虛線框 */
.analogy {
  margin: 36px 0;
  padding: 26px 30px;
  border-radius: 22px;
  background: transparent;
  border: 1.5px dashed rgba(74, 63, 55, 0.22);
}
.analogy > .callout-label { color: var(--text-toned); }
.analogy > .callout-label::before { background: var(--text-dimmed); }
.analogy p {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 18px; line-height: 1.7; color: var(--text-toned);
}

/* 關鍵句（滿版強調） */
.keyline {
  margin: 40px 0;
  padding: 30px 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-wash), var(--bg-warm));
  border: 1px solid var(--border-accent);
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 22px; line-height: 1.6; font-weight: 600;
  color: var(--text-hi);
  text-align: center;
  letter-spacing: -0.01em;
  text-wrap: balance;
  animation: glowBreath 5.2s ease-in-out infinite;
}
@keyframes glowBreath {
  0%, 100% { box-shadow: 0 8px 30px rgba(229, 133, 110, 0.12); }
  50%      { box-shadow: 0 12px 44px rgba(229, 133, 110, 0.22); }
}

/* ═══ 表格 ═══ */
.table-wrap {
  margin: 38px 0;
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 8px 30px rgba(74, 63, 55, 0.05);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 520px; }
thead th {
  background: var(--bg-mist);
  font-family: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-hi);
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
thead th:first-child { color: var(--text-muted); font-weight: 500; }
tbody td {
  padding: 16px 20px;
  font-size: 15.5px; line-height: 1.65;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(245, 238, 225, 0.4); }
tbody td:first-child {
  font-weight: 700; color: var(--text-hi);
  background: rgba(241, 233, 218, 0.5);
  white-space: nowrap;
}
td .hl-orange { color: var(--primary-deep); font-weight: 600; }
td .hl-sage   { color: var(--secondary-deep); font-weight: 600; }
.table-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ═══ 三層拆解卡 ═══ */
.layer-grid { display: flex; flex-direction: column; gap: 14px; margin: 36px 0; }
.layer {
  display: grid; grid-template-columns: 54px minmax(0,1fr) auto;
  gap: 20px; align-items: center;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(74, 63, 55, 0.05);
}
.layer .idx {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 34px; line-height: 1; color: var(--primary); opacity: 0.6;
  text-align: center;
}
.layer .lt { font-weight: 700; color: var(--text-hi); font-size: 17px; margin-bottom: 4px; }
.layer .ld { font-size: 15px; line-height: 1.6; color: var(--text-toned); }
.layer .tool {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: 12px;
  background: var(--bg-warm); border: 1px solid var(--border);
  color: var(--text-hi); white-space: nowrap;
}
.layer:nth-child(2) .tool { background: var(--primary-wash); border-color: var(--border-accent); color: var(--primary-deep); }
.layer:nth-child(3) .tool { background: var(--secondary-wash); border-color: rgba(132,165,157,0.35); color: var(--secondary-deep); }

/* ═══ 對比雙欄 ═══ */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0; }
.versus .side {
  padding: 24px 26px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg-warm);
}
.versus .side.good { background: var(--secondary-wash); border-color: rgba(132,165,157,0.32); }
.versus .side .side-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.versus .side.good .side-label { color: var(--secondary-deep); }
.versus .side p {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 18px; line-height: 1.6; color: var(--text-hi); font-weight: 500;
}

/* ═══ 數據列 ═══ */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin: 36px 0;
}
.stat {
  padding: 24px 22px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  box-shadow: 0 6px 20px rgba(74, 63, 55, 0.05);
  text-align: center;
}
.stat .v {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-variation-settings: "opsz" 144;
  font-size: 40px; line-height: 1.05; font-weight: 500;
  color: var(--primary-deep); letter-spacing: -0.02em;
}
.stat .v .u { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 22px; color: var(--primary); }
.stat .k { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* ═══ 分隔飾 ═══ */
.orn {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 68px 0;
  color: var(--text-dimmed);
}
.orn::before, .orn::after {
  content: ""; height: 1px; flex: 1; max-width: 200px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.orn span { font-family: 'Fraunces', serif; font-size: 18px; color: var(--primary); opacity: 0.6; }

/* ═══ Q&A ═══ */
.qa { display: flex; flex-direction: column; gap: 16px; margin: 34px 0; }
.qa-card {
  padding: 28px 30px; border-radius: 22px;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  box-shadow: 0 8px 30px rgba(74, 63, 55, 0.05), inset 0 1px 0 rgba(255,255,255,0.8);
}
.qa-card .q {
  display: flex; align-items: baseline; gap: 12px;
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 19px; line-height: 1.6; font-weight: 600; color: var(--text-hi);
  margin-bottom: 14px;
}
.qa-card .q .qn {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 24px; color: var(--primary); flex-shrink: 0;
}
.qa-card .hint {
  padding: 16px 20px; border-radius: 14px;
  background: var(--bg-paper);
  font-size: 15.5px; line-height: 1.75; color: var(--text-toned);
}
.qa-card .hint b { color: var(--text-hi); }

/* ═══ 結語四句 ═══ */
.finale { display: flex; flex-direction: column; gap: 14px; margin: 34px 0; }
.finale-item {
  display: grid; grid-template-columns: 44px minmax(0,1fr);
  gap: 18px; align-items: start;
  padding: 24px 26px; border-radius: 20px;
  background: var(--bg-warm); border: 1px solid var(--border);
}
.finale-item .n {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 32px; line-height: 1.1; color: var(--primary); opacity: 0.7; text-align: center;
}
.finale-item .t {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 19px; font-weight: 600; color: var(--text-hi); line-height: 1.5;
  margin-bottom: 8px;
}
.finale-item .d { font-size: 16px; line-height: 1.75; color: var(--text-toned); }

/* ═══ 資料來源 ═══ */
.sources { display: flex; flex-direction: column; gap: 10px; margin: 30px 0; }
.sources li { display: flex; gap: 12px; padding-left: 0 !important; font-size: 15px; line-height: 1.65; }
.sources li::before { display: none !important; }
.sources li .sn {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-dimmed); min-width: 22px; padding-top: 3px;
}
.sources a { color: var(--secondary-deep); text-decoration: none; border-bottom: 1px solid rgba(132,165,157,0.4); word-break: break-all; }
.sources a:hover { color: var(--primary-deep); border-bottom-color: var(--primary-soft); }
.sources .stitle { color: var(--text); display: block; }

/* ═══ 頁尾 ═══ */
.foot {
  position: relative;
  margin-top: 96px;
  padding: 72px 40px 90px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.foot-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.foot .colophon {
  max-width: 760px;
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-style: italic;
  font-size: 17px; line-height: 1.85; color: var(--text-toned);
}
.foot .colophon b { font-style: normal; color: var(--text-hi); font-weight: 600; }
.foot .sig {
  margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
}
.foot .byline {
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
}
.foot .byline-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dimmed);
}
.foot .byline-name {
  font-family: 'Fraunces', 'Noto Serif TC', serif;
  font-size: 21px; font-weight: 600; letter-spacing: 0.01em; color: var(--text-hi);
}
.foot .byline-en {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; color: var(--text-dimmed);
}

/* ═══ 進場動畫 ═══ */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ 響應式 ═══ */
@media (max-width: 1060px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 64px 32px 40px; }
  .toc { display: none; }
  .article { max-width: 720px; margin: 0 auto; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .cover { padding: 104px 22px 76px; min-height: auto; }
  .cover-hook { padding: 26px 24px 28px; }
  .layout { padding: 52px 22px 32px; }
  .article p, .article ul li { font-size: 16.5px; }
  .pull { padding: 26px 24px 26px 28px; font-size: 20px; }
  .quote-block { padding: 30px 26px 32px; }
  .quote-block p { font-size: 18px; }
  .keyline { font-size: 19px; padding: 24px 22px; }
  .callout, .book-note, .analogy { padding: 22px 22px; }
  .versus { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 40px minmax(0,1fr); }
  .layer .tool { grid-column: 2; justify-self: start; }
  .topbar { padding: 12px 22px; }
  .topbar .meta { display: none; }
  .sec-num { font-size: 36px; }
  .foot { padding: 56px 22px 72px; }
}

/* ── 窄螢幕：表格改為堆疊卡片，不再橫向捲動 ── */
@media (max-width: 560px) {
  .table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 30px 0;
  }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody, tbody tr, tbody td { display: block; width: 100%; }
  tbody tr {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(74, 63, 55, 0.05);
    padding: 6px 0 10px;
    margin-bottom: 12px;
  }
  tbody tr:last-child { margin-bottom: 0; }
  tbody td {
    border-bottom: none;
    padding: 10px 20px;
    font-size: 15.5px;
  }
  tbody td:first-child {
    background: transparent;
    white-space: normal;
    font-family: 'Fraunces', 'Noto Serif TC', serif;
    font-size: 17px; font-weight: 600;
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 4px;
  }
  tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
  }
}

/* ── 375 / 小尺寸手機 ── */
@media (max-width: 480px) {
  :root { --measure: 100%; }
  body { font-size: 16px; line-height: 1.8; }

  /* 全域防溢出 */
  .article p, .article li, h2.sec-title, h3, h4,
  .pull, .keyline, .quote-block p, .book-note p, .callout p, .analogy p {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .topbar { padding: 11px 18px; }
  .brand { font-size: 13.5px; gap: 9px; }
  .brand::before { width: 17px; height: 17px; }

  /* 封面 */
  .cover { padding: 92px 18px 64px; }
  .cover .kicker-row { gap: 8px; margin-bottom: 28px; }
  .chip { font-size: 10.5px; padding: 6px 12px; letter-spacing: 0.08em; white-space: normal; }
  .cover h1 { font-size: 34px; line-height: 1.2; margin-bottom: 22px; letter-spacing: -0.02em; }
  .br-sm { display: block; }
  .cover .subtitle { font-size: 17px; line-height: 1.7; margin-bottom: 34px; }
  .cover .subtitle br { display: none; }
  .cover-hook { padding: 22px 20px 24px; border-radius: 20px; }
  .cover-hook .quote-mark { font-size: 68px; margin-bottom: 10px; }
  .cover-hook p { font-size: 16px; line-height: 1.75; }
  .cover-meta { margin-top: 32px; gap: 8px 14px; font-size: 11px; letter-spacing: 0.1em; }
  .scroll-cue { margin-top: 38px; font-size: 11px; letter-spacing: 0.16em; }
  .scroll-cue .line { width: 36px; }

  /* 版面 */
  .layout { padding: 44px 18px 28px; }
  .article > * { margin-bottom: 22px; }
  .sec > p, .sec > ul, .sec > ol { margin-bottom: 20px; }
  .article p, .article ul li { font-size: 16px; }
  .lead { font-size: 18px !important; }

  /* 標題 */
  .sec-head { margin: 56px 0 26px; }
  .sec-num { font-size: 32px; margin-bottom: 4px; }
  h2.sec-title { font-size: 25px; line-height: 1.35; }
  h3 { font-size: 20px; margin: 34px 0 14px; gap: 10px; }
  h3::before { width: 7px; height: 7px; transform: translateY(-3px); }
  h4 { font-size: 17px; }

  /* 引用與強調 */
  .pull { margin: 30px 0; padding: 22px 20px 22px 24px; font-size: 18px; line-height: 1.6; border-radius: 20px; }
  .pull::before { top: 20px; bottom: 20px; width: 3px; }
  .pull.plain { padding: 6px 0 6px 22px; }
  .quote-block { margin: 32px 0; padding: 26px 22px 28px; border-radius: 22px; }
  .quote-block .qm { font-size: 66px; margin-bottom: 14px; }
  .quote-block p { font-size: 17px; line-height: 1.75; }
  .quote-block cite { font-size: 10.5px; letter-spacing: 0.1em; }
  .keyline { margin: 30px 0; padding: 22px 18px; font-size: 17.5px; line-height: 1.55; border-radius: 20px; }

  /* 卡片 */
  .callout, .book-note, .analogy { margin: 28px 0; padding: 20px 18px; border-radius: 18px; }
  .callout .callout-label { font-size: 10.5px; letter-spacing: 0.12em; line-height: 1.5; }
  .callout .callout-label::before { width: 14px; }
  .callout p, .book-note p, .analogy p { font-size: 15.8px; line-height: 1.75; }

  /* 清單 */
  .article ul { gap: 9px; }
  .article ul li { padding-left: 22px; }
  .checklist li { padding: 12px 15px; gap: 11px; font-size: 15.5px; }
  .mark { width: 23px; height: 23px; font-size: 12px; }

  /* 對比雙欄 */
  .versus { gap: 12px; margin: 28px 0; }
  .versus .side { padding: 20px 18px; border-radius: 18px; }
  .versus .side p { font-size: 16.5px; }

  /* 三層拆解 */
  .layer-grid { gap: 12px; margin: 28px 0; }
  .layer { grid-template-columns: 32px minmax(0,1fr); gap: 6px 14px; padding: 18px 18px; border-radius: 18px; align-items: start; }
  .layer .idx { font-size: 27px; padding-top: 2px; }
  .layer .lt { font-size: 16px; }
  .layer .ld { font-size: 14.5px; }
  .layer .tool { font-size: 12px; padding: 7px 13px; margin-top: 4px; }

  /* 數據 */
  .stat-row { gap: 12px; margin: 28px 0; }
  .stat { padding: 20px 18px; border-radius: 18px; }
  .stat .v { font-size: 34px; }
  .stat .v .u { font-size: 19px; }
  .stat .k { font-size: 13px; }

  /* 分隔飾 */
  .orn { margin: 48px 0; gap: 14px; }
  .orn::before, .orn::after { max-width: 90px; }

  /* 結語 */
  .finale-item { grid-template-columns: 32px minmax(0,1fr); gap: 14px; padding: 20px 18px; border-radius: 18px; }
  .finale-item .n { font-size: 27px; }
  .finale-item .t { font-size: 17px; }
  .finale-item .d { font-size: 15.2px; }

  /* Q&A */
  .qa { gap: 12px; }
  .qa-card { padding: 22px 18px; border-radius: 18px; }
  .qa-card .q { font-size: 17px; gap: 9px; margin-bottom: 12px; }
  .qa-card .q .qn { font-size: 20px; }
  .qa-card .hint { padding: 14px 15px; font-size: 14.6px; line-height: 1.7; border-radius: 12px; }

  /* 表格堆疊卡再收緊 */
  tbody td { padding: 9px 16px; font-size: 15px; }
  tbody td:first-child { font-size: 16px; padding: 12px 16px 10px; }

  /* 來源 */
  .sources li { gap: 9px; font-size: 14.2px; }
  .sources li .sn { min-width: 19px; font-size: 11px; }

  /* 頁尾 */
  .foot { margin-top: 68px; padding: 48px 18px 60px; }
  .foot .colophon { font-size: 15.5px; line-height: 1.8; }
  .foot .sig { margin-top: 26px; gap: 10px; font-size: 10.5px; letter-spacing: 0.12em; }

  /* orb 縮小，避免手機上糊成一片 */
  .orb-peach  { width: 380px; height: 380px; }
  .orb-sage   { width: 420px; height: 420px; bottom: -180px; right: -140px; }
  .orb-butter { display: none; }
}

@media (max-width: 360px) {
  .cover h1 { font-size: 31px; }
  h2.sec-title { font-size: 23px; }
  .pull { font-size: 17px; }
  .keyline { font-size: 16.5px; }
  .layout, .cover, .foot { padding-left: 15px; padding-right: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .progress-rail, .topbar, .toc, .scroll-cue { display: none !important; }
  body { background: #fff; }
  .layout { display: block; padding: 0 24px; }
  .article { max-width: 100%; }
  .orb, .bg-dots { display: none !important; }
  .cover { min-height: auto; page-break-after: always; }
  .sec-head { page-break-after: avoid; }
  .table-wrap, .quote-block, .book-note, .callout, .keyline { page-break-inside: avoid; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   分頁切換 · Tabs
═══════════════════════════════════════════════════════════ */
.tabs {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-mist);
  border: 1px solid var(--border);
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.tab:hover { color: var(--text-hi); }
.tab.active {
  background: var(--bg-card);
  color: var(--primary-deep);
  box-shadow: 0 2px 10px rgba(74, 63, 55, 0.10), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tab .tab-n {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 15px; color: var(--text-dimmed);
}
.tab.active .tab-n { color: var(--primary); }

/* 封面上的分頁列 */
.cover .tabs { margin-bottom: 32px; }

/* 頂列裡的縮小版 */
.topbar .tabs { padding: 4px; }
.topbar .tab { padding: 6px 15px; font-size: 12.5px; }
.topbar .tab .tab-n { font-size: 13px; }

@media (max-width: 720px) {
  .topbar .tabs { padding: 3px; }
  .topbar .tab { padding: 6px 12px; font-size: 11.5px; }
  .topbar .tab .tab-n { display: none; }
}
@media (max-width: 480px) {
  .tab { padding: 8px 15px; font-size: 13px; }
  .tab .tab-n { font-size: 14px; }
  .cover .tabs { margin-bottom: 26px; }
  .topbar .brand span { display: none; }
}
