@charset "UTF-8";
/* =========================================================================
   小森洗研所 ・ 清洗小百科 Articles Design System
   File: assets/css/articles-redesign.css
   Author: UI Director, 2026-05
   Depends on: assets/css/style.css （沿用 --washi / --sumi / --bamboo 等 tokens）

   設計語言
   --------
   日式 brutalism + 老舖菜單。重點：留白、細線、字體本身的美。
   - 標題用 Shippori Mincho（明朝體），內文用 Noto Sans TC
   - 不用陰影漂浮 / 漸層按鈕 / Bootstrap 色塊 callout
   - 用「細線分隔 + 大號漢數字 + ja 直書側標 + 印章日期」當裝飾
   - 配色僅靠 washi/sumi/bamboo/shu/gold，色塊只用於最重要的一處強調

   命名規約
   --------
   所有 class 以 `.a-` 為前綴，避免與 style.css 的 .art- / .kb- 衝突。
   下一輪文章 designer 只需套用本表的 class，不需要再寫 per-page <style>。
   ========================================================================= */


/* =========================================================================
   1 ・ TOKENS — 沿用 style.css；僅補幾個 articles 專用 token
   ========================================================================= */
:root {
  /* 內文閱讀寬度（中文最舒適 32-38 字元） */
  --a-measure: 680px;
  --a-measure-wide: 880px;

  /* Article spacing scale（在 style.css 既有 --space-* 之外，用語意化命名） */
  --a-gap-xs: 8px;
  --a-gap-sm: 16px;
  --a-gap-md: 24px;
  --a-gap-lg: 40px;
  --a-gap-xl: 64px;
  --a-gap-2xl: 96px;
  --a-gap-3xl: 128px;

  /* 細線系統 — 日式設計的骨架 */
  --a-rule: 1px solid rgba(31, 29, 26, 0.18);
  --a-rule-soft: 1px solid rgba(31, 29, 26, 0.10);
  --a-rule-strong: 1.5px solid rgba(31, 29, 26, 0.55);
  --a-rule-ink: 1px solid var(--sumi);

  /* Articles typography scale（rem，最佳閱讀） */
  --a-fs-display: clamp(2.2rem, 4.5vw, 3.4rem); /* hub 大標 */
  --a-fs-h1: clamp(1.9rem, 3.2vw, 2.6rem);      /* 文章標題 */
  --a-fs-h2: clamp(1.4rem, 2.2vw, 1.75rem);     /* 章節標題 */
  --a-fs-h3: 1.18rem;
  --a-fs-lead: 1.05rem;
  --a-fs-body: 1rem;
  --a-fs-caption: 0.82rem;
  --a-fs-meta: 0.72rem;

  /* 章節編號的裝飾字級 */
  --a-fs-numeral: clamp(3.5rem, 7vw, 5.5rem);

  /* 字距 */
  --a-track-ja: 0.22em;     /* 全大寫英文 / 假名小標 */
  --a-track-tight: 0.02em;  /* 漢字標題 */
  --a-track-meta: 0.14em;   /* meta 小字 */
}


/* =========================================================================
   2 ・ ARTICLE WRAPPER — 重設 article / main 的閱讀容器
   ========================================================================= */
main#main { background: var(--washi); }

/* 段落與標題在 article 內的基本節奏 */
article p,
.a-section p {
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: 2.0;                 /* 中文 1.9-2.0 最舒適 */
  letter-spacing: 0.015em;
  color: var(--sumi-soft);
  margin: 0 0 1.4em;
}

article p strong,
.a-section p strong {
  color: var(--sumi);
  font-weight: 600;
}

/* 內文連結：底線是唯一裝飾 */
article a:not(.a-cta):not(.kb-card):not(.btn),
.a-section a:not(.a-cta):not(.btn) {
  color: var(--sumi);
  text-decoration: underline;
  text-decoration-color: rgba(74, 107, 77, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color .3s var(--ease);
}
article a:hover:not(.a-cta):not(.kb-card):not(.btn) {
  text-decoration-color: var(--bamboo);
}


/* =========================================================================
   3 ・ HERO — 文章 / hub 共用 hero block
   ─────────────────────────────────────────────────────────────────────────
   結構：
     <section class="a-hero">
       <div class="container">
         <div class="a-hero-rail">立 ja 縱書側標（可選）</div>
         <nav class="a-breadcrumb">…</nav>
         <p class="a-hero-eyebrow">SECTION ・ 中文小標</p>
         <h1 class="a-hero-title">主標</h1>
         <p class="a-hero-lead">副標／引文</p>
         <div class="a-hero-meta">2026.05.12 ・ 編號 #001 ・ 約 6 分鐘</div>
       </div>
     </section>
   ========================================================================= */
.a-hero {
  position: relative;
  padding: clamp(72px, 9vw, 112px) 0 clamp(40px, 5vw, 64px);
  background: var(--washi);
  border-bottom: var(--a-rule-soft);
  overflow: hidden;
}

/* hero 頂部的細線壓邊（仍保留，但只用於非 asym hero） */
.a-hero:not(.a-hero--asym)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(52px, 6vw, 80px);
  width: 1px;
  height: clamp(20px, 3vw, 32px);
  background: var(--sumi);
  opacity: 0.4;
  transform: translateX(-50%);
}

