/* =========================================================
   明燈慈善會　樣式
   顏色、字體、間距、圓角集中在 :root，換這裡就能換網站外觀
   ========================================================= */
:root {
  --brand: #c8441c;          /* 品牌色：橘紅 */
  --brand-dark: #9e3212;
  --brand-soft: #fde6d8;
  --accent: #f2a23a;         /* 強調色：燭光金 */
  --accent-soft: #fff1d6;
  --text: #3b2a22;           /* 文字 */
  --text-2: #6b5546;         /* 次要文字 */
  --bg: #fff9f2;             /* 背景：暖米白 */
  --surface: #ffffff;
  --surface-2: #fdf1e5;
  --line: #eedccb;           /* 分隔線 */
  --breaking: #b3261e;       /* 快訊 */
  --ad: #8a6d3b;             /* 廣告／贊助標示 */
  --on-brand: #ffffff;
  --shadow: 0 1px 2px rgba(120, 60, 20, .06), 0 6px 18px rgba(120, 60, 20, .08);
  --shadow-lg: 0 12px 40px rgba(120, 50, 10, .16);

  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --fs-body: 17px;           /* 內文：手機 17～18px、電腦 18～20px */
  --fs-article: 18px;
  --lh: 1.8;

  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --gap: 16px; --gap-lg: 28px;
  --max: 1200px;
  --header-h: 64px;

  /* 類別色 */
  --c-care: #c8441c; --c-blood: #b3261e; --c-reports: #7a5a1e; --c-meetings: #2f6b5e; --c-notice: #8a4b8f; --c-about: #6b5546;
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --fs-body: 17px; --fs-article: 19px; } }

html[data-fs="lg"] { --fs-body: 19px; --fs-article: 21px; }
html[data-fs="xl"] { --fs-body: 21px; --fs-article: 23px; }

/* 深色模式 */
:root[data-theme="dark"] {
  --brand: #ff8a5c; --brand-dark: #ffb08a; --brand-soft: #3a2219;
  --accent: #ffc163; --accent-soft: #3a2c16;
  --text: #f6eae0; --text-2: #cdb8a8;
  --bg: #1b1411; --surface: #261c17; --surface-2: #2e221c; --line: #43332a;
  --on-brand: #2a1208;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.3);
  --c-care: #ff9a6c; --c-blood: #ff7b72; --c-reports: #e0b56a; --c-meetings: #74c7b2; --c-notice: #d69ad9; --c-about: #cdb8a8;
  color-scheme: dark;
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.7; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 32px); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 880px; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.muted { color: var(--text-2); font-size: .92em; }

