/*
Theme Name: 不亂●生活
Theme URI: https://nomess.living
Author: 不亂生活實驗所
Description: 不亂生活實驗所官方佈景主題 — 居家整理、清潔收納聯盟部落格
Version: 1.9.0
License: GNU General Public License v2 or later
Text Domain: nomess-living
*/

/* ============================================================
   TABLE OF CONTENTS
   1.  CSS Variables (單一來源)
   2.  Reset & Base
   3.  Nav
   4.  Hero（首頁 split layout）
   5.  Brand Strip
   6.  首頁區塊（分類、工具、訂閱）
   7.  Page Header（內頁深色 hero）
   8.  Buttons
   9.  Section Helpers
   10. 文章列表頁（blog / archive）
   11. 單篇文章頁
   12. 工具箱頁
   13. 關於 / 聯絡 / 靜態頁面
   14. Email Banner（非首頁）
   15. Footer
   16. Modal
   17. RWD（由大到小）
   ============================================================ */


/* ── 1. CSS VARIABLES ── */
:root {
  /* 背景色 */
  --cream:        #F1EEDC;
  --warm-white:   #F8F5EC;
  --beige:        #E5DDC5;
  --beige-dark:   #D2C8B0;

  /* 品牌色 */
  --sage:         #B3C8CF;
  --sage-light:   #BED7DC;
  --sage-dark:    #7FA8B2;   /* CTA 按鈕、連結 */
  --brand:        #5A6448;   /* 主品牌橄欖綠 */
  --brand-light:  #B5A860;   /* 輔助色 — 金黃橄欖 */

  /* 文字 */
  --text-dark:    #2C3A3F;
  --text-mid:     #4A5A5F;
  --text-light:   #7A8A8F;

  /* 四大分類識別色 */
  --cat-clean:    #8FBCC2;   /* 清透藍 — 清水、清潔感 */
  --cat-org:      #C4A8A8;   /* 藕粉   — 柔和、整齊收納 */
  --cat-life:     #95B585;   /* 霧綠   — 生活感、植栽 */
  --cat-diy:      #B8AEC8;   /* 薰衣草紫 — 手作、優雅女性 */

  /* 版面寬度 */
  --wide:         1200px;
  --col:          720px;
}


/* ── 2. RESET & BASE ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
}
img { max-width:100%; display:block; }
a { color: inherit; }


/* ── 3. NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241,238,220,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 7px solid var(--nav-color, var(--brand-light));
  box-shadow: 0 1px 0 var(--nav-color, var(--brand-light));
  height: 64px;
  padding: 0 1.5rem;
}
/* 內頁 nav：色帶減半 */
body:not(.home) nav {
  border-bottom: 6px solid var(--nav-color, var(--brand-light));
  box-shadow: 0 1px 0 var(--nav-color, var(--brand-light));
}
.nav-inner {
  max-width: var(--wide);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--beige); }
.nav-links a.active {
  background: transparent;
  color: var(--text-dark);
  font-weight: 700;
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 14px;
  background: var(--nav-color, var(--brand-light));
  border-radius: 14px 14px 0 0;
}

/* CTA 按鈕（不亂工具箱）*/
.nav-cta {
  background: transparent !important;
  color: var(--brand) !important;
  border: 1.5px solid var(--brand) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  margin-left: 0.3rem;
}
.nav-cta:hover { background: var(--brand) !important; color: white !important; }

/* nav-item 結構：desktop 只顯示主標 */
.nav-item { display: flex; align-items: center; }
.nav-item-main { display: inline; }
.nav-item-sub { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.25s ease;
}
/* Hamburger X animation */
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 4. HERO (首頁 split layout) ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 64px);
  min-height: 460px;
  max-height: 640px;
}
.hero-left {
  background: var(--brand);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: visible;
}
.hero-left::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179,200,207,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-left-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 0 auto;
  padding: 0 2rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--beige);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.hero-eyebrow::before { content:''; width:24px; height:1px; background:var(--beige); }
.hero-h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.hero-h1 em { font-style: normal; color: #B5A860; font-weight: 900; }
.hero-desc {
  color: var(--beige);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: 1.2rem;
}
.hero-actions { display:flex; gap:0.8rem; flex-wrap:wrap; }
.btn-hero-primary {
  background: white;
  color: var(--brand);
  text-decoration: none;
  padding: 0.68rem 1.6rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
  font-family: 'Noto Sans TC', sans-serif;
}
.btn-hero-primary:hover { background: var(--brand-light) !important; color: white !important; transform: translateY(-2px); border-color: var(--brand-light) !important; }
.btn-hero-ghost {
  color: white;
  text-decoration: none;
  padding: 0.68rem 1.1rem;
  font-size: 0.875rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 2rem;
  transition: all 0.2s;
  display: inline-block;
}
.btn-hero-ghost:hover { color: white; border-color: white; background: rgba(255,255,255,0.1); }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.hero-stat-label { font-size:0.63rem; color:var(--beige); letter-spacing:0.05em; }

/* Hero right image */
.hero-right { position:relative; overflow:hidden; }
.hero-right img { width:100%; height:100%; object-fit:cover; display:block; }
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 40%, rgba(44,58,63,0.4) 100%),
    linear-gradient(to right, rgba(44,58,63,0.22) 0%, transparent 50%);
}

/* Hero badge (精選文章卡片) */
/* Desktop badge — absolute 浮在圖片上，手機隱藏 */
.hero-badge-mobile { display: none; }
.hero-badge-wrap { display: block; }
.hero-badge-wrap {
  position: absolute;
  bottom: 3rem;
  right: 2rem;
  width: auto;
  z-index: 10;
  pointer-events: none;
}
.hero-badge-wrap-inner {
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}
.hero-badge {
  pointer-events: all;
  background: rgba(241,238,220,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
  width: 400px;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 6px 32px rgba(0,0,0,0.2);
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-badge:hover { transform:translateY(-2px); box-shadow:0 10px 40px rgba(0,0,0,0.25); }
.hero-badge-cat {
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.hero-badge-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.hero-badge-excerpt {
  font-size: 0.75rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.hero-badge-meta {
  font-size: 0.67rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.hero-badge-meta::before { content:'→'; color:var(--brand); font-size:0.7rem; }


/* ── 5. BRAND STRIP ── */
.brand-strip {
  background: var(--brand-light);
  padding: 1.6rem 1.5rem;
  text-align: center;
}
.brand-strip p {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(0.95rem, 2.4vw, 1.08rem);
  color: var(--cream);
  font-weight: 500;
  letter-spacing: 0.04em;
  max-width: 950px;
  margin: 0 auto;
  line-height: 1.75;
  word-spacing: 0.05em;
}
.brand-strip strong { font-weight:700; color:var(--brand); }


/* ── 6. 首頁區塊 ── */

/* Section wrapper */
.section { max-width:var(--wide); margin:0 auto; padding:0 1.5rem; }
.section-gap { padding-top:4.5rem; padding-bottom:4.5rem; }
/* 手機版專用斷行，電腦版隱藏 */
.cat-intro-br, .tools-br { display: none; }

/* Section label */
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-light);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* 四大分類 tiles */
.cat-editorial {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cat-tile {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  aspect-ratio: 2/3;
  text-decoration: none;
  display: block;
  transition: none;
}
.cat-tile-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Wave Panel（貼底，hover 時縮小讓圖片露更多）── */
.cat-tile-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 30%;
  transition: height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}
@media (hover: hover) {
  .cat-tile:hover .cat-tile-panel { height: 18%; }
  .cat-tile:hover .cat-tile-arrow { transform: translateX(4px); color: rgba(0,0,0,0.52); }
}

/* 波浪 SVG：貼在 panel 頂部外側 */
.cat-tile-wave {
  position: absolute; top: 0; left: 0; right: 0;
  transform: translateY(-95%);
  line-height: 0;
  pointer-events: none;
}
.cat-tile-wave svg {
  display: block; width: 100%; height: 20px;
}

/* panel 背景色（降淡 75% alpha）*/
.cat-tile-clean .cat-tile-panel { background: rgba(143,188,194,0.82); }
.cat-tile-org   .cat-tile-panel { background: rgba(196,168,168,0.82); }
.cat-tile-life  .cat-tile-panel { background: rgba(149,181,133,0.82); }
.cat-tile-diy   .cat-tile-panel { background: rgba(184,174,200,0.82); }

/* wave SVG fill 顏色（同步降淡）*/
.cat-tile-clean .cat-tile-wave path { fill: rgba(143,188,194,0.82); }
.cat-tile-org   .cat-tile-wave path { fill: rgba(196,168,168,0.82); }
.cat-tile-life  .cat-tile-wave path { fill: rgba(149,181,133,0.82); }
.cat-tile-diy   .cat-tile-wave path { fill: rgba(184,174,200,0.82); }

/* 圖片上加由下到上暗色漸層 */
.cat-tile-dark-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 55%);
  pointer-events: none;
}

/* panel 內文字 */
.cat-tile-panel-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.5rem 1rem 1rem;
  display: flex; flex-direction: column;
  justify-content: flex-end; gap: 0.2rem;
  height: 100%; box-sizing: border-box;
}
.cat-tile-count {
  font-size: 0.62rem;
  color: rgba(0,0,0,0.38);
  letter-spacing: 0.05em;
}
.cat-tile-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(0,0,0,0.72);
  line-height: 1.2;
}
.cat-tile-sub {
  font-size: 0.72rem;
  color: rgba(0,0,0,0.5);
  line-height: 1.4;
}

/* Arrow */
.cat-tile-arrow {
  position: absolute;
  bottom: 0.75rem; right: 0.85rem;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.28);
  z-index: 3;
  transition: transform 0.25s, color 0.25s;
}

/* No-image state（無圖時用 gradient 背景）*/
.cat-tile-no-img .cat-tile-gradient {
  position: absolute; inset: 0; z-index: 0;
}
.cat-tile-no-img .cat-tile-emoji-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 42%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.cat-tile-emoji-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  line-height: 1; display: block;
}

/* 精選工具區標題 */
.tools-signup-header { text-align: center; margin-bottom: 2.5rem; }
.tools-signup-h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.tools-signup-sub {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}
.tools-cta-wrap {
  text-align: center;
  margin-top: 2rem;
}
.btn-tools-all {
  display: inline-block;
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  text-decoration: none;
  padding: 0.72rem 2rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Noto Sans TC', sans-serif;
  transition: all 0.2s;
}
.btn-tools-all:hover { background: var(--brand-light); color: white; border-color: var(--brand-light); }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  width: 100%;
}
.tool-card {
  background: var(--warm-white);
  border: 1px solid var(--beige);
  border-radius: 1.1rem;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* hover 只加深邊框，不浮起 */
.tool-card:hover { border-color: var(--beige-dark); box-shadow: 0 2px 12px rgba(44,58,63,0.08); }

.tool-card-cover {
  position: relative;
  width: 100%;
  height: 88px;
  flex-shrink: 0;
  overflow: visible;
}
.tool-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 底色：金黃 #B5A860 疊 warm-white，約 40% mix */
.tool-card-cover-default {
  background: #E8DFB8;
  overflow: hidden;
}
/* 向下凹弧：白色 SVG 疊在封面底部 */
.tool-card-cover-default::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 16px;
  background: var(--warm-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.tool-card-svg-icon {
  position: absolute;
  right: -28px;
  bottom: 0px;
  width: 130px;
  height: 130px;
  pointer-events: none;
  z-index: 1;
}
.tool-card-svg-icon svg { width: 100%; height: 100%; }
.tool-card-cover-pill {
  position: absolute;
  top: 8px; left: 10px;
  z-index: 2;
  background: rgba(255,255,255,0.88) !important;
}
.tool-card-body { padding: 0.75rem 1rem 0.85rem; flex: 1; display: flex; flex-direction: column; }

/* Tag row：精選 pill + 分類 tag */
.tool-card-tag-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  min-height: 26px;
}
.tool-card-featured-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--cat-org);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #8A5830;
  white-space: nowrap;
  box-sizing: border-box;
}
.tool-card-cat-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: var(--cream);
  border: 1px solid var(--beige);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-mid);
  white-space: nowrap;
  box-sizing: border-box;
}