.a-hero .container {
  position: relative;
  max-width: 1100px;
  text-align: center;
}

/* ── Asymmetric hub hero ── */
.a-hero--asym .container {
  max-width: 1100px;
  text-align: left;
}

/* hero grid：桌機兩欄不對稱、手機單欄 stack */
.a-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--a-gap-md);
  position: relative;
}
@media (min-width: 840px) {
  .a-hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: stretch;
  }
}

/* 跨整個 container 的頂部裝飾線（取代原本置中的短直線） */
.a-hero--asym .a-hero-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 1px;
  background: rgba(31, 29, 26, 0.16);
}

/* 主欄 */
.a-hero-main {
  min-width: 0;
}

/* 右側欄：上方縱書 + 下方右下角 meta */
.a-hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--a-gap-md);
  min-height: 100%;
  padding-top: 6px;
}

/* 縱書側標（桌機才出現，避免手機壓擠） */
.a-hero-vrail {
  display: none;
}
@media (min-width: 840px) {
  .a-hero-vrail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    writing-mode: vertical-rl;
    font-family: var(--font-jp);
    color: var(--sumi);
    opacity: 0.7;
    line-height: 1;
  }
  .a-hero-vrail .a-hero-vrail-ja {
    font-size: 1.05rem;
    letter-spacing: 0.55em;
    font-weight: 500;
  }
  .a-hero-vrail .a-hero-vrail-en {
    font-size: 0.7rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    opacity: 0.7;
    padding-top: 14px;
    border-top: 1px solid currentColor;
  }
}

.a-breadcrumb {
  font-family: var(--font-sans);
  font-size: var(--a-fs-meta);
  letter-spacing: var(--a-track-meta);
  color: var(--sumi-soft);
  margin: 0 0 var(--a-gap-md);
  opacity: 0.75;
}
.a-breadcrumb a {
  color: var(--sumi-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.a-breadcrumb a:hover { border-bottom-color: var(--sumi-soft); }
.a-breadcrumb .sep {
  display: inline-block;
  margin: 0 10px;
  opacity: 0.5;
}

.a-hero-eyebrow {
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  font-weight: 500;
  letter-spacing: var(--a-track-ja);
  color: var(--bamboo-deep);
  text-transform: uppercase;
  margin: 0 0 var(--a-gap-sm);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.a-hero-eyebrow::before,
.a-hero-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.a-hero-title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: var(--a-fs-display);
  line-height: 1.2;
  letter-spacing: var(--a-track-tight);
  color: var(--sumi);
  margin: 0 0 var(--a-gap-sm);
}

/* hero 主標小一級的子集（文章頁用） */
.a-hero--article .a-hero-title {
  font-size: var(--a-fs-h1);
  line-height: 1.4;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.a-hero-lead {
  font-family: var(--font-sans);
  font-size: var(--a-fs-lead);
  line-height: 1.9;
  color: var(--sumi-soft);
  max-width: var(--a-measure);
  margin: 0 auto var(--a-gap-md);
}

/* asym hero 主欄：所有內容左對齊，覆寫置中 */
.a-hero--asym .a-hero-main .a-hero-title,
.a-hero--asym .a-hero-main .a-hero-lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.a-hero--asym .a-hero-main .a-hero-eyebrow {
  margin-left: 0;
}
.a-hero--asym .a-hero-main .a-hero-eyebrow::before {
  display: none;
}
.a-hero--asym .a-hero-main .a-hero-eyebrow::after {
  width: 48px;
}
.a-hero--asym .a-hero-main .a-hero-lead {
  max-width: none;
  margin-bottom: 0;
}
.a-hero--asym .a-hero-main .a-hero-title {
  margin-bottom: var(--a-gap-md);
}

/* hero 印章式 meta */
.a-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  letter-spacing: var(--a-track-meta);
  color: var(--sumi);
  opacity: 0.7;
}

/* asym hero 的右下角 meta（取代原本置中） */
.a-hero-meta--corner {
  text-align: right;
  align-self: flex-end;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  gap: 10px;
  font-size: calc(var(--a-fs-meta) - 0.02rem);
}
@media (max-width: 839px) {
  .a-hero-meta--corner {
    justify-content: flex-start;
    text-align: left;
    margin-top: var(--a-gap-md);
  }
}
.a-hero-meta .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--sumi);
  border-radius: 50%;
  opacity: 0.6;
}
.a-hero-meta .stamp {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--shu);
  color: var(--shu);
  font-family: var(--font-jp);
  letter-spacing: 0.18em;
  border-radius: 2px;
}


