/* ==========================================================================
   site.css － Listenfy 網站 v6（溫柔倡議宣言）
   版面靠真實照片、大字標題、細線與留白建立秩序；卡片只留給場次與彈窗。
   色號與字型依品牌手冊（tokens.css），本檔只定版面與元件。
   ========================================================================== */

:root {
  --paper: #FFFDF7;
  --ink: #182155;
  --ink-2: #404B82;
  --navy: #182155;
  --sky: #91B2FF;
  --sky-hover: #7F9CE6;
  --butter: #FFE29A;
  --rule: rgba(24, 33, 85, 0.14);
  --rule-strong: rgba(24, 33, 85, 0.28);
  --oat: #FAF6ED;
  --oat-2: #F0E8D5;
  --caramel: #925012;
  --caramel-hover: #7A3F08;
  --cocoa: #381C0E;
  --walnut: #634735;
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  --on-dark-2: #D3DFFA;
  --on-dark-3: #B9C3E8;
  --ease: cubic-bezier(0.22, 0.8, 0.36, 1);
}


/* Coffee & Chat 與心理資源清單：同一套版面，整頁換成焦糖燕麥色調（頁首尺寸不變） */
.theme-cc {
  --paper: #FAF6ED;
  --ink: #381C0E;
  --ink-2: #634735;
  --navy: #381C0E;
  --sky: #925012;
  --sky-hover: #7A3F08;
  --butter: #F0E8D5;
  --rule: rgba(56, 28, 14, 0.14);
  --rule-strong: rgba(56, 28, 14, 0.28);
  --on-dark-2: #E9DBCA;
  --on-dark-3: #D9C7B2;
}
.theme-cc .btn--primary { color: #fff; }
.theme-cc .nav-dropdown__menu a:hover, .theme-cc .nav-dropdown__menu a[aria-current="page"] { background: var(--oat-2); }

/* ---------- 1. 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--butter); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 3000; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.muted { color: var(--ink-2); }
.hl { background: linear-gradient(transparent 60%, var(--butter) 60%, var(--butter) 94%, transparent 94%); padding: 0 0.04em; }
.nowrap { white-space: nowrap; }

/* ---------- 2. 版面 ---------- */
main { overflow-x: clip; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.container--narrow { max-width: calc(720px + 2 * var(--pad)); }
.sec { padding: var(--sec) 0; }
.sec--tight { padding: calc(var(--sec) * 0.6) 0; }
.sec--navy { background: var(--navy); color: var(--paper); }
.sec--navy .intro, .sec--navy .muted { color: var(--on-dark-2); }
.sec--oat { background: var(--oat); }
/* 兩個同底色的白區塊相鄰時，不重複上方留白 */
.sec:not(.sec--navy):not(.sec--oat) + .sec:not(.sec--navy):not(.sec--oat) { padding-top: 0; }

/* 區塊標頭：左標題、右說明，像報告書的章節頁 */
.sec-head { display: grid; grid-template-columns: 5fr 6fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--single { grid-template-columns: 1fr; max-width: 760px; }
.h1 { font-weight: 900; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.16; }
.h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.25; }
.h3 { font-size: 1.5rem; line-height: 1.45; }
.intro { font-size: 1.125rem; color: var(--ink-2); max-width: 36em; }
.label { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0.04em; }
.sec--navy .label { color: var(--butter); }
.num { font-family: var(--font-title); font-weight: 900; color: var(--ink-2); font-size: 1.125rem; letter-spacing: 0.04em; }
.sec--navy .num { color: var(--butter); }

/* 頁首上方的公告列（不固定，捲動後收起；顏色隨 Listenfy／Coffee & Chat 主題切換） */
.site-notice { background: var(--butter); color: var(--ink); }
.site-notice p {
  margin: 0 auto; padding-top: 8px; padding-bottom: 8px;
  font-size: var(--fs-sm); line-height: 1.5; letter-spacing: 0.04em; text-align: center;
}
@media (max-width: 480px) { .site-notice p { font-size: var(--fs-xs); letter-spacing: 0.02em; } }

/* ---------- 3. 頁首（所有頁面完全相同：高度、背景、字重） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header .container { height: 100%; position: relative; }
.nav-bar { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link, .nav-dropdown__btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border: 0; background: none; cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.nav-link::after, .nav-dropdown__btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform 200ms var(--ease);
}
.nav-link:hover::after, .nav-dropdown__btn:hover::after,
.nav-link[aria-current="page"]::after, .nav-dropdown.is-current > .nav-dropdown__btn::after { transform: scaleX(1); }
.nav-dropdown__btn::after { right: 30px; }
.nav-dropdown { position: relative; }
.nav-dropdown__btn svg { transition: transform 160ms var(--ease); }
.nav-dropdown.is-open .nav-dropdown__btn svg { transform: rotate(180deg); }
.nav-dropdown__menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 168px; padding: 8px;
  display: none; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px;
}
.nav-dropdown.is-open .nav-dropdown__menu { display: flex; }
.nav-dropdown__menu a { padding: 8px 12px; border-radius: 10px; font-size: 16px; }
.nav-dropdown__menu a:hover, .nav-dropdown__menu a[aria-current="page"] { background: #F2F4F8; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { height: 42px; min-height: 42px; padding: 0 16px; font-size: 15px; }
.nav-ig { width: 136px; }
.nav-ig svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-cta { width: 188px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong); background: #fff; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- 4. 按鈕與連結 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.btn--primary { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.btn--primary:hover { background: var(--sky-hover); border-color: var(--sky-hover); }
.btn--ghost { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: #fff; }
.btn--light { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.btn--light:hover { background: #FFF2D2; }
.btn--outline-light { background: transparent; border-color: rgba(255, 253, 247, 0.5); color: var(--paper); }
.btn--outline-light:hover { border-color: var(--paper); }
.btn--caramel { background: var(--caramel); border-color: var(--caramel); color: #fff; }
.btn--caramel:hover { background: var(--caramel-hover); border-color: var(--caramel-hover); }
.btn--accent { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: var(--rule-strong);
  background: none; border: 0; padding: 0; cursor: pointer; transition: text-decoration-color 160ms var(--ease), gap 160ms var(--ease);
}
.link-arrow:hover { text-decoration-color: currentColor; gap: 12px; }
.sec--navy .link-arrow { color: var(--paper); text-decoration-color: rgba(255, 253, 247, 0.4); }

/* ---------- 5. 首屏 ---------- */
/* 滿版照片＋深藍使命帶 */
.hero-photo { position: relative; height: clamp(320px, 52vh, 560px); background: var(--navy); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-photo figcaption { position: absolute; right: var(--pad); bottom: 16px; font-size: 13px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }
.hero-band { background: var(--navy); color: var(--paper); }
.hero-band .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px 72px; align-items: end; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-band .h1 { color: var(--paper); font-size: clamp(2.5rem, 4.6vw, 4rem); }
.hero-band .h1 em { font-style: normal; color: var(--butter); }
.hero-band p { color: var(--on-dark-2); font-size: 1.125rem; margin-bottom: 28px; }
/* 文字首屏（內頁） */
.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); }
.page-hero .h1 { max-width: 14em; }
.page-hero .intro { margin-top: 24px; }
.page-hero--split .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.page-hero--split .container > img, .page-hero--split figure > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.page-hero--split .h1 { font-size: clamp(2.25rem, 3.9vw, 3.25rem); }
.page-hero .actions { margin-top: 32px; }
.page-photo { margin: 0; }
.page-photo img { width: 100%; height: clamp(280px, 46vh, 520px); object-fit: cover; }
.page-photo figcaption { font-size: 13px; color: var(--ink-2); padding: 10px var(--pad) 0; max-width: var(--wrap); margin: 0 auto; }

/* 公告列：細線條、不搶首屏 */
.notice-line { border-bottom: 1px solid var(--rule); }
.notice-line .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.notice-line strong { font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #CDE483; margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(24, 33, 85, 0.2); }

/* 合作與同行單位 */
.partners { border-bottom: 1px solid var(--rule); }
.partners .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding-top: 22px; padding-bottom: 22px; font-size: 15px; color: var(--ink-2); }
.partners strong { color: var(--ink); font-size: 14px; letter-spacing: 0.04em; }

/* ---------- 6. 區塊語法：編號列、三欄、照片並排 ---------- */
.rows { list-style: none; border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 96px 1fr 1.4fr; gap: 16px 40px; padding: 32px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.row h3 { font-size: 1.375rem; }
.row p { color: var(--ink-2); }
.sec--navy .rows, .sec--navy .row { border-color: rgba(255, 253, 247, 0.18); }
.sec--navy .row p { color: var(--on-dark-2); }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.col { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.col p { color: var(--ink-2); }
.sec--navy .col { border-color: var(--butter); }
.sec--navy .col p { color: var(--on-dark-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--wide { grid-template-columns: 1.3fr 1fr; }
.split > figure img, .split > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.split .stack > * + * { margin-top: 20px; }
.stack > * + * { margin-top: 16px; }

/* 兩扇門：首頁方案入口 */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.door { display: flex; flex-direction: column; gap: 20px; }
.door__img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.door__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.door:hover .door__img img { transform: scale(1.03); }
.door__body { display: flex; flex-direction: column; gap: 10px; }
.door h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 900; }
.door p { color: var(--ink-2); max-width: 32em; }
.door .link-arrow { margin-top: 8px; }
.door--cc h3 { color: var(--cocoa); }
.door--cc .link-arrow { color: var(--caramel); }

/* 數字 */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.stat { border-top: 2px solid currentColor; padding-top: 20px; }
.stat__num { font-family: var(--font-title); font-weight: 900; font-size: clamp(2.5rem, 4.6vw, 3.75rem); line-height: 1.1; }
.stat__label { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.sec--navy .stat { border-color: var(--butter); }
.sec--navy .stat__num { color: var(--butter); }
.sec--navy .stat__label { color: var(--on-dark-2); }
.stats--inline { display: flex; gap: 48px; margin-top: 40px; }
.stats--inline .stat { border-top-width: 1px; padding-top: 12px; }
.stats--inline .stat__num { font-size: 2rem; }

/* 引文 */
.pull { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.6; max-width: 26em; }
.pull::before { content: "「"; }
.pull::after { content: "」"; }
.pull-by { margin-top: 20px; color: var(--ink-2); font-size: 15px; }
.quotes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.quotes li { border-top: 1px solid var(--rule-strong); padding-top: 24px; }
.quotes blockquote { font-size: 1.0625rem; line-height: 1.9; }
.quotes cite { display: block; margin-top: 16px; font-style: normal; font-size: 14px; color: var(--ink-2); }
.sec--navy .quotes li { border-color: rgba(255, 253, 247, 0.3); }
.sec--navy .quotes cite { color: var(--on-dark-2); }

/* 行動呼籲：深藍收尾帶 */
.sec--navy.closing { padding: clamp(48px, 6vw, 72px) 0; }
.closing .container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 64px; align-items: center; }
.closing .actions { margin-top: 20px !important; }
.closing .h2 { color: var(--paper); }
.closing p { color: var(--on-dark-2); }

/* ---------- 7. 清單：近期活動 ---------- */
.event-list { list-style: none; border-bottom: 1px solid var(--rule); }
.event-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px 32px; align-items: center; padding: 24px 0; border-top: 1px solid var(--rule); }
.event-date { font-family: var(--font-title); font-weight: 900; font-size: 1.375rem; }
.event-date--brown { color: var(--caramel); }
.event-date--green { color: var(--ink); }
.event-title { font-size: 1.1875rem; margin-bottom: 4px; }
.event-meta { font-size: 15px; color: var(--ink-2); }

/* ---------- 8. 摺疊問答 ---------- */
.accordion { border-bottom: 1px solid var(--rule); }
.accordion details { border-top: 1px solid var(--rule); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.6;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { flex-shrink: 0; transition: transform 160ms var(--ease); }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion__body { padding: 0 0 28px; color: var(--ink-2); max-width: 36em; }

/* 分頁切換（問答分類、篩選） */
.switcher { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.switcher__item {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent;
  font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.switcher__item:hover { border-color: var(--ink); }
.switcher__item.is-active, .switcher__item.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tab-pane { display: none; }
.tab-pane.is-active { display: block; }

/* 橫向捲動 */
.carousel__track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 16px; scrollbar-width: thin; }
.carousel__track > * { flex: 0 0 calc((100% - 64px) / 3); scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 12px; margin-top: 24px; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--rule-strong); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); background: #fff; }

/* ---------- 9. 彈窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(24, 33, 85, 0.45); }
.modal.is-active { display: flex; animation: fade-in 200ms var(--ease); }
.modal__panel { position: relative; width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto; padding: clamp(28px, 5vw, 48px); background: var(--paper); border-radius: 20px; }
.modal__panel--wide { max-width: 860px; }
.modal__panel--narrow { max-width: 520px; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--rule-strong); cursor: pointer; }
.modal__close:hover { border-color: var(--ink); }
.modal__title { font-size: 1.625rem; margin: 8px 0 12px; padding-right: 48px; }
.modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 32px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 10. 表單 ---------- */
.input, .select { width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--rule-strong); border-radius: 12px; }
.input:hover, .select:hover, .input:focus-visible, .select:focus-visible { border-color: var(--ink); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23182155' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }

/* ---------- 11. 頁尾 ---------- */
.site-footer { background: var(--navy); color: var(--paper); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .brand img { height: 64px; }
.footer-brand p { color: var(--on-dark-2); font-size: 15px; margin-top: 20px; max-width: 26em; }
.footer-title { font-family: var(--font-title); font-weight: 700; font-size: 15px; margin-bottom: 14px; color: var(--butter); }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--on-dark-2); font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.socials { display: grid; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--on-dark-2); }
.social svg { width: 18px; height: 18px; }
.social:hover { color: #fff; }
.social:hover span { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 253, 247, 0.18); font-size: 13px; color: var(--on-dark-3); }
.footer-bottom strong { color: #fff; }
.footer-note { max-width: 40em; }
.footer-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. 響應式 ---------- */
@media (min-width: 1201px) { .nav-menu { display: flex !important; } }
@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h); margin: 0;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--pad) 24px;
    background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 12px 24px rgba(24, 33, 85, 0.08);
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-link, .nav-dropdown__btn { height: 48px; width: 100%; justify-content: space-between; padding: 0; font-size: 16px; }
  .nav-link::after, .nav-dropdown__btn::after { display: none; }
  .nav-link[aria-current="page"] { font-weight: 700; }
  .nav-dropdown__menu { position: static; border: 0; padding: 0 0 0 16px; background: none; }
  .nav-actions { flex-direction: column; align-items: stretch; padding-top: 8px; }
  .nav-actions .btn { width: 100%; height: 48px; }
}
@media (max-width: 960px) {
  .sec-head, .hero-band .container, .page-hero--split .container, .split, .split--wide, .closing .container { grid-template-columns: 1fr; }
  .cols, .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel__track > * { flex-basis: calc((100% - 32px) / 2); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .cols, .cols--4, .cols--2, .doors, .stats { grid-template-columns: 1fr; gap: 32px; }
  .event-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .carousel__track > * { flex-basis: 86%; }
  .stats--inline { gap: 32px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---------- 13. 換行規則（後台輸入的標題與段落也適用） ---------- */
/* 段落避免最後一行只剩一兩個字；標題優先在標點處換行，太長時才在字間斷開 */
p, li, blockquote, dd { text-wrap: pretty; }
.title-wrap { word-break: keep-all; overflow-wrap: anywhere; }
.page-hero--compact { padding: clamp(48px, 6vw, 88px) 0 0; }
.page-hero--compact .sec-head { margin-bottom: 0; }
.page-hero--compact .intro { margin-top: 0; }
.sec--flush { padding-top: clamp(32px, 4vw, 48px); }

/* ---------- 14. 觸控裝置：文字連結的可點範圍至少 44px（滑鼠操作的版面不變） ---------- */
@media (pointer: coarse) {
  .link-arrow, .back-link, .footer-links a, .social { min-height: 44px; }
  .footer-links a { display: inline-flex; align-items: center; }
  .footer-links, .socials { gap: 0; }
  .footer-note a { padding-block: 14px; }
}