.tool-card-type {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.28rem;
}
.tool-card-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.tool-card-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.7rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.tool-card-pages { font-size:0.7rem; color:var(--text-light); flex: 1; }
.tool-card-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
/* 預覽按鈕 */
.btn-tool-preview {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--beige-dark);
  padding: 0.35rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-tool-preview:hover { background: var(--brand-light); color: white; border-color: var(--brand-light); }
.btn-tool-preview:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-tool-preview:disabled:hover { background: transparent; color: var(--text-light); border-color: var(--beige); }

/* 下載按鈕：品牌色，hover 加深而非變藍 */
.btn-tool-download {
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.38rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  transition: all 0.18s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.btn-tool-download:hover { background: var(--brand-light); color: white; transform: translateY(-1px); }

/* 直接訂閱選項 */
.signup-divider {
  text-align: center;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.signup-divider::before, .signup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--beige);
}
.signup-direct {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  gap: 0.6rem;
}
.signup-direct input {
  flex: 1;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--beige);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-family: 'Noto Sans TC', sans-serif;
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.18s;
}
.signup-direct input:focus { border-color:var(--sage-dark); }
.signup-direct button {
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.72rem 1.3rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.signup-direct button:hover { background:var(--sage-dark); }
.signup-note { text-align:center; font-size:0.72rem; color:var(--text-light); margin-top:0.65rem; }

/* 文章卡片（首頁用小版） */
.articles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}


/* ── 7. PAGE HEADER（內頁深色 hero）── */
.page-header {
  background: var(--text-dark);
  padding: 4.5rem 1.5rem 3.5rem;
  min-height: 260px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-header-inner { max-width:var(--wide); margin:0 auto; width:100%; }
.page-header h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 2rem;
  color: white;
  margin-bottom: 0.4rem;
}
.page-header p { color:rgba(255,255,255,0.6); font-size:0.88rem; }
.breadcrumb { font-size:0.77rem; color:rgba(255,255,255,0.4); margin-bottom:0.7rem; }
.breadcrumb a { color:rgba(255,255,255,0.55); text-decoration:none; }

/* Hero bg overlay */
.hero-bg { position:relative; background-size:cover; background-position:center; background-repeat:no-repeat; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,58,63,0.82) 0%, rgba(44,58,63,0.55) 100%);
  z-index: 0;
}
.hero-bg > * { position:relative; z-index:1; }
.cat-hero-bg { position:relative; background-size:cover; background-position:center; background-repeat:no-repeat; }
.cat-hero-bg::before { content:''; position:absolute; inset:0; z-index:0; }
.cat-hero-bg > * { position:relative; z-index:1; }