/* =========================================================================
   4 ・ SECTION TITLE — 章節標題三層結構
   ─────────────────────────────────────────────────────────────────────────
   <header class="a-section-head">
     <span class="a-section-num">01</span>
     <span class="a-section-eyebrow">SOURCE ・ 蒸發器</span>
     <h2 class="a-section-title">污染源 1｜蒸發器：微生物的培養皿</h2>
   </header>
   ========================================================================= */
.a-section {
  padding: var(--a-gap-xl) 0;
  border-bottom: var(--a-rule-soft);
}
.a-section:last-of-type { border-bottom: none; }

/* 替換版面（米色） */
.a-section--alt { background: var(--washi-deep); }

.a-section .container {
  max-width: 880px;
}

.a-section-head {
  position: relative;
  margin: 0 0 var(--a-gap-md);
  padding-top: var(--a-gap-sm);
  border-top: var(--a-rule-ink);
}

/* 大號漢數字 / 阿拉伯數字裝飾 */
.a-section-num {
  display: block;
  position: absolute;
  top: -0.15em;
  right: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: var(--a-fs-numeral);
  line-height: 1;
  color: var(--sumi);
  opacity: 0.10;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.a-section-eyebrow {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  font-weight: 500;
  letter-spacing: var(--a-track-ja);
  color: var(--bamboo-deep);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.a-section-title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: var(--a-fs-h2);
  line-height: 1.5;
  letter-spacing: var(--a-track-tight);
  color: var(--sumi);
  margin: 0;
  max-width: 28ch;
}


/* =========================================================================
   5 ・ TL;DR — 「要點」前言區塊（書籍前言風格）
   ─────────────────────────────────────────────────────────────────────────
   <aside class="a-tldr">
     <p class="a-tldr-label">要 點</p>
     <ul class="a-tldr-list">
       <li>…</li>
     </ul>
   </aside>
   ========================================================================= */
.a-tldr {
  position: relative;
  max-width: var(--a-measure);
  margin: var(--a-gap-lg) auto 0;
  padding: 28px 0 24px 36px;
  border-left: var(--a-rule-strong);
}

.a-tldr-label {
  display: block;
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--sumi);
  margin: 0 0 4px;
  padding-left: 2px;
}
.a-tldr-label::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--sumi);
  margin-top: 14px;
  opacity: 0.6;
}

.a-tldr-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.a-tldr-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: 1.95;
  color: var(--sumi);
  border-bottom: var(--a-rule-soft);
}
.a-tldr-list li:last-child { border-bottom: none; }
.a-tldr-list li::before {
  content: "一";
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--font-jp);
  color: var(--bamboo);
  font-weight: 600;
  letter-spacing: 0;
}
.a-tldr-list li:nth-child(2)::before { content: "二"; }
.a-tldr-list li:nth-child(3)::before { content: "三"; }
.a-tldr-list li:nth-child(4)::before { content: "四"; }
.a-tldr-list li:nth-child(5)::before { content: "五"; }
.a-tldr-list li:nth-child(6)::before { content: "六"; }


/* =========================================================================
   6 ・ PROSE — 內文段落
   ─────────────────────────────────────────────────────────────────────────
   <div class="a-prose">…內文 html…</div>
   ========================================================================= */
.a-prose {
  max-width: var(--a-measure);
  margin: 0 auto;
}

.a-prose h3 {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: var(--a-fs-h3);
  line-height: 1.55;
  letter-spacing: var(--a-track-tight);
  color: var(--sumi);
  margin: var(--a-gap-lg) 0 var(--a-gap-sm);
  padding-bottom: 10px;
  border-bottom: var(--a-rule);
}

.a-prose h4 {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sumi);
  margin: var(--a-gap-md) 0 12px;
  letter-spacing: var(--a-track-tight);
}

.a-prose ul,
.a-prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.6em;
}
.a-prose li {
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: 2.0;
  color: var(--sumi-soft);
  padding: 4px 0;
}
.a-prose li::marker { color: var(--bamboo); }


/* =========================================================================
   7 ・ CALLOUT — 重點段落（pull-quote 風，無背景色）
   ─────────────────────────────────────────────────────────────────────────
   <aside class="a-callout">
     <span class="a-callout-tag">注 ・ NOTE</span>
     <p>…</p>
   </aside>
   variants: .a-callout--warn / .a-callout--tip
   ========================================================================= */
.a-callout {
  position: relative;
  max-width: var(--a-measure);
  margin: var(--a-gap-md) auto;
  padding: 6px 0 6px 28px;
  border-left: var(--a-rule-strong);
  background: transparent;
}

.a-callout-tag {
  display: block;
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  font-weight: 600;
  letter-spacing: var(--a-track-ja);
  color: var(--sumi);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.a-callout p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: 2.0;
  color: var(--sumi);
}