/* ---------- 按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); border: 2px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px rgba(200, 68, 28, .28); }
.btn--primary:hover { background: var(--brand-dark); color: var(--on-brand); transform: translateY(-1px); }
.btn--ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn--light { background: #fff; color: #9e3212; }
.btn--light:hover { background: #fff3e6; color: #7a250c; }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.05em; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn .ic { width: 24px; height: 24px; }
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; font-size: .95em; }
.chip[aria-pressed="true"], .chip:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ---------- 標誌 ---------- */
.emblem { width: 48px; height: 48px; flex: none; }
.emblem--sm { width: 56px; height: 56px; }
.emblem--hero { width: min(340px, 70vw); height: auto; aspect-ratio: 1; }
.em-flame { transform-origin: 60px 45px; animation: flicker 3.2s ease-in-out infinite; }
.em-glow { transform-origin: 60px 36px; animation: glow 3.2s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.03,.97) rotate(-1.5deg); } 60% { transform: scale(.98,1.04) rotate(1.2deg); } }
@keyframes glow { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- 頁首 ---------- */
.site-header { background: var(--surface); position: relative; z-index: 30; }
.header-in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text small { font-size: .72rem; color: var(--text-2); letter-spacing: .1em; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.2rem; color: var(--brand); letter-spacing: .04em; white-space: nowrap; }
.header-date { display: none; color: var(--text-2); font-size: .9rem; margin-left: 8px; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.btn--donate { padding: 8px 14px; min-height: 44px; }
.mainnav { position: sticky; top: 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-header { position: sticky; top: calc(-1 * var(--header-h) - 1px); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; color: var(--text); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .98rem; border-bottom: 3px solid transparent; }
.mainnav a:hover { color: var(--brand); }
.mainnav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
@media (max-width: 767px) {
  .btn--donate span { display: none; }
  .btn--donate { width: 44px; padding: 0; }
  .brand-text strong { font-size: 1.08rem; }
}
@media (min-width: 1024px) {
  .header-date { display: block; }
  .menu-btn { display: none; }
}

/* 側拉選單 */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(40, 20, 10, .45); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); padding: 12px 16px 24px; overflow-y: auto; box-shadow: var(--shadow-lg); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-search { display: flex; gap: 6px; margin-bottom: 12px; }
.drawer-search input { flex: 1; min-width: 0; }
.drawer-nav { list-style: none; padding: 0; margin: 0 0 16px; }
.drawer-nav a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.drawer-nav a[aria-current="page"] { color: var(--brand); }
.drawer-tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* 快訊列 */
.ticker { background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: .93rem; }
.ticker-in { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ticker-label { flex: none; background: var(--brand); color: var(--on-brand); border-radius: var(--r-pill); padding: 2px 10px; font-size: .8rem; font-weight: 700; }
.ticker-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.ticker-list a { display: block; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-list time { color: var(--text-2); margin-right: 8px; font-size: .88em; }
.ticker-btn { flex: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--text-2); display: grid; place-items: center; border-radius: 50%; }

/* ---------- 首頁主視覺 ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #fff4e6 0%, #ffe3cc 55%, #ffd2b3 100%); }
:root[data-theme="dark"] .hero { background: linear-gradient(160deg, #2a1c15 0%, #3a2218 60%, #4a2617 100%); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(circle at 78% 38%, rgba(255, 196, 102, .55), transparent 42%),
  radial-gradient(circle at 10% 110%, rgba(200, 68, 28, .18), transparent 40%); }
.hero-in { position: relative; display: grid; gap: 8px; padding-top: 32px; padding-bottom: 40px; align-items: center; }
.eyebrow { display: inline-block; color: var(--brand-dark); font-weight: 700; letter-spacing: .08em; font-size: .92rem; background: rgba(255,255,255,.6); padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }
:root[data-theme="dark"] .eyebrow { background: rgba(0,0,0,.25); }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.2rem, 8vw, 3.8rem); line-height: 1.2; letter-spacing: .06em; color: #8c2a0e; margin-bottom: 16px; }
:root[data-theme="dark"] .hero-title { color: #ffc9a8; }
.hero-text { font-size: 1.06em; line-height: 1.9; color: var(--text); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { display: grid; place-items: center; order: -1; }
.hero-art .emblem--hero { width: min(200px, 52vw); filter: drop-shadow(0 18px 30px rgba(200, 68, 28, .25)); }
@media (min-width: 768px) {
  .hero-in { grid-template-columns: 1.25fr .75fr; padding-top: 56px; padding-bottom: 64px; }
  .hero-art { order: 0; }
  .hero-art .emblem--hero { width: min(340px, 34vw); }
}

/* ---------- 區塊 ---------- */
.section { padding: 36px 0; }
.section--first { padding-top: 28px; }
.section--warm { background: var(--surface-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-title { font-family: var(--font-serif); font-size: 1.5rem; margin: 0; position: relative; padding-left: 16px; }
.sec-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: linear-gradient(var(--accent), var(--brand)); }
.sec-sub { margin: 6px 0 0 16px; color: var(--text-2); font-size: .95em; }
.more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--brand); text-decoration: none; font-weight: 700; white-space: nowrap; }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- 新聞卡 ---------- */
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 5 / 3; background: var(--surface-2); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-link:hover .card-img { transform: scale(1.04); }
.card-link:hover .card-title { color: var(--brand); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.08rem; margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-summary { margin: 0; color: var(--text-2); font-size: .93rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text-2); font-size: .84rem; margin: 0; }
.meta-photos { display: inline-flex; align-items: center; gap: 3px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 12%, transparent); text-decoration: none; }
.tag--care { --c: var(--c-care); } .tag--blood { --c: var(--c-blood); } .tag--reports { --c: var(--c-reports); }
.tag--meetings { --c: var(--c-meetings); } .tag--notice { --c: var(--c-notice); } .tag--about { --c: var(--c-about); }
a.tag { min-height: 32px; display: inline-flex; align-items: center; }

.card--lead .card-title { font-family: var(--font-serif); font-size: 1.45rem; -webkit-line-clamp: 3; }
.card--lead .card-body { padding: 18px 20px 22px; }
@media (min-width: 1024px) {
  .card--lead .card-link { display: grid; grid-template-columns: 1.35fr 1fr; }
  .card--lead .card-media { aspect-ratio: auto; min-height: 100%; }
  .card--lead .card-body { justify-content: center; padding: 28px; }
  .card--lead .card-title { font-size: 1.7rem; }
  .card--lead .card-summary { -webkit-line-clamp: 4; }
}
.card--row .card-link { flex-direction: row; gap: 0; }
.card--row .card-media { width: 38%; max-width: 260px; flex: none; }
.card--row .card-body { padding: 12px 14px; }
.card--row .card-title { font-size: 1.02rem; -webkit-line-clamp: 3; }
@media (max-width: 767px) { .card--row .card-summary { display: none; } .card--row .card-media { width: 40%; } }
.card--small { box-shadow: none; background: transparent; border-radius: 0; }
.card--small .card-link { flex-direction: row; gap: 12px; align-items: flex-start; }
.card--small .card-media { width: 112px; flex: none; border-radius: var(--r-sm); }
.card--small .card-body { padding: 0; gap: 4px; }
.card--small .card-title { font-size: .98rem; -webkit-line-clamp: 3; }
.card--small .meta .tag { display: none; }
.card--text { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); background: none; box-shadow: none; border-radius: 0; }
.card--text a { color: var(--text); text-decoration: none; font-weight: 600; min-height: 24px; }
.card--text a:hover { color: var(--brand); }
.card--text .card-title { -webkit-line-clamp: 2; font-size: 1rem; }
.card--text time { flex: none; color: var(--text-2); font-size: .85rem; padding-top: 2px; }
.is-placeholder { object-fit: cover; }