/* Generic hero（分類/工具箱頁）*/
.hero { background:var(--text-dark); padding:4.5rem 1.5rem 3.5rem; text-align:center; }
.hero-inner { max-width:var(--col); margin:0 auto; }
.hero-tag {
  display: inline-block;
  background: rgba(179,200,207,0.2);
  color: var(--sage-light);
  border: 1px solid rgba(179,200,207,0.3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1 { font-family:'Noto Serif TC',serif; font-size:2.6rem; font-weight:700; color:white; line-height:1.3; margin-bottom:1rem; }
.hero p { color:rgba(255,255,255,0.68); font-size:1rem; line-height:1.85; max-width:520px; margin:0 auto 2rem; }
.hero-btns { display:flex; gap:0.8rem; justify-content:center; flex-wrap:wrap; }


/* ── 8. BUTTONS ── */
.btn-primary {
  background: var(--brand);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.7rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover { background:var(--brand-light); color:white; transform:translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1.5px solid var(--beige-dark);
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color:var(--sage-dark); color:var(--sage-dark); }
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.75rem 1.7rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.28);
  transition: all 0.2s;
}
.btn-outline:hover { border-color:white; color:white; }
.btn-white {
  background: white;
  color: var(--sage-dark);
  text-decoration: none;
  padding: 0.72rem 1.7rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-white:hover { transform:translateY(-1px); box-shadow:0 4px 14px rgba(0,0,0,0.18); }
.btn-outline-w {
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
  text-decoration: none;
  padding: 0.72rem 1.7rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.btn-outline-w:hover { border-color:white; }


/* ── 9. SECTION HELPERS ── */
.page-content { max-width:var(--wide); margin:0 auto; padding:3rem 1.5rem; }
.section-header { display:flex; align-items:center; gap:1rem; margin-bottom:1.5rem; }
.section-header h2 { font-family:'Noto Serif TC',serif; font-size:1.1rem; font-weight:700; white-space:nowrap; }
.section-header::after { content:''; flex:1; height:1px; background:var(--beige); }
.section-header a { font-size:0.78rem; color:var(--sage-dark); text-decoration:none; white-space:nowrap; }



/* ── 10. 文章列表頁 (Grid & Cards) ── */
.cat-posts-section { padding: 1.5rem 1.5rem 3.5rem; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 1.5rem;
}

.art-card {
  text-decoration: none; 
  color: inherit;
  display: flex; 
  flex-direction: column;
  background: var(--warm-white);
  border: 1px solid var(--beige);
  border-radius: 0.8rem;
  overflow: hidden;
  transition: box-shadow 0.22s, border-color 0.22s;
  position: relative; /* 定位基準 */
}

.art-card:hover { 
  box-shadow: 0 6px 24px rgba(44,58,63,0.08); 
  border-color: var(--beige-dark); 
}

/* 1. 圖片容器：撐滿全寬並負責切掉標籤的直角 */
.art-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3; 
  overflow: hidden !important; /* 核心：這行確保標籤不會「出血」凸出去 */
  display: block; 
  background: var(--beige);
  border-top-left-radius: 0.8rem;  /* 同步卡片圓角 */
  border-top-right-radius: 0.8rem; /* 同步卡片圓角 */
}

/* 2. 圖片：100% 補滿與 Hover 放大效果 */
.art-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.art-card:hover .art-card-img { 
  transform: scale(1.05); 
}

/* 3. 分類標籤：完全歸零緊貼右上角 */
.art-card-cat {
  position: absolute !important;
  top: 0 !important;        /* 貼頂 */
  right: 0 !important;      /* 貼右 */
  left: auto !important;
  margin: 0 !important;
  z-index: 10;
  
  padding: 0.45rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white !important;
  
  /* 圓角設定：只有左下角是圓的，右上角是直角（會被父層切掉） */
  border-radius: 0 0 0 0.8rem !important; 
  
  backdrop-filter: none !important;
  box-shadow: none !important;
  white-space: nowrap;
}

/* 4. 確保舊有的留白輔助區塊絕對消失 (雙重保險) */
.art-card-img-space { 
  display: none !important; 
}

/* 卡片文字區 */
.art-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.art-card-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

.art-card-title {
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
}

.art-card-more {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
}

/* ── 分頁 ── */
.cat-pagination {
  display: flex; justify-content: center;
  gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap;
}
.cat-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 0.82rem; text-decoration: none;
  color: var(--text-mid); border: 1px solid var(--beige);
  transition: all 0.2s;
}
.cat-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.cat-pagination .page-numbers.current { background: var(--brand); color: white; border-color: var(--brand); }
.cat-pagination .page-numbers.prev,
.cat-pagination .page-numbers.next { width: auto; padding: 0 1rem; border-radius: 2rem; }


/* ── 11. 單篇文章頁 ── */
.article-body { background:var(--warm-white); border:1px solid var(--beige); border-radius:1.2rem; padding:2.3rem; margin-bottom:1.5rem; }
.article-body h2 { font-family:'Noto Serif TC',serif; font-size:1.35rem; font-weight:700; margin:2rem 0 0.9rem; color:var(--text-dark); padding-left:1rem; border-left:3px solid var(--cat-color, var(--brand)); }
.article-body h3 { font-family:'Noto Serif TC',serif; font-size:1.05rem; font-weight:600; margin:1.4rem 0 0.6rem; color:var(--text-dark); }
.article-body p { margin-bottom:1.1rem; color:var(--text-mid); line-height:1.9; }
.article-body ul, .article-body ol { margin:0.8rem 0 1.3rem 1.5rem; color:var(--text-mid); }
.article-body li { margin-bottom:0.45rem; line-height:1.8; }
.highlight-box { background:rgba(179,200,207,0.12); border:1px solid rgba(179,200,207,0.3); border-radius:0.8rem; padding:1.1rem 1.4rem; margin:1.4rem 0; }
.highlight-box strong { color:var(--cat-color, var(--brand)); }
.steps { display:flex; flex-direction:column; gap:0.9rem; margin:1.3rem 0; }
.step { display:flex; gap:1rem; align-items:flex-start; background:var(--cream); border-radius:0.8rem; padding:0.9rem 1rem; }
.step-num { width:34px; height:34px; background:var(--cat-color, var(--brand)); color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.88rem; flex-shrink:0; }
.step-content strong { display:block; margin-bottom:0.25rem; color:var(--text-dark); }
.step-content p { margin:0; font-size:0.85rem; color:var(--text-light); }

/* Comparison table（聯盟行銷）*/
.comparison-table { width:100%; border-collapse:collapse; margin:1.3rem 0; font-size:0.85rem; border:1px solid var(--beige); border-radius:0.8rem; overflow:hidden; }
.comparison-table thead { background:var(--text-dark); color:white; }
.comparison-table th { padding:0.85rem 1rem; text-align:left; font-weight:600; font-size:0.8rem; }
.comparison-table td { padding:0.75rem 1rem; border-bottom:1px solid var(--beige); vertical-align:top; }
.comparison-table tr:last-child td { border-bottom:none; }
.comparison-table tr:nth-child(even) { background:var(--cream); }
.comparison-table .price { color:var(--brand-light); font-weight:600; }
.comparison-table .badge { display:inline-block; background:rgba(90,100,72,0.12); color:var(--brand); font-size:0.68rem; padding:0.15rem 0.5rem; border-radius:1rem; font-weight:500; }
.comparison-table .badge-best { background:rgba(184,168,154,0.25); color:#7A5A30; }
.affiliate-note { font-size:0.75rem; color:var(--text-light); margin-top:0.5rem; font-style:italic; }

/* Post meta */
.post-tags { display:flex; gap:0.45rem; flex-wrap:wrap; margin-top:1.8rem; padding-top:1.4rem; border-top:1px solid var(--beige); }
.author-box { background:var(--cream); border:1px solid var(--beige); border-radius:1rem; padding:1.3rem; margin-top:1.5rem; display:flex; gap:1.1rem; align-items:flex-start; }
.author-avatar { width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg,var(--brand-light),var(--brand)); display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0; }
.author-name { font-family:'Noto Serif TC',serif; font-weight:700; margin-bottom:0.25rem; font-size:0.93rem; }
.author-bio { font-size:0.8rem; color:var(--text-light); line-height:1.7; }

/* TOC */
.toc { list-style:none; }
.toc-card { background:var(--warm-white); border:1px solid var(--beige); border-radius:1rem; padding:1.2rem 1.4rem; margin-bottom:1.5rem; }
.toc-title { font-family:'Noto Serif TC',serif; font-size:0.9rem; font-weight:700; margin-bottom:0.9rem; padding-bottom:0.65rem; border-bottom:1px solid var(--beige); }
.toc li { padding:0.28rem 0; border-bottom:1px solid rgba(232,223,208,0.5); }
.toc li:last-child { border-bottom:none; }
.toc a { text-decoration:none; color:var(--text-mid); font-size:0.82rem; display:block; transition:color 0.18s; }
.toc a:hover { color:var(--brand); }

/* TOC Sticky 橫向版（Single.php 專用） */
.toc-sticky { position:sticky; top:0; background:var(--warm-white); border-bottom:1px solid var(--beige); padding:0.9rem 0; margin-bottom:2rem; z-index:50; }
.toc-sticky-inner { max-width:var(--col); margin:0 auto; padding:0 2rem; }
.toc-sticky-title { font-size:0.85rem; font-weight:600; color:var(--text-mid); margin-bottom:0.6rem; display:flex; align-items:center; gap:0.5rem; cursor:pointer; }
.toc-sticky-title::after { content:'▼'; font-size:0.7rem; transition:transform 0.2s; }
.toc-sticky-title.collapsed::after { transform:rotate(-90deg); }
.toc-horizontal { display:flex; flex-wrap:wrap; gap:0.6rem; list-style:none; margin:0; padding:0; }
.toc-horizontal li { margin:0; padding:0; border:none; }
.toc-horizontal a { display:inline-block; padding:0.4rem 0.9rem; background:var(--beige); border-radius:1rem; font-size:0.8rem; color:var(--text-mid); text-decoration:none; transition:all 0.18s; white-space:nowrap; }
.toc-horizontal a:hover, .toc-horizontal a.toc-active { background:var(--cat-color, var(--brand)); color:white; }

/* Disclaimer */
.disclaimer { background:rgba(232,223,208,0.4); border:1px solid var(--beige-dark); border-radius:0.8rem; padding:0.85rem 1.1rem; margin-bottom:1.4rem; display:flex; gap:0.65rem; align-items:flex-start; font-size:0.77rem; color:var(--text-light); line-height:1.7; }

/* Toolbox band（文章內）*/
.toolbox-band { background:linear-gradient(135deg,var(--text-dark),#3A4E54); border-radius:1.1rem; padding:1.5rem 1.7rem; display:flex; gap:1.2rem; align-items:center; margin-bottom:3rem; }
.toolbox-band-icon { font-size:2.4rem; flex-shrink:0; }
.toolbox-band-label { color:var(--brand-light); font-size:0.68rem; font-weight:600; letter-spacing:0.12em; margin-bottom:0.28rem; }
.toolbox-band-title { font-family:'Noto Serif TC',serif; font-size:1.02rem; color:white; font-weight:700; margin-bottom:0.3rem; }
.toolbox-band-desc { font-size:0.78rem; color:rgba(255,255,255,0.6); margin-bottom:0.85rem; line-height:1.6; }

/* Comments */
.comments-section { background:var(--warm-white); border:1px solid var(--beige); border-radius:1.2rem; padding:2rem; margin-bottom:1.5rem; }
.comments-section h3 { font-family:'Noto Serif TC',serif; font-size:1.05rem; font-weight:700; margin-bottom:1.4rem; padding-bottom:0.75rem; border-bottom:1px solid var(--beige); display:flex; align-items:center; gap:0.5rem; }
.comment { display:flex; gap:0.9rem; padding:0.9rem 0; border-bottom:1px solid rgba(232,223,208,0.5); }
.comment:last-of-type { border-bottom:none; }
.comment-avatar { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.88rem; font-weight:700; flex-shrink:0; }
.comment-name { font-size:0.85rem; font-weight:700; color:var(--text-dark); }
.comment-date { font-size:0.7rem; color:var(--text-light); margin-left:0.5rem; }
.comment-text { font-size:0.85rem; color:var(--text-mid); line-height:1.72; margin-top:0.3rem; }
.comment-reply { font-size:0.73rem; color:var(--brand); margin-top:0.35rem; cursor:pointer; background:none; border:none; font-family:'Noto Sans TC',sans-serif; padding:0; }
.comment-form { margin-top:1.3rem; padding-top:1.3rem; border-top:1px solid var(--beige); }
.comment-form h4 { font-family:'Noto Serif TC',serif; font-size:0.93rem; font-weight:700; margin-bottom:0.9rem; }
.comment-form-row { display:grid; grid-template-columns:1fr 1fr; gap:0.65rem; margin-bottom:0.65rem; }
.comment-form input, .comment-form textarea { width:100%; padding:0.72rem 0.95rem; border:1.5px solid var(--beige); border-radius:0.7rem; font-size:0.85rem; font-family:'Noto Sans TC',sans-serif; background:var(--cream); color:var(--text-dark); outline:none; transition:border-color 0.18s; }
.comment-form input:focus, .comment-form textarea:focus { border-color:var(--sage-dark); } /* focus 狀態保留舊藍色 */
.comment-form textarea { min-height:95px; resize:vertical; margin-bottom:0.65rem; }
.comment-submit { background:var(--brand); color:white; border:none; padding:0.72rem 1.7rem; border-radius:2rem; font-size:0.85rem; font-weight:600; cursor:pointer; font-family:'Noto Sans TC',sans-serif; transition:all 0.2s; }
.comment-submit:hover { background:var(--brand-light); }
.comment-note { font-size:0.72rem; color:var(--text-light); margin-top:0.5rem; }

/* Related posts */
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; margin-bottom:3rem; }

/* 新版提示框（三種語意） */
.highlight-tip, .highlight-warn, .highlight-info { 
  border-radius:0 0.8rem 0.8rem 0; 
  padding:1rem 1.2rem; 
  margin:1.5rem 0; 
  display:flex; 
  gap:0.8rem; 
  align-items:flex-start; 
  background:var(--warm-white);
  border:1px solid var(--beige);
}
.highlight-tip { border-left:3px solid var(--cat-life); }
.highlight-warn { border-left:3px solid var(--brand-light); }
.highlight-info { border-left:3px solid var(--cat-color, var(--cat-clean)); }
.highlight-icon { font-size:1.3rem; flex-shrink:0; line-height:1; }
.highlight-content { flex:1; }
.highlight-content strong { display:block; margin-bottom:0.3rem; color:var(--text-dark); font-size:0.9rem; }
.highlight-content p { margin:0; font-size:0.85rem; color:var(--text-mid); line-height:1.7; }
.highlight-content ul { margin:0.5rem 0 0 1.2rem; }
.highlight-content li { font-size:0.85rem; color:var(--text-mid); margin-bottom:0.3rem; }

/* Steps v2（連接線版） */
.steps-v2 { display:flex; flex-direction:column; gap:1.2rem; margin:1.5rem 0; position:relative; padding-left:0.5rem; }
.steps-v2::before { content:''; position:absolute; left:16px; top:20px; bottom:20px; width:2px; background:var(--beige); z-index:0; }
.step-v2 { display:flex; gap:1rem; align-items:flex-start; position:relative; z-index:1; }
.step-num-v2 { width:32px; height:32px; border:2px solid var(--cat-color, var(--brand)); background:var(--cream); color:var(--cat-color, var(--brand)); border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.85rem; flex-shrink:0; }
.step-num-v2.done { background:var(--cat-color, var(--brand)); color:white; }
.step-v2-content { flex:1; padding-top:0.2rem; }
.step-v2-content strong { display:block; margin-bottom:0.4rem; color:var(--text-dark); font-size:0.95rem; }
.step-v2-content p { margin:0; font-size:0.85rem; color:var(--text-mid); line-height:1.75; }

/* 商品推薦卡 */
.product-card { display:flex; gap:1rem; background:var(--warm-white); border:1px solid var(--beige); border-radius:0.8rem; padding:1rem; margin:1.5rem 0; transition:all 0.2s; }
.product-card:hover { box-shadow:0 4px 12px rgba(44,58,63,0.08); border-color:var(--beige-dark); }
.product-img { width:72px; height:72px; border-radius:0.5rem; overflow:hidden; background:var(--beige); flex-shrink:0; }
.product-img img { width:100%; height:100%; object-fit:cover; }
.product-info { flex:1; }
.product-name { font-weight:600; color:var(--text-dark); margin-bottom:0.3rem; font-size:0.9rem; }
.product-price { color:var(--brand-light); font-weight:700; font-size:1.05rem; margin-bottom:0.4rem; }
.product-platform { display:inline-block; background:var(--beige); color:var(--text-mid); font-size:0.7rem; padding:0.2rem 0.5rem; border-radius:0.3rem; }
.product-btn { align-self:flex-start; background:var(--brand); color:white; border:none; padding:0.6rem 1.2rem; border-radius:0.5rem; font-size:0.8rem; font-weight:600; cursor:pointer; text-decoration:none; display:inline-block; transition:all 0.2s; white-space:nowrap; }
.product-btn:hover { background:var(--brand-light); }

/* 文章重點總結框 */
.summary-box { background:var(--text-dark); color:white; border-radius:0.8rem; padding:1.5rem 1.8rem; margin:1.5rem 0; }
.summary-box h3 { font-family:'Noto Serif TC',serif; font-size:1.1rem; margin-bottom:1rem; color:white; }
.summary-box ul { list-style:none; margin:0; padding:0; }
.summary-box li { padding-left:1.8rem; position:relative; margin-bottom:0.7rem; line-height:1.7; font-size:0.88rem; }
.summary-box li::before { content:'✓'; position:absolute; left:0; color:var(--brand-light); font-weight:700; font-size:1.1rem; }

/* 引言金句 */
.post-quote { border-left:4px solid var(--cat-color, var(--brand)); padding:1rem 1.5rem; margin:1.8rem 0; background:var(--warm-white); border-radius:0 0.5rem 0.5rem 0; font-family:'Noto Serif TC',serif; font-style:italic; font-size:1.05rem; color:var(--text-mid); line-height:1.8; }
.post-quote-author { display:block; margin-top:0.8rem; font-style:normal; font-size:0.8rem; color:var(--text-light); font-family:'Noto Sans TC',sans-serif; }

/* Sidebar 元件 */
.sidebar-widget { background:var(--warm-white); border:1px solid var(--beige); border-radius:1rem; padding:1.3rem 1.5rem; margin-bottom:1.5rem; }
.sidebar-widget-title { font-family:'Noto Serif TC',serif; font-size:0.95rem; font-weight:700; margin-bottom:1rem; padding-bottom:0.7rem; border-bottom:1px solid var(--beige); color:var(--text-dark); }
.sidebar-subscribe { border-top:3px solid var(--cat-color, var(--brand-light)); }
.sidebar-subscribe input { width:100%; padding:0.7rem 0.9rem; border:1.5px solid var(--beige); border-radius:0.6rem; font-size:0.85rem; margin-bottom:0.6rem; background:var(--cream); }
.sidebar-subscribe button { width:100%; background:var(--brand); color:white; border:none; padding:0.7rem; border-radius:0.6rem; font-size:0.85rem; font-weight:600; cursor:pointer; transition:all 0.2s; }
.sidebar-subscribe button:hover { background:var(--brand-light); }

/* 文章內訂閱 CTA（inline 版） */
.inline-subscribe { background:var(--warm-white); border:1px solid var(--beige); border-top:3px solid var(--cat-color, var(--brand-light)); border-radius:0.8rem; padding:2rem; margin:3rem 0; text-align:center; }
.inline-subscribe h3 { font-family:'Noto Serif TC',serif; font-size:1.3rem; font-weight:700; color:var(--text-dark); margin-bottom:0.6rem; }
.inline-subscribe p { font-size:0.9rem; color:var(--text-mid); margin-bottom:1.5rem; line-height:1.7; }
.inline-subscribe-form { display:flex; gap:0.8rem; max-width:480px; margin:0 auto; }
.inline-subscribe input { flex:1; padding:0.9rem 1.2rem; border:1.5px solid var(--beige); border-radius:0.6rem; font-size:0.9rem; background:var(--cream); }
.inline-subscribe input:focus { border-color:var(--cat-color, var(--brand)); outline:none; }
.inline-subscribe button { background:var(--brand); color:white; border:none; padding:0.9rem 2rem; border-radius:0.6rem; font-size:0.9rem; font-weight:600; cursor:pointer; transition:all 0.2s; white-space:nowrap; }
.inline-subscribe button:hover { background:var(--brand-light); }



/* ── 12. 工具箱頁 ── */
.toolbox-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.resource-card { background:var(--warm-white); border:1.5px solid var(--beige-dark); border-radius:1.2rem; overflow:hidden; transition:all 0.25s; display:flex; flex-direction:column; }
.resource-card:hover { transform:translateY(-3px); box-shadow:0 10px 30px rgba(44,58,63,0.1); border-color:var(--sage-dark); }
.resource-thumb { width:100%; height:140px; overflow:hidden; position:relative; }
.resource-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.3s; }
.resource-card:hover .resource-thumb img { transform:scale(1.04); }
.resource-thumb-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.35); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity 0.2s; color:white; font-size:0.9rem; font-weight:600; }
.resource-card:hover .resource-thumb-overlay { opacity:1; }
.resource-thumb-placeholder { width:100%; height:140px; display:flex; align-items:center; justify-content:center; font-size:3rem; background:var(--beige); }
.resource-body { flex:1; padding:1.1rem 1.3rem; display:flex; flex-direction:column; }
.resource-tag-row { display:flex; flex-direction:row; align-items:center; gap:6px; margin-bottom:0.4rem; flex-wrap:wrap; }
.resource-featured-pill { display:inline-flex; align-items:center; justify-content:center; gap:3px; background:transparent; border:1px solid var(--cat-org); border-radius:20px; padding:0 8px; height:24px; font-size:11px; font-weight:600; color:#8A5830; box-sizing:border-box; line-height:1; }
.resource-cat-tag { display:inline-flex; align-items:center; justify-content:center; gap:3px; background:var(--cream); border:1px solid var(--beige); border-radius:20px; padding:0 8px; height:24px; font-size:11px; color:var(--text-mid); box-sizing:border-box; line-height:1; }
.resource-type { font-size:0.62rem; font-weight:700; letter-spacing:0.12em; color:var(--text-light); text-transform:uppercase; margin-bottom:0.3rem; }
.resource-title { font-family:'Noto Serif TC',serif; font-size:0.97rem; font-weight:700; color:var(--text-dark); margin-bottom:0.35rem; line-height:1.4; }
.resource-desc { font-size:0.78rem; color:var(--text-light); line-height:1.65; margin-bottom:0.7rem; flex:1; }
.resource-footer { display:flex; gap:0.6rem; align-items:center; }
.resource-pages { font-size:0.7rem; color:var(--text-light); flex:1; }
.btn-preview {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage);
  padding: 0.55rem 0.8rem;
  border-radius: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-preview:hover { background: var(--brand); color: white; border-color: var(--brand); }
.btn-preview:disabled { opacity:0.35; cursor:not-allowed; border-color:var(--beige); color:var(--text-light); background:#f5f3ee; }
.btn-preview:disabled:hover { background:#f5f3ee; color:var(--text-light); }
.download-btn { background:var(--brand); color:white; border:none; padding:0.55rem 1rem; border-radius:0.8rem; font-size:0.78rem; font-weight:600; cursor:pointer; font-family:'Noto Sans TC',sans-serif; transition:all 0.18s; text-decoration:none; display:inline-block; }
.download-btn:hover { background:var(--brand-light); color:white; }

/* How steps（工具箱說明）*/
.how-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:1.1rem; margin-bottom:2.5rem; }
.how-step { background:var(--warm-white); border:1px solid var(--beige); border-radius:1rem; padding:1.2rem; text-align:center; }
.how-num { width:36px; height:36px; background:var(--text-dark); color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.88rem; margin:0 auto 0.7rem; }
.how-step h3 { font-size:0.88rem; font-weight:700; margin-bottom:0.35rem; font-family:'Noto Serif TC',serif; }
.how-step p { font-size:0.78rem; color:var(--text-light); line-height:1.65; }


/* ── 13. 關於 / 聯絡 / 靜態頁面 ── */
/* old about-hero removed */
.about-hero-inner { max-width:var(--wide); margin:0 auto; }
.about-avatar-large { width:100px; height:100px; border-radius:50%; background:linear-gradient(135deg,var(--sage-light),var(--sage-dark)); display:flex; align-items:center; justify-content:center; font-size:3rem; margin:0 auto 1.2rem; border:3px solid rgba(255,255,255,0.12); }
.about-hero h1 { font-family:'Noto Serif TC',serif; font-size:2rem; color:white; margin-bottom:0.6rem; }
.about-hero .tagline { color:rgba(255,255,255,0.62); font-size:0.92rem; max-width:480px; margin:0 auto; }
.story-section { background:var(--warm-white); border:1px solid var(--beige); border-radius:1.2rem; padding:2rem; margin-bottom:1.5rem; }
.story-section h2 { font-family:'Noto Serif TC',serif; font-size:1.2rem; font-weight:700; margin-bottom:1rem; padding-left:1rem; border-left:3px solid var(--sage-dark); }
.story-section p { color:var(--text-mid); line-height:1.9; margin-bottom:0.9rem; }
.story-section p:last-child { margin-bottom:0; }
.values-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:1.3rem; }
.value-card { background:var(--cream); border-radius:0.8rem; padding:1.1rem; border:1px solid var(--beige); }
.value-emoji { font-size:1.6rem; margin-bottom:0.45rem; }
.value-title { font-family:'Noto Serif TC',serif; font-size:0.9rem; font-weight:700; margin-bottom:0.3rem; }
.value-desc { font-size:0.8rem; color:var(--text-light); line-height:1.65; }
.contact-cta { background:linear-gradient(135deg,var(--text-dark),#3A4E54); border-radius:1.2rem; padding:2.2rem; text-align:center; color:white; }
.contact-cta h2 { font-family:'Noto Serif TC',serif; font-size:1.4rem; margin-bottom:0.6rem; }
.contact-cta p { color:rgba(255,255,255,0.75); margin-bottom:1.3rem; font-size:0.88rem; }
.cta-btns { display:flex; gap:0.9rem; justify-content:center; flex-wrap:wrap; }
.form-card { background:var(--warm-white); border:1px solid var(--beige); border-radius:1.2rem; padding:2rem; margin-bottom:1.5rem; }
.form-card h2 { font-family:'Noto Serif TC',serif; font-size:1.1rem; margin-bottom:1.3rem; }
.form-group { margin-bottom:1.1rem; }
label { display:block; font-size:0.8rem; font-weight:600; color:var(--text-mid); margin-bottom:0.35rem; }
.form-card input, .form-card textarea, .form-card select { width:100%; padding:0.75rem 1rem; border:1.5px solid var(--beige); border-radius:0.75rem; font-size:0.875rem; font-family:'Noto Sans TC',sans-serif; background:var(--cream); color:var(--text-dark); outline:none; transition:border-color 0.18s; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color:var(--sage-dark); }
.form-card textarea { min-height:130px; resize:vertical; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:0.8rem; }
.submit-btn { background:var(--brand); color:white; border:none; width:100%; padding:0.85rem; border-radius:2rem; font-size:0.9rem; font-weight:600; cursor:pointer; font-family:'Noto Sans TC',sans-serif; transition:all 0.2s; margin-top:0.4rem; }
.submit-btn:hover { background:var(--sage-dark); }
.info-card { background:var(--warm-white); border:1px solid var(--beige); border-radius:1rem; padding:1.3rem; margin-bottom:1rem; }
.info-card h3 { font-family:'Noto Serif TC',serif; font-size:0.93rem; font-weight:700; margin-bottom:0.9rem; padding-bottom:0.65rem; border-bottom:1px solid var(--beige); }


/* ── 14. EMAIL BANNER（非首頁）── */
.email-banner {
  background: var(--text-dark);
  padding: 3.3rem 1.5rem;
  text-align: center;
}
.email-banner-inner { max-width:500px; margin:0 auto; }
.email-banner h2 { font-family:'Noto Serif TC',serif; color:white; font-size:1.5rem; margin-bottom:0.65rem; }
.email-banner p { color:rgba(255,255,255,0.78); margin-bottom:1.5rem; font-size:0.88rem; line-height:1.75; }
.email-form { display:flex; gap:0.6rem; max-width:400px; margin:0 auto; }
.email-form input { flex:1; padding:0.72rem 1.05rem; border-radius:2rem; font-size:0.875rem; font-family:'Noto Sans TC',sans-serif; background:rgba(255,255,255,0.14); color:white; outline:none; border:1px solid rgba(255,255,255,0.2); }
.email-form input::placeholder { color:rgba(255,255,255,0.5); }
.email-form input:focus { background:rgba(255,255,255,0.22); }
.email-form button { background:white; color:var(--sage-dark); border:none; padding:0.72rem 1.3rem; border-radius:2rem; font-weight:700; font-size:0.8rem; cursor:pointer; font-family:'Noto Sans TC',sans-serif; transition:all 0.2s; white-space:nowrap; }
.email-form button:hover { transform:translateY(-1px); }


/* ── 15. FOOTER ── */
footer {
  background: var(--brand);
  color: rgba(241,238,220,0.6);
  padding: 2.8rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 1.8rem;
}
.footer-brand .nav-logo { color: #F1EEDC; font-size:1.1rem; display:block; margin-bottom:0.65rem; }
.footer-brand .nav-logo span { color: #F1EEDC !important; }
.footer-brand p { font-size:0.8rem; line-height:1.8; max-width: 260px; color: rgba(241,238,220,0.72); }
footer h4 { color:#F1EEDC; font-size:0.8rem; font-weight:700; margin-bottom:0.85rem; font-family:'Noto Serif TC',serif; }
footer ul { list-style:none; }
footer ul li { margin-bottom:0.42rem; }
footer ul a { text-decoration:none; color:rgba(241,238,220,0.45); font-size:0.79rem; transition:color 0.18s; }
footer ul a:hover { color:var(--brand-light); }
.footer-bottom {
  max-width: var(--wide);
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(241,238,220,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: rgba(241,238,220,0.3);
  gap: 1rem;
}
.footer-bottom a { color:rgba(241,238,220,0.35); text-decoration:none; }
.footer-bottom a:hover { color:var(--brand-light); }
.footer-heart { color: var(--brand-light); }
body:not(.home) .footer-heart { color: white; }


/* ── 16. MODAL ── */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(44,58,63,0.72); z-index:1000; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
.modal-overlay.open { display:flex; }
.modal { background:var(--warm-white); border-radius:1.4rem; padding:2.2rem; max-width:520px; width:92%; position:relative; animation:modalIn 0.26s ease; }
@keyframes modalIn { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:none;} }
.modal-close { position:absolute; top:0.85rem; right:1.05rem; background:none; border:none; font-size:1.4rem; color:var(--text-light); cursor:pointer; line-height:1; }
.modal-img-slider { position:relative; }
.modal-slides { display:flex; overflow:hidden; border-radius:0.8rem; margin-bottom:1rem; }
.modal-slide { min-width:100%; }
.modal-slide img { width:100%; border-radius:0.8rem; display:block; }
.modal-arrow { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.85); border:none; border-radius:50%; width:36px; height:36px; cursor:pointer; font-size:1rem; display:flex; align-items:center; justify-content:center; transition:all 0.2s; z-index:2; }
.modal-arrow:hover { background:white; }
.modal-arrow-prev { left:0.5rem; }
.modal-arrow-next { right:0.5rem; }
.modal-dots { display:flex; justify-content:center; gap:0.4rem; margin-top:0.5rem; }
.modal-dot { width:7px; height:7px; border-radius:50%; background:var(--beige-dark); border:none; cursor:pointer; padding:0; transition:background 0.2s; }
.modal-dot.active { background:var(--sage-dark); }
.modal-emoji { font-size:2.7rem; margin-bottom:0.75rem; text-align:center; }
.modal h3 { font-family:'Noto Serif TC',serif; font-size:1.25rem; margin-bottom:0.5rem; }
.modal p { font-size:0.83rem; color:var(--text-light); margin-bottom:1.2rem; line-height:1.7; }
.modal-form { display:flex; flex-direction:column; gap:0.6rem; }
.modal-form input { padding:0.72rem 1.05rem; border:1.5px solid var(--beige); border-radius:0.72rem; font-size:0.875rem; font-family:'Noto Sans TC',sans-serif; outline:none; background:var(--cream); transition:border-color 0.18s; }
.modal-form input:focus { border-color:var(--sage-dark); }
.modal-note { font-size:0.7rem; color:var(--text-light); margin-top:0.5rem; }

/* ── 訂閱區 scroll 淡入 ── */
.email-fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.email-fade-in.email-visible {
  opacity: 1;
  transform: translateY(0);
}
/* input focus 金黃底色過渡 */
.home-email-form input {
  transition: background 0.5s ease, border-color 0.18s;
}
.home-email-form input:focus {
  background: #F0E8C8;
  border-color: var(--brand);
}

/* ── Go to Top ── */
#goToTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--brand);
  color: white;
  border: none; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  z-index: 500;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(44,58,63,0.18);
}
#goToTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#goToTop:hover { background: var(--brand-light); }

.tool-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(44,58,63,0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}
.tool-modal-inner {
  background: var(--warm-white);
  border-radius: 1.4rem;
  max-width: 560px;
  width: 100%;
  position: relative;
  animation: modalIn 0.26s ease;
  overflow: hidden;
}
.tool-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(44,58,63,0.08);
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); z-index: 2;
  transition: background 0.2s;
}
.tool-modal-close:hover { background: rgba(44,58,63,0.15); }
.tool-modal-preview {
  position: relative;
  background: var(--beige);
}
.tool-modal-img {
  width: 100%; max-height: 320px;
  object-fit: contain; display: block;
  background: var(--beige);
}
.tool-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
  color: var(--text-dark);
}
.tool-modal-nav:hover { background: white; }
.tool-modal-nav.prev { left: 0.75rem; }
.tool-modal-nav.next { right: 0.75rem; }
.tool-modal-dots {
  display: flex; justify-content: center;
  gap: 0.35rem; padding: 0.6rem 0 0.2rem;
  background: var(--beige);
}
.tool-modal-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--beige-dark); border: none;
  cursor: pointer; padding: 0; transition: background 0.2s;
}
.tool-modal-dot.active { background: var(--brand); }
.tool-modal-body {
  padding: 1.5rem 1.8rem 1.8rem;
}
.tool-modal-body h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 0.5rem;
}
.tool-modal-body p {
  font-size: 0.85rem; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 0.4rem;
}
.tool-modal-pages {
  font-size: 0.75rem !important;
  color: var(--text-light) !important;
  margin-bottom: 1.2rem !important;
}
.tool-modal-body .btn-primary {
  display: block; text-align: center;
  padding: 0.85rem; font-size: 0.9rem;
}