.a-callout--warn { border-left-color: var(--shu); }
.a-callout--warn .a-callout-tag { color: var(--shu); }

.a-callout--tip { border-left-color: var(--bamboo); }
.a-callout--tip .a-callout-tag { color: var(--bamboo-deep); }


/* =========================================================================
   8 ・ TABLE — 對照表（細線、無背景、行距大）
   ─────────────────────────────────────────────────────────────────────────
   <div class="a-table-wrap">
     <table class="a-table">
       <thead>…</thead>
       <tbody>…</tbody>
     </table>
   </div>
   ========================================================================= */
.a-table-wrap {
  max-width: var(--a-measure-wide);
  margin: var(--a-gap-md) auto var(--a-gap-lg);
  overflow-x: auto;
}

.a-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: transparent;
}

.a-table thead th {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: var(--a-fs-caption);
  letter-spacing: var(--a-track-ja);
  color: var(--sumi);
  text-align: left;
  padding: 16px 18px 14px;
  border-bottom: var(--a-rule-ink);
  text-transform: uppercase;
  vertical-align: bottom;
}

.a-table tbody td {
  padding: 18px 18px;
  line-height: 1.85;
  color: var(--sumi-soft);
  border-bottom: var(--a-rule-soft);
  vertical-align: top;
}
.a-table tbody tr:last-child td { border-bottom: var(--a-rule); }

.a-table tbody td:first-child {
  font-family: var(--font-jp);
  color: var(--sumi);
  font-weight: 500;
  white-space: nowrap;
}

.a-table td strong { color: var(--sumi); font-weight: 600; }


/* =========================================================================
   9 ・ DIVIDER — 章節間裝飾分隔
   ─────────────────────────────────────────────────────────────────────────
   <div class="a-divider" aria-hidden="true"><span>森</span></div>
   ========================================================================= */
.a-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: var(--a-measure-wide);
  margin: var(--a-gap-lg) auto;
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--sumi);
  opacity: 0.55;
}
.a-divider::before,
.a-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.a-divider span {
  letter-spacing: 0.5em;
  padding-left: 0.5em;   /* 抵消 letter-spacing 視覺偏移 */
}


/* =========================================================================
   10 ・ INDEX (HUB) — 目錄章節區 / 文章卡片
   ─────────────────────────────────────────────────────────────────────────
   結構（hub 用）：
     <section class="a-index">
       <div class="container">
         <header class="a-chapter-head">
           <span class="a-chapter-num">章 第一</span>
           <span class="a-chapter-eyebrow">AIR CONDITIONER</span>
           <h2 class="a-chapter-title">冷氣清洗</h2>
           <p class="a-chapter-desc">…</p>
         </header>
         <ol class="a-toc">
           <li class="a-toc-item">
             <a href="...">
               <span class="a-toc-no">001</span>
               <div class="a-toc-body">
                 <h3 class="a-toc-title">…</h3>
                 <p class="a-toc-desc">…</p>
               </div>
               <span class="a-toc-arrow">→</span>
             </a>
           </li>
         </ol>
       </div>
     </section>
   ========================================================================= */
.a-index {
  padding: var(--a-gap-xl) 0;
  background: var(--washi);
}
.a-index--alt {
  background: var(--washi-deep);
  padding-top: var(--a-gap-lg);
}
.a-index .container { max-width: 1040px; }

/* Hub: featured row（最上方精選 3 篇） */
.a-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--a-rule-ink);
  border-bottom: var(--a-rule-ink);
  margin: 0 auto;
  max-width: 1040px;
}
.a-featured-item {
  position: relative;
  display: block;
  padding: 36px 28px 32px;
  text-decoration: none;
  color: inherit;
  border-right: var(--a-rule-soft);
  transition: background-color .35s var(--ease);
}
.a-featured-item:last-child { border-right: none; }
.a-featured-item:hover { background: rgba(31, 29, 26, 0.025); }
.a-featured-item:hover .a-featured-title { color: var(--bamboo-deep); }
.a-featured-item:hover .a-featured-arrow { transform: translateX(4px); }

.a-featured-no {
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  letter-spacing: var(--a-track-ja);
  color: var(--shu);
  display: block;
  margin-bottom: 18px;
}
.a-featured-title {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: var(--a-track-tight);
  color: var(--sumi);
  margin: 0 0 14px;
  font-weight: 600;
  transition: color .35s var(--ease);
  min-height: 3.4em;
}
.a-featured-desc {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--sumi-soft);
  margin: 0 0 22px;
  min-height: 5.5em;
}
.a-featured-arrow {
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--bamboo);
  transition: transform .35s var(--ease);
}

@media (max-width: 768px) {
  .a-featured { grid-template-columns: 1fr; }
  .a-featured-item {
    border-right: none;
    border-bottom: var(--a-rule-soft);
  }
  .a-featured-item:last-child { border-bottom: none; }
  .a-featured-title { min-height: 0; }
  .a-featured-desc { min-height: 0; }
}

