/* Hallmark · genre: editorial · macrostructure: Long Document (內容頁)／Index（首頁）· design-system: docs/design.md · designed-as-app
 * theme: custom「地方誌」· paper 米白 #faf7f1 · accent 山林綠 #2f6b4f＋稻穗金 #c8932b · display Noto Serif TC 700 + body Noto Sans TC 400/700
 * nav: 桌機分類下拉＋手機分類卡片膠囊（使用者指定）· footer: Ft4 dense colophon
 *
 * 宜蘭旅遊網｜2026-12-01 第 21 批改版（去 AI 感）
 * 識別：山林綠＋稻穗金＋米白紙色。頁首淺色、頁尾深綠，避開宜蘭景點網（深藍）與宜蘭旅遊景點網（天空藍）。
 * 版面語言：細線分隔（不用單邊粗色條、不用陰影浮起）、方角按鈕、明體標題＋黑體內文；
 *          相關連結與手機選單維持膠囊（使用者指定），常見問題維持兩欄卡片。
 * 顏色一律用下方變數；新顏色先加變數再引用。
 */
:root {
    --paper: #faf7f1;
    --paper-2: #f3eee3;
    --surface: #fefcf8;
    --ink: #1d2b24;
    --text: #2b302d;
    --muted: #5b655f;
    --green: #2f6b4f;
    --green-dark: #234f3b;
    --green-deep: #183a2b;
    --green-soft: #e6efe9;
    --gold: #c8932b;
    --gold-dark: #9c6f16;
    --gold-soft: #f5e8cc;
    --red: #b23a2b;
    --red-soft: #f8ebe6;
    --line: #e4dccd;
    --line-strong: #cfc3ad;
    --on-dark: #fbf8f1;
    --on-dark-muted: rgba(251, 248, 241, .78);
    --on-dark-line: rgba(251, 248, 241, .16);
    --row-alt: #fbf8f2;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow-pop: 0 10px 28px rgba(29, 43, 36, .12);
    --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
    --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; font-style: normal; line-height: 1.4; letter-spacing: .02em; overflow-wrap: anywhere; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 8px 16px; background: var(--gold); color: var(--ink); border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }

/* ---------- 頁首 ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line-strong); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: .08em; color: var(--green-deep); }
.brand-sub { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--gold-dark); }

.main-nav { display: flex; align-self: stretch; gap: 4px; }
.nav-group { position: relative; display: flex; align-items: center; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.nav-top:hover, .nav-group:focus-within .nav-top { color: var(--green); }
.nav-group.is-current .nav-top { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.icon-down { width: .9em; height: .9em; opacity: .55; transition: transform .2s var(--ease); }
.nav-group:hover .icon-down, .nav-group:focus-within .icon-down { transform: rotate(180deg); }
.nav-panel { position: absolute; top: 100%; left: 50%; width: 340px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-top: 2px solid var(--ink); box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; }
.nav-group:hover .nav-panel, .nav-group:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-group:nth-last-child(-n+2) .nav-panel { left: auto; right: 0; transform: translate(0, 4px); }
.nav-group:nth-last-child(-n+2):hover .nav-panel, .nav-group:nth-last-child(-n+2):focus-within .nav-panel { transform: translate(0, 0); }
/* 「最新消息」直接連結，和分類之間用細線隔開 */
.nav-solo { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--line); }
.nav-panel-desc { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }
.nav-panel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.nav-panel-list.is-wide { grid-template-columns: repeat(3, 1fr); }
.nav-panel-list a { display: block; padding: 4px 0; color: var(--text); font-size: 15px; text-decoration: none; }
.nav-panel-list a:hover, .nav-panel-list a[aria-current] { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--gold); }
.nav-group:nth-last-child(-n+3) .nav-panel { width: 360px; }