/* ── 6b. 首頁區塊（base styles 續）── */

/* ── 首頁各 section 統一樣式 ── */
.home-section-cats {
  background: var(--cream);
  padding: 4rem 1.5rem;
}
.home-section-tools {
  background: var(--cream);
  padding: 4rem 1.5rem 3rem;
  border-top: none;
}

/* ── 問題6: 分類區 intro text ── */
.cat-section-intro {
  margin: -0.5rem 0 2rem;
}
/* 三組說明文字統一：cat-intro、tools-signup-sub、email-left p */
.cat-intro-text,
.tools-signup-sub,
.home-email-left p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.cat-intro-text {
  max-width: 1100px;
  text-align: center;
  margin: 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 問題5: 首頁訂閱區 ── */
.home-email-section {
  background: var(--cream);
  padding: 2.5rem 1.5rem 4rem;
  position: relative;
  overflow: visible;
}
.home-email-section::before {
  display: none;
}
.home-email-inner {
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  background: #EFE8D8;
  padding: 3rem 3.5rem;
  border-radius: 1.2rem;
  border: 1px solid var(--beige-dark);
  box-sizing: border-box;
}
.home-email-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: white;
  text-transform: uppercase;
  background: var(--brand-light);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  margin-bottom: 0.9rem;
}
.home-email-eyebrow::before { display: none; }
.home-email-left h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}
.home-email-left p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
}
.home-email-perks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.3rem;
}
.home-email-perk {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.home-email-perk::before { content:'✓'; color:var(--brand); font-weight:700; flex-shrink:0; }

/* 右側表單卡片 */
.home-email-form-card {
  background: white;
  border: none;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.home-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.home-email-form input {
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--beige);
  border-radius: 0.8rem;
  font-size: 0.95rem;
  font-family: 'Noto Sans TC', sans-serif;
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.home-email-form input::placeholder { color: var(--text-light); }
.home-email-form input:focus {
  border-color: var(--brand);
  background: white;
}
.home-email-submit {
  background: var(--brand);
  color: white;
  border: none;
  padding: 1.1rem 1.5rem;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  width: 100%;
}
.home-email-submit:hover { background: var(--brand-light); transform: translateY(-1px); }
.home-email-note {
  font-size: 0.68rem;
  color: #bbb;
  text-align: center;
  margin-top: 0.7rem;
}

/* ── 問題4: Toolbox promo 整合（緊接在訂閱區下方）── */
.toolbox-promo-v2 {
  display: block;
  background: linear-gradient(135deg, var(--sage-dark) 0%, #5a8a96 100%);
  padding: 4rem 1.5rem;
}
.toolbox-promo-v2-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.toolbox-promo-v2 .promo-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.toolbox-promo-v2 .promo-icon {
  font-size: 2.8rem;
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.toolbox-promo-v2 h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.toolbox-promo-v2 .promo-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto 1.8rem;
}
.toolbox-promo-v2 .promo-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}
.toolbox-promo-v2 .promo-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}
.toolbox-promo-v2 .promo-item::before { content:'✓'; color:white; font-weight:700; }
.btn-toolbox-v2 {
  display: inline-block;
  background: white;
  color: var(--sage-dark);
  text-decoration: none;
  padding: 0.95rem 2.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Noto Sans TC', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-toolbox-v2:hover { background: var(--cream); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.promo-count { font-size:0.78rem; color:rgba(255,255,255,0.42); margin-top:0.8rem; }




/* ── 17. RWD ── */

@media (max-width: 1024px) {
  .cat-editorial { grid-template-columns:repeat(2, 1fr); }
  .tools-grid { grid-template-columns:repeat(2, 1fr); }
  .toolbox-grid { grid-template-columns:repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* ── 問題1: Hamburger 在 900px 觸發 ── */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(241,238,220,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--beige);
    padding: 0.8rem 1.5rem 1.2rem;
    gap: 0.1rem;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(44,58,63,0.12);
  }
  .nav-links.open { display: flex !important; }

  /* Mobile open 狀態：每個連結兩行 */
  .nav-links.open a.nav-item {
    display: flex;
    flex-direction: column;
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--beige);
    gap: 0.15rem;
  }
  .nav-links.open a.nav-item:last-of-type { border-bottom: none; }
  .nav-links.open .nav-item-main {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
  }
  .nav-links.open .nav-item-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    font-weight: 400;
  }
  .nav-links.open .nav-cta {
    margin-left: 0 !important;
    margin-top: 0.6rem;
    text-align: center !important;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  .nav-hamburger { display: flex !important; }
  /* Desktop nav-item hover 下不需要副標 */

  /* ── Hero ── */
  .hero-split { grid-template-columns:1fr; height:auto; max-height:none; }
  .hero-left { padding: 3rem 1.5rem !important; }
  .hero-left-inner { max-width: 100%; padding: 0 !important; }
  .hero-right { height:72vw; max-height:460px; }
  /* Desktop badge 在手機版隱藏 */
  .hero-badge-wrap { display:none !important; }
  /* Mobile badge — 現在在 hero-split 外面，自然流動 */
  .hero-badge-mobile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--warm-white);
    border-top: 2px solid var(--beige);
    border-bottom: 1px solid var(--beige);
    padding: 0.9rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
  }
  .hero-badge-mobile-cat { font-size:0.68rem; font-weight:700; color:var(--brand); white-space:nowrap; flex-shrink:0; }
  .hero-badge-mobile-divider { width:1px; height:1.1rem; background:var(--beige-dark); flex-shrink:0; }
  .hero-badge-mobile-title { font-size:0.88rem; font-weight:600; font-family:'Noto Serif TC',serif; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .hero-badge-mobile-meta { font-size:0.72rem; color:var(--text-light); white-space:nowrap; flex-shrink:0; }

  /* ── Layout ── */
  .footer-inner { grid-template-columns:1fr 1fr; gap:1.5rem 2rem; }
  .footer-brand { grid-column:1/-1; }
  .related-grid { grid-template-columns:1fr 1fr; }
  .articles-row { grid-template-columns:1fr 1fr; }

  /* ── 訂閱區 900px ── */
  .home-email-inner { grid-template-columns:1fr; gap:2rem; }
  .home-email-section { padding: 3rem 1.5rem 3.5rem; }
  .home-section-cats { padding: 3.5rem 1.5rem; }
  .home-section-tools { padding: 3.5rem 1.5rem 3rem; }
  .home-email-left h2 { font-size:1.6rem; }
  .toolbox-promo-v2 h2 { font-size:1.5rem; }

  /* ── 問題3: featured-article 不消失 ── */
  .featured-article { grid-template-columns:1fr; }
  .featured-img { min-height:260px; max-height:380px; }
  .featured-body { padding:1.8rem 1.6rem; }
}

