/* ============================================
   實習成果展示 — 雜誌風格樣式表
   配色：奶白底 × 深棕主色 × 焦糖點綴
   字體：Cormorant Garamond + Noto Serif TC
   ============================================ */

:root {
  /* 配色：深棕雜誌調 */
  --paper:       #e8dcc8;
  --paper-soft:  #d9c9b0;
  --paper-warm:  #cbb898;
  --ink:         #1e1208;
  --ink-soft:    #3d2410;
  --ink-faded:   #6b4a2a;
  --accent:      #7a3e1c;
  --accent-deep: #4a2208;
  --rule:        #9c7050;
  --rule-soft:   #b89070;

  /* 字體 */
  --serif-display: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif;
  --serif-body:    "Noto Serif TC", "Libre Caslon Text", "Songti TC", serif;
  --serif-mono:    "Libre Caslon Text", "Cormorant Garamond", serif;

  --container: 880px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.9;
  font-weight: 500;
  letter-spacing: 0.02em;
  background-image:
    radial-gradient(at 20% 30%, rgba(156, 112, 80, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(122, 62, 28, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

p {
  margin-bottom: 1.2em;
  text-align: justify;
  text-justify: inter-ideograph;
}

em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}

strong { font-weight: 600; color: var(--ink); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   ★ 站台導覽列 site-nav ★
   ============================================ */
.site-nav {
  background: var(--accent-deep);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.nav-brand {
  font-family: var(--serif-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--paper);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--serif-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(232, 220, 200, 0.75);
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  display: inline-block;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--paper);
  border-color: var(--rule);
  background: rgba(255,255,255,0.08);
}

.nav-links a.active {
  color: var(--paper);
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.12);
  font-weight: 700;
}

/* ============================================
   ★ 封面版面 cover-page ★
   ============================================ */
body.cover-page .masthead.cover {
  padding-top: 80px;
}

/* ---------- 頁首 ─ Masthead ---------- */
.masthead {
  padding: 60px 32px 50px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  position: relative;
  margin-bottom: 60px;
}

.masthead::before,
.masthead::after {
  content: '';
  position: absolute;
  left: 32px; right: 32px;
  height: 1px;
  background: var(--rule);
}
.masthead::before { top: 50px; }
.masthead::after  { bottom: 30px; }

body.cover-page .masthead::before { top: 70px; }

.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif-display);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 8px 18px;
  margin-bottom: 30px;
}

.masthead-top .brand {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.4em;
}

.masthead-top .issue.right { text-align: right; }

.title {
  font-family: var(--serif-display);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 32px;
}

.title-line {
  display: block;
  font-size: clamp(56px, 9vw, 110px);
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 18px;
}

.title-sub {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.masthead-bottom {
  font-family: var(--serif-body);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  padding-top: 8px;
}

.masthead-bottom .dot {
  margin: 0 14px;
  color: var(--accent);
  font-size: 8px;
  vertical-align: middle;
}

/* ---------- 引言區 ---------- */
.intro {
  margin-bottom: 80px;
  padding-top: 20px;
  padding-bottom: 40px;
}

.drop-cap {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 40px;
}

.drop {
  font-family: var(--serif-display);
  float: left;
  font-size: 78px;
  line-height: 0.85;
  padding: 10px 14px 0 0;
  color: var(--accent-deep);
  font-weight: 500;
}

.intro-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  margin-top: 30px;
}

.intro-meta > div {
  text-align: center;
  border-right: 1px solid var(--rule-soft);
  padding: 0 16px;
}
.intro-meta > div:last-child { border-right: none; }

.intro-meta span {
  display: block;
  font-family: var(--serif-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faded);
  margin-bottom: 8px;
}

.intro-meta strong {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.05em;
}

/* ============================================
   ★ 目錄 toc ★
   ============================================ */
.toc {
  margin-bottom: 80px;
  padding-top: 20px;
}

.toc-head {
  text-align: center;
  margin-bottom: 50px;
}

.toc-label {
  display: block;
  font-family: var(--serif-display);
  font-size: 14px;
  letter-spacing: 0.5em;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.toc-title {
  font-family: var(--serif-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1;
}

.toc-sub {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-faded);
  letter-spacing: 0.2em;
}

.toc-list {
  border-top: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
}

.toc-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 28px 16px;
  border-bottom: 1px solid var(--rule-soft);
  transition: all 0.3s ease;
  position: relative;
}

.toc-item:last-child { border-bottom: none; }

.toc-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: top;
}