.menu-button { display: none; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.menu-button:hover { background: var(--paper-2); }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: inline; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.search-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.search-link:hover, .search-link[aria-current] { color: var(--green); }
.search-link .icon { width: 1.15em; height: 1.15em; }
@media (max-width: 640px) { .header-row { gap: 10px; } .search-link { padding: 8px; } }
@media (max-width: 640px), (min-width: 1101px) and (max-width: 1280px) { .search-link-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-form { display: flex; gap: 0; max-width: 720px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--surface); }
.search-form input { flex: 1; min-width: 0; padding: 12px 16px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
.search-form:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.search-form input:focus { outline: none; }
.search-form button { display: inline-flex; align-items: center; gap: 6px; padding: 0 22px; border: 0; border-radius: 0 2px 2px 0; background: var(--green-deep); color: var(--on-dark); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.search-form button:hover { background: var(--green); }
.search-form button .icon { width: 1.1em; height: 1.1em; }
.search-status { margin: 18px 0 8px; color: var(--muted); }
.search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 0 32px; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results a { display: block; color: var(--ink); text-decoration: none; }
.search-results a strong { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--green-deep); }
.search-results a:hover strong { text-decoration: underline; text-decoration-color: var(--gold); }
.search-results p { margin-top: 4px; color: var(--text); font-size: 15px; line-height: 1.7; }
.search-results mark { background: var(--gold-soft); color: inherit; padding: 0 1px; }
.search-group { display: block; margin-bottom: 2px; color: var(--gold-dark); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.search-suggest { margin-top: 32px; }
.search-suggest[hidden] { display: none; }
.search-suggest h2 { margin-bottom: 12px; font-size: 19px; }
.search-foot { margin-top: 24px; color: var(--muted); }
@media (max-width: 640px) { .search-form button span { display: none; } .search-form button { padding: 0 16px; } }

.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); max-height: calc(100vh - 68px); overflow-y: auto; }
/* 手機選單：分類卡片＋膠囊（使用者指定），細框、不加色條 */
.mobile-grid { display: grid; gap: 12px; padding: 16px 0 24px; }
.mobile-card { padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mobile-card h2 { margin-bottom: 10px; font-size: 18px; }
.mobile-card h2 a { color: var(--green-deep); text-decoration: none; }

/* 膠囊：相關連結、手機選單、分類卡片（使用者指定保留） */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-block; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font-size: 15px; line-height: 1.6; white-space: nowrap; text-decoration: none; transition: border-color .15s var(--ease), color .15s var(--ease); }
.pills a:hover { border-color: var(--green); color: var(--green-dark); }
.pills a[aria-current] { border-color: var(--green-deep); background: var(--green-deep); color: var(--on-dark); }

@media (max-width: 1100px) {
    .main-nav { display: none; }
    .menu-button { display: inline-flex; }
}
@media (min-width: 640px) and (max-width: 1100px) {
    .mobile-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1101px) {
    .mobile-menu { display: none !important; }
}

/* ---------- 共用區塊 ---------- */
main { display: block; }
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
/* 區塊標題：上方一條墨線，標題左、說明右；手機改上下 */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; padding-top: 14px; border-top: 2px solid var(--ink); }
.section-head > * { min-width: 0; }
.section-head h2 { font-size: clamp(25px, 2.5vw, 32px); }
.section-head p { color: var(--muted); font-size: 15px; text-align: right; }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--gold-dark); font-size: 13px; font-weight: 700; letter-spacing: .2em; }