@media (max-width: 640px) {
  /* ══ 統一左右邊界：1.5rem（與 nav 一致）══ */
  .section { padding: 0 1.5rem !important; }
  .brand-strip { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .home-section-cats { padding: 2.5rem 0 !important; }
  .home-section-tools { padding: 2.5rem 0 2rem !important; }
  /* 手機版斷行顯示 */
  .cat-intro-br, .tools-br { display: inline; }

  /* ── Hero ── */
  .hero-left { padding: 2.2rem 1.5rem !important; }
  .hero-left-inner { max-width: 100%; padding: 0 !important; }
  /* 手機版標題不強制斷行，讓文字自然換行 */
  .hero-br { display: none; }
  .hero-h1 { font-size: 1.65rem; line-height: 1.22; }
  .hero-eyebrow { font-size: 0.62rem; margin-bottom: 0.6rem; }
  .hero-desc { font-size: 0.84rem; line-height: 1.7; margin-bottom: 0.9rem; }
  .hero-actions { gap: 0.5rem; }
  .btn-hero-primary, .btn-hero-ghost { font-size: 0.78rem; padding: 0.55rem 1.1rem; }
  .hero-stats { display: none; }

  /* ── Mobile badge ── */
  .hero-badge-mobile { padding: 0.8rem 1.5rem; gap: 0.6rem; }
  .hero-badge-mobile-title { font-size: 0.85rem; }

  /* ── Brand strip ── */
  .brand-strip p { font-size: 0.95rem; line-height: 1.65; }

  /* ── 分類卡片 ── */
  .cat-editorial { grid-template-columns: 1fr; gap: 1.8rem; }
  .cat-tile { aspect-ratio: 1/1; }
  .cat-tile-name { font-size: 1.1rem; font-weight: 700; }
  .cat-tile-sub { font-size: 0.78rem; }
  .cat-tile-count { font-size: 0.65rem; }
  .cat-tile-emoji-icon { font-size: 2.5rem; }
  /* 三組說明文字統一 */
  .cat-intro-text,
  .tools-signup-sub,
  .home-email-left p { font-size: 0.88rem; line-height: 1.7; color: var(--text-mid); }

  /* ── 工具卡片 ── */
  .tools-grid { grid-template-columns: 1fr; gap: 1.8rem; margin-bottom: 1.5rem; }
  .tools-signup-h2 { font-size: 1.3rem; }

  /* ── 訂閱區：全頁 cream 底色，inner 是白色圓角卡片 ── */
  .home-email-section {
    padding: 2.5rem 1.5rem 5.5rem;
    background: var(--cream);
    overflow: hidden;
  }
  .home-email-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.5rem !important;
    background: white !important;
    border-radius: 1.2rem !important;
    border: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07) !important;
    grid-template-columns: unset !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .home-email-left { margin-bottom: 1.2rem; }
  .home-email-left h2 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 0.4rem; }
  .home-email-left p { font-size: 0.85rem; line-height: 1.7; color: var(--text-mid); }
  .home-email-eyebrow { margin-bottom: 0.4rem; font-size: 0.65rem; }
  .home-email-form-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-top: 1px solid var(--beige);
    padding-top: 1.2rem;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .home-email-form input,
  .home-email-submit { width: 100%; box-sizing: border-box; }
  .home-email-submit { padding: 0.85rem; font-size: 0.85rem; }
  .home-email-note { font-size: 0.65rem; }

  /* ── Footer：單欄 ── */
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.65rem;
    padding-top: 1rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .footer-bottom span { white-space: nowrap; }

  /* ── 其他頁面 ── */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbox-grid { grid-template-columns: 1fr; }
  .articles-row { grid-template-columns: 1fr; }
  .signup-direct { flex-direction: column; }
  .email-form { flex-direction: column; }
  .comment-form-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .email-section-inner { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  footer { padding: 1.8rem 1.5rem 1rem; }
  .footer-inner {
    grid-template-columns: auto auto;
    gap: 1.2rem 3rem;
    margin-bottom: 1.2rem;
    justify-content: center;
    padding: 0 0.5rem;
  }
  .footer-brand { grid-column: 1/-1; }
  .footer-brand p { font-size: 0.75rem; line-height: 1.65; }
  footer h4 { font-size: 0.75rem; margin-bottom: 0.5rem; }
  footer ul li { margin-bottom: 0.28rem; }
  footer ul a { font-size: 0.72rem; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.6rem;
    padding-top: 0.9rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .footer-bottom span { white-space: nowrap; }

  /* Hero 極小螢幕 */
  .hero-h1 { font-size: 1.45rem; }
  .hero-left { padding: 1.8rem 1.5rem !important; }
  .hero-stats { gap: 1.2rem; }

  /* 訂閱區微調 */
  .home-email-section { padding: 2rem 1.5rem; }
  .home-email-left h2 { font-size: 1.2rem; }
  .home-email-left p { font-size: 0.82rem; }
  .home-email-form-card { padding: 1rem; }
  .home-email-submit { font-size: 0.8rem; padding: 0.75rem; }

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







/* ══════════════════════════════════════════════
   ── 18. 分類頁（archive.php）──
   ══════════════════════════════════════════════ */

/* ── 分類 Hero：滿版圖片 + 波浪遮罩 ── */
.cat-hero-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.cat-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cat-hero-fallback { width: 100%; height: 100%; }
.cat-hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
}
.cat-hero-wave svg { display: block; width: 100%; height: 80px; }
.cat-hero-color-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 文字區 */
.cat-hero-text {
  background: var(--cream);
  padding: 1.2rem 0 0;
}
.cat-hero-breadcrumb {
  font-size: 0.68rem; color: var(--text-light);
  display: flex; gap: 0.4rem; align-items: center;
  margin-bottom: 0.4rem;
}
.cat-hero-breadcrumb a { color: var(--text-light); text-decoration: none; }
.cat-hero-breadcrumb a:hover { color: var(--brand); }
.cat-hero-title-row {
  display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.cat-hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--text-dark); line-height: 1.2; margin: 0;
}
.cat-hero-sub {
  font-size: 0.82rem; color: var(--text-light); line-height: 1.5;
}