/* Hub: chapter（分區） */
.a-chapter {
  padding: var(--a-gap-lg) 0 var(--a-gap-xl);
  border-top: var(--a-rule-ink);
}
.a-chapter:first-of-type { border-top: none; padding-top: 0; }

.a-chapter-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 var(--a-gap-md);
  max-width: 720px;
}
/* 章節 head 含導言時：quote 在右側跨「title + desc」兩列垂直置中對齊 */
.a-chapter-head:has(.a-chapter-quote) {
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "num    num"
    "eye    eye"
    "title  quote"
    "desc   quote";
  column-gap: 32px;
  align-items: start;
  max-width: none;
}
.a-chapter-head:has(.a-chapter-quote) > .a-chapter-num     { grid-area: num; }
.a-chapter-head:has(.a-chapter-quote) > .a-chapter-eyebrow { grid-area: eye; }
.a-chapter-head:has(.a-chapter-quote) > .a-chapter-title   { grid-area: title; }
.a-chapter-head:has(.a-chapter-quote) > .a-chapter-desc    { grid-area: desc; }
.a-chapter-head:has(.a-chapter-quote) > .a-chapter-quote   {
  grid-area: quote;
  align-self: center;
  justify-self: end;
  margin: 0;
  max-width: 36ch;
}
@media (max-width: 768px) {
  .a-chapter-head:has(.a-chapter-quote) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "num"
      "eye"
      "title"
      "desc"
      "quote";
    column-gap: 0;
    align-items: start;
  }
  .a-chapter-head:has(.a-chapter-quote) > .a-chapter-quote { margin: 14px 0 4px; justify-self: start; }
}
.a-chapter-num {
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  letter-spacing: 0.4em;
  color: var(--shu);
  font-weight: 500;
}
.a-chapter-eyebrow {
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  letter-spacing: var(--a-track-ja);
  color: var(--sumi);
  text-transform: uppercase;
  opacity: 0.55;
}
.a-chapter-title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: var(--a-track-tight);
  color: var(--sumi);
  margin: 6px 0 12px;
  line-height: 1.3;
}
.a-chapter-desc {
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: 1.95;
  color: var(--sumi-soft);
  margin: 0;
  max-width: 56ch;
}

/* ── 章節導言（職人語錄／小詩） ──
   出現在 chapter title 之後、a-toc 之前
   左側細線縮排，mincho 字體，營造引言感 */
.a-chapter-quote {
  position: relative;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--sumi-soft);
  margin: 14px 0 4px;
  padding: 4px 0 4px 18px;
  border-left: 1px solid var(--shu);
  max-width: 32ch;
  font-style: normal;
}
.a-chapter-quote::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--shu);
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .a-chapter-quote {
    font-size: 0.95rem;
    padding-left: 14px;
  }
  .a-chapter-quote::before {
    width: 12px;
    margin-right: 8px;
  }
}

/* TOC：書本目錄式列表 */
.a-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--a-rule);
}
.a-toc-item { border-bottom: var(--a-rule); }

/* ── Featured 首篇樣式 ──
   每章第一篇放大、加重 padding、底線加粗、加「首篇 ・ FEATURED」小標籤
   建立「印章 → 標題 → 導言 → featured → 一般列表」的視覺節奏 */
.a-toc-item--featured {
  border-bottom: 1.5px solid rgba(31, 29, 26, 0.32);
  position: relative;
}
.a-toc-item--featured > a {
  padding: 38px 8px 36px;
}
.a-toc-item--featured .a-toc-no {
  color: var(--shu);
  opacity: 0.85;
  font-weight: 500;
}
.a-toc-item--featured .a-toc-title {
  font-size: 1.32rem;
  line-height: 1.5;
  font-weight: 600;
}
.a-toc-item--featured .a-toc-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 2px;
}
.a-toc-item--featured .a-toc-arrow {
  color: var(--shu);
  opacity: 0.85;
  font-size: 1.18rem;
}
/* 「首篇」小標籤 */
.a-toc-item--featured .a-toc-body::before {
  content: "首篇 ・ FEATURED";
  display: inline-block;
  font-family: var(--font-jp);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--shu);
  border: 1px solid var(--shu);
  padding: 3px 9px 2px;
  border-radius: 2px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .a-toc-item--featured > a {
    padding: 28px 4px 26px;
  }
  .a-toc-item--featured .a-toc-title {
    font-size: 1.12rem;
  }
  .a-toc-item--featured .a-toc-body::before {
    font-size: 0.62rem;
    padding: 2px 7px 1px;
    margin-bottom: 8px;
  }
}
.a-toc-item a {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr 32px;
  align-items: baseline;
  gap: 24px;
  padding: 28px 8px;
  text-decoration: none;
  color: inherit;
  transition: padding-left .35s var(--ease), background-color .35s var(--ease);
}
.a-toc-item a:hover {
  padding-left: 24px;
  background: rgba(31, 29, 26, 0.02);
}
.a-toc-item a:hover .a-toc-title { color: var(--bamboo-deep); }
.a-toc-item a:hover .a-toc-arrow { transform: translateX(6px); color: var(--bamboo); }
.a-toc-item a:focus-visible {
  outline: 1px solid var(--bamboo);
  outline-offset: -1px;
}