.page-head { padding: 40px 0 30px; border-bottom: 1px solid var(--line-strong); background: var(--paper); }
.page-head h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; }
.page-head p { max-width: 760px; margin-top: 10px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.crumbs li { white-space: nowrap; }
.crumbs li:last-child { white-space: normal; }
.crumbs li + li::before { content: "／"; margin-right: 6px; color: var(--line-strong); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border: 1px solid var(--green-deep); border-radius: var(--radius-sm); background: var(--green-deep); color: var(--on-dark); font-weight: 700; white-space: nowrap; text-decoration: none; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.btn:active { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn-ghost:hover { background: var(--green-soft); border-color: var(--green-deep); color: var(--green-deep); }

/* ---------- 首頁 ---------- */
/* 首頁開場：左文右圖，不蓋漸層；下方是「出發前常被問到」索引 */
.hero { padding: 48px 0 0; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: end; }
.hero-copy { min-width: 0; padding-bottom: 8px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.15; letter-spacing: .06em; color: var(--green-deep); }
.hero h1 small { display: block; margin-bottom: 14px; color: var(--gold-dark); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .3em; }
.hero-lead { max-width: 34em; margin-top: 20px; color: var(--text); font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { margin: 0; min-width: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.hero-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: right; }
/* 開場照片輪播（assets/js/home.js）：疊放淡入，不做滑動、縮放 */
.hero-stage { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-2); }
.hero-stage:focus-visible { outline-offset: 3px; }
.hero-stage .hero-media { display: block; }
.hero-stage .hero-media + .hero-media { position: absolute; inset: 0; }
.hero-stage .hero-media img { display: block; height: 100%; }
.hero-stage .hero-media.is-entering { opacity: 0; }
.hero-stage .hero-media { transition: opacity .8s var(--ease); }
.is-slider figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); text-align: left; }
.hero-cap { display: flex; align-items: baseline; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
.hero-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); text-decoration: none; }
.hero-link[href]:hover { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--gold); }
.hero-link[href]::after { content: " →"; color: var(--gold-dark); }
.hero-season { flex: none; padding: 1px 8px; border: 1px solid var(--gold); border-radius: var(--radius-sm); color: var(--gold-dark); font-size: 12px; font-weight: 700; }
.hero-season[hidden] { display: none; }
.hero-ctrl { display: flex; flex: none; align-items: center; gap: 4px; }
.hero-ctrl[hidden] { display: none; }
.hero-count { margin-right: 8px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-count b { color: var(--gold-dark); font-family: var(--serif); font-size: 15px; }
.hero-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.hero-btn:hover { border-color: var(--green); color: var(--green); }
.hero-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-btn .i-play { fill: currentColor; stroke-width: 1.2; }
.hero-btn .i-play, .hero-btn.is-paused .i-pause { display: none; }
.hero-btn.is-paused .i-play { display: block; }
@media (max-width: 640px) { .hero-btn { width: 36px; height: 36px; } }
@media (max-width: 380px) { .hero-count { display: none; } }
.hero-ask { margin-top: 44px; padding: 18px 0 0; border-top: 1px solid var(--ink); }
.hero-ask-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 8px; }
.hero-ask h2 { font-size: 20px; }
.hero-ask ol { counter-reset: ask; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.hero-ask li { counter-increment: ask; border-bottom: 1px solid var(--line); }
.hero-ask a { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; color: var(--text); text-decoration: none; }
.hero-ask a::before { content: counter(ask); flex: none; min-width: 1.2em; color: var(--gold-dark); font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1; }
.hero-ask a:hover { color: var(--green-dark); text-decoration: underline; text-decoration-color: var(--gold); }
.hero-ask .note { color: var(--muted); font-size: 13px; }

/* 分類：4 欄不對稱，第 1、6 張橫跨兩格（圖文並排）；不浮起、不放大 */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.group-card { display: flex; flex-direction: column; min-width: 0; }
.group-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-soft); border-radius: var(--radius-sm); }
.group-media img { width: 100%; height: 100%; object-fit: cover; }
/* 照片上的分類名和下方標題重複，不顯示（保留標記給讀屏以外的用途） */
.group-tag { display: none; }
.group-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding-top: 14px; }
.group-body h3 { font-size: 22px; }
.group-body h3 a { color: var(--ink); text-decoration: none; }
.group-body h3 a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); }
.group-body p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.group-body .pills { margin-top: auto; padding-top: 4px; }
.group-body .pills a { padding: 2px 11px; font-size: 14px; }
.group-card:nth-child(1), .group-card:nth-child(6) { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.group-card:nth-child(1) .group-body, .group-card:nth-child(6) .group-body { padding-top: 0; }
.group-card:nth-child(1) .group-body h3, .group-card:nth-child(6) .group-body h3 { font-size: 26px; }

/* 十二鄉鎮：細線索引，不做方塊 */
.towns-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 24px; margin-top: -14px; }
.town-chip { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: color .15s var(--ease); }
.town-chip:hover { color: var(--green); }
.town-chip strong { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.town-chip span { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: lowercase; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; }
.panel { padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { margin-bottom: 8px; font-size: 21px; }
.panel p { color: var(--muted); font-size: 15px; }
.panel-accent { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-dark); }
.panel-accent h3 { color: var(--on-dark); }
.panel-accent p { color: var(--on-dark-muted); }
.panel-accent a { color: var(--on-dark); text-decoration-color: var(--gold); }
.sisters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .sisters { grid-template-columns: 1fr; } }
.sisters a { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sisters a:hover strong { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); }
.sisters strong { display: block; font-family: var(--serif); font-weight: 700; }
.sisters span { color: var(--muted); font-size: 14px; }
.principles { display: grid; gap: 14px; margin-top: 14px; counter-reset: pr; }
.principles li { position: relative; padding-left: 34px; color: var(--on-dark-muted); font-size: 15px; counter-increment: pr; }
.principles li::before { content: counter(pr); position: absolute; left: 0; top: -2px; color: var(--gold); font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.2; }