.toc-item:hover {
  background: var(--paper-soft);
  padding-left: 28px;
}

.toc-item:hover::before { transform: scaleY(1); }

.toc-num {
  font-family: var(--serif-display);
  font-size: 48px;
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.05em;
}

.toc-info h3 {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  line-height: 1.3;
}

.toc-info p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.toc-page {
  font-family: var(--serif-display);
  font-size: 14px;
  color: var(--ink-faded);
  letter-spacing: 0.2em;
  font-style: italic;
  white-space: nowrap;
}

.toc-footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
}

.toc-quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 19px;
  color: var(--accent-deep);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ---------- 章節結構 ---------- */
.chapter {
  margin-top: 60px;
  margin-bottom: 80px;
}

.chapter-head {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
}

.ch-num {
  display: block;
  font-family: var(--serif-display);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 14px;
}

.ch-title {
  font-family: var(--serif-display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.ch-sub {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-faded);
  letter-spacing: 0.15em;
  position: relative;
  padding-bottom: 28px;
}

.ch-sub::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 22px auto 0;
}

/* ---------- 章節開場文字 opener / lead ---------- */
.opener {
  font-size: 20px;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 50px;
  padding: 0 10px;
  font-family: var(--serif-body);
  font-weight: 500;
}

.lead {
  font-size: 21px;
  line-height: 1.9;
  text-align: center;
  font-family: var(--serif-display);
  color: var(--ink);
  margin: 30px auto 50px;
  max-width: 720px;
  font-weight: 500;
}

/* ---------- 小標題 section-title ---------- */
.section-title {
  font-family: var(--serif-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 55px 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule);
  position: relative;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 14px;
  vertical-align: middle;
  transform: translateY(-2px);
}

/* ---------- 基本資訊網格 ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  margin-bottom: 30px;
}

.info-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}

.info-row:last-child { border-bottom: none; }

.info-row span {
  font-family: var(--serif-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}

.info-row p {
  margin: 0;
  text-align: left;
  color: var(--ink);
  font-size: 16px;
}

/* ---------- 雙欄排版（文 + 圖） ---------- */
.two-column {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 30px 0;
}

.two-column.reverse {
  grid-template-columns: 1fr 1.3fr;
}

.col-figure {
  margin: 0;
  position: relative;
}

.col-figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(0.08) saturate(0.95);
  border: 1px solid var(--rule-soft);
  background: var(--paper-warm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.col-figure figcaption {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faded);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.05em;
  padding: 0 10px;
}

/* ---------- 引言塊 ---------- */
.pullquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.6;
  color: var(--accent-deep);
  text-align: center;
  margin: 50px 0;
  padding: 30px 40px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  position: relative;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--paper-warm);
}

.pullquote::before {
  content: '「';
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 40px;
  color: var(--accent);
  opacity: 0.5;
  font-style: normal;
}

.pullquote::after {
  content: '」';
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 40px;
  color: var(--accent);
  opacity: 0.5;
  font-style: normal;
}

.pullquote.big {
  font-size: 28px;
  padding: 40px 50px;
  margin: 60px 0;
}

.flow {
  margin: 35px 0;
  padding: 30px 20px;
  background: var(--ink-soft);
  border: 1px solid var(--accent);
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.flow-step {
  background: var(--accent-deep);
  border: 1px solid var(--accent);
  padding: 14px 12px;
  text-align: center;
  font-family: var(--serif-body);
  font-size: 14px;
  color: var(--paper);
  position: relative;
  line-height: 1.4;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.flow-step span {
  display: block;
  font-family: var(--serif-display);
  font-size: 11px;
  color: var(--paper-warm);
  letter-spacing: 0.25em;
  margin-bottom: 5px;
  font-weight: 700;
}

.flow-arrow {
  font-family: var(--serif-display);
  color: var(--paper-warm);
  font-size: 20px;
  text-align: center;
}

.flow-down {
  text-align: center;
  color: var(--paper-warm);
  font-size: 22px;
  margin: 6px 0;
  letter-spacing: 0.2em;
}

.caption-text {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
  margin: 20px 0 30px;
  padding: 0 30px;
}

/* ---------- 狀態清單 ---------- */
.status-list {
  list-style: none;
  margin: 20px 0 30px;
}

.status-list li {
  display: flex;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule-soft);
  font-size: 16px;
}

.status-list li:last-child { border-bottom: none; }

.status-list .tag {
  display: inline-block;
  flex-shrink: 0;
  width: 90px;
  font-family: var(--serif-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  background: var(--accent-deep);
  color: var(--paper);
  padding: 4px 12px;
  margin-right: 24px;
  border-left: 3px solid var(--rule);
  text-align: center;
  font-weight: 700;
}

/* ---------- 一般項目清單 ---------- */
.bullet-list {
  list-style: none;
  margin: 20px 0 30px;
}

.bullet-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.8;
}

.bullet-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-size: 11px;
}