.a-toc-no {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  letter-spacing: var(--a-track-meta);
  color: var(--sumi);
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}

/* ── TOC 篇章小圖（inline SVG，線條風格） ──
   位置：a-toc-no 與 a-toc-body 之間，垂直置中對齊
   尺寸：桌機 48px，手機 32px
   配色：預設 sumi-soft 偏淡；hover 時跟著 toc-item 變朱色
   注意：含 .a-toc-icon 的 a 會改用 4 欄 grid */
.a-toc-item a:has(> .a-toc-icon) {
  grid-template-columns: 88px 48px 1fr 32px;
}
.a-toc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  align-self: center;
  color: var(--sumi-soft);
  opacity: 0.7;
  transition: color .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
.a-toc-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.a-toc-item a:hover .a-toc-icon {
  color: var(--shu);
  opacity: 1;
  transform: translateX(2px);
}

/* ── 情境插畫變體 ──
   .a-toc-illu：取代小 icon 為情境式線條插畫（人物 + 冷氣 + 氣流）
   - 桌機尺寸放大至 ~200px，4:3 比例
   - 不套用預設的 sumi-soft 染色（SVG 內 stroke 已明確指定 #3a3833 / 朱色）
   - hover 不要 translateX、不要 color 變化（線條本身已含色）
   - 手機 ≤640px 隱藏（行動裝置不顯示，避免擠壓標題） */
.a-toc-item a:has(> .a-toc-illu) {
  grid-template-columns: 64px 240px 1fr 32px;
  gap: 20px;
  align-items: center;
}
/* 偶數列：圖片移到右側（一左一右交錯排版） */
.a-toc-item:nth-child(even) a:has(> .a-toc-illu) {
  grid-template-columns: 64px 1fr 240px 32px;
}
.a-toc-item:nth-child(even) a:has(> .a-toc-illu) > *            { grid-row: 1; }
.a-toc-item:nth-child(even) a:has(> .a-toc-illu) > .a-toc-no    { grid-column: 1; }
.a-toc-item:nth-child(even) a:has(> .a-toc-illu) > .a-toc-body  { grid-column: 2; }
.a-toc-item:nth-child(even) a:has(> .a-toc-illu) > .a-toc-illu  { grid-column: 3; }
.a-toc-item:nth-child(even) a:has(> .a-toc-illu) > .a-toc-arrow { grid-column: 4; }
.a-toc-illu {
  width: 240px;
  height: 135px; /* 16:9 ratio (240 × 135) */
  opacity: 1;
  color: inherit;
  transition: opacity .35s var(--ease);
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  isolation: isolate;
}
.a-toc-illu img,
.a-toc-illu svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%; /* 偏上構圖：人頭完整露出，避免被裁切 */
}
.a-toc-illu::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 14px 4px var(--washi);
  pointer-events: none;
  z-index: 1;
}
.a-toc-item a:hover .a-toc-illu {
  color: inherit;
  opacity: 0.92;
  transform: none;
}
.a-toc-item a:hover .a-toc-illu img {
  transform: scale(1.02);
}
.a-toc-illu img {
  transition: transform .6s var(--ease);
}

@media (max-width: 640px) {
  /* 手機 grid：上方一整列縮圖，下方 no / body / arrow */
  .a-toc-item a,
  .a-toc-item a:has(> .a-toc-icon),
  .a-toc-item a:has(> .a-toc-illu),
  .a-toc-item:nth-child(even) a:has(> .a-toc-illu) {
    grid-template-columns: 48px 1fr 22px !important;
    grid-template-rows: auto auto !important;
    gap: 8px 12px !important;
    padding: 16px 4px !important;
    align-items: center !important;
  }
  /* 縮圖橫跨上排 3 欄 */
  .a-toc-item a > .a-toc-illu {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 150px !important;
    border-radius: 8px !important;
  }
  /* icon 版本仍隱藏（icon 只是裝飾性） */
  .a-toc-icon { display: none !important; }
  /* 下排：no / body / arrow */
  .a-toc-item a > .a-toc-no    { grid-column: 1 !important; grid-row: 2 !important; }
  .a-toc-item a > .a-toc-body  { grid-column: 2 !important; grid-row: 2 !important; }
  .a-toc-item a > .a-toc-arrow { grid-column: 3 !important; grid-row: 2 !important; }
  /* 沒有 illu 的列只有一排（無 row 1） */
  .a-toc-item a:not(:has(> .a-toc-illu)) {
    grid-template-rows: auto !important;
  }
  .a-toc-item a:not(:has(> .a-toc-illu)) > .a-toc-no,
  .a-toc-item a:not(:has(> .a-toc-illu)) > .a-toc-body,
  .a-toc-item a:not(:has(> .a-toc-illu)) > .a-toc-arrow {
    grid-row: 1 !important;
  }
  /* 字級縮 */
  .a-toc-title { font-size: 1.05rem; }
  .a-toc-desc { font-size: 0.85rem; line-height: 1.7; }
  .a-toc-no { font-size: 0.78rem; }
}

