/* ==========================================================================
   葉鈺雯 個人品牌網站 — 樣式表
   設計原則：手機優先、任何元素都不破框、內容欄寬固定可讀
   ========================================================================== */

/* --- 品牌色票 -----------------------------------------------------------
   規則：整站只用三組顏色，不再新增第四個色相。
     1. 綠（主色）— 同一色系的深淺階，從 --brand-dk 到 --bg
     2. 金（點綴）— --accent，只用於強調，不當底色大面積使用
     3. 中性（文字與線）— --ink / --ink-soft / --ink-mute / --line

   需要區分不同項目時，用「同色系的深淺」或形狀（框線樣式、粗細），
   不要再引入新色相。原標準色中的藍 #739CB7、棕 #927C6A 已停用。
   ------------------------------------------------------------------------ */
:root {
  /* 1. 綠 — 主色，由深到淺 */
  --brand-dk:    #004C3E;   /* 最深 — 頁尾、Hero 底色 */
  --brand:       #006652;   /* 深綠 — 文字連結、按鈕 */
  --brand-soft:  #6AB98B;   /* 淺綠 — 標準色綠，線條與標示 */

  /* 2. 金 — 點綴 */
  --accent:      #D9AF54;   /* 標準色 金黃 — 只用於深底文字、框線、色塊 */
  --accent-ink:  #7E5F12;   /* 深金 — 淺底上的文字專用（白底 5.94:1，達 WCAG AA） */
  --accent-50:   #FAF2E0;   /* 最淺金 — 標籤底色 */

  /* 3. 中性 — 帶一點綠味的灰，讓中性色也屬於同一家族 */
  --bg:        #F7FAF7;
  --bg-soft:   #EAF2EC;
  --card:      #FFFFFF;
  --ink:       #26332E;
  --ink-soft:  #4E5C56;
  --ink-mute:  #5E6E68;   /* 弱化文字 — 原 #656E7A 色相 214°（偏藍），改為同亮度的綠味灰 158° */
  --line:      #D8E6DC;
  --white:     #FFFFFF;
  --on-accent: #4A3A0E;   /* 金色塊上的文字 */
  --on-soft:   #10382A;   /* 淺綠塊上的文字 */
  --brand-50:  #E4F1E9;   /* 最淺綠 — 狀態標籤底 */

  /* 深綠底上的淺色階（原本散在各處寫死，收成 token 才能一起調） */
  --on-dark-1: #E6F0E9;   /* 最亮 — Hero 內文 */
  --on-dark-2: #CFE0D6;
  --on-dark-3: #A9C4B6;   /* 頁尾說明文字（深綠底 5.35:1） */

  /* --- 刻度：同一件事只用同一個數值 ---------------------------------
     字級、行高、間距、圓角、陰影各自收斂成一組階梯，
     避免出現 .87rem 與 .88rem 這種肉眼分不出、卻是兩個值的情況。 */
  --fs-xs:   .75rem;   --fs-sm:   .82rem;   --fs-base: .9rem;
  --fs-md:   1rem;     --fs-lg:   1.1rem;

  --lh-tight: 1.4;     --lh-snug: 1.6;
  --lh-normal: 1.75;   --lh-loose: 1.85;

  --sp-0: 4px;  --sp-1: 8px;  --sp-2: 12px; --sp-3: 16px;
  --sp-4: 24px; --sp-5: 32px; --sp-6: 44px;

  --lift: -4px;   /* 可點擊卡片 hover 的上浮量，全站共用 */
  --r-sm: 8px;  --r-md: 14px;   /* 999px 藥丸、50% 圓不在此列 */

  --shadow-sm: 0 1px 2px rgba(0,72,58,.06);
  --shadow-lg: 0 2px 6px rgba(0,72,58,.08), 0 16px 36px rgba(0,72,58,.15);

  --wrap:      1080px;   /* 版面最大寬 */
  --measure:   720px;    /* 內容文字區寬度（文章圖片不得超過此寬） */
  --shadow:    0 1px 2px rgba(0,72,58,.06), 0 8px 24px rgba(0,72,58,.07);

  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", sans-serif;
}

/* --- 基礎重置：所有元素都不會撐破容器 --- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  /* 關鍵：避免任何子元素造成整頁橫向捲動 */
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: var(--lh-loose);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

/* 中文長字串／英文網址都強制在框內換行 */
p, li, h1, h2, h3, h4, dd, dt, td, th, figcaption, blockquote, a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 內文連結一律有底線。
   --brand 對 --ink 只有 1.89:1、對 --ink-soft 只有 1.01:1，
   單靠顏色區分不符 WCAG 1.4.1，對中高齡讀者更是根本看不出來。 */