.bullet-list li strong {
  color: var(--accent-deep);
  font-weight: 600;
  margin-right: 4px;
}

.ordered-list {
  list-style: none;
  counter-reset: olc;
  margin: 25px 0 30px;
  padding: 25px 30px;
  background: var(--ink-soft);
  border-left: 4px solid var(--accent);
}

.ordered-list li {
  counter-increment: olc;
  position: relative;
  padding: 10px 0 10px 50px;
  border-bottom: 1px dashed var(--rule);
  font-size: 16px;
  color: var(--paper);
}

.ordered-list li:last-child { border-bottom: none; }

.ordered-list li::before {
  content: counter(olc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--serif-display);
  font-size: 18px;
  color: var(--paper-warm);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ---------- 工具卡片 ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 35px 0;
}

.tool-card {
  background: var(--ink-soft);
  padding: 30px 24px;
  border-top: 3px solid var(--accent);
  position: relative;
}

.tool-card h4 {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--paper-warm);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
}

.tool-card p {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(232, 220, 200, 0.85);
  margin: 0;
}

/* ---------- 工作表格（橫條樣式） ---------- */
.work-table {
  margin: 25px 0 30px;
  border-top: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
}

.work-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  padding: 22px 10px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: center;
}

.work-row:last-child { border-bottom: none; }

.work-row h5 {
  font-family: var(--serif-display);
  font-size: 20px;
  color: var(--accent-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
}

.work-row p {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}

/* ---------- 主打專案 feature ---------- */
.feature-project {
  background: var(--paper-warm);
  padding: 50px 50px 45px;
  margin: 40px 0;
  border: 2px solid var(--accent);
  position: relative;
}

.feature-project::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}

.feature-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-deep);
  color: var(--paper);
  font-family: var(--serif-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  padding: 6px 20px;
  font-weight: 600;
}

.feature-project h3 {
  font-family: var(--serif-display);
  font-size: 30px;
  text-align: center;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.feature-project h3 span {
  display: block;
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 400;
}

.feature-img {
  margin: 0 auto 30px;
  max-width: 600px;
}

.feature-img img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
  filter: sepia(0.08) saturate(0.95);
  background: var(--paper-warm);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-img figcaption {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faded);
  text-align: center;
  margin-top: 12px;
}

/* ---------- 學習卡片 lesson ---------- */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.lesson {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: 26px 22px;
  position: relative;
}

.lesson span {
  font-family: var(--serif-display);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 10px;
}

.lesson h5 {
  font-family: var(--serif-display);
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-soft);
}

.lesson p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- 進度表 ---------- */
.progress-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0 30px;
  font-size: 17px;
}

.progress-table th {
  background: var(--ink-soft);
  font-family: var(--serif-display);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--paper-warm);
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
}

.progress-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
}

.progress-table tr:last-child td {
  border-bottom: 1.5px solid var(--ink-soft);
}

.progress-table td:nth-child(2) {
  font-family: var(--serif-display);
  font-size: 18px;
  color: var(--accent-deep);
  font-weight: 600;
  width: 100px;
}

/* ---------- 方法網格 ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 25px 0 30px;
}

.method {
  padding: 22px 24px;
  background: var(--paper-warm);
  border-left: 4px solid var(--accent-deep);
}

.method h5 {
  font-family: var(--serif-display);
  font-size: 18px;
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.method p {
  font-size: 15px;
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
}

/* ---------- 角色卡片 ---------- */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0 40px;
}

.role-card {
  background: var(--paper-warm);
  border: 2px solid var(--accent);
  padding: 35px 32px;
  position: relative;
}

.role-card header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.role-card header span {
  font-family: var(--serif-display);
  font-size: 36px;
  color: var(--accent);
  font-weight: 500;
  font-style: italic;
  display: block;
  margin-bottom: 4px;
}

.role-card h3 {
  font-family: var(--serif-display);
  font-size: 24px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.role-card p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 14px;
}