/* ---------- 網站地圖、404 ---------- */
/* 網站地圖：多欄瀑布排列，卡片高度不一也不會留白 */
.sitemap-grid { column-count: 3; column-gap: 40px; }
.sitemap-card { display: inline-block; width: 100%; margin-bottom: 32px; break-inside: avoid; padding-top: 12px; border-top: 2px solid var(--ink); }
.sitemap-card h2 { margin-bottom: 6px; font-size: 22px; }
.sitemap-card h2 a { color: var(--ink); text-decoration: none; }
.sitemap-card h2 a:hover { color: var(--green); }
.sitemap-card > p { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.sitemap-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sitemap-card li a { display: block; padding: 4px 0; color: var(--text); font-size: 15px; text-decoration: none; }
.sitemap-card li a:hover { color: var(--green); text-decoration: underline; }
.preview-flag { margin-top: 18px; padding: 10px 14px; background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; }

.notfound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.notfound-code { color: var(--gold); font-family: var(--serif); font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: .04em; }

.notfound-text { margin-top: 12px; color: var(--muted); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.notfound-group { margin: 12px 0 6px; font-weight: 700; }
.panel-h2 { margin-bottom: 8px; font-size: 21px; }
.sitemap-card ul.is-single { grid-template-columns: 1fr; }

/* ---------- 內容頁（inc/lib/render.php＋inc/components/） ---------- */
.page-head.has-hero .page-head-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.page-hero { margin: 0; }
.page-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.page-hero figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; text-align: right; }
@media (max-width: 820px) { .page-head.has-hero .page-head-inner { grid-template-columns: 1fr; gap: 18px; } }
/* 沒有照片時的文字標誌：像一枚印章 */
.page-emblem { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: var(--green-deep); color: var(--gold-soft); }
.page-emblem::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold); opacity: .5; }
.page-emblem span { position: relative; font-family: var(--serif); font-size: clamp(44px, 6vw, 76px); font-weight: 700; letter-spacing: .12em; }
.page-emblem small { position: relative; color: var(--on-dark-muted); font-size: 15px; letter-spacing: .3em; }
@media (max-width: 820px) { .page-emblem { aspect-ratio: 21 / 9; } }
.page-head .lead { max-width: 820px; margin-top: 14px; color: var(--text); font-size: 18px; }
.verified-line { margin-top: 14px; color: var(--muted); font-size: 14px; }
.verified-line time { color: var(--green-dark); font-weight: 700; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding-top: 40px; }
.content-main { min-width: 0; }
.content-aside { position: sticky; top: 92px; display: grid; gap: 24px; }
.content-section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.content-section:first-child { padding-top: 0; }
.content-section h2 { margin-bottom: 18px; font-size: clamp(24px, 2.3vw, 29px); }
.content-section > p { margin-bottom: 14px; }
.content-section p + .block-list, .content-section p + .table-wrap { margin-top: 4px; }
.block-h3 { margin: 24px 0 10px; font-size: 20px; color: var(--green-deep); }
.block-list { display: grid; gap: 8px; margin-bottom: 16px; }
.block-list li { position: relative; padding-left: 20px; }
.block-list li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 7px; height: 1px; background: var(--ink); }
.block-list.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.block-list.is-compact li { padding: 9px 0 9px 20px; border-bottom: 1px solid var(--line); }
.block-list.is-compact li::before { top: 1.3em; }
.block-list.is-ordered { counter-reset: ol; }
.block-list.is-ordered li { padding-left: 30px; counter-increment: ol; }
.block-list.is-ordered li::before { content: counter(ol); top: 0; width: auto; height: auto; background: none; color: var(--gold-dark); font-family: var(--serif); font-weight: 700; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.block-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.block-table caption { padding: 12px 0 0; color: var(--muted); font-size: 14px; text-align: left; }
.block-table th, .block-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.block-table th:first-child, .block-table td:first-child { padding-left: 2px; }
.block-table td { min-width: 4.5em; }
.block-table thead th { background: transparent; color: var(--green-deep); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line-strong); }
.block-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.block-table tbody tr:last-child th, .block-table tbody tr:last-child td { border-bottom: 0; }
.block-table tbody tr:nth-child(even) { background: var(--row-alt); }
.table-note { margin: -6px 0 16px; color: var(--muted); font-size: 14px; }
.block-steps { display: grid; gap: 0; margin-bottom: 16px; counter-reset: st; border-top: 1px solid var(--line); }
.block-steps li { position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); counter-increment: st; }
.block-steps li::before { content: counter(st); position: absolute; left: 4px; top: 10px; color: var(--green); font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; }
.block-steps strong { display: block; color: var(--ink); }
.block-steps p { color: var(--muted); font-size: 15px; }
/* 提醒框：整圈細框＋標題前小方塊，不用單邊粗色條 */
.callout { margin-bottom: 16px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--green-soft); }
.callout-warn { border-color: var(--red); background: var(--red-soft); }
.callout-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.callout-title::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--green); }
.callout-warn .callout-title::before { background: var(--red); }
.callout p + p { margin-top: 6px; }
.block-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0 0 16px; border-top: 1px solid var(--line-strong); }
.block-facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.block-facts dt { color: var(--gold-dark); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.block-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 15px; }
.block-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 16px; border-top: 1px solid var(--line-strong); }
.info-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-card h3 { margin-bottom: 4px; font-size: 18px; }
.info-card h3 a { color: var(--green-dark); }
.info-card p { color: var(--muted); font-size: 15px; }
/* 常見問題：兩欄卡片（使用者指定），細框、不加色條 */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq-item { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item h3 { display: flex; gap: 10px; margin-bottom: 8px; font-size: 17px; line-height: 1.6; }
.faq-item h3::before { content: "問"; flex: none; color: var(--gold-dark); }
.faq-item p { color: var(--text); font-size: 15px; }
.related { padding: 32px 0 8px; }
.related h2 { margin-bottom: 14px; font-size: 20px; }
.stay-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 22px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.stay-title { color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 700; }
.stay-cta p:not(.stay-title) { color: var(--text); font-size: 15px; }
.stay-cta .btn { flex: none; }
.toc, .side-note { padding-top: 12px; border-top: 2px solid var(--ink); }
.toc-title, .side-note-title { margin-bottom: 8px; color: var(--gold-dark); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.toc ol { display: grid; gap: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--text); font-size: 15px; text-decoration: none; }
.toc a::before { content: counter(toc); flex: none; min-width: 1em; color: var(--gold-dark); font-family: var(--serif); font-weight: 700; }
.toc a:hover { color: var(--green-dark); }
.side-note time { color: var(--ink); font-weight: 700; }
.side-note-text { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.link-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 12px; border-top: 1px solid var(--line-strong); }
.link-card { position: relative; display: block; padding: 16px 40px 16px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.link-card:hover { color: var(--text); }
.link-card:hover h3 { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); }
.link-card h3 { margin-bottom: 4px; font-size: 19px; }
.link-card p { color: var(--muted); font-size: 15px; }
.link-card-go { position: absolute; right: 4px; top: 50%; color: var(--gold-dark); transform: translateY(-50%); transition: transform .2s var(--ease); }
.link-card:hover .link-card-go { transform: translate(3px, -50%); }
@media (max-width: 1100px) {
    .content-layout { grid-template-columns: 1fr; gap: 0; }
    .content-aside { position: static; order: -1; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
}
@media (max-width: 640px) {
    .content-aside, .faq-grid, .block-facts, .block-cards, .link-cards { grid-template-columns: 1fr; }
    .block-list.is-compact { grid-template-columns: 1fr 1fr; }
    .stay-cta { flex-direction: column; align-items: flex-start; }
    .page-head .lead { font-size: 16px; }
}

/* ---------- 照片配圖（blocks.php 的 gallery） ---------- */
.block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; margin: 0 0 16px; }
.block-gallery figure { margin: 0; min-width: 0; }
.block-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--green-soft); }
.block-gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }

/* ---------- 知識地圖（inc/components/map.php） ---------- */
.town-map { margin: 0 0 16px; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.town-map-svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.map-town path { fill: #d5e5da; stroke: var(--paper); stroke-width: 2; stroke-linejoin: round; transition: fill .15s; }
.map-town:hover path, .map-town:focus path { fill: var(--gold-soft); }
.map-town:focus { outline: none; }
.map-town:focus path { stroke: var(--gold-dark); stroke-width: 3; }
.map-town:target path { fill: var(--gold); }
.map-label { fill: var(--green-deep); font-size: 15px; font-weight: 700; font-family: var(--sans); pointer-events: none; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.town-map figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 10px; color: var(--ink); font-size: 14px; }
.map-legend-item { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.map-legend-item input { accent-color: var(--green); }
.map-pin { cursor: pointer; }
.map-pin-hit { fill: transparent; }
.map-pin:hover > :not(.map-pin-hit):not(title), .map-pin:focus > :not(.map-pin-hit):not(title) { transform: scale(1.4); }
.map-pin:focus { outline: none; }
.map-pin.is-hidden { display: none; }

/* ---------- 首頁數字（index.php）：一排細線分隔的數字，不做方塊 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -14px; border-bottom: 1px solid var(--line-strong); }
.stat-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 22px 0; color: var(--text); text-decoration: none; }
.stat-tile + .stat-tile { padding-left: 24px; border-left: 1px solid var(--line); }
a.stat-tile:hover { color: var(--text); }
a.stat-tile:hover strong { color: var(--green); }
.stat-tile strong { color: var(--green-deep); font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; transition: color .15s var(--ease); }
.stat-tile strong small { margin-left: 4px; font-family: var(--sans); font-size: 15px; font-weight: 700; }
.stat-tile span { color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 880px) {
    .stat-row { grid-template-columns: 1fr 1fr; }
    .stat-tile:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat-tile:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- 圖表（inc/components/chart.php） ---------- */
.chart { margin: 0 0 16px; padding: 14px 0 8px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.chart figcaption span { color: var(--muted); font-size: 13px; font-weight: 400; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-base { stroke: var(--line-strong); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.chart-bar, .chart-range { fill: var(--green); transition: fill .15s; }
.chart-dot { fill: var(--paper); stroke: var(--green-deep); stroke-width: 2.5; }
.chart-hit { fill: transparent; }
.chart-label { fill: var(--ink); font-size: 13px; }
.chart-mark { outline: none; cursor: default; }
.chart-mark:hover .chart-bar, .chart-mark:focus .chart-bar, .chart-mark:hover .chart-range, .chart-mark:focus .chart-range { fill: var(--gold-dark); }
.chart-mark:focus .chart-hit { fill: var(--gold-soft); fill-opacity: .5; }
.chart-tip { position: fixed; z-index: 80; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-dark); font-size: 13px; line-height: 1.5; pointer-events: none; }
.chart-tip[hidden] { display: none; }

/* ---------- 行前工具（inc/lib/tools.php、assets/js/tools.js） ---------- */
.tool { margin: 0 0 16px; padding: 20px 0; border-top: 2px solid var(--ink); }
.tool-filters { display: grid; gap: 14px; margin-bottom: 18px; }
.tool-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.tool-field legend, .budget-group legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-weight: 700; }
.pill-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice { position: relative; cursor: pointer; }
.pill-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-choice span { display: inline-block; padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font-size: 15px; line-height: 1.6; white-space: nowrap; transition: background .15s, border-color .15s; }
.pill-choice:hover span { border-color: var(--green); }
.pill-choice input:checked + span { border-color: var(--green-deep); background: var(--green-deep); color: var(--on-dark); }
.pill-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.tool-lists { display: grid; gap: 16px; }
@media (min-width: 880px) { .tool-lists { grid-template-columns: 1fr 1fr; } }
.check-group { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--paper-2); }
.check-group h3 { margin: 0 0 8px; font-size: 18px; }
.check-count { color: var(--muted); font-family: var(--sans); font-size: 14px; font-weight: 400; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; }
.check-list li[hidden] { display: none; }
.check-list input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--green); transform: translateY(3px); }
.check-list label { flex: 1 1 200px; cursor: pointer; }
.check-list input:checked + label { color: var(--muted); text-decoration: line-through; }
.check-list a { font-size: 14px; white-space: nowrap; }
/* 出發日期查詢（/trips/date/，assets/js/trip-date.js） */
.trip-date-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 18px; }
.trip-date-form .tool-num { flex: 1 1 220px; max-width: 280px; }
.trip-date-form .btn { font: inherit; font-weight: 700; cursor: pointer; }
.td-date { margin-bottom: 10px; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.td-group { margin-top: 18px; padding-top: 12px; border-top: 2px solid var(--ink); }
.td-group h3 { margin: 0 0 6px; font-size: 18px; }
.td-group ul { margin: 0; padding: 0; list-style: none; }
.td-group li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.td-group li.td-warn { color: var(--red); }
.td-group li.td-warn a { color: var(--red); }
.td-meta { display: block; color: var(--muted); font-size: 14px; }
.td-kind { display: inline-block; margin-right: 8px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--gold-dark); font-size: 13px; font-weight: 700; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tool-actions .btn { font: inherit; font-weight: 700; cursor: pointer; }
.budget-base { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tool-num { display: grid; gap: 4px; color: var(--ink); font-weight: 700; }
.tool-num input, .budget-input input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.tool-num input:focus, .budget-input input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.budget-groups { column-gap: 14px; }
@media (min-width: 880px) { .budget-groups { columns: 2; } }
.budget-group { display: block; margin: 0 0 14px; padding: 14px 16px; border: 0; border-radius: var(--radius-sm); background: var(--paper-2); min-width: 0; break-inside: avoid; }
.budget-group legend { float: left; width: 100%; padding-top: 2px; }
.budget-group legend + * { clear: both; }
.budget-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.budget-row:first-of-type { border-top: 0; }
.budget-row label { grid-column: 1 / -1; font-size: 15px; }
.budget-input { display: flex; align-items: center; gap: 6px; max-width: 200px; }
.budget-input span { color: var(--muted); font-size: 14px; }
.budget-sub { color: var(--muted); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.budget-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.chip:hover, .chip:focus-visible { border-color: var(--green); color: var(--green-dark); outline: none; }
.budget-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.budget-total { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--green-deep); color: var(--on-dark); }
.budget-total span { display: block; font-size: 14px; opacity: .85; }
.budget-total strong { font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; }
.budget-hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
@media print {
    .site-header, .site-footer, .go-top, .tool-filters, .tool-actions, .content-aside, .related, .stay-cta, .crumbs, .faq { display: none !important; }
    .tool { border: 0; padding: 0; }
    .check-list a { display: none; }
}

/* ---------- 行事曆（inc/lib/calendar.php） ---------- */
.month-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; margin-bottom: 14px; }
.month-card { padding-top: 12px; border-top: 1px solid var(--line-strong); }
.month-card.is-current { border-top: 2px solid var(--gold); }
.month-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 24px; }
.month-now { padding: 0 8px; border-radius: 2px; background: var(--gold); color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 700; }
.month-kind { margin: 10px 0 4px; color: var(--gold-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.month-card ul { display: grid; gap: 4px; }
.month-card li { font-size: 15px; line-height: 1.6; }
.month-card li small { display: block; color: var(--muted); font-size: 13px; }
.month-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.month-tags span { padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--green-deep); font-size: 13px; white-space: nowrap; }
.home-month { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 1100px) { .month-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .month-pair, .month-grid, .home-month { grid-template-columns: 1fr; } }

/* ---------- 最新消息（news/includes/front.php） ---------- */
.news-filter { margin-bottom: 24px; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.news-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-card.no-cover { grid-template-columns: 1fr; }
.news-card-media { align-self: start; }
.news-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.news-card-body { min-width: 0; }
.news-card-body h2, .news-card-body h3 { margin: 4px 0 6px; font-size: 20px; line-height: 1.5; }
.news-card-body h2 a, .news-card-body h3 a { color: var(--ink); text-decoration: none; }
.news-card-body h2 a:hover, .news-card-body h3 a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); }
/* 首頁最新消息：桌機三欄 */
.home-news { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
.home-news .news-card { padding-top: 0; }
@media (max-width: 1100px) { .home-news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news-card-body p:last-child { color: var(--muted); font-size: 15px; }
.news-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.news-card-meta span { color: var(--gold-dark); font-weight: 700; }
.news-card-meta .news-pin { color: var(--red); }
.news-empty { max-width: 720px; }
.news-pages { margin-top: 24px; }
.news-article .news-cover { width: 100%; margin: 12px 0 18px; border-radius: var(--radius-sm); }
.news-summary { margin: 12px 0 22px; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); color: var(--ink); font-size: 18px; }
.news-content p, .news-content ul, .news-content ol, .news-content blockquote, .news-content table { margin-bottom: 14px; }
.news-content h2, .news-content h3 { margin: 26px 0 10px; }
.news-content h2 { font-size: 24px; }
.news-content ul { padding-left: 1.4em; list-style: disc; }
.news-content ol { padding-left: 1.4em; list-style: decimal; }
.news-content img { margin: 12px 0; border-radius: var(--radius-sm); }
.news-content blockquote { padding: 10px 18px; border: 1px solid var(--line-strong); background: var(--paper-2); }
/* 消息內文表格（後台編輯器插入的 table 沒有 class）：樣式同內容頁 .block-table */
.news-content table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); font-size: 15px; }
.news-content th, .news-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.news-content th:first-child, .news-content td:first-child { padding-left: 2px; }
.news-content thead th { color: var(--green-deep); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line-strong); }
.news-content tbody tr:nth-child(even) { background: var(--row-alt); }
.news-back { margin-top: 28px; }
@media (max-width: 820px) { .news-list { grid-template-columns: 1fr; } }
/* 手機：封面縮成左側小方圖，列表不會被大圖拉長 */
@media (max-width: 480px) { .news-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } .news-card-media img { aspect-ratio: 1 / 1; } .news-card-body h2, .news-card-body h3 { font-size: 17px; } }