.a-toc-body { min-width: 0; }
.a-toc-title {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.5;
  letter-spacing: var(--a-track-tight);
  color: var(--sumi);
  margin: 0 0 6px;
  transition: color .35s var(--ease);
}
.a-toc-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--sumi-soft);
  margin: 0;
}

.a-toc-arrow {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  color: var(--sumi);
  opacity: 0.5;
  transition: transform .35s var(--ease), color .35s var(--ease);
  justify-self: end;
}

@media (max-width: 768px) {
  .a-toc-item a {
    grid-template-columns: 56px 1fr 24px;
    gap: 14px;
    padding: 22px 4px;
  }
  .a-toc-item a:has(> .a-toc-icon) {
    grid-template-columns: 56px 32px 1fr 24px;
    gap: 12px;
  }
  .a-toc-icon {
    width: 32px;
    height: 32px;
  }
  .a-toc-item a:hover { padding-left: 12px; }
  .a-toc-no { font-size: 0.82rem; }
  .a-toc-title { font-size: 1.02rem; }
}


/* =========================================================================
   11 ・ CTA — 與首頁 .cta-band 一致：深綠全幅帶、文字左、按鈕右
   HTML 結構不需改動，用 grid-column 直接控制欄位
   ========================================================================= */
.a-cta-block {
  /* 突破 container 撐滿全寬 */
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: var(--a-gap-xl);
  padding: 72px max(24px, calc(50vw - 560px));
  background: var(--bamboo-deep);
  /* grid：eyebrow row1col1 / headline row2col1 / actions col2 跨兩列 */
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 48px;
  text-align: left;
  border: none;
  position: relative;
  overflow: hidden;
}
.a-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 78% 50%, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.a-cta-eyebrow {
  grid-column: 1;
  grid-row: 1;
  display: block;
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  letter-spacing: var(--a-track-ja);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin: 0;
  position: relative;
  z-index: 1;
}
.a-cta-headline,
.a-cta-block .a-cta-headline {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.6;
  letter-spacing: var(--a-track-tight);
  color: #fff !important;
  margin: 0;
  position: relative;
  z-index: 1;
}
.a-cta-actions {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* 次要按鈕在深色背景上改為白色描框 */
.a-cta-block .a-cta:not(.a-cta--primary) {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  background: transparent;
}
.a-cta-block .a-cta:not(.a-cta--primary):hover {
  background: #fff;
  color: var(--bamboo-deep);
  border-color: #fff;
}

/* 含 CTA block 的 section 移除底部 padding，讓深綠帶直接接 site-footer */
.a-section:has(.a-cta-block) {
  padding-bottom: 0;
}

/* 手機：改回單欄置中 */
@media (max-width: 680px) {
  .a-cta-block {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    text-align: center;
    padding: 48px 24px;
    gap: 16px;
  }
  .a-cta-eyebrow { grid-column: 1; grid-row: auto; }
  .a-cta-headline { grid-column: 1; grid-row: auto; }
  .a-cta-actions  { grid-column: 1; grid-row: auto; justify-content: center; }
}

/* 按鈕樣式與首頁 .btn 一致：圓角 pill、bamboo 底色、hover 轉朱紅 */
.a-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid var(--sumi);
  background: transparent;
  color: var(--sumi);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.a-cta:hover {
  background: var(--sumi);
  color: var(--washi);
  border-color: var(--sumi);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(31, 29, 26, 0.14);
}
.a-cta:hover .arrow { transform: translateX(4px); }
.a-cta:focus-visible {
  outline: 2px solid var(--bamboo);
  outline-offset: 3px;
}
.a-cta .arrow {
  display: inline-block;
  transition: transform .3s var(--ease);
}

/* Primary：同首頁 cta-band .btn-primary（朱紅底） */
.a-cta--primary {
  background: var(--shu);
  color: #fff;
  border-color: var(--shu);
  box-shadow: 0 6px 16px rgba(192, 57, 57, 0.18);
}
.a-cta--primary:hover {
  background: #a83030;
  border-color: #a83030;
  color: #fff;
  box-shadow: 0 10px 22px rgba(192, 57, 57, 0.28);
}

.a-cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}