a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
  transition: text-decoration-color .2s ease, text-decoration-thickness .2s ease;
}
a:hover, a:focus-visible {
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

/* 本身外觀就已經是按鈕、卡片或導覽的，不需要再加底線 */
.btn, .nav-links a, .brand, .channel, .skip-link, .preview,
.post-card__thumb, .post-card h3 a, .press-list h3 a,
.hero-tags a, .tag-cloud a, .crumb a, .views a {
  text-decoration: none;
}
.post-card h3 a:hover { text-decoration: underline; }

/* 全域焦點環：鍵盤操作時看得見自己在哪。
   原本只有四個元件有自訂樣式，其餘落回瀏覽器預設，等於兩套視覺語言。
   顏色用深綠而非金色——金色在淺底只有 1.96:1，遠低於 WCAG 要求的 3:1。 */
:where(a, button, [tabindex], summary):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

h1, h2, h3, h4 {
  line-height: var(--lh-tight);
  letter-spacing: .015em;
  margin: 0 0 .6em;
  font-weight: 700;
}

/* 字級一律用 clamp()，手機不會擠爆、桌機也不會過大 */
h1 { font-size: clamp(1.65rem, 5.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem,  3.6vw, 1.75rem); }
h3 { font-size: clamp(1.08rem, 2.8vw, 1.28rem); }

/* --- 版面容器 --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.measure { max-width: var(--measure); margin-inline: auto; }

section {
  padding-block: clamp(40px, 7vw, 72px);
  /* 錨點跳轉時不被固定導覽蓋住（手機版頁首較高，所以留多一點） */
  scroll-margin-top: 104px;
}
@media (min-width: 640px) { section { scroll-margin-top: 84px; } }
section.hero { padding-block: 0; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: 1.4em;
}
.section-title .en {
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
}

/* ==========================================================================
   頁首導覽
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,250,247,.90);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 60px;
  padding-block: 8px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .06em;
  flex-shrink: 0;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: var(--sp-1) clamp(10px, 3vw, 26px);
  flex-wrap: wrap;
  min-width: 0;              /* 允許收縮，否則連結會被切掉 */
  font-size: var(--fs-base);
}
/* 窄螢幕：連結自己占滿一整行再換行，不跟品牌名擠同一列 */
@media (max-width: 899px) {
  .nav-links { flex: 1 0 100%; }
}
.nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--brand); }
/* 目前所在區塊：單頁很長，沒有這個會不知道自己捲到哪了 */
.nav-links a[aria-current] { color: var(--brand); font-weight: 700; }

/* 手機版：導覽項目多，改成單行可橫向滑動，避免頁首折成三行吃掉半個螢幕 */
@media (max-width: 639px) {
  .nav-links {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    font-size: var(--fs-base);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}

/* ==========================================================================
   HERO 區
   ========================================================================== */
/* 版面策略：圖片鋪滿背景（絕對定位），文字走正常流排版。
   如此文字有多高、HERO 就有多高，任何螢幕寬度都不會被裁掉。 */
.hero {
  position: relative;
  overflow: hidden;                 /* 圖片絕不溢出 */
  background: var(--brand-dk);
  display: flex;
  align-items: flex-end;
  min-height: min(72vh, 560px);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
}
.hero-media img {
  width: 100%;
  /* 不放大超過原圖寬度（1610px）。
     沒有這一行，超寬螢幕會把照片拉大，人物跟著變巨大。 */
  max-width: 1610px;
  height: 100%;
  object-fit: cover;
  /* 對齊上緣：左上角的誠臻健康旗幟是重點，不能被裁掉。
     多出來的高度一律從下方（桌面）裁。 */
  object-position: center top;
}
.hero-media::after {                /* 讓文字在照片上仍可閱讀 */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,45,36,.20) 0%, rgba(0,45,36,.50) 48%, rgba(0,45,36,.86) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  /* 上方留白避開授權標示 */
  padding-block: clamp(58px, 9vh, 120px) clamp(26px, 4vw, 52px);
  color: #fff;
}
/* 桌機把 HERO 拉高：cover 之下高度越高，照片被裁掉的部分越少，場景才看得完整 */
@media (min-width: 900px) { .hero { min-height: min(84vh, 780px); } }

/* 手機：照片完整呈現、完全不裁切，文字改排在圖片下方的深綠區塊。
   窄螢幕若沿用滿版裁切，人像會被放大到接近特寫——這裡改成「拉遠」的排法。 */
@media (max-width: 639px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; }
  .hero-media img { height: auto; object-fit: contain; }
  .hero-media::after { display: none; }   /* 文字不疊在圖上，不需壓暗 */
  .hero-copy {
    padding-block: 26px 32px;
    background: var(--brand-dk);
  }
  .hero-copy h1 { text-shadow: none; }
}
.hero-copy .eyebrow {
  font-size: clamp(.68rem, 2.6vw, .78rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .5em;
  font-weight: 600;
}
.hero-copy h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-copy p {
  margin: 0;
  max-width: 46ch;
  color: var(--on-dark-1);
  font-size: clamp(.95rem, 2.4vw, 1.08rem);
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: var(--sp-1);
  margin-top: 18px; padding: 0; list-style: none;
}
.hero-tags li {
  font-size: var(--fs-sm);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  backdrop-filter: blur(4px);
}
/* 圖片授權浮水印（footer 另有完整標示） */
.hero-credit {
  position: absolute;
  right: 10px; top: 10px;
  z-index: 3;
  margin: 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 2px 8px;
  border-radius: 999px;
  max-width: calc(100% - 20px);
}
.hero-credit a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   個人簡介 / 專長 / 經歷
   ========================================================================== */
.intro-grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1.35fr .95fr; }
}
.lede { font-size: clamp(1.02rem, 2.5vw, 1.14rem); color: var(--ink-soft); }
.lede strong { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   VITAL 五大健康支持方案
   五張並列的卡片，字母徽章用同色系深淺區分，不引入新色相
   ========================================================================== */
.vital-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .vital-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vital-grid { grid-template-columns: repeat(5, 1fr); } }

