/*
 * 台東旅遊網｜2026-11-30 第 2 批
 * 識別：太平洋鈷藍＋金針花琥珀＋海霧白。標題用 Noto Serif TC，內文 Noto Sans TC。
 * 刻意避開：台東景點網（靛藍）、台東鄉鎮民宿網／合法民宿（藍綠）、台東民宿網（灰綠）、ttbnb（橘）、宜蘭旅遊網（山林綠＋稻穗金）。
 * 版面原則：桌機不留大片空白（卡片、格狀、兩欄），手機一欄；頁首 sticky；全站 go top。
 */
:root {
    --mist: #f3f6f8;
    --surface: #ffffff;
    --ink: #10233a;
    --text: #27333f;
    --muted: #5a6774;
    --blue: #1858a8;
    --blue-dark: #11427f;
    --blue-deep: #0b2a4f;
    --blue-soft: #e4eef9;
    --amber: #f2a516;
    --amber-dark: #8f5c00; /* 2026-11-30 由 #a86c00 調深，白底 5.68、淡琥珀底 5.12，符合 WCAG AA */
    --amber-soft: #fff2d6;
    --coral: #c4452f;
    --sea-calm: #1a7a61; /* 2026-11-30 由 #1f8a6e 調深，白底 5.25，符合 WCAG AA */
    --line: #dbe3ea;
    --line-strong: #c3cfda;
    --radius: 16px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(16, 35, 58, .06), 0 8px 24px rgba(16, 35, 58, .08);
    --shadow-lift: 0 2px 6px rgba(16, 35, 58, .08), 0 18px 38px rgba(16, 35, 58, .16);
    --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
    --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--mist); 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(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); line-height: 1.35; letter-spacing: .02em; }