/* =========================================================================
   12 ・ META FOOTER — 文章底部的「印章」資訊區
   ─────────────────────────────────────────────────────────────────────────
   <footer class="a-article-footer">
     <div class="a-stamp">小森 ・ 監修</div>
     <p class="a-meta-row">發行 2026.05.12 ・ 編號 #001 ・ 約 6 分鐘閱讀</p>
   </footer>
   ========================================================================= */
.a-article-footer {
  max-width: var(--a-measure);
  margin: var(--a-gap-xl) auto 0;
  padding: var(--a-gap-md) 0 0;
  border-top: var(--a-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--a-gap-md);
}
.a-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  letter-spacing: 0.3em;
  color: var(--shu);
  border: 1px solid var(--shu);
  padding: 8px 14px;
  border-radius: 2px;
  text-transform: uppercase;
}
.a-meta-row {
  font-family: var(--font-jp);
  font-size: var(--a-fs-meta);
  letter-spacing: var(--a-track-meta);
  color: var(--sumi-soft);
  margin: 0;
  opacity: 0.75;
}


/* =========================================================================
   13 ・ MISC — pull quote、定義列表、流程小數字
   ========================================================================= */
.a-pullquote {
  max-width: var(--a-measure);
  margin: var(--a-gap-lg) auto;
  padding: 0;
  font-family: var(--font-jp);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: var(--a-track-tight);
  color: var(--sumi);
  text-align: center;
  position: relative;
}
.a-pullquote::before,
.a-pullquote::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--sumi);
  opacity: 0.4;
  margin: 18px auto;
}

.a-deflist {
  max-width: var(--a-measure);
  margin: var(--a-gap-md) auto;
}
.a-deflist dt {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--sumi);
  margin: 16px 0 6px;
  letter-spacing: var(--a-track-tight);
  border-bottom: var(--a-rule-soft);
  padding-bottom: 6px;
}
.a-deflist dd {
  font-family: var(--font-sans);
  font-size: var(--a-fs-body);
  line-height: 1.95;
  color: var(--sumi-soft);
  margin: 0 0 14px;
}


/* =========================================================================
   14 ・ HUB SPECIFIC — index 頁專用
   ========================================================================= */
/* 上方 hero 的副標 + ja 漢數字裝飾 */
.a-hub-numerals {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  margin: 0 0 var(--a-gap-lg);
  font-family: var(--font-jp);
  color: var(--sumi);
}
.a-hub-numerals span {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  letter-spacing: 0.25em;
  font-weight: 400;
  opacity: 0.3;
}
/* 從漢數字右邊延伸出去的細線，把視覺帶到容器邊緣 */
.a-hub-numerals .a-hub-numerals-rule {
  flex: 1;
  height: 1px;
  background: rgba(31, 29, 26, 0.22);
  margin-left: 14px;
  opacity: 1;
  letter-spacing: 0;
  min-width: 60px;
}

.a-hub-intro {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--a-fs-lead);
  line-height: 2.0;
  color: var(--sumi-soft);
}


/* =========================================================================
   15 ・ OVERRIDES — 蓋掉 style.css 既有 .page-hero / .breadcrumb
   只在 articles 區生效（藉由父層 .a-articles-page 或 main#main 範圍）
   ========================================================================= */
body.a-articles-page .page-hero {
  display: none;
}


/* =========================================================================
   16 ・ RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .a-section { padding: var(--a-gap-xl) 0; }
  .a-index { padding: var(--a-gap-xl) 0; }
}

@media (max-width: 768px) {
  .a-hero {
    padding: clamp(96px, 18vw, 140px) 0 var(--a-gap-xl);
  }
  .a-hero-eyebrow::before,
  .a-hero-eyebrow::after { width: 18px; }

  .a-section { padding: var(--a-gap-lg) 0; }
  .a-section .container,
  .a-prose,
  .a-tldr,
  .a-callout,
  .a-article-footer,
  .a-cta-block {
    padding-left: 4px;
    padding-right: 4px;
  }
  .a-tldr { padding-left: 22px; }

  .a-section-num { font-size: clamp(2.6rem, 12vw, 3.4rem); opacity: 0.08; }
  .a-pullquote { font-size: 1.18rem; }

  .a-article-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  article p,
  .a-prose li,
  .a-tldr-list li,
  .a-callout p {
    font-size: 0.96rem;
    line-height: 1.95;
  }
  .a-toc-item a { gap: 10px; }
}


/* =========================================================================
   17 ・ A11Y / PRINT
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .a-toc-item a,
  .a-featured-item,
  .a-cta,
  .a-cta .arrow,
  .a-toc-arrow,
  .a-featured-arrow {
    transition: none !important;
  }
  .a-toc-item a:hover,
  .a-featured-item:hover {
    padding-left: 8px;
    transform: none;
  }
}

@media print {
  .a-hero { padding: 24px 0; }
  .a-section { padding: 18px 0; border-bottom: 1px solid #999; }
  .a-cta, .a-cta-block { display: none; }
  .a-toc-item a { color: #000 !important; }
}