.vital {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px;
}
.vital__letter {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1;
}
/* 同一綠色系的深淺 + 金色點綴，不新增色相 */
.vital:nth-child(2) .vital__letter { background: var(--brand-dk); }
.vital:nth-child(3) .vital__letter { background: var(--accent); color: var(--on-accent); }
.vital:nth-child(4) .vital__letter { background: var(--brand-soft); color: var(--on-soft); }
.vital:nth-child(5) .vital__letter { background: var(--ink-mute); }

.vital h4 { margin: 0 0 .2em; font-size: var(--fs-md); line-height: var(--lh-tight); }
.vital__en {
  margin: 0 0 .9em;
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: var(--ink-mute);
  letter-spacing: .01em;
}
.vital ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--ink-soft);
}
.vital li { margin-bottom: .35em; }
.vital li:last-child { margin-bottom: 0; }

/* ==========================================================================
   採訪與媒體報導清單
   ========================================================================== */
.press-list { margin: 0; padding: 0; list-style: none; }
.press-list > li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.press-list > li:first-child { border-top: 0; padding-top: 0; }
.press__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-0) var(--sp-2);
  margin: 0 0 .4em;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.press__outlet {
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .04em;
}
.press-list h3 {
  margin: 0 0 .4em;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}
.press-list h3 a { color: var(--ink); }
.press-list h3 a:hover { color: var(--brand); }
.press-list > li > p:last-child {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink-soft);
}

/* 側欄人像：等比例縮放，不裁切 */
.portrait {
  margin: 0 0 18px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.portrait img { width: 100%; height: auto; display: block; }

.fact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 3.5vw, 28px);
  box-shadow: var(--shadow);
}
.fact-card h3 { margin-bottom: .8em; font-size: var(--fs-md); }
.fact-list { margin: 0; padding: 0; list-style: none; font-size: var(--fs-base); }
.fact-list li {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  gap: var(--sp-2);
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  line-height: var(--lh-normal);
}
.fact-list li:first-child { border-top: 0; padding-top: 0; }
.fact-list .k { color: var(--ink-mute); font-size: var(--fs-sm); }

.skill-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .skill-grid { grid-template-columns: repeat(3, 1fr); } }
.skill {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
/* 用品牌標準色輪流做左側色條 */
.skill:nth-child(3n+2) { border-left-color: var(--brand-soft); }
.skill:nth-child(3n+3) { border-left-color: var(--brand); }
.skill h3 { font-size: var(--fs-md); margin-bottom: .35em; }
/* 卡片裡先一段說明、再接標籤列時的間距 */
.skill p + .tag-cloud { margin-top: 14px; }
/* 想特別凸顯的卡片 */
.skill--feature { border-left-width: 4px; border-left-color: var(--accent); background: var(--bg-soft); }
.skill p { margin: 0; font-size: var(--fs-base); color: var(--ink-soft); line-height: var(--lh-normal); }

/* 經歷時間軸 */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before {
  content: "";
  position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 26px 4px; }
.timeline li::before {
  content: "";
  position: absolute; left: -22px; top: 9px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand);
}
.timeline .yr {
  display: inline-block;
  font-size: var(--fs-xs); letter-spacing: .08em;
  color: var(--accent-ink); font-weight: 700;
  margin-bottom: 2px;
}
.timeline .role { font-weight: 700; }
.timeline .org { color: var(--ink-soft); }
.timeline .desc { margin: 4px 0 0; font-size: var(--fs-base); color: var(--ink-soft); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-1); padding: 0; margin: 0; list-style: none; }
.tag-cloud li {
  font-size: var(--fs-sm);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.band { background: var(--bg-soft); }

/* ==========================================================================
   主張式段落（我看見的問題／立場說明）
   ========================================================================== */
.statement { max-width: var(--measure); }
.statement p {
  font-size: clamp(1.02rem, 2.5vw, 1.14rem);
  color: var(--ink-soft);
  margin: 0 0 1.15em;
}
.statement p:last-child { margin-bottom: 0; }
.statement strong { color: var(--ink); font-weight: 700; }
.statement .pull {
  font-size: clamp(1.18rem, 3.4vw, 1.55rem);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--brand-dk);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 0 0 1.15em;
}

/* 小節內的次級標題 */
.sub-head {
  margin: 2.6em 0 1em;
  padding-top: .9em;
  border-top: 1px solid var(--line);
  font-size: var(--fs-md);
}

/* 註記（專利狀態說明等） */
.note {
  max-width: var(--measure);
  margin: 16px 0 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--ink-mute);
}

/* ==========================================================================
   三個系統：判讀 → 行動 → 累積
   ========================================================================== */
.system-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .system-grid { grid-template-columns: repeat(3, 1fr); } }

.system {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-soft);
  border-radius: var(--r-md);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
}
.system:nth-child(2) { border-top-color: var(--accent); }
.system:nth-child(3) { border-top-color: var(--brand); }

.system .step {
  margin: 0 0 .7em;
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--ink-mute);
}
.system h3 { margin-bottom: .15em; font-size: var(--fs-lg); }
.system .sub {
  margin: 0 0 1em;
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  letter-spacing: .02em;
}
.system .ask {
  margin: 0 0 .7em;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--brand-dk);
}
.system .body {
  margin: 0 0 20px;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink-soft);
}