/* 頭條區 */
.headline { display: grid; gap: 20px; }
.headline-subs { display: grid; gap: 16px; }
@media (min-width: 768px) { .headline-subs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .headline { grid-template-columns: 1.9fr 1fr; align-items: stretch; }
  .headline-subs { grid-template-columns: 1fr; align-content: start; gap: 18px; background: var(--surface); padding: 18px; border-radius: var(--r); box-shadow: var(--shadow); }
  .headline .card--lead .card-link { grid-template-columns: 1fr; }
  .headline .card--lead .card-media { aspect-ratio: 5 / 3; }
  .headline .card--lead .card-body { padding: 20px 24px 24px; }
}

/* 類別區塊 */
.cat-block { display: grid; gap: 16px; }
.text-list { list-style: none; margin: 0; padding: 0 4px; }
@media (min-width: 768px) { .cat-block { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }

/* 服務項目 */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.svc { background: var(--surface); border-radius: var(--r); padding: 18px 16px; box-shadow: var(--shadow); }
.svc h3 { font-size: 1.08rem; margin: 10px 0 6px; }
.svc p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.75; }
.svc-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); color: var(--brand); }
.svc-icon .ic { width: 26px; height: 26px; }
@media (max-width: 420px) { .svc-grid { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .svc { padding: 24px; } }

/* 成果數字 */
.stats { background: linear-gradient(120deg, #b8391a, #d9541f 60%, #e9792b); color: #fff; padding: 28px 0; }
:root[data-theme="dark"] .stats { background: linear-gradient(120deg, #5a1f0c, #7a2e12); }
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: center; }
.stats-grid strong { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.1; }
.stats-grid small { font-size: .45em; margin-left: 4px; font-family: var(--font); }
.stats-grid span { font-size: .92rem; opacity: .92; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* 捐款橫幅 */
.donate-band { background: radial-gradient(circle at 15% 50%, #ffcf86 0, transparent 35%), linear-gradient(120deg, #a8340f, #cf4a1c); color: #fff; padding: 36px 0; }
:root[data-theme="dark"] .donate-band { background: linear-gradient(120deg, #4a1a0a, #6b2810); }
.donate-band-in { display: grid; gap: 18px; align-items: center; justify-items: start; }
.donate-band-art .emblem { width: 88px; height: 88px; }
.donate-band h2 { color: #fff; font-family: var(--font-serif); font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
.donate-band p { margin: 0; opacity: .95; }
.donate-band-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1024px) { .donate-band-in { grid-template-columns: auto 1fr auto; gap: 32px; } }

/* 服務足跡年份 */
.year-strip { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.year-strip a { display: block; scroll-snap-align: start; background: var(--surface); border-radius: var(--r); padding: 18px 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.year-strip a:hover { border-top-color: var(--brand); }
.year-strip strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--brand); }
.year-strip span { color: var(--text-2); font-size: .9rem; }

/* 相片牆 */
.photo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo-wall li[hidden] { display: none; }
.photo-wall a { position: relative; display: block; aspect-ratio: 5 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.photo-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-wall a:hover img { transform: scale(1.05); }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 8px; background: linear-gradient(transparent, rgba(40, 15, 5, .82)); color: #fff; font-size: .85rem; line-height: 1.4; display: flex; flex-direction: column; }
.ph-cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-cap small { display: block; opacity: .85; font-size: .78rem; }
@media (min-width: 768px) { .photo-wall { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .photo-wall { grid-template-columns: repeat(4, 1fr); } }

/* 首頁關於 */
.section--about { background: var(--surface-2); }
.about-teaser { display: grid; gap: 20px; align-items: center; }
.about-teaser-img img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }
.quote { font-family: var(--font-serif); font-size: 1.15em; color: var(--brand-dark); border-left: 4px solid var(--accent); padding-left: 14px; }
@media (min-width: 768px) { .about-teaser { grid-template-columns: 1.1fr 1fr; gap: 36px; } }

/* ---------- 列表頁 ---------- */
.crumb ol { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .88rem; color: var(--text-2); }
.crumb li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: var(--brand); text-decoration: underline; }
.crumb li[aria-current] { max-width: 18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-hero { padding: 8px 0 24px; }
.page-hero h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--brand-dark); margin-bottom: 8px; }
.page-hero p { color: var(--text-2); max-width: 44em; }
.page-hero--candle { background: radial-gradient(circle at 85% 30%, rgba(255, 196, 102, .4), transparent 40%), linear-gradient(180deg, var(--bg), var(--surface-2)); padding: 20px 0 32px; margin-bottom: 8px; }
.page-hero-flex { display: grid; gap: 16px; align-items: center; }
.page-hero-art { display: none; }
@media (min-width: 768px) { .page-hero-flex { grid-template-columns: 1fr auto; } .page-hero-art { display: block; } .page-hero-art .emblem--hero { width: 200px; } }
.page-count { font-size: .9rem; }

.layout-side { display: grid; gap: 32px; padding-bottom: 48px; }
.layout-side > * { min-width: 0; }
@media (min-width: 1024px) { .layout-side { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } }
.list-main > .card--lead { margin-bottom: 20px; }
.list { display: grid; gap: 14px; }
@media (min-width: 768px) and (max-width: 1023px) { .page-list .list { grid-template-columns: 1fr 1fr; } .page-list .card--row .card-link { flex-direction: column; } .page-list .card--row .card-media { width: 100%; max-width: none; } }
.sidebar { display: grid; gap: 24px; align-content: start; }
@media (min-width: 768px) and (max-width: 1023px) { .sidebar { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sidebar { position: sticky; top: 64px; } }
.side-block { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.side-block .sec-head { margin-bottom: 12px; }
.side-block .sec-title { font-size: 1.15rem; }
.stack { display: grid; gap: 14px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rank li::before { content: counter(r); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.rank li:nth-child(-n+3)::before { background: var(--brand); color: var(--on-brand); }
.rank a { color: var(--text); text-decoration: none; font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank a:hover { color: var(--brand); }
.empty { padding: 40px 16px; text-align: center; color: var(--text-2); background: var(--surface); border-radius: var(--r); }

.pager ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); font-weight: 600; }
.pager a:hover { background: var(--brand-soft); }
.pager span[aria-current] { background: var(--brand); color: var(--on-brand); }
.pager .gap { display: grid; place-items: center; width: 24px; color: var(--text-2); }

/* 捐款小卡 */
.donate-box { background: linear-gradient(160deg, var(--accent-soft), var(--brand-soft)); border-radius: var(--r-lg); padding: 22px; text-align: center; border: 1px solid var(--line); }
.donate-box-icon { display: grid; place-items: center; }
.donate-box-title { font-family: var(--font-serif); font-size: 1.3rem; color: var(--brand-dark); margin: 6px 0 8px; }
.donate-box p { font-size: .93rem; color: var(--text); }
.donate-box-acc strong { font-size: 1.3rem; letter-spacing: .08em; color: var(--brand-dark); }
.donate-box-acc span { font-size: .85rem; color: var(--text-2); }
.article .donate-box { margin-top: 36px; }

/* ---------- 內文頁 ---------- */
.article { max-width: 760px; }
.article-head { margin-bottom: 18px; }
.article-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 5.4vw, 2.2rem); line-height: 1.4; margin: 10px 0 12px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: .9rem; }
.article-cover { margin: 0 0 20px; }
.article-cover img, .inline-fig img { width: 100%; border-radius: var(--r); }
figcaption { font-size: .88rem; color: var(--text-2); margin-top: 8px; text-align: center; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.article-lede { font-size: calc(var(--fs-article) * 1.02); line-height: 1.85; color: var(--text); font-weight: 600; background: var(--surface-2); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose { font-size: var(--fs-article); line-height: var(--lh); max-width: 38em; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-serif); margin: 1.6em 0 .6em; color: var(--brand-dark); }
.prose h2 { font-size: 1.3em; } .prose h3 { font-size: 1.15em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--font-serif); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { word-break: break-all; }
.inline-fig { margin: 1.4em 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.table-wrap table { border-collapse: collapse; min-width: 100%; font-size: .88em; line-height: 1.6; }
.table-wrap td, .table-wrap th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; min-width: 5em; }
.table-wrap tr:nth-child(even) td { background: var(--surface-2); }
.block-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 1.25rem; margin: 32px 0 14px; color: var(--text); }
.block-title .ic { color: var(--brand); }
.block-title span { font-family: var(--font); font-size: .8rem; color: var(--text-2); font-weight: 400; margin-left: 4px; }
.album-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.album-grid button { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); }
.album-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-grid button:hover img { transform: scale(1.06); }
@media (min-width: 768px) { .album-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; margin-bottom: 14px; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 54px; border-radius: 14px; border: 0; background: rgba(200, 30, 20, .92); color: #fff; cursor: pointer; display: grid; place-items: center; }
.yt-play .ic { width: 44px; height: 44px; }
.info-row { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border-radius: var(--r-sm); margin-top: 14px; box-shadow: var(--shadow); }
.info-row > .ic { color: var(--brand); margin-top: 4px; }
.info-row strong { display: block; font-size: .85rem; color: var(--text-2); }
.keywords { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keywords a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); text-decoration: none; font-size: .9rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-label { width: 100%; font-weight: 700; color: var(--text-2); font-size: .92rem; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; font-weight: 600; font-size: .95rem; }
.share-btn--line { background: #06c755; border-color: #06c755; color: #fff; }
.share-btn--fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn--line:hover, .share-btn--fb:hover { color: #fff; filter: brightness(1.08); }
.prevnext { display: grid; gap: 12px; margin-top: 24px; }
.pn { display: block; padding: 14px 16px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.5; }
.pn span { display: block; font-size: .82rem; color: var(--brand); font-weight: 700; margin-bottom: 2px; }
.pn--next { text-align: right; }
@media (min-width: 768px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .95rem; }
.notice--warn { border-left-color: var(--breaking); }

/* 燈箱 */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(20, 10, 5, .94); display: grid; grid-template-rows: auto 1fr auto; color: #fff; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
.lb-top .icon-btn { color: #fff; }
.lb-top .icon-btn:hover { background: rgba(255,255,255,.12); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-cap { padding: 10px 16px 18px; text-align: center; font-size: .92rem; min-height: 44px; }

/* ---------- 服務足跡 ---------- */
.year-jump { position: sticky; top: 46px; z-index: 5; background: var(--bg); padding: 8px 0; margin-bottom: 8px; }
.year-jump ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.year-jump a { display: grid; place-items: center; min-width: 64px; min-height: 40px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; font-weight: 700; }
.year-jump a:hover { background: var(--brand); color: var(--on-brand); }
.timeline { position: relative; padding: 8px 0 48px 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--brand)); }
.tl-year { margin-bottom: 28px; }
.tl-year-title { position: relative; display: flex; align-items: baseline; gap: 10px; font-family: var(--font-serif); margin: 8px 0 14px; }
.tl-year-title::before { content: ""; position: absolute; left: -22px; top: .35em; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 18px var(--accent); }
.tl-year-title span { font-size: 1.8rem; color: var(--brand); }
.tl-year-title small { font-family: var(--font); color: var(--text-2); font-size: .85rem; font-weight: 400; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .tl-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tl-list { grid-template-columns: repeat(3, 1fr); } .timeline { padding-left: 32px; } .tl-year-title::before { left: -32px; } }
.tl-item a { display: flex; gap: 12px; padding: 10px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); color: var(--text); text-decoration: none; height: 100%; }
.tl-item a:hover h3 { color: var(--brand); }
.tl-media { width: 96px; flex: none; aspect-ratio: 5 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.tl-media img { width: 100%; height: 100%; object-fit: cover; }
.tl-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tl-body h3 { font-size: .96rem; margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 相簿頁篩選 */
.chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.photo-wall--all { margin-bottom: 48px; }

/* ---------- 捐款頁 ---------- */
.section-block { margin: 12px 0 36px; }
.section-block > .block-title { margin-top: 12px; }
.pay-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .pay-grid { grid-template-columns: repeat(3, 1fr); } }
.pay-card { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); border-top: 5px solid var(--brand); display: flex; flex-direction: column; }
.pay-card h3 { font-family: var(--font-serif); color: var(--brand-dark); font-size: 1.2rem; }
.pay-card dl { margin: 0 0 14px; flex: 1; }
.pay-card dl div { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.pay-card dt { font-size: .82rem; color: var(--text-2); }
.pay-card dd { margin: 0; font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; overflow-wrap: anywhere; }
.item-grid { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }
.item-grid li { background: var(--surface-2); border-radius: var(--r); padding: 16px 18px; }
.item-grid h3 { font-size: 1.1rem; color: var(--brand-dark); margin-bottom: 4px; }
.item-grid p { margin: 0; font-size: .93rem; color: var(--text-2); }
.dl-table { margin: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.dl-table div { display: grid; gap: 2px 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.dl-table div:last-child { border-bottom: 0; }
.dl-table dt { font-weight: 700; color: var(--brand-dark); }
.dl-table dd { margin: 0; color: var(--text); }
@media (min-width: 768px) { .dl-table div { grid-template-columns: 120px 1fr; } }
.fee { margin-top: 14px; background: var(--accent-soft); padding: 12px 16px; border-radius: var(--r-sm); }
.sub { font-size: 1.1rem; margin-top: 18px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.contact-cards { display: grid; gap: 12px; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px 18px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); color: var(--text); text-decoration: none; min-height: 72px; }
.contact-card .ic { grid-row: span 2; width: 28px; height: 28px; color: var(--brand); }
.contact-card span { font-size: .84rem; color: var(--text-2); }
.contact-card strong { font-size: 1.05rem; overflow-wrap: anywhere; }
a.contact-card:hover { box-shadow: var(--shadow-lg); }
a.contact-card:hover strong { color: var(--brand); }

/* ---------- 關於 ---------- */
.about-intro { display: grid; gap: 20px; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--r-lg); width: 100%; box-shadow: var(--shadow); }
.svc-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.svc-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.svc-list h3 { margin: 0 0 4px; font-size: 1.05rem; }
.svc-list p { margin: 0; color: var(--text-2); font-size: .94rem; }
@media (min-width: 768px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.milestones { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); display: grid; gap: 14px; }
.milestones li { position: relative; display: grid; gap: 2px; }
.milestones li::before { content: ""; position: absolute; left: -28px; top: .45em; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.milestones strong { font-family: var(--font-serif); color: var(--brand); font-size: 1.2rem; }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert-grid a { display: block; background: var(--surface); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.5; height: 100%; }
.cert-grid img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: 8px; }
.media-list, .doc-list { list-style: none; margin: 0; padding: 0; }
.media-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 2px; }
.media-list a { font-weight: 700; text-decoration: none; }
.media-list span { color: var(--text-2); font-size: .88rem; }
.doc-list { display: grid; gap: 8px; }
@media (min-width: 768px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc-list a { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 14px; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.doc-list a .ic { color: var(--brand); }
.flag { margin: 0 auto 32px; max-width: 360px; text-align: center; }
.flag img { border-radius: var(--r); margin: 0 auto; box-shadow: var(--shadow); }

/* ---------- 搜尋 ---------- */
.search-form { display: grid; gap: 10px; max-width: 760px; }
.search-form input, .search-form select, .drawer-search input { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; width: 100%; }
@media (min-width: 768px) { .search-form { grid-template-columns: 1fr 150px 130px auto; } }
.search-status { color: var(--text-2); margin: 8px 0 16px; }

/* 狀態頁 */
.state-page { padding: 40px 0 64px; text-align: center; }
.state-page .emblem--hero { width: 160px; margin: 0 auto 12px; }
.state-page h1 { font-family: var(--font-serif); color: var(--brand-dark); }
.state-page .hero-cta { justify-content: center; margin: 16px 0 36px; }
.state-page .grid { text-align: left; }

/* ---------- 頁尾 ---------- */
.site-footer { background: #3a1f14; color: #f6e6d8; padding: 44px 0 0; margin-top: 0; }
.footer-grid { display: grid; gap: 28px; }
.site-footer h2 { color: #ffd7b8; font-size: 1.05rem; margin-bottom: 12px; }
.site-footer a { color: #ffe9d6; }
.site-footer p { color: #e8d2c0; font-size: .92rem; }
.brand--footer .brand-text strong { color: #ffb48a; }
.brand--footer .brand-text small { color: #e8d2c0; }
.footer-brand p { margin-top: 12px; }
.contact-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; }
.contact-list li { display: flex; gap: 8px; align-items: flex-start; }
.contact-list .ic { margin-top: 4px; color: #ffb48a; }
.footer-links { grid-template-columns: 1fr 1fr; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-acc { margin-top: 14px; }
.footer-acc strong { color: #fff; font-size: 1.1rem; letter-spacing: .06em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding: 16px; text-align: center; }
.footer-bottom p { margin: 0; font-size: .85rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; } }

/* 浮動工具與手機底部列 */
.float-tools { position: fixed; right: 14px; bottom: 84px; z-index: 40; display: grid; gap: 8px; }
.float-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.float-btn:hover { color: var(--brand); }
.float-btn[hidden] { display: none; }
.float-tools .float-btn:not(.to-top) { display: none; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.3fr 1fr; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(120, 50, 10, .1); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 600; }
.mobile-bar .ic { width: 22px; height: 22px; color: var(--brand); }
.mobile-bar-main { background: var(--brand); color: var(--on-brand) !important; font-size: .9rem !important; }
.mobile-bar-main .ic { color: var(--on-brand); }
body { padding-bottom: 60px; }
@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
  .float-tools { bottom: 24px; }
  .float-tools .float-btn:not(.to-top) { display: grid; }
}

/* 複製成功提示 */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 90; background: #3a1f14; color: #fff; padding: 10px 18px; border-radius: var(--r-pill); font-size: .92rem; box-shadow: var(--shadow-lg); }

/* 尊重「減少動態效果」 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .ticker, .site-footer, .float-tools, .mobile-bar, .sidebar, .share, .donate-box { display: none !important; }
  body { padding: 0; background: #fff; }
}