/* ── Toolbar：搜尋 + 排序 ── */
.cat-toolbar-wrap {
  background: transparent;
  padding: 0 0 2rem;
}
.cat-toolbar {
  display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  background: #EDE8D8;
  border-radius: 3rem;
  padding: 0.7rem 1.4rem;
}
.cat-toolbar-count {
  font-size: 0.8rem; color: var(--text-mid);
  font-weight: 500; white-space: nowrap; flex-shrink: 0;
}
.cat-search-form { display: flex; gap: 0.5rem; flex: 1; min-width: 200px; }
.cat-search-input {
  flex: 1; padding: 0.55rem 1rem;
  border: 1.5px solid var(--beige); border-radius: 2rem;
  font-size: 0.85rem; font-family: 'Noto Sans TC', sans-serif;
  background: white; outline: none; color: var(--text-dark);
  transition: border-color 0.18s;
}
.cat-search-input:focus { border-color: var(--brand); }
.cat-search-btn {
  padding: 0.55rem 1.2rem; background: var(--brand); color: white;
  border: none; border-radius: 2rem; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; font-family: 'Noto Sans TC', sans-serif;
  transition: background 0.2s; white-space: nowrap;
}
.cat-search-btn:hover { background: var(--brand-light); }
.cat-filters { display: flex; gap: 0.5rem; }
.cat-filter-select {
  padding: 0.52rem 2rem 0.52rem 0.9rem;
  border: 1.5px solid var(--beige); border-radius: 2rem;
  font-size: 0.82rem; font-family: 'Noto Sans TC', sans-serif;
  background: white; color: var(--text-mid); cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A8A8F' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}

/* ── 文章卡片 Grid ── */
.cat-posts-section { padding: 2rem 1.5rem 4rem; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}



/* ── 分頁 ── */
.cat-pagination {
  display: flex; justify-content: center;
  gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap;
}
.cat-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 0.82rem; text-decoration: none;
  color: var(--text-mid); border: 1px solid var(--beige);
  transition: all 0.2s;
}
.cat-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.cat-pagination .page-numbers.current { background: var(--brand); color: white; border-color: var(--brand); }
.cat-pagination .page-numbers.prev,
.cat-pagination .page-numbers.next { width: auto; padding: 0 1rem; border-radius: 2rem; }
.cat-empty { text-align: center; padding: 4rem 0; color: var(--text-light); }

/* ── 訂閱精簡版 ── */
.cat-subscribe {
  background: var(--beige);
  padding: 2rem 0;
  border-top: 1px solid var(--beige-dark);
}
.cat-subscribe-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.cat-subscribe-left { display: flex; flex-direction: column; gap: 0.2rem; }
.cat-subscribe-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--text-dark);
}
.cat-subscribe-sub { font-size: 0.8rem; color: var(--text-light); }
.cat-subscribe-form { display: flex; gap: 0.5rem; }
.cat-subscribe-form input {
  padding: 0.58rem 1rem; border-radius: 2rem;
  border: 1.5px solid var(--beige-dark);
  background: white; font-size: 0.85rem;
  font-family: 'Noto Sans TC', sans-serif;
  outline: none; width: 200px; color: var(--text-dark);
  transition: border-color 0.18s;
}
.cat-subscribe-form input:focus { border-color: var(--brand); }
.cat-subscribe-form button {
  padding: 0.58rem 1.3rem; background: var(--brand); color: white;
  border: none; border-radius: 2rem; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; font-family: 'Noto Sans TC', sans-serif; transition: background 0.2s;
}
.cat-subscribe-form button:hover { background: var(--brand-light); }

/* ── 內頁 Footer：金黃底白字（非首頁）── */
body:not(.home) footer { background: var(--brand-light); }
body:not(.home) footer h4 { color: white; }
body:not(.home) .footer-brand .nav-logo { color: white; }
body:not(.home) .footer-brand .nav-logo span { color: white !important; }
body:not(.home) .footer-brand p { color: rgba(255,255,255,0.75); }
body:not(.home) footer ul a { color: rgba(255,255,255,0.75); }
body:not(.home) footer ul a:hover { color: white; }
body:not(.home) .footer-bottom { border-top-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
body:not(.home) .footer-bottom a { color: rgba(255,255,255,0.6); }
body:not(.home) .email-banner { display: none; }

/* ── 分類頁 RWD ── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cat-hero-wrap { height: 220px; }
  .cat-hero-title { font-size: 1.35rem; }
  .cat-toolbar { flex-direction: column; align-items: stretch; border-radius: 1.2rem; }
  .cat-filters { flex-wrap: wrap; }
  .cat-subscribe-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 640px) {
  .cat-hero-wrap { height: 180px; }
  .cat-hero-title { font-size: 1.2rem; }
  .cat-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cat-subscribe-form { flex-direction: column; width: 100%; }
  .cat-subscribe-form input { width: 100%; }
}
/* ══════════════════════════════════════════════
   §19 單篇文章頁（single.php）
   ══════════════════════════════════════════════ */

/* ── Hero ── */
.single-hero-wrap {
  position: relative;
  overflow: hidden;
  height: 320px;
}
.single-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.single-hero-overlay {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
}
.single-hero-bg {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  /* 極淡灰階，分類色主導 */
  background: linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.12) 100%);
}
/* Hero text: bottom-left, above arc */
.single-hero {
  position: absolute; inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column; justify-content: center;
  padding-bottom: 3.5rem;
}

/* 日期 + 麵包屑：同一行，無底色 */
.single-header-line {
  display: flex; align-items: center;
  gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.8rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.7);
}
.single-date { color: rgba(255,255,255,0.7); }
.single-dot  { color: rgba(181,168,96,0.9); font-size: 0.5rem; }
.single-breadcrumb {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: rgba(255,255,255,0.7);
}
.single-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.single-breadcrumb a:hover { color: white; }
.single-breadcrumb span { opacity: 0.45; }

.single-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 2rem; font-weight: 700;
  color: white; margin-bottom: 1rem;
  line-height: 1.35; max-width: 820px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55), 0 4px 20px rgba(0,0,0,0.35);
}

/* Tags：金黃膠囊，參考 toolbox card */
.single-tags-hero {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 1.2rem;
}
.single-tag-pill {
  display: inline-block;
  background: rgba(181,168,96,0.5);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.28rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.73rem; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  border: 1px solid rgba(181,168,96,0.65);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
a.single-tag-pill:hover {
  background: rgba(181,168,96,0.8);
  border-color: rgba(181,168,96,0.9);
  text-decoration: none;
}

/* 倒圓弧：cream 色半圓蓋住 hero 底部 */
.single-hero-wave {
  position: absolute;
  bottom: -2px; left: -5%; width: 110%;
  height: 50px; z-index: 4;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ── Layout ── */
.single-layout { background: var(--cream); padding: 0 0 5rem; }
.single-grid   { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.single-main   { max-width: 1000px; margin: 0 auto; } /* ⚠️ 鎖定 1000px 不要改 */

/* ── 大綱：緊貼 hero 下方 ── */
.article-outline {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.3rem 0.5rem;
  font-size: 0.78rem; color: var(--text-mid);
  padding: 0.5rem 0 1rem;
  margin-top: 0;
}
.outline-reading { color: var(--text-light); flex-shrink: 0; }
.outline-dot     { color: var(--brand-light); flex-shrink: 0; }
.outline-label   { font-weight: 700; color: var(--text-dark); flex-shrink: 0; }
.outline-sep     { color: var(--beige-dark); flex-shrink: 0; }
.outline-link    { color: var(--brand); text-decoration: none; font-weight: 500; }
.outline-link:hover { color: var(--brand-light); }

/* ── 文章主圖（尺寸由圖片本身決定）── */
.article-hero-image {
  border-radius: 0.8rem; overflow: hidden;
  margin: 0 0 2.5rem;
}
.article-hero-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ── Intro 段落 ── */
.article-intro {
  font-size: 1.02rem; color: var(--text-mid);
  line-height: 2; margin-bottom: 2.5rem;
}

/* ── article-body：清除所有舊底色 ── */
.article-body {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.article-body h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-dark);
  margin: 2.5rem 0 0.8rem;
  padding: 0 0 0 0.8rem;
  border-left: 3px solid var(--cat-color, var(--brand));
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.article-body h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--text-mid);
  margin: 1.5rem 0 0.6rem;
}
.article-body p {
  font-size: 1.02rem; color: var(--text-mid);
  line-height: 2.05; margin-bottom: 1.2rem;
}
.article-body ul,
.article-body ol {
  margin: 0.8rem 0 1.2rem 1.5rem;
  background: transparent !important;
  border: none !important;
  padding: 0 0 0 0.5rem !important;
  border-radius: 0 !important;
}
.article-body li {
  font-size: 1rem; color: var(--text-mid);
  line-height: 1.95; margin-bottom: 0.6rem;
}
.article-body img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 0.8rem !important;
  margin: 1.5rem 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-shadow: none !important;
}

/* ── Content Block：間距，無底色 ── */
.content-block {
  margin-bottom: 4rem;
  background: transparent;
}

/* ── Section Title Bar ── */
.block-title-bar {
  background: #E8E0CC;
  border-radius: 3rem;
  padding: 0.6rem 1.6rem;
  margin-bottom: 1.6rem;
  text-align: center;
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; font-weight: 700;
  color: #7A6A35;
  letter-spacing: 0.06em;
}

/* ── 摘要：三行居中排列 ── */
.summary-content {
  display: flex; flex-direction: column;
  gap: 0.55rem; padding: 0.2rem 0;
  align-items: center; text-align: center;
}
.summary-row {
  display: flex; align-items: baseline;
  justify-content: center;
  gap: 0.5rem; flex-wrap: wrap; width: 100%;
}
.summary-row:last-child { margin-bottom: 0; }
.summary-col { display: contents; }
.summary-tools { display: flex; align-items: baseline; justify-content: center; gap: 0.4rem; min-width: 0; }
.summary-label {
  font-size: 0.8rem; color: var(--text-light);
  white-space: nowrap; flex-shrink: 0;
}
.summary-value { font-size: 0.92rem; color: var(--text-dark); font-weight: 500; }
.star-rating   { font-size: 0.95rem; color: var(--brand-light); letter-spacing: 0.08em; }