/* 專利狀態標籤 */
.status {
  margin-top: auto;
  align-self: flex-start;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: var(--lh-snug);
}
/* 三種狀態改用「同色系深淺 + 框線樣式」區分，不引入第四個色相 */
.status--granted { background: var(--brand-50); border-color: var(--brand-soft); color: var(--brand); }
.status--pending { background: var(--accent-50); border-color: var(--accent);     color: var(--accent-ink); }
.status--dev     { background: var(--bg-soft); border-style: dashed;
                   border-color: var(--brand-soft); color: var(--ink-soft); }

/* ==========================================================================
   合作立場（編號清單）
   ========================================================================== */
.stance {
  max-width: var(--measure);
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: stance;
}
.stance li {
  counter-increment: stance;
  position: relative;
  padding: 0 0 18px 52px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--ink);
  line-height: var(--lh-loose);
}
.stance li:last-child { padding-bottom: 0; }
.stance li::before {
  content: counter(stance, decimal-leading-zero);
  position: absolute;
  left: 0; top: .3em;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: var(--lh-snug);
}
.stance strong { color: var(--brand-dk); }

/* ==========================================================================
   誠臻健康入口卡
   ========================================================================== */
.org-card {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .org-card { grid-template-columns: 1.35fr .8fr; align-items: center; }
}
.org-card h3 { font-size: var(--fs-lg); margin-bottom: .45em; }
.org-card p {
  margin: 0 0 1em;
  font-size: var(--fs-base);
  color: var(--ink-soft);
}
.org-card p:last-child { margin-bottom: 0; }
.org-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ==========================================================================
   證照橫條（比 tag-cloud 更低調的並列呈現）
   ========================================================================== */
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  margin: 0; padding: 0;
  list-style: none;
  font-size: var(--fs-base);
  color: var(--ink-soft);
}
.cred-strip li { display: flex; align-items: center; gap: var(--sp-1); }
.cred-strip li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   文章卡片索引
   ========================================================================== */
.post-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  padding: 0; margin: 0; list-style: none;
}
@media (min-width: 640px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.22,1,.36,1),
              box-shadow .28s ease,
              border-color .28s ease;
  min-width: 0;                     /* grid 子項不被內容撐開 */
}
/* 滑鼠移入：輕微上浮 + 陰影加深 + 邊框轉品牌綠。
   :focus-within 讓鍵盤 Tab 到卡片內連結時也有同樣回饋 */
.post-card:hover,
.post-card:focus-within {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-soft);
}
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.post-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.post-card:hover .post-card__thumb img,
.post-card:focus-within .post-card__thumb img { transform: scale(1.045); }
.post-card:hover h3 a { color: var(--brand); }
.post-card h3 a { transition: color .2s ease; }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-xs); color: var(--ink-mute); margin-bottom: 9px;
}
.post-card__meta .sep { color: var(--ink-mute); }
.post-card h3 { font-size: var(--fs-md); margin-bottom: .45em; }
.post-card h3 a { color: var(--ink); }
.post-card p {
  margin: 0 0 16px;
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: var(--lh-normal);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--ink-mute);
  padding-top: 12px; border-top: 1px dashed var(--line);
}
.read-more { color: var(--brand); font-weight: 600; }

/* 瀏覽計數器 */
.views { display: inline-flex; align-items: center; gap: var(--sp-1); white-space: nowrap; }
.views svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .7; }
.views[data-state="loading"] .views-num { opacity: .35; }

/* ==========================================================================
   文章內頁
   ========================================================================== */
.article { padding-block: clamp(28px, 5vw, 56px); }

.article-head { margin-bottom: 26px; }
.crumb { font-size: var(--fs-sm); color: var(--ink-mute); margin: 0 0 18px; }
.article-head h1 { margin-bottom: .5em; }

.byline {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.byline .author { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 600; color: var(--ink); }
.byline .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: var(--fs-sm); font-weight: 700; flex-shrink: 0;
}
.byline .role { color: var(--ink-mute); font-weight: 400; }
.byline time { color: var(--ink-mute); }

/* 文章 HERO 圖：等比例縮放，寬度不超過內容文字區 */
.article-hero {
  margin: 26px auto 30px;
  max-width: var(--measure);
}
.article-hero img {
  width: 100%;
  height: auto;          /* 等比例，不裁切、不變形 */
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.article-hero figcaption {
  margin-top: 9px;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  line-height: var(--lh-normal);
}

/* 內文節奏：行距與段距都放寬，讓長文好讀。
   段距 1.9em 大於行距 2.05，段落之間才有明顯的呼吸空間 */
.prose { font-size: var(--fs-md); line-height: var(--lh-loose); }
.prose h2 {
  margin-top: 2.6em;
  padding-top: .6em;
  border-top: 1px solid var(--line);
  line-height: var(--lh-snug);
}
.prose h3 { margin-top: 2.2em; line-height: var(--lh-snug); }
.prose h2 + p, .prose h3 + p { margin-top: .9em; }
.prose p  { margin: 0 0 1.9em; }
.prose ul, .prose ol { margin: 0 0 1.9em; padding-left: 1.35em; }
.prose li { margin-bottom: .75em; line-height: var(--lh-loose); }
.prose strong { color: var(--brand-dk); }
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: normal;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code {
  background: var(--bg-soft);
  padding: 2px 6px; border-radius: var(--r-sm);
  font-size: .88em;
}
/* 寬內容自己橫向捲動，不讓整頁破框 */
.prose pre, .table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose pre { background: var(--bg-soft); padding: 14px 16px; border-radius: var(--r-md); }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-base); }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 1.8em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  display: block;
  font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 700; margin-bottom: .5em;
}