/* ---------- 頁尾 ---------- */
main > .section:last-child, main > .wrap.section:last-child { padding-bottom: 0; }
.site-footer { margin-top: 56px; background: var(--green-deep); color: var(--on-dark-muted); font-size: 15px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 28px 0 22px; }
.footer-logo { display: inline-block; padding: 6px 10px; margin-bottom: 10px; background: var(--on-dark); border-radius: var(--radius-sm); }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-mini { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-content: start; }
.footer-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--on-dark-line); font-size: 14px; }
.footer-row h2 { color: var(--gold); font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.footer-row h2 a { color: var(--gold); }
.footer-row p { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.footer-row p a { white-space: nowrap; }
.footer-bottom { border-top: 1px solid var(--on-dark-line); }
.footer-bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 10px 0; font-size: 13px; }
.footer-sister a { margin-left: 12px; white-space: nowrap; }

.go-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--green-deep); border-radius: var(--radius-sm); background: var(--paper); color: var(--green-deep); transition: background-color .2s var(--ease), color .2s var(--ease); }
.go-top:hover { background: var(--green-deep); color: var(--on-dark); }
.go-top[hidden] { display: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 1100px) {
    .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .towns-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sitemap-grid { column-count: 2; }
    .footer-main { grid-template-columns: 1fr; gap: 16px; }
    .hero-ask ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .hero { padding-top: 28px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-photo { order: -1; }
    .hero-media img { aspect-ratio: 16 / 10; }
    .split, .notfound { grid-template-columns: 1fr; }
    .group-card:nth-child(1), .group-card:nth-child(6) { display: flex; }
    .group-card:nth-child(1) .group-body, .group-card:nth-child(6) .group-body { padding-top: 14px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 32px); }
    .header-row { min-height: 60px; }
    .brand-name { font-size: 19px; }
    .brand-sub { display: none; }
    .section { padding: 44px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .section-head p { text-align: left; }
    .groups { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .group-card:nth-child(1), .group-card:nth-child(6) { grid-column: auto; }
    .hero-ask ol { grid-template-columns: minmax(0, 1fr); }
    .sitemap-grid { column-count: 1; }
    .towns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .town-chip strong { font-size: 17px; }
    .stat-tile { padding: 18px 14px 18px 0; }
    .stat-tile + .stat-tile { padding-left: 14px; }
    .stat-tile:nth-child(3) { padding-left: 0; }
    .stat-tile strong { font-size: 34px; }
    /* 手機：頁尾只列分類名稱（完整連結在選單與網站地圖） */
    .footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
    .footer-row { display: block; padding: 0; border: 0; }
    .footer-row p { display: none; }
    .footer-row-sister { display: flex; flex-basis: 100%; gap: 12px; margin-top: 6px; }
    .footer-row-sister p { display: flex; }
    .footer-main { padding: 22px 0 18px; }
    .footer-sister a { margin-left: 0; margin-right: 12px; }
}