.role-card p:last-child { margin-bottom: 0; }

/* ---------- 期許清單 ---------- */
.expect-list {
  margin: 30px 0 40px;
}

.expect-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}

.expect-item:first-child {
  border-top: 1.5px solid var(--ink-soft);
}

.expect-item:last-child {
  border-bottom: 1.5px solid var(--ink-soft);
}

.expect-item h5 {
  font-family: var(--serif-display);
  font-size: 21px;
  color: var(--accent-deep);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.expect-item p {
  margin: 0;
  font-size: 17px;
  color: var(--ink);
}

/* ---------- 結語 ---------- */
.closing {
  font-size: 16.5px;
  line-height: 2;
  margin-top: 40px;
  padding: 30px 0 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--serif-body);
}

/* ============================================
   ★ 章節導航 page-nav ★（上一章／下一章）
   ============================================ */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 80px;
  margin-bottom: 30px;
  padding-top: 40px;
  border-top: 2px solid var(--ink-soft);
}

.page-nav-link {
  display: block;
  padding: 22px 26px;
  background: var(--paper-warm);
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.page-nav-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--ink-soft);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 0;
}

.page-nav-link.next::before { transform: translateX(100%); }

.page-nav-link:hover::before { transform: translateX(0); }

.page-nav-link > * { position: relative; z-index: 1; }

.page-nav-link.next { text-align: right; }

.page-nav-link span {
  display: block;
  font-family: var(--serif-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.page-nav-link:hover span { color: var(--paper-warm); }

.page-nav-link strong {
  display: block;
  font-family: var(--serif-display);
  font-size: 19px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.page-nav-link:hover strong { color: var(--paper); }

/* ---------- 頁尾 ---------- */
.colophon {
  margin-top: 80px;
  padding: 60px 0 50px;
  border-top: 2px solid var(--accent-deep);
  text-align: center;
  background: var(--ink-soft);
}

.colophon-mark {
  font-family: var(--serif-display);
  font-size: 18px;
  letter-spacing: 0.6em;
  color: var(--paper-warm);
  margin-bottom: 24px;
  font-weight: 600;
}

.colophon-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-family: var(--serif-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(232, 220, 200, 0.7);
}

/* ============================================
   響應式設計 — 平板 / 手機
   ============================================ */

@media (max-width: 880px) {
  body { font-size: 17px; }

  .container { padding: 0 24px; }

  .nav-inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav-brand { font-size: 14px; }

  .nav-links {
    justify-content: center;
    gap: 2px;
  }

  .nav-links a {
    font-size: 12px;
    padding: 5px 10px;
    letter-spacing: 0.1em;
  }

  .masthead { padding: 40px 24px 36px; }

  .masthead-top {
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
  }

  .intro-meta {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .intro-meta > div {
    border-right: none;
    border-bottom: 1px solid var(--rule-soft);
    padding: 16px 0;
  }
  .intro-meta > div:last-child { border-bottom: none; }

  .toc-item {
    grid-template-columns: 60px 1fr;
    gap: 16px;
    padding: 20px 12px;
  }

  .toc-page {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 8px;
  }

  .toc-num { font-size: 36px; }
  .toc-info h3 { font-size: 22px; }
  .toc-info p { font-size: 13px; }

  .two-column,
  .two-column.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .two-column.reverse .col-figure { order: -1; }

  .info-row,
  .work-row,
  .expect-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .info-row span,
  .work-row h5 { margin-bottom: 4px; }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .flow-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    font-size: 18px;
    padding: 2px 0;
  }

  .method-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .feature-project {
    padding: 40px 24px 30px;
  }

  .pullquote,
  .pullquote.big {
    font-size: 20px;
    padding: 25px 20px;
  }

  .drop { font-size: 60px; }

  .page-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-nav-link.next { text-align: left; }
}

@media (max-width: 540px) {
  .title-line { font-size: 48px; letter-spacing: 0.1em; }
  .title-sub { font-size: 16px; }
  .ch-title { font-size: 32px; }
  .section-title { font-size: 22px; }
  .toc-title { font-size: 38px; letter-spacing: 0.2em; }

  .masthead-bottom {
    font-size: 11px;
    line-height: 2;
  }

  .colophon-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================
   列印樣式
   ============================================ */
@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .site-nav, .page-nav { display: none; }
  .chapter { page-break-inside: avoid; }
  .feature-project, .pullquote { page-break-inside: avoid; }
}