.article-foot {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-base);
}
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: var(--fs-base); font-weight: 600;
  border: 1px solid var(--brand);
}
.btn:hover { background: var(--brand-dk); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--bg-soft); }

/* ==========================================================================
   頁尾
   ========================================================================== */
.site-footer {
  background: var(--brand-dk);
  color: var(--on-dark-2);
  padding-block: clamp(34px, 5vw, 52px);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
}
.site-footer a { color: var(--accent); }
/* 頁尾是深綠底，深綠環會消失（1.44:1），改用金色（4.85:1） */
.site-footer :where(a, button):focus-visible { outline-color: var(--accent); }
.footer-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.1fr 1fr; } }
/* VITAL 卡片標題：巢狀在 h3 之下，用 h4 才不會打亂文件大綱 */
.vital .card-h {
  font-size: var(--fs-md);
  margin: 0 0 .4em;
}

.site-footer .footer-h {
  color: #fff;
  font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 .9em; font-weight: 600;
}
.site-footer p { margin: 0 0 .8em; }
.credit {
  font-size: var(--fs-sm);
  color: var(--on-dark-3);
  line-height: var(--lh-normal);
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--on-dark-3);
}

/* ==========================================================================
   頁面切換：淡入淡出
   --------------------------------------------------------------------------
   支援 View Transitions 的瀏覽器（Chrome / Edge / Safari 18+）由瀏覽器
   直接接管跨頁轉場；不支援的瀏覽器走 @supports 的降級方案：
   載入時淡入，點站內連結時由 motion.js 加上 .is-leaving 淡出。
   ========================================================================== */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: page-fade-out .2s ease both; }
::view-transition-new(root) { animation: page-fade-in  .32s ease both; }

@keyframes page-fade-out { to   { opacity: 0; } }
@keyframes page-fade-in  { from { opacity: 0; transform: translateY(8px); } }

/* 降級方案：沒有 View Transitions 的瀏覽器 */
@supports not (view-transition-name: none) {
  body { animation: page-fade-in .32s ease both; }
  body.is-leaving { opacity: 0; transition: opacity .18s ease; }
}

/* ==========================================================================
   捲動進場與數據動畫
   --------------------------------------------------------------------------
   由 assets/motion.js 以 IntersectionObserver 加上 .is-in，捲到才播。
   用法：
     <div class="reveal">…</div>                          區塊淡入上浮
     <span data-countup="1500" data-suffix="+">0</span>    數字跑動
     長條圖見下方 .bar-chart 範例
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }
/* 同一組內依序錯開，看起來像逐項出現 */
.reveal.is-in:nth-child(2) { transition-delay: .08s; }
.reveal.is-in:nth-child(3) { transition-delay: .16s; }
.reveal.is-in:nth-child(4) { transition-delay: .24s; }

/* --- 數字 --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
  margin: 2em 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.stat__num {
  display: block;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand);
  font-variant-numeric: tabular-nums;   /* 跑動時寬度不會抖 */
}
.stat__num .unit { font-size: .5em; font-weight: 600; margin-left: 2px; }
.stat__label { display: block; margin-top: .5em; font-size: var(--fs-sm); color: var(--ink-mute); }