/* ── Tips 淡底色區 ── */
.tips-block {
  background: rgba(229,221,197,0.45);
  border-radius: 0.8rem;
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.tips-block-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-mid); letter-spacing: 0.05em;
  margin: 0 0 0.8rem;
}


/* 頻率建議後加額外間距 */
#maintenance.content-block { margin-bottom: 5rem; }
/* ── FAQ：Q&A 靜態展開 ── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--beige);
  background: transparent;
}
.faq-item:first-child { border-top: 1px solid var(--beige); }
.faq-q {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  display: flex; gap: 0.6rem; align-items: flex-start;
}
.faq-q::before {
  content: 'Q.';
  color: var(--brand-light);
  font-size: 0.85rem; font-weight: 800;
  flex-shrink: 0;
}
.faq-a {
  display: block;
  color: var(--text-mid); font-size: 1rem; line-height: 1.9;
  padding-left: 1.6rem;
}
.faq-a::before {
  content: 'A.';
  color: var(--brand);
  font-size: 0.85rem; font-weight: 700;
  display: inline; margin-right: 0.4rem;
}
.faq-a p { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text-mid); line-height: 1.9; }
.faq-a p:last-child { margin: 0; }

/* ── 相關文章 ── */
.related-section { margin: 3.5rem 0 2rem; }
.related-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--brand-light);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--beige);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
/* 相關文章卡片：簡化版（圖 + 標題 + 分類）*/
.related-grid .art-card-meta { display: none; }
.related-grid .art-card-excerpt { display: none; }
.related-grid .art-card-more { display: none; }
.related-grid .art-card-img-wrap { aspect-ratio: 4/3; }
.related-grid .art-card-title {
  font-size: 0.85rem; line-height: 1.5;
  -webkit-line-clamp: 2; display: -webkit-box;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0;
}
.related-grid .art-card-body {
  padding: 0.7rem 0.9rem 0.8rem;
}

/* ── 留言區 ── */
.single-comments {
  margin-top: 3rem;
  background: rgba(229,221,197,0.35);
  border-radius: 1rem;
  padding: 1.8rem 2rem;
  font-size: 0.88rem;
}
/* 已發佈留言內容：金黃色 */
.single-comments .comment-body,
.single-comments .comment-content,
.single-comments .comment-text,
.single-comments p {
  color: var(--brand-light) !important;
}
.single-comments .comment-author,
.single-comments .fn {
  color: var(--brand) !important;
  font-weight: 600;
}
.single-comments .comment-meta,
.single-comments time,
.single-comments .comment-date {
  color: var(--text-light) !important;
  font-size: 0.8rem;
}
/* Hide cookie consent checkbox row */
.single-comments .comment-form-cookies-consent { display: none !important; }
/* Submit button: white + brand border → gold fill on hover */
/* 留言送出：同首頁「瀏覽更多工具」按鈕風格 */
.single-comments .comment-submit,
.single-comments #submit {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  color: var(--brand) !important;
  padding: 0.72rem 2rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 2rem !important;
  border: 1.5px solid var(--brand) !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  font-family: 'Noto Sans TC', sans-serif !important;
  margin-top: 0.8rem !important;
}
.single-comments .comment-submit:hover,
.single-comments #submit:hover {
  background: var(--brand-light) !important;
  border-color: var(--brand-light) !important;
  color: white !important;
}

/* ── §19 RWD ── */
@media (max-width: 900px) {
  .single-title { font-size: 1.7rem; }
  .related-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .single-hero { padding: 1.8rem 0 4rem; }
}
@media (max-width: 640px) {
  .single-title { font-size: 1.45rem; }
  .block-title-bar { font-size: 0.88rem; }
  .single-main { padding: 0 1.5rem; }
  .article-body h2 { font-size: 1.05rem; }
}

/* ══════════════════════════════════════════════
   §20 靜態頁面（page.php）about / contact / privacy
   ══════════════════════════════════════════════ */

.page-layout {
  background: var(--cream);
  padding: 2.5rem 0 5rem;
}
.page-content {
  max-width: 860px;
  margin: 0 auto;
}
.page-body {
  background: transparent;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text-mid);
}
.page-body h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-dark);
  margin: 2.5rem 0 0.8rem;
  padding: 0 0 0 0.8rem;
  border-left: 3px solid var(--brand-light);
}
.page-body h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--text-dark);
  margin: 1.8rem 0 0.6rem;
}
.page-body p {
  margin-bottom: 1.2rem;
}
.page-body ul, .page-body ol {
  margin: 0.8rem 0 1.5rem 1.5rem;
  color: var(--text-mid);
}
.page-body li { margin-bottom: 0.5rem; }
.page-body a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--beige-dark);
  transition: color 0.18s, border-color 0.18s;
}
.page-body a:hover {
  color: var(--brand-light);
  border-color: var(--brand-light);
}
/* Contact form（Gravity Forms / Contact Form 7 基本樣式）*/
.page-body .gform_wrapper input,
.page-body .gform_wrapper textarea,
.page-body .wpcf7 input,
.page-body .wpcf7 textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--beige);
  border-radius: 0.6rem;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.9rem;
  background: var(--warm-white);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.18s;
  margin-bottom: 0.8rem;
}
.page-body .gform_wrapper input:focus,
.page-body .wpcf7 input:focus,
.page-body .gform_wrapper textarea:focus,
.page-body .wpcf7 textarea:focus {
  border-color: var(--brand-light);
}
.page-body .gform_button,
.page-body .wpcf7 input[type="submit"] {
  background: transparent !important;
  color: var(--brand) !important;
  border: 1.5px solid var(--brand) !important;
  padding: 0.72rem 2rem !important;
  border-radius: 2rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}
.page-body .gform_button:hover,
.page-body .wpcf7 input[type="submit"]:hover {
  background: var(--brand-light) !important;
  border-color: var(--brand-light) !important;
  color: white !important;
}

@media (max-width: 640px) {
  .page-content { padding: 0 0.5rem; }
  .page-body h2 { font-size: 1.05rem; }
}

/* ══════════════════════════════════════════════
   §20 靜態頁面（about / contact / privacy / 404）
   ══════════════════════════════════════════════ */

.static-layout { background: var(--cream); padding: 0 0 5rem; }

/* ── About：方案 B 雙欄開場 ── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 72vh;
  max-height: 82vh;
}
.about-hero-img-wrap {
  position: relative;
  overflow: hidden;
}
.about-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-hero-img-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #D2C8B0 0%, #C5B898 100%);
}
/* 極淡右側漸層接縫 */
.about-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(241,238,220,0.7) 100%);
}
/* 點點裝飾 */
.about-hero-dots {
  position: absolute; bottom: 2.5rem; right: 1.5rem;
  z-index: 3; opacity: 0.3;
  display: grid; grid-template-columns: repeat(5,1fr); gap: 5px;
}
.about-hero-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-light); display: block;
}
/* 右側：書簡排版 */
.about-hero-content {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem 4rem 3.5rem;
  background: var(--cream);
  position: relative;
}
.about-eyebrow {
  font-size: 0.7rem; color: var(--brand-light);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1.8rem; font-weight: 600;
}
/* 書簡風：標題小，內文主導 */
.about-slogan {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text-light); line-height: 1.6;
  margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.about-slogan em { color: var(--brand-light); font-style: normal; }
.about-slogan-sub { display: none; }
.about-hero-cta { display: none; }

/* 品牌故事區（大圖下方）*/
.about-story-section {
  background: var(--warm-white);
  padding: 4rem 0;
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
}
.about-story-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3.5rem; align-items: start;
}
.about-avatar-wrap { flex-shrink: 0; text-align: center; }
.about-avatar-img {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--beige);
  margin: 0 auto 0.8rem;
}
.about-avatar-placeholder {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--beige); display: flex;
  align-items: center; justify-content: center;
  font-size: 3.5rem; margin: 0 auto 0.8rem;
}
.about-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 0.2rem;
}
.about-role { font-size: 0.78rem; color: var(--text-light); }
.about-bio { }
.about-bio p { font-size: 1rem; color: var(--text-mid); line-height: 1.95; margin-bottom: 1rem; }
.about-tagline {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; color: var(--brand-light);
  font-weight: 600; padding: 0.9rem 1.3rem;
  border-left: 3px solid var(--brand-light);
  margin-top: 1.5rem; background: rgba(181,168,96,0.07);
  border-radius: 0 0.6rem 0.6rem 0; line-height: 1.7;
}

/* 以下區塊 */
.about-sections-wrap {
  padding: 4rem 0 0;
}

.about-section { margin-bottom: 3.5rem; }
.about-section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-dark); margin: 0 0 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--beige);
}
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.value-card {
  background: var(--warm-white); border: 1px solid var(--beige);
  border-left: 3px solid transparent;
  border-radius: 0.8rem; padding: 1.3rem 1.5rem;
  transition: all 0.25s;
}
.value-card:hover {
  border-left-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.value-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.value-title { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.value-desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; }

.about-cats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-cat-item { padding: 1.2rem 1.4rem; background: var(--warm-white); border-radius: 0.8rem; border: 1px solid var(--beige); }
.about-cat-tag {
  display: inline-block; color: white;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.22rem 0.8rem; border-radius: 2rem;
  margin-bottom: 0.6rem;
}
.about-cat-item p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.75; margin: 0; }

.about-disclosure-wrap {
  background: var(--warm-white); border: 1px solid var(--beige);
  border-radius: 0.8rem; padding: 1.4rem 1.8rem;
  margin-top: 2rem;
}
.about-disclosure-label {
  font-size: 0.78rem; font-weight: 700;
  color: var(--text-light); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.about-disclosure-wrap p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.85; margin: 0; }

/* ── Contact ── */
.contact-wrap {
  display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem; align-items: flex-start;
}
.contact-form-card,
.contact-info-card,
.contact-collab-card {
  background: var(--warm-white);
  border: 1px solid var(--beige);
  border-radius: 1rem; padding: 1.8rem 2rem;
  margin-bottom: 1rem;
}
.contact-card-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-dark); margin: 0 0 0.4rem;
}
.contact-card-desc { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1.4rem; }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.form-group label { font-size: 0.8rem; color: var(--text-mid); font-weight: 500; }
.form-group input, .form-group textarea {
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--beige); border-radius: 0.6rem;
  font-size: 0.92rem; font-family: 'Noto Sans TC', sans-serif;
  background: var(--cream); color: var(--text-dark);
  outline: none; transition: border-color 0.18s; width: 100%; box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand-light); background: white; }
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-contact-submit {
  background: transparent; color: var(--brand);
  border: 1.5px solid var(--brand); padding: 0.72rem 2rem;
  border-radius: 2rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: 'Noto Sans TC', sans-serif;
}
.btn-contact-submit:hover { background: var(--brand-light); border-color: var(--brand-light); color: white; }
.contact-note { font-size: 0.85rem; color: var(--text-light); }