::selection { background: var(--amber-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.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(--amber); color: var(--ink); border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; }

/* ---------- 頁首 ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-top: 4px solid var(--amber); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 23px; font-weight: 900; letter-spacing: .1em; color: var(--blue-deep); }
.brand-sub { margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--amber-dark); }

.main-nav { display: flex; align-items: center; align-self: stretch; gap: 2px; }
.nav-group { position: relative; display: flex; align-items: center; align-self: stretch; }
.nav-top { display: inline-flex; align-items: center; gap: 4px; padding: 8px 15px; border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease); }
.nav-top:hover, .nav-group:focus-within .nav-top { background: var(--blue-soft); color: var(--blue-dark); }
.nav-group.is-current .nav-top { color: var(--blue); background: var(--blue-soft); }
.icon-down { width: .9em; height: .9em; opacity: .6; 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: 380px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.nav-group:hover .nav-panel, .nav-group:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-panel-desc { margin-bottom: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.nav-panel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.nav-panel.is-wide { width: 560px; }
.nav-panel-list.is-wide { grid-template-columns: repeat(3, 1fr); }
.nav-panel-list a { display: block; padding: 5px 8px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; text-decoration: none; }
.nav-panel-list a:hover, .nav-panel-list a[aria-current] { background: var(--amber-soft); color: var(--ink); }
.nav-scenic { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 7px 15px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-scenic:hover { border-color: var(--blue); color: var(--blue); }
.nav-scenic .icon { width: .95em; height: .95em; }

/* 行程路線示意圖（inc/components/route-map.php） */
.route-map { margin: 8px 0 28px; }
.route-map h2 { margin-bottom: 12px; font-size: 24px; }
.route-map figure { margin: 0; padding: 12px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.route-map svg { display: block; width: 100%; height: auto; max-height: 460px; }
.route-line { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 5 5; }
.route-pt circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.route-pt.day-2 circle { fill: var(--sea-calm); }
.route-pt.day-3 circle { fill: var(--amber-dark); }
.route-pt.day-4 circle { fill: var(--coral); }
.route-pt.day-5 circle { fill: var(--blue-deep); }
.route-pt.day-6 circle { fill: #6b4fa0; }
.route-num { fill: #fff; font-size: 11px; font-weight: 700; }
.route-name { fill: var(--ink); font-size: 12px; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.route-map figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.route-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 15px; }
.route-links a { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); text-decoration: none; }
.route-links a:hover { border-color: var(--blue); }

/* 數據頁圖表（/data/） */
.chart { margin: 0 0 18px; padding: 16px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chart svg { display: block; width: 100%; height: auto; }
.chart-bar { fill: var(--blue); }
.chart g:hover .chart-bar { fill: var(--amber); }
.chart-label { fill: var(--text); font-size: 12px; }
.chart-value { fill: var(--muted); font-size: 11px; }
.chart-axis { stroke: var(--line-strong); }
.chart figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* 景點與交通異動紀錄（/status/） */
.status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.status-item { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--coral); border-radius: var(--radius-sm); scroll-margin-top: 96px; }
.status-item.is-partial, .status-item.is-works { border-left-color: var(--amber); }
.status-item.is-reopen, .status-item.is-new { border-left-color: var(--sea-calm); }
.status-item:target { box-shadow: 0 0 0 3px var(--amber); }
.status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.status-head strong { color: var(--ink); font-size: 17px; }
.status-tag { padding: 1px 10px; border-radius: 999px; background: #fcefeb; color: var(--coral); font-size: 13px; font-weight: 700; }
.is-partial .status-tag, .is-works .status-tag { background: var(--amber-soft); color: var(--amber-dark); }
.is-reopen .status-tag, .is-new .status-tag { background: #e3f3ee; color: var(--sea-calm); }
.status-town { color: var(--muted); font-size: 13px; }
.status-item p { font-size: 15px; }
.status-meta { margin-top: 4px; color: var(--muted); font-size: 13.5px !important; }
@media (max-width: 760px) { .status-list { grid-template-columns: 1fr; } }

/* 出發日期查詢（/trips/date/） */
.planner-form input[type=date] { min-height: 42px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text); font: inherit; font-size: 15px; font-weight: 400; }
.planner-form input[type=date]:focus { outline: 3px solid var(--amber); outline-offset: 1px; }
.planner-links .btn { padding: 6px 14px; border: 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.date-block { margin-bottom: 14px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); }
.date-block h2 { margin-bottom: 8px; font-size: 19px; }
.date-block ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; font-size: 15px; }

/* 可勾選清單與旅費試算（行李清單、旅費頁） */
.block-list.is-check li { padding-left: 0; }
.block-list.is-check li::before { display: none; }
.block-list.is-check label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.block-list.is-check input { flex: none; width: 20px; height: 20px; margin-top: .3em; accent-color: var(--sea-calm); }
.block-list.is-check.is-compact li { padding: 8px 12px; }
.block-list.is-check li.is-done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.check-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; padding: 10px 14px; background: var(--blue-soft); border-radius: var(--radius-sm); }
.check-count { margin-right: auto; color: var(--blue-deep); font-weight: 700; }
.check-bar .btn, .calc .btn { padding: 6px 14px; border: 0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.calc { margin-bottom: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); box-shadow: var(--shadow); }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.calc-grid label { display: grid; gap: 4px; color: var(--ink); font-size: 14px; font-weight: 700; }
.calc-input { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.calc-input input { flex: 1; min-width: 0; padding: 9px 10px; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 400; }
.calc-input span { padding: 0 10px; color: var(--muted); font-weight: 400; }
.calc-input:focus-within { outline: 3px solid var(--amber); outline-offset: 1px; }
.calc-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.calc-result strong { color: var(--blue-dark); font-family: var(--serif); font-size: 26px; font-weight: 900; }
.calc-break { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.calc-note { margin-top: 8px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .calc-grid { grid-template-columns: 1fr; } }

/* 站內搜尋入口與搜尋頁（比照宜蘭旅遊網） */
.main-nav { margin-left: auto; }
.search-link { display: inline-flex; align-items: center; gap: 6px; margin-left: -12px; padding: 8px 12px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.search-link:hover, .search-link[aria-current] { background: var(--blue-soft); color: var(--blue-dark); }
.search-link .icon { width: 1.15em; height: 1.15em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-form { display: flex; max-width: 720px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.search-form input { flex: 1; min-width: 0; padding: 13px 20px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
.search-form:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.search-form input:focus { outline: none; }
.search-form button { display: inline-flex; align-items: center; gap: 6px; padding: 0 24px; border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.search-form button:hover { background: var(--blue-dark); }
.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: 12px; padding: 0; list-style: none; }
.search-results li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); }
.search-results a { display: block; color: var(--ink); text-decoration: none; }
.search-results a strong { font-family: var(--serif); font-size: 18px; font-weight: 900; color: var(--blue-dark); }
.search-results a:hover strong { text-decoration: underline; }
.search-results p { margin-top: 4px; color: var(--text); font-size: 15px; line-height: 1.7; }
.search-results mark { background: var(--amber-soft); color: inherit; padding: 0 1px; }
.search-group { display: block; margin-bottom: 2px; color: var(--amber-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: 1100px) { .search-link { margin-left: auto; } }
@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); } }
@media (max-width: 640px) { .header-row { gap: 10px; } .search-form button span { display: none; } .search-form button { padding: 0 18px; } }

.menu-button { display: none; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: inline; }

.mobile-menu { border-top: 1px solid var(--line); background: var(--mist); max-height: calc(100vh - 76px); overflow-y: auto; }
.mobile-grid { display: grid; gap: 12px; padding: 16px 0 24px; }
.mobile-card { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); }
.mobile-card h2 { margin-bottom: 10px; font-size: 18px; }
.mobile-card h2 a { color: var(--blue-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: var(--surface); color: var(--text); font-size: 15px; line-height: 1.7; text-decoration: none; transition: background .15s, border-color .15s; }
.pills a:hover, .pills a[aria-current] { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }

@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: 60px 0; }
.section + .section { padding-top: 0; }
.section.band { padding: 52px 0; background: var(--blue-deep); }
.section.band + .section { padding-top: 60px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { position: relative; padding-left: 18px; font-size: clamp(24px, 2.5vw, 31px); font-weight: 900; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--amber) 0 50%, var(--blue) 50% 100%); }
.section-head p { color: var(--muted); font-size: 15px; text-align: right; }
.band .section-head h2 { color: #fff; }
.band .section-head p { color: #b9cde4; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffb933; color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.text-link .icon { transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--ink); font-size: 14px; }
.sea { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.sea .icon { width: 1em; height: 1em; }
.sea-calm { color: var(--sea-calm); }
.sea-mixed { color: var(--amber-dark); }
.sea-rough { color: var(--coral); }
.tags li.sea { background: #fff; box-shadow: inset 0 0 0 1px currentColor; }

/* ---------- 首頁：主視覺 ---------- */
.hero { position: relative; display: grid; min-height: min(640px, 78vh); color: #fff; overflow: hidden; background: var(--blue-deep); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 26, 50, .82) 0%, rgba(7, 26, 50, .55) 45%, rgba(7, 26, 50, .1) 75%), linear-gradient(0deg, rgba(7, 26, 50, .55), transparent 40%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: 48px; padding: 72px 0 56px; }
.hero-kicker { display: inline-block; margin-bottom: 10px; padding: 3px 14px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .2em; }
.hero h1 { color: #fff; font-size: clamp(42px, 6vw, 76px); font-weight: 900; letter-spacing: .12em; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-lead { max-width: 620px; margin-top: 14px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.9; color: #e8f0f8; }
.hero-lead strong { color: #ffd77a; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-month { align-self: start; padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .95); color: var(--text); box-shadow: var(--shadow-lift); border-top: 5px solid var(--amber); }
.hero-month-label { color: var(--muted); font-size: 13px; letter-spacing: .2em; }
.hero-month h2 { margin-top: 2px; font-size: 26px; font-weight: 900; }
.hero-month-weather { margin: 6px 0 12px; color: var(--text); }
.hero-month .text-link { margin-top: 14px; }

/* ---------- 首頁：三大類卡片 ---------- */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.group-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.group-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.group-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.group-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.group-card:hover .group-media img { transform: scale(1.04); }
.group-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; border-top: 4px solid var(--blue); }
.group-islands .group-body { border-top-color: #1b8fb3; }
.group-seasons .group-body { border-top-color: var(--amber); }
.group-trips .group-body { border-top-color: var(--coral); }
.group-body h3 { font-size: 23px; font-weight: 900; }
.group-body h3 a { color: var(--ink); text-decoration: none; }
.group-body h3 a:hover { color: var(--blue); }
.group-body > p { color: var(--muted); font-size: 15.5px; }
.group-body .pills { margin-top: auto; padding-top: 4px; }
.group-body .pills a { font-size: 14px; padding: 3px 12px; }

/* ---------- 首頁：怎麼到台東 ---------- */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.way { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #d6e3f2; font-size: 15px; line-height: 1.75; text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease); }
.way:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-2px); }
.way strong { color: #fff; font-family: var(--serif); font-size: 22px; }
.way-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 12px; background: var(--amber); color: var(--ink); }
.way-icon .icon { width: 26px; height: 26px; }

/* ---------- 首頁：十二個月 ---------- */
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: none; }
.month-box { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
a.month-box:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.month-num { color: var(--blue-deep); font-family: var(--serif); font-size: 34px; font-weight: 900; line-height: 1; }
.month-num small { margin-left: 2px; font-size: 15px; font-weight: 700; }
.month-weather { font-size: 14px; line-height: 1.6; }
.month-tags { color: var(--amber-dark); font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.month .sea { margin-top: auto; }
.month.is-now .month-box { border: 2px solid var(--amber); background: linear-gradient(180deg, var(--amber-soft), #fff 60%); }
.month.is-now .month-num::after { content: "本月"; display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--amber); color: var(--ink); font-family: var(--sans); font-size: 12px; vertical-align: middle; }

/* ---------- 首頁：綠島、蘭嶼 ---------- */
.islands { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 20px; align-items: stretch; }
.island { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.island img { aspect-ratio: 16 / 9; object-fit: cover; }
.island-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 18px 22px 20px; }
.island-body h3 { font-size: 24px; font-weight: 900; }
.island dl { display: grid; gap: 0; }
.island dl div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.6; }
.island dt { color: var(--muted); }
.island dd { color: var(--ink); font-weight: 500; }
.island .text-link { margin-top: auto; }
.island-tips { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--blue-soft); border: 1px solid #c9dbef; }
.island-tips h3 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.island-tips h3 .icon { color: var(--blue); }
.island-tips ol { display: grid; gap: 10px; counter-reset: tip; }
.island-tips li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.7; counter-increment: tip; }
.island-tips li::before { content: counter(tip); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.island-tips .pills { margin-top: auto; }

/* ---------- 首頁：最新消息 ---------- */
.latest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.latest-item { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.latest-item:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--text); }
.latest-item time { color: var(--amber-dark); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.latest-item strong { color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.5; }
.latest-item span { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 860px) { .latest { grid-template-columns: 1fr; } }

/* ---------- 常見問題（兩欄卡片） ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-card { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); }
.faq-card h3 { margin-bottom: 8px; font-size: 18px; }
.faq-card p { color: var(--text); font-size: 15.5px; }

/* ---------- 兩欄面板 ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.panel { padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { margin-bottom: 12px; font-size: 22px; }
.panel > p { color: var(--muted); margin-bottom: 14px; }
.panel-deep { background: var(--blue-deep); border-color: var(--blue-deep); color: #d6e3f2; }
.panel-deep h3 { color: #fff; }
.panel-text { margin-bottom: 14px; font-size: 15.5px; line-height: 1.85; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stats > div { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.stats dt { color: #b9cde4; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.stats dd { margin: 2px 0 4px; color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 900; line-height: 1.2; }
.stats a { color: var(--amber); font-size: 13px; }
.hero-credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0; color: rgba(255, 255, 255, .88); font-size: 13px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.hero-credit a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.hero-credit a:hover { color: #fff; text-decoration: underline; }
.hero-credit .icon { width: 1em; height: 1em; }
.hero-credit-season { padding: 1px 8px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 700; text-shadow: none; }
.principles { display: grid; gap: 12px; counter-reset: p; }
.principles li { position: relative; padding-left: 36px; font-size: 15.5px; counter-increment: p; }
.principles li::before { content: counter(p); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 700; }
.sisters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sisters a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.sisters a:hover { border-color: var(--blue); background: var(--blue-soft); }
.sisters a > span { display: flex; flex-direction: column; line-height: 1.5; }
.sisters strong { color: var(--ink); }
.sisters a > span > span { color: var(--muted); font-size: 14px; }
.sisters .icon { color: var(--muted); }

/* ---------- 內容頁（inc/lib/render.php＋inc/components/） ---------- */
.btn-line { background: transparent; color: var(--blue-dark); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-line:hover { background: var(--blue-soft); color: var(--blue-dark); }
.eyebrow { display: inline-block; margin-bottom: 8px; padding: 1px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-dark); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.page-head { position: relative; padding: 40px 0 30px; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; background: radial-gradient(ellipse at 85% -40%, rgba(24, 88, 168, .10), transparent 60%); pointer-events: none; }
.page-head-inner { position: relative; }
.page-head h1 { font-size: clamp(28px, 3.3vw, 42px); font-weight: 900; }
.page-head .lead { max-width: 820px; margin-top: 12px; color: var(--text); font-size: 18px; }
.page-head.has-hero .page-head-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.page-hero { margin: 0; }
.page-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-hero figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; text-align: right; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.verified-line { margin-top: 14px; color: var(--muted); font-size: 14px; }
.verified-line time { color: var(--blue-dark); font-weight: 700; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; padding-top: 36px; }
.content-main { min-width: 0; }
.content-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.content-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.content-section:first-child { padding-top: 0; }
.content-section h2 { position: relative; margin-bottom: 16px; padding-left: 16px; font-size: clamp(22px, 2.2vw, 27px); font-weight: 900; }
.content-section h2::before { content: ""; position: absolute; left: 0; top: .22em; bottom: .22em; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--amber) 0 50%, var(--blue) 50% 100%); }
.content-section > p { margin-bottom: 14px; }
.block-h3 { margin: 22px 0 10px; font-size: 19px; font-weight: 900; color: var(--blue-deep); }
.block-list { display: grid; gap: 8px; margin-bottom: 16px; }
.block-list li { position: relative; padding-left: 22px; }
.block-list li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.block-list.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.block-list.is-compact li { padding: 8px 12px 8px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.block-list.is-compact li::before { left: 12px; top: 1.15em; }
.block-list.is-ordered { counter-reset: ol; }
.block-list.is-ordered li { padding-left: 32px; counter-increment: ol; }
.block-list.is-ordered li::before { content: counter(ol); top: .25em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 700; transform: none; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.block-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.block-table caption { padding: 12px 16px 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 thead th { background: var(--blue-deep); color: #fff; font-weight: 700; white-space: nowrap; }
.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: #f7fafc; }
.table-note { margin: -6px 0 16px; color: var(--muted); font-size: 14px; }
.block-steps { display: grid; gap: 12px; margin-bottom: 16px; counter-reset: st; }
.block-steps li { position: relative; padding: 14px 16px 14px 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); counter-increment: st; }
.block-steps li::before { content: counter(st); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 700; }
.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-radius: var(--radius); border: 1px solid #c9dbef; border-left: 5px solid var(--blue); background: var(--blue-soft); }
.callout-warn { border-color: #f0c9bf; border-left-color: var(--coral); background: #fcefeb; }
.callout-title { margin-bottom: 4px; color: var(--ink); font-weight: 700; }
.callout p + p { margin-top: 6px; }
.block-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.block-facts > div { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.block-facts dt { color: var(--amber-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: 12px; margin-bottom: 16px; }
.info-card { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); }
.info-card h3 { margin-bottom: 6px; font-size: 18px; font-weight: 900; }
.info-card h3 a { color: var(--blue-dark); }
.info-card p { color: var(--muted); font-size: 15px; }
.faq-item { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); }
.faq-item h3 { margin-bottom: 6px; font-size: 17px; line-height: 1.6; }
.faq-item h3::before { content: "Q. "; color: var(--amber-dark); }
.faq-item p { color: var(--text); font-size: 15px; }
.scenic-box { margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: var(--blue-deep); color: #d6e3f2; }
.scenic-title { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--amber); font-weight: 700; }
.scenic-box > p:not(.scenic-title) { font-size: 15px; }
.scenic-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.scenic-links a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.scenic-links a:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.scenic-links .icon { width: .95em; height: .95em; }
.related { padding: 28px 0 8px; }
.related h2 { margin-bottom: 12px; font-size: 19px; }
.stay-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 20px 24px; background: var(--amber-soft); border: 1px solid #f1d79c; border-radius: var(--radius); }
.stay-title { color: var(--ink); font-weight: 700; }
.stay-cta p:not(.stay-title) { color: var(--text); font-size: 15px; }
.stay-cta .btn { flex: none; }
.toc, .side-note { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-title, .side-note-title { margin-bottom: 8px; color: var(--amber-dark); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; padding: 4px 6px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; text-decoration: none; }
.toc a::before { content: counter(toc); color: var(--blue); font-weight: 700; }
.toc a:hover { background: var(--blue-soft); color: var(--blue-deep); }
.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: 14px; margin-bottom: 12px; }
.link-card { position: relative; display: block; padding: 18px 50px 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.link-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--text); }
.link-card h3 { margin-bottom: 4px; font-size: 19px; font-weight: 900; }
.link-card p { color: var(--muted); font-size: 15px; }
.link-card-go { position: absolute; right: 18px; top: 50%; color: var(--amber-dark); transform: translateY(-50%); }

/* 行程：每日卡片（blocks.php 的 days 區塊） */
.trip-days { display: grid; gap: 16px; margin-bottom: 16px; }
.trip-day { position: relative; padding: 20px 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trip-day + .trip-day::before { content: ""; position: absolute; left: 41px; top: -17px; width: 2px; height: 16px; background: var(--line-strong); }
.trip-day-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.trip-day-num { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--serif); font-size: 18px; font-weight: 900; }
.trip-day h3 { font-size: 20px; }
.trip-day-area { display: flex; align-items: center; gap: 4px; color: var(--amber-dark); font-size: 14px; font-weight: 700; }
.trip-day-area .icon { width: 1em; height: 1em; }
.trip-day-summary { margin-bottom: 10px; color: var(--text); }
.trip-day-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.trip-label { margin-bottom: 4px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.trip-stops, .trip-moves { display: grid; gap: 4px; font-size: 15px; }
.trip-stops li { position: relative; padding-left: 18px; }
.trip-stops li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--blue); }
.trip-moves li { position: relative; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--blue-deep); }
.trip-tip { margin-top: 10px; padding: 8px 12px; border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: var(--radius-sm); font-size: 14.5px; }
.trip-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 760px) {
    .trip-day-grid { grid-template-columns: 1fr; }
    .trip-day { padding: 16px; }
}

/* 首頁：行程入口（規劃器＋熱門行程） */
.trip-pick { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.trip-pick-planner { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--radius); background: var(--blue-deep); color: #d6e3f2; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.trip-pick-planner:hover { color: #d6e3f2; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.trip-pick-kicker { color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.trip-pick-planner strong { color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 900; line-height: 1.3; }
.trip-pick-planner .btn { align-self: flex-start; margin-top: auto; }
.trip-pick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trip-pick-list a { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: center; height: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.trip-pick-list a:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--text); }
.trip-pick-days { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-dark); font-weight: 900; font-size: 15px; }
.trip-pick-list strong { color: var(--blue-dark); font-size: 17px; line-height: 1.4; }
.trip-pick-list a > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 1000px) {
    .trip-pick { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .trip-pick-list { grid-template-columns: 1fr; }
}

/* 行程規劃器（/plan/planner/） */
.planner { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.planner-form { position: sticky; top: 96px; display: grid; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); box-shadow: var(--shadow); }
.planner-form label { display: grid; gap: 4px; color: var(--ink); font-size: 14px; font-weight: 700; }
.planner-form select { min-height: 42px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text); font: inherit; font-size: 15px; font-weight: 400; }
.planner-form select:focus { outline: 3px solid var(--amber); outline-offset: 1px; }
.planner-notes { margin-bottom: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--blue-soft); border: 1px solid #c9dbef; }
.planner-notes-title { margin-bottom: 6px; color: var(--blue-deep); font-weight: 700; }
.planner-notes ul { display: grid; gap: 4px; padding-left: 1.2em; list-style: disc; font-size: 15px; }
.planner-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-weight: 700; }
.trip-more { margin-top: 6px; font-size: 14px; }
.planner-disclaimer { margin-top: 12px; color: var(--muted); font-size: 14px; }
.planner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.planner-actions .btn { padding: 8px 16px; border: 0; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
    .planner { grid-template-columns: 1fr; }
    .planner-form { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .planner-form { grid-template-columns: 1fr; }
}

/* 網站地圖、404、預覽提示 */
.preview-flag { margin-bottom: 18px; padding: 10px 14px; border: 1px dashed var(--amber); border-radius: var(--radius-sm); background: var(--amber-soft); font-size: 14px; }
.sitemap-grid { column-count: 3; column-gap: 18px; }
.sitemap-card { break-inside: avoid; margin-bottom: 18px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); }
.sitemap-card h2 { margin-bottom: 6px; font-size: 21px; }
.sitemap-card h2 a { color: var(--ink); text-decoration: none; }
.sitemap-card > p { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.sitemap-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.sitemap-card ul.is-single { grid-template-columns: 1fr; }
.sitemap-card li a { display: block; padding: 3px 0; font-size: 15px; }
.notfound { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.notfound-code { color: var(--amber); font-family: var(--serif); font-size: 72px; font-weight: 900; line-height: 1; }
.notfound h1 { margin: 8px 0 12px; font-size: 34px; }
.notfound-text { margin-bottom: 14px; color: var(--muted); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.panel-h2 { margin-bottom: 12px; font-size: 21px; }
.notfound-group { margin: 12px 0 6px; color: var(--amber-dark); font-size: 14px; font-weight: 700; }

@media (max-width: 1100px) {
    .content-layout { grid-template-columns: 1fr; gap: 0; }
    .content-aside { position: static; order: -1; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
    .sitemap-grid { column-count: 2; }
}
@media (max-width: 860px) {
    .page-head.has-hero .page-head-inner { grid-template-columns: 1fr; gap: 18px; }
    .notfound { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .content-aside, .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; }
    .sitemap-grid { column-count: 1; }
}

/* ---------- 頁尾 ---------- */
.site-footer { margin-top: 20px; background: var(--blue-deep); color: #b9cde4; font-size: 15px; }
.footer-main { display: grid; grid-template-columns: 320px 1fr; gap: 48px; padding: 48px 0 36px; }
.footer-logo img { margin-bottom: 14px; background: #fff; border-radius: 8px; padding: 4px 8px; width: 121px; height: auto; }
.footer-brand p { line-height: 1.8; }
.footer-mini { display: flex; gap: 16px; margin-top: 12px; }
.site-footer a { color: #e3edf8; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-row { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-row h2 { color: var(--amber); font-family: var(--sans); font-size: 15px; font-weight: 700; }
.footer-row h2 a { color: var(--amber); }
.footer-row p { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); background: #071d38; font-size: 14px; }
.footer-bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 14px 0; }
.footer-sister a { margin-left: 12px; }

.go-top { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--ink); box-shadow: var(--shadow-lift); }
.go-top[hidden] { display: none; }
.go-top:hover { background: #ffb933; color: var(--ink); }

/* ---------- 響應式 ---------- */
@media (max-width: 1100px) {
    .groups { grid-template-columns: 1fr 1fr; }
    .ways { grid-template-columns: 1fr 1fr; }
    .months { grid-template-columns: repeat(4, 1fr); }
    .islands { grid-template-columns: 1fr 1fr; }
    .island-tips { grid-column: span 2; }
    .footer-main { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 120px 0 36px; }
    .hero::after { background: linear-gradient(0deg, rgba(7, 26, 50, .9) 0%, rgba(7, 26, 50, .55) 55%, rgba(7, 26, 50, .2) 100%); }
    .split, .faq-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: start; gap: 6px; }
    .section-head p { text-align: left; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 32px); }
    .section { padding: 44px 0; }
    .brand-name { font-size: 20px; }
    .groups, .ways, .islands, .sisters { grid-template-columns: 1fr; }
    .island-tips { grid-column: auto; }
    .way { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; }
    .way-icon { grid-row: span 2; margin-bottom: 0; }
    .way strong { font-size: 19px; line-height: 1.4; }
    .months { grid-template-columns: 1fr 1fr; gap: 10px; }
    .month-num { font-size: 28px; }
    .hero-month { padding: 18px; }
    .footer-row { grid-template-columns: 1fr; gap: 4px; }
    .footer-sister a { margin-left: 8px; }
}

/* ---------- 列印（行程頁、規劃器、各內容頁）：只留內容，省墨 ---------- */
@media print {
    @page { margin: 14mm 12mm; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .site-header, .site-footer, .go-top, .skip-link, .content-aside, .planner-form, .planner-actions, .check-bar,
    .related, .stay-cta, .scenic-box, .crumbs, .page-hero, .page-head .eyebrow { display: none !important; }
    .wrap { width: 100%; }
    .page-head { padding: 0 0 8pt; background: none; border: 0; }
    .page-head::before { display: none; }
    .page-head.has-hero .page-head-inner, .content-layout, .planner { display: block; padding-top: 0; }
    .section { padding: 8pt 0; }
    a { color: #000; text-decoration: none; }
    .trip-day, .info-card, .faq-item, .callout, .planner-notes, .block-facts > div { box-shadow: none; background: #fff; break-inside: avoid; }
    .trip-day + .trip-day::before { display: none; }
    .trip-day-num { background: #fff; color: #000; border: 2px solid #000; }
    .trip-moves li { background: none; padding: 0; color: #000; }
    .trip-day-grid { grid-template-columns: 1.2fr 1fr; }
    .block-cards, .link-cards, .faq-grid { grid-template-columns: 1fr 1fr; }
}