/* --- 長條圖 --- */
.bar-chart { margin: 2em 0; display: grid; gap: var(--sp-3); }
.bar-chart__row { display: grid; gap: var(--sp-1); }
.bar-chart__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2);
  font-size: var(--fs-base); color: var(--ink-soft);
}
.bar-chart__value { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.bar-chart__track {
  height: 12px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.bar-chart__fill {
  height: 100%;
  width: 0;                                    /* 進場前一律 0，捲到才長 */
  border-radius: 999px;
  background: var(--brand);
  transition: width 1.1s cubic-bezier(.22,1,.36,1);
}
/* 同色系深淺輪替，不引入新色相 */
.bar-chart__row:nth-child(3n+2) .bar-chart__fill { background: var(--brand-soft); }
.bar-chart__row:nth-child(3n+3) .bar-chart__fill { background: var(--brand-dk); }
/* 想強調某一條時加 .bar-chart__row--key，用金色。
   多包一層 .bar-chart 是為了贏過上面 :nth-child 的權重 */
.bar-chart .bar-chart__row--key .bar-chart__fill { background: var(--accent); }
.bar-chart.is-in .bar-chart__fill { width: var(--pct, 0%); }

/* 關於我側欄的人像照 */
.portrait {
  margin: 0 0 clamp(16px, 2.5vw, 22px);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.portrait img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  /* 人物偏右，裁切時把重心往右移才不會切到臉 */
  object-position: 62% center;
}

/* ==========================================================================
   分頁籤：內容多的區塊改成點擊切換，不必一路往下捲
   --------------------------------------------------------------------------
   無障礙：tablist / tab / tabpanel 三種角色齊全，左右方向鍵可切換。
   沒有 JavaScript 時籤列會隱藏、所有面板依序攤平顯示，內容不會消失
   （見下方 html:not(.js) 規則；.js 由 <head> 內的同步 script 加上）。
   ========================================================================== */
/* 分頁籤做成藥丸狀按鈕：有底色、有框線、hover 會浮起來，
   一眼就看得出可以點，不會被誤認成標題文字 */
.tabs__list {
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: clamp(20px, 3vw, 28px);
}
.tabs__list::-webkit-scrollbar { display: none; }

.tabs__hint {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin: -.6em 0 1em;
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}
.tabs__hint svg { width: 15px; height: 15px; flex: none; }

.tabs__tab {
  flex: none;
  padding: 10px 20px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.22,1,.36,1),
              background .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .2s ease;
}
.tabs__tab:hover {
  color: var(--brand);
  border-color: var(--brand-soft);
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lg);
}
.tabs__tab[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}
.tabs__tab[aria-selected="true"]:hover { color: #fff; transform: none; }
.tabs__tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* 註：outline-offset 讓環畫在籤「外面」的區塊底色上，不是籤本身，
   所以這裡不需要特例，統一深綠即可（淺帶上 6.09:1）。 */

/* 手機：籤會超出畫面，右側加漸層提示還有東西可以滑 */
@media (max-width: 639px) {
  .tabs { position: relative; }
  .tabs__list { padding-right: 28px; }
  .tabs::before {
    content: "";
    position: absolute; top: 0; right: 0;
    width: 34px; height: 52px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(90deg, rgba(234,242,236,0), var(--bg-soft) 78%);
  }
}

.tabs__panel:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; border-radius: var(--r-sm); }
.tabs__panel[hidden] { display: none; }
/* 切換時淡入，避免內容硬跳出來 */
.tabs__panel:not([hidden]) { animation: tab-in .3s ease both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   現場紀錄：照片與影片
   --------------------------------------------------------------------------
   影片用「封面 + 播放鍵」的假面（facade）：點擊前完全不載入 YouTube，
   頁面不會變慢，也不會在使用者還沒按播放前就被第三方追蹤。
   ========================================================================== */
.media-grid {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }

.media-card {
  margin: 0;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-card > img,
.media-card .video-facade { display: block; width: 100%; }
.media-card > img { aspect-ratio: 3 / 2; object-fit: cover; }

.media-card figcaption {
  padding: 16px 20px 18px;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink-soft);
}
.media-card figcaption strong {
  display: block;
  margin-bottom: .25em;
  color: var(--ink);
  font-size: var(--fs-base);
}

/* --- 影片假面 --- */
.video-facade {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--brand-dk);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-facade img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* YouTube 的 hqdefault 上下有黑邊，稍微放大裁掉 */
  transform: scale(1.34);
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.video-facade:hover img,
.video-facade:focus-visible img { transform: scale(1.4); opacity: .82; }

/* 自製的 5 秒循環封面：本來就是 16:9，不需要放大裁黑邊 */
.video-facade--clip video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
}
.video-facade--clip:hover video,
.video-facade--clip:focus-visible video { opacity: .82; }

.video-facade__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(0,76,62,.82);
  border: 2px solid rgba(255,255,255,.9);
  backdrop-filter: blur(2px);
  transition: transform .25s ease, background .25s ease;
}
/* 用 CSS 畫三角形播放鍵，不必額外載入圖示 */
.video-facade__play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play {
  transform: scale(1.08);
  background: var(--accent);
}
/* 父層 .media-card 有 overflow:hidden，正的 offset 會讓環被裁掉三邊，改畫在內側 */
.video-facade:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* 點擊後換成真正的 iframe */
.media-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ==========================================================================
   持續經營的頻道（Podcast / YouTube）
   ========================================================================== */
.channels-title {
  margin: clamp(30px, 4vw, 44px) 0 .9em;
  font-size: var(--fs-md);
  color: var(--ink);
}
.channels {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .channels { grid-template-columns: repeat(2, 1fr); } }