.contact-sidebar { display: flex; flex-direction: column; gap: 0; }
.contact-item { display: flex; gap: 0.9rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--beige); }
.contact-item:last-child { border-bottom: none; }
.contact-item-icon { font-size: 1.2rem; flex-shrink: 0; }
.contact-item-label { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.1rem; }
.contact-item-body a { color: var(--brand); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.contact-item-body a:hover { color: var(--brand-light); }
.contact-collab-card { text-align: center; }
.contact-collab-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.contact-collab-card h4 { font-family: 'Noto Serif TC', serif; font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.contact-collab-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }

/* CF7 inside contact card */
.contact-form-card .wpcf7 input[type="text"],
.contact-form-card .wpcf7 input[type="email"],
.contact-form-card .wpcf7 textarea {
  width: 100%; padding: 0.65rem 1rem;
  border: 1.5px solid var(--beige); border-radius: 0.6rem;
  font-size: 0.92rem; font-family: 'Noto Sans TC', sans-serif;
  background: var(--cream); color: var(--text-dark);
  outline: none; transition: border-color 0.18s; box-sizing: border-box; margin-bottom: 0.8rem;
}
.contact-form-card .wpcf7 input:focus,
.contact-form-card .wpcf7 textarea:focus { border-color: var(--brand-light); background: white; }
.contact-form-card .wpcf7 input[type="submit"] {
  background: transparent !important; color: var(--brand) !important;
  border: 1.5px solid var(--brand) !important; padding: 0.72rem 2rem !important;
  border-radius: 2rem !important; font-size: 0.875rem !important; font-weight: 600 !important;
  cursor: pointer !important; transition: all 0.2s !important; font-family: 'Noto Sans TC', sans-serif !important;
}
.contact-form-card .wpcf7 input[type="submit"]:hover {
  background: var(--brand-light) !important; border-color: var(--brand-light) !important; color: white !important;
}

/* ── Privacy ── */
.privacy-card {
  max-width: 1000px; margin: 0 auto;
  background: var(--warm-white);
  border: 1px solid var(--beige);
  border-radius: 1rem; padding: 2.5rem 3rem;
}
.privacy-updated { font-size: 0.82rem; color: var(--text-light); margin-bottom: 2rem; }
.privacy-card h1 { display: none; }
.privacy-card h2 {
  font-family: 'Noto Serif TC', serif; font-size: 1.05rem; font-weight: 700;
  color: var(--text-dark); margin: 2rem 0 0.6rem;
  padding-left: 0.8rem; border-left: 3px solid var(--brand-light);
}
.privacy-card h2:first-of-type { margin-top: 0; }
.privacy-card p, .privacy-card li { font-size: 0.95rem; color: var(--text-mid); line-height: 1.9; }
.privacy-card ul, .privacy-card ol { margin: 0.5rem 0 1rem 1.5rem; }
.privacy-card li { margin-bottom: 0.3rem; }
.privacy-card a { color: var(--brand); text-decoration: none; }
.privacy-card a:hover { color: var(--brand-light); }
.privacy-card strong { color: var(--text-dark); }

/* ── 404 ── */
.error-404-content { text-align: center; padding: 2rem 0 3rem; color: var(--text-mid); }
.error-404-content p { margin-bottom: 2rem; font-size: 1rem; }
.error-404-links { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ── RWD ── */
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; min-height: auto; }
  .about-hero-img-wrap { height: 55vw; max-height: 380px; position: relative; }
  .about-hero-content { padding: 2.5rem 2rem; }
  .about-slogan { font-size: 1.5rem; }
  .about-story-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-avatar-wrap { display: flex; align-items: center; gap: 1.2rem; text-align: left; }
  .about-avatar-img, .about-avatar-placeholder { margin: 0; width: 80px; height: 80px; font-size: 2rem; }
  .values-grid, .about-cats-grid { grid-template-columns: 1fr; }
  .privacy-card { padding: 1.8rem 1.5rem; }
}
@media (max-width: 640px) {
  .about-avatar-img, .about-avatar-placeholder { width: 110px; height: 110px; }
  .contact-form-card, .contact-info-card, .contact-collab-card { padding: 1.4rem 1.2rem; }
}

/* ── About 補充 CSS（區二、三）── */
.about-tagline-hero {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; line-height: 1.8;
  color: var(--brand-light); font-weight: 600;
  padding: 0.9rem 1.3rem;
  border-left: 3px solid var(--brand-light);
  background: rgba(181,168,96,0.07);
  border-radius: 0 0.6rem 0.6rem 0;
  margin: 1.5rem 0 2rem;
}
.about-tagline-hero em { font-style: normal; color: var(--brand); }
.about-story-text p { font-size: 1rem; color: var(--text-mid); line-height: 1.95; margin-bottom: 0.9rem; }

/* 區二：創辦人 + 價值 */
.about-founder-section {
  background: var(--warm-white);
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
  padding: 4rem 0;
}
.about-founder-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3.5rem; align-items: stretch;
}
.about-founder-left { text-align: center; }
.about-founder-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text-dark); margin: 0.8rem 0 0.2rem;
}
.about-founder-role { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.8rem; }
.about-founder-desc { font-size: 0.85rem; color: var(--text-mid); line-height: 1.75; text-align: left; }
.about-founder-right { }
.about-founder-right h2 { margin-bottom: 1.5rem; }
/* 四張直式卡片 */
.values-grid-vertical {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
  height: 100%;
}
.value-card-v {
  background: var(--warm-white);
  border: 1px solid var(--beige);
  border-radius: 0.8rem;
  padding: 1.6rem 1.4rem 1.4rem;
  display: flex; flex-direction: column;
  gap: 0; flex: 1;
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
/* 左側金黃色線：hover 時滑入 */
.value-card-v::after {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px; background: var(--brand-light);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s ease;
  border-radius: 3px 0 0 3px;
}
.value-card-v:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  background: white;
}
.value-card-v:hover::after { transform: scaleY(1); }
.value-card-v:hover .value-card-v-icon { color: var(--brand-light); }
.value-card-v:hover .value-desc { max-height: 100px; opacity: 1; }
.value-card-v-num {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--brand-light); margin-bottom: 0.9rem; opacity: 0.7;
}
.value-card-v-icon {
  color: var(--beige-dark);
  transition: color 0.3s ease;
  margin-bottom: 0.7rem;
}
.value-card-v-icon svg { display: block; }
.value-card-v .value-title {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-dark); line-height: 1.5;
  margin-bottom: 0.5rem;
}
/* 描述：平時略縮，hover 展開 */
.value-card-v .value-desc {
  font-size: 0.78rem; color: var(--text-mid);
  line-height: 1.8; flex: 1;
  max-height: 3.2em; overflow: hidden;
  opacity: 0.7;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* 區三：分類卡片 */
.about-cats-section { padding: 4rem 0; background: var(--cream); }
.about-cats-intro {
  font-size: 0.95rem; color: var(--text-mid);
  line-height: 1.85; margin-bottom: 2rem; max-width: 680px;
}
.about-cats-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.about-cat-card {
  display: block; text-decoration: none;
  background: var(--warm-white);
  border: 1px solid var(--beige);
  border-radius: 1rem; padding: 1.5rem 1.8rem;
  transition: all 0.25s; color: inherit;
}
.about-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  border-color: var(--beige-dark);
}
.about-cat-badge {
  display: inline-block; color: white;
  font-size: 0.73rem; font-weight: 600;
  padding: 0.2rem 0.75rem; border-radius: 2rem;
  margin-bottom: 0.7rem;
}
.about-cat-card h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 0.5rem;
}
.about-cat-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 0.8rem; }
.about-cat-link { font-size: 0.82rem; color: var(--brand-light); font-weight: 600; }

/* 聯盟聲明 */
.about-disclosure-section { padding: 0 0 4rem; background: var(--cream); }

/* RWD 補充 */
@media (max-width: 900px) {
  .about-founder-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-founder-left { display: flex; align-items: center; gap: 1.2rem; text-align: left; }
  .about-avatar-img, .about-avatar-placeholder { width: 80px !important; height: 80px !important; font-size: 2rem !important; margin: 0 !important; flex-shrink: 0; }
  .values-grid-vertical { grid-template-columns: repeat(2, 1fr); }
  .about-cats-full { grid-template-columns: 1fr; }
  .about-contact-cta { flex-direction: column; text-align: center; }
}

/* About 頁聯絡 CTA */
.about-contact-cta-wrap {
  background: var(--brand);
  padding: 3rem 0;
}
.about-contact-cta {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.about-contact-cta-text h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.2rem; font-weight: 700;
  color: white; margin-bottom: 0.4rem;
}
.about-contact-cta-text p { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.about-contact-cta .btn-tools-all {
  background: transparent !important;
  color: white !important;
  border-color: rgba(255,255,255,0.6) !important;
  white-space: nowrap;
}
.about-contact-cta .btn-tools-all:hover {
  background: var(--brand-light) !important;
  border-color: var(--brand-light) !important;
  color: white !important;
}

.about-story-text p { font-size: 1rem; color: var(--text-mid); line-height: 1.9; margin-bottom: 0.9rem; }
.about-story-text em { color: var(--brand-light); font-style: normal; font-weight: 600; }

/* About 創辦人區塊左側圖 */
.about-founder-img-wrap {
  width: 100%; border-radius: 0.8rem;
  overflow: hidden; margin-bottom: 1rem;
  aspect-ratio: 3/4;
}
.about-founder-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.about-founder-img-wrap--avatar {
  aspect-ratio: 1/1; border-radius: 50%;
  width: 160px; margin: 0 auto 1rem;
}
.about-founder-img-wrap--placeholder {
  aspect-ratio: 1/1;
  display: flex; align-items: center;
  justify-content: center;
}

/* About：書簡風排版 */
.about-letter-body { margin-bottom: 1.8rem; }
.about-letter-open {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 1rem;
  line-height: 1.6;
}
.about-letter-body p {
  font-size: 0.95rem; color: var(--text-mid);
  line-height: 2; margin-bottom: 0.8rem;
}
.about-letter-body em { color: var(--brand-light); font-style: normal; font-weight: 600; }
.about-tagline-hero {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.88rem; color: var(--brand-light);
  font-weight: 600; line-height: 1.9;
  padding: 0.8rem 1.2rem;
  border-left: 2px solid var(--brand-light);
  background: rgba(181,168,96,0.06);
  border-radius: 0 0.5rem 0.5rem 0;
  margin-bottom: 1.2rem;
}
.about-letter-sig {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.82rem; color: var(--text-light);
  letter-spacing: 0.08em; margin-top: 0.5rem;
}
.about-letter-sig::before { content: '—  '; }

/* ══ 404 頁面 ══ */
.error404-layout {
  background: var(--cream);
  padding: 3rem 0 5rem;
}
.error404-hero-msg {
  text-align: center; margin-bottom: 2.5rem;
}
.error404-code {
  font-family: 'Noto Serif TC', serif;
  font-size: 5rem; font-weight: 700;
  color: var(--beige-dark); line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.error404-desc {
  font-size: 1rem; color: var(--text-mid);
  line-height: 1.9;
}

/* 搜尋列 */
.error404-search-form {
  display: flex; gap: 0; max-width: 600px;
  margin: 0 auto 3rem; border-radius: 2rem;
  overflow: hidden; border: 1.5px solid var(--beige);
  background: var(--warm-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.error404-search-input {
  flex: 1; padding: 0.8rem 1.4rem;
  border: none; outline: none;
  font-size: 0.92rem; font-family: 'Noto Sans TC', sans-serif;
  background: transparent; color: var(--text-dark);
}
.error404-search-btn {
  padding: 0.8rem 1.8rem;
  background: var(--brand); color: white;
  border: none; cursor: pointer;
  font-size: 0.88rem; font-weight: 600;
  font-family: 'Noto Sans TC', sans-serif;
  transition: background 0.2s; white-space: nowrap;
}
.error404-search-btn:hover { background: var(--brand-light); }

/* 分類卡片（小版）*/
.error404-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-bottom: 2.5rem;
}
.error404-cat-card {
  position: relative; border-radius: 0.8rem;
  overflow: hidden; text-decoration: none;
  aspect-ratio: 3/4; display: flex;
  align-items: flex-end;
  transition: transform 0.22s;
}
.error404-cat-card:hover { transform: translateY(-3px); }
.error404-cat-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.error404-cat-overlay {
  position: absolute; inset: 0;
}
.error404-cat-body {
  position: relative; z-index: 2;
  padding: 1rem; color: white;
}
.error404-cat-label {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.error404-cat-sub {
  font-size: 0.75rem; opacity: 0.85; margin-bottom: 0.3rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.error404-cat-count {
  font-size: 0.7rem; opacity: 0.7;
}
.error404-footer-links {
  text-align: center;
}

@media (max-width: 640px) {
  .error404-cats { grid-template-columns: repeat(2, 1fr); }
  .error404-code { font-size: 3.5rem; }
}

.about-founder-right {
  display: flex; flex-direction: column;
}
.about-founder-right h2 { margin-bottom: 1.2rem; }

/* 404 cat-editorial: slightly smaller */
.error404-cat-editorial { margin-bottom: 2.5rem; }
.error404-cat-editorial .cat-tile {
  min-height: 220px;
}