.channel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .25s cubic-bezier(.22,1,.36,1),
              box-shadow .25s ease, border-color .25s ease;
}
.channel:hover,
.channel:focus-visible {
  text-decoration: none;
  transform: translateY(var(--lift));
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-lg);
}
.channel:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.channel__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  color: var(--brand);
}
.channel__icon svg { width: 22px; height: 22px; }
.channel:hover .channel__icon { background: var(--brand); color: #fff; }

.channel__body { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.channel__body strong { font-size: var(--fs-base); }
.channel__body span { font-size: var(--fs-sm); color: var(--ink-mute); line-height: var(--lh-snug); }

.channel__go {
  margin-left: auto;
  flex: none;
  color: var(--brand);
  font-size: var(--fs-lg);
  transition: transform .25s ease, color .25s ease;
}
.channel:hover .channel__go { color: var(--accent-ink); transform: translateX(3px); }

/* ==========================================================================
   無 JavaScript 時的降級
   --------------------------------------------------------------------------
   <head> 有一行同步 script 會加上 html.js。若 JS 沒跑（CDN 失敗、企業防火牆、
   舊裝置），這裡讓分頁籤面板全部攤平、捲動淡入的元素直接顯示，
   否則會有三成內容永遠看不到。
   ========================================================================== */
html:not(.js) .tabs__list,
html:not(.js) .tabs__hint { display: none; }
html:not(.js) .tabs__panel[hidden] { display: block; }
html:not(.js) .tabs__panel + .tabs__panel { margin-top: var(--sp-5); }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* 按下去的即時回饋：觸控裝置沒有 hover，沒有這個會讓人重複點擊 */
.tabs__tab:active,
.btn:active,
.channel:active,
.video-facade:active { transform: scale(.97); }

/* 「閱讀全文」原本只有 23px 高，未達觸控目標最低的 24×24。
   用負 margin 抵銷，視覺間距維持不變 */
/* 採訪清單：六則裡有四則有線上連結、兩則沒有。
   原本兩者外觀完全一樣，要滑上去才知道哪個能點。
   可點的給明確按鈕，不可點的說明原因——讓差別是刻意的，不是像漏做。 */
.press__go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--sp-2);
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.press__go:hover, .press__go:focus-visible {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}
.press__pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2) !important;
  padding: 8px 14px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  color: var(--ink-mute);
  font-size: var(--fs-sm);
}
.press__pending::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-mute);
  flex: none;
}

/* 這兩個原本只是帶箭頭的彩色文字，看起來像標籤不像按鈕。
   給它們外框與底色，可點擊性才明確；同時把觸控高度撐到 34px。 */
.read-more,
.fallback-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--brand);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.read-more:hover, .read-more:focus-visible,
.fallback-link:hover, .fallback-link:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}

/* 手機導覽會被切掉，右側加漸層提示還可以滑（與分頁籤一致） */
@media (max-width: 639px) {
  .nav { position: relative; }
  .nav::after {
    content: "";
    position: absolute; right: 0; bottom: 8px;
    width: 32px; height: 30px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(247,250,247,0), rgba(247,250,247,.95) 75%);
  }
  .nav-links a { padding-block: 6px; }   /* 觸控目標從 26px 拉到 38px */
}

/* 分頁籤切換後要捲回籤列，否則內容跑到畫面外 */
.tabs__list { scroll-margin-top: 104px; }
@media (min-width: 640px) { .tabs__list { scroll-margin-top: 84px; } }

/* 跳至主要內容：鍵盤使用者不必每次過 9 個導覽站點 */
.skip-link {
  position: fixed;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-sm);
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* 影片的純連結備援：沒有 JS 時假面按鈕是死的，YouTube iframe 被防火牆擋掉時
   假面也已被 replaceWith 銷毀，這條連結是唯一出路 */
.fallback-link { margin-top: var(--sp-1); }

/* 標題型的區塊連結原本只有 23px 高，未達觸控目標最低的 24×24。
   用負 margin 抵銷，視覺間距維持不變 */
.press-list h3 a,
.post-card h3 a { display: inline-block; padding-block: 5px; margin-block: -5px; }

/* 版面工具 class：取代散落在 HTML 裡的 inline style，
   讓間距回到刻度上，也才有辦法一次調整 */
.stack-sm { margin-bottom: var(--sp-3); }
.stack-md { margin-bottom: var(--sp-4); }
.stack-lg { margin-bottom: var(--sp-5); }
.push-sm  { margin-top: var(--sp-3); }
.push-md  { margin-top: var(--sp-4); }
.push-lg  { margin-top: var(--sp-5); }
.push-0   { margin-top: 0; }
.center   { text-align: center; justify-content: center; }
.pad-hero { padding-block: 12vh; }
.measure-block { max-width: var(--measure); margin-bottom: var(--sp-4); }

/* 減少動態偏好：關掉所有動畫，但要確保內容仍然看得到 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  .reveal { opacity: 1; transform: none; }
  .bar-chart__fill { width: var(--pct, 0%); }
  body.is-leaving { opacity: 1; }
  /* 只停過渡不夠：transform 仍會瞬間套用，對前庭敏感者反而更難受 */
  .post-card:hover, .post-card:focus-within,
  .tabs__tab:hover, .tabs__tab:active,
  .channel:hover, .channel:focus-visible, .channel:active,
  .btn:active, .video-facade:active { transform: none; }
  .post-card:hover .post-card__thumb img { transform: none; }
  .video-facade:hover img, .video-facade:focus-visible img { transform: scale(1.34); }
  .channel:hover .channel__go { transform: none; }
}

/* ==========================================================================
   CTA：HERO 按鈕、固定 CTA 列
   ========================================================================== */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }

/* LINE 官方綠，是全站唯一的例外色——因為它必須被認出來是 LINE */
.btn--line {
  background: #06C755;
  border-color: #06C755;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn--line:hover { background: #05B34C; border-color: #05B34C; }
.btn__ico {
  font-size: .72em;
  font-weight: 800;
  letter-spacing: .04em;
  background: rgba(255,255,255,.22);
  padding: 2px 7px;
  border-radius: 5px;
}
/* 深色底（HERO）上的次要按鈕 */
.btn--ondark {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ondark:hover { background: rgba(255,255,255,.24); }

/* --- 固定 CTA 列 --- */
.cta-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(150%) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,72,58,.10);
  padding-block: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform .28s ease;
}
.cta-bar.is-visible { transform: none; }
.cta-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-bar__label {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  display: none;             /* 手機不顯示標籤，把空間讓給按鈕 */
}
.cta-bar .btn {
  flex: 1 1 0;
  min-width: 0;              /* 不讓文字把按鈕撐破框 */
  text-align: center;
  padding: 12px 14px;
  font-size: var(--fs-base);
  white-space: nowrap;
}
@media (min-width: 700px) {
  .cta-bar__label { display: block; margin-right: auto; font-size: var(--fs-base); }
  .cta-bar .btn { flex: 0 0 auto; padding: 12px 24px; }
}
/* 固定列會蓋住頁尾最後一行，補上空間 */
.site-footer { padding-bottom: calc(clamp(34px,5vw,52px) + 72px); }
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }

/* ==========================================================================
   預覽窗格：Podcast 與 YouTube 頻道
   ========================================================================== */
.previews {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .previews { grid-template-columns: repeat(2, 1fr); } }

.preview {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  min-width: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.preview:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.preview__art {
  position: relative;
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}
.preview__art--square { width: 104px; aspect-ratio: 1; }
.preview__art--wide   { width: 152px; aspect-ratio: 16 / 10; }
.preview__art img { width: 100%; height: 100%; object-fit: cover; }

.preview__badge {
  position: absolute;
  left: 6px; bottom: 6px;
  font-size: .62rem;
  letter-spacing: .06em;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,.62);
  padding: 2px 7px;
  border-radius: 999px;
}
/* 播放三角形 */
.preview__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.preview__play::before {
  content: "";
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.preview__play::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.preview__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.preview__body strong { font-size: 1.02rem; line-height: 1.4; }
.preview__meta { font-size: var(--fs-xs); color: var(--ink-mute); letter-spacing: .04em; }
.preview__desc { font-size: var(--fs-base); color: var(--ink-soft); line-height: var(--lh-snug); }
.preview__go { margin-top: 6px; font-size: var(--fs-base); font-weight: 600; color: var(--brand); }

/* 文章內的行動按鈕列 */
.prose .cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.8em 0 0;
}

/* ==========================================================================
   體驗區：九宮格身體概況預覽
   ========================================================================== */
.experience {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .experience { grid-template-columns: 1.1fr .9fr; }
}
.experience__copy p { color: var(--ink-soft); }
.experience__copy .lede { color: var(--ink); }

.grid9 { margin: 0; }
.grid9__box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  margin-inline: auto;
}
.grid9__cell {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  display: grid;
  place-content: center;
  text-align: center;
  font-size: clamp(.78rem, 2.4vw, .92rem);
  font-weight: 700;
  line-height: 1.35;
  padding: 4px;
}
/* 燈號沿用系統的紅黃綠，但改用品牌色階，不用飽和的號誌色 */
.grid9__cell--g { background: #D6EBDD; color: #14513C; }
.grid9__cell--y { background: #FAEFCF; color: #6B5310; }
.grid9__cell--r { background: #F2D6CE; color: #8A3E28; }

.grid9 figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}

/* ==========================================================================
   服務卡：條列項目 + 適合對象
   ========================================================================== */
.svc-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: var(--lh-snug);
}
.svc-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--brand-soft);
  border-bottom: 2px solid var(--brand-soft);
  transform: rotate(-45deg);
}
/* 「適合誰」是企業決策者最先找的一行，給它獨立的視覺 */
.svc-fit {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: var(--lh-snug);
}
.svc-fit span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-50);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
}

/* --- ESG 區塊 --- */
.esg-band {
  margin-top: clamp(24px, 4vw, 36px);
  padding: clamp(22px, 4vw, 32px);
  background: var(--brand-dk);
  border-radius: var(--r-md);
  color: var(--on-dark-1);
}
.esg-band h3 { color: #fff; margin-bottom: .5em; }
.esg-band > p { margin: 0 0 22px; max-width: var(--measure); color: var(--on-dark-2); }
.esg-band strong { color: #fff; }
.esg-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .esg-grid { grid-template-columns: repeat(3, 1fr); } }
.esg-item {
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.06);
}
.esg-item strong { display: block; margin-bottom: 4px; font-size: var(--fs-md); }
.esg-item span { font-size: var(--fs-base); color: var(--on-dark-3); }

/* --- 費用說明的成本條列 --- */
.cost-list { margin: 0 0 1.4em; padding: 0; list-style: none; }
.cost-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.cost-list li:last-child { border-bottom: 1px solid var(--line); }
.cost-list strong { color: var(--ink); font-size: var(--fs-md); }
.cost-list span { color: var(--ink-soft); font-size: var(--fs-base); line-height: var(--lh-snug); }
@media (min-width: 700px) {
  .cost-list li { grid-template-columns: 7.5em 1fr; gap: 16px; align-items: baseline; }
}

/* ==========================================================================
   四線人格卡：標籤列 + 一句痛點
   （原本用 <br> 與句點堆在同一段，視覺零碎，改為兩層結構）
   ========================================================================== */
.persona-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .persona-grid { grid-template-columns: repeat(4, 1fr); } }

.persona {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.persona h3 { margin: 0; font-size: var(--fs-lg); }
.persona__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.persona__tags li {
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  white-space: nowrap;
}
.persona__pain {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  color: var(--ink-soft);
}
