﻿/* =========================================================
   台灣鬱金香動作障礙關懷協會 — 前台樣式
   設計原則（長者友善）：
   - 基本字級 20px、行高 1.8，可再放大到 125% / 150%
   - 文字與背景對比 ≥ 4.5:1，提供高對比模式
   - 按鈕與點選區至少 48px 高，間距寬鬆，避免誤觸
   - 不使用自動輪播、不靠滑鼠移過才出現的選單
   ========================================================= */
:root {
  --tulip: #a61d38;        /* 鬱金香紅（主色） */
  --tulip-dark: #7f1328;
  --tulip-soft: #fbe9ec;
  --leaf: #2f6b3f;         /* 葉綠（輔色） */
  --leaf-soft: #e8f2ea;
  --ink: #2a2522;          /* 內文 */
  --ink-soft: #4f4741;
  --bg: #fffaf4;           /* 暖白背景 */
  --card: #ffffff;
  --line: #e6dcd2;
  --alt: #f7efe6;
  --focus: #f2a900;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(60, 30, 20, .08);
  --fs: 20px;
}
html[data-size="large"]  { --fs: 23px; }
html[data-size="xlarge"] { --fs: 26px; }

/* 高對比模式 */
html[data-contrast="high"] {
  --tulip: #ffd400; --tulip-dark: #ffe14d; --tulip-soft: #222; --leaf: #7dff9a; --leaf-soft: #111;
  --ink: #fff; --ink-soft: #fff; --bg: #000; --card: #000; --line: #fff; --alt: #111; --focus: #00e5ff;
  --shadow: none;
}
html[data-contrast="high"] img { filter: grayscale(.2) contrast(1.1); }
html[data-contrast="high"] .btn-primary { color: #000 !important; }
html[data-contrast="high"] .hero, html[data-contrast="high"] .partner-strip, html[data-contrast="high"] .site-footer { background: #000 !important; border-top: 2px solid #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "Heiti TC", sans-serif;
  font-size: 1rem; line-height: 1.8; letter-spacing: .02em;
}
img { max-width: 100%; height: auto; }
a { color: var(--tulip); text-underline-offset: 3px; }
a:hover { color: var(--tulip-dark); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.4; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--tulip); color: #fff; padding: 12px 20px; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: 10px 24px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.3; text-align: center;
}
.btn-primary { background: var(--tulip); color: #fff; }
.btn-primary:hover { background: var(--tulip-dark); color: #fff; }
.btn-outline { background: var(--card); color: var(--tulip); border-color: var(--tulip); }
.btn-outline:hover { background: var(--tulip-soft); }
.btn-light { background: #fff; color: var(--leaf); }
.btn-lg { min-height: 60px; font-size: 1.1rem; padding: 12px 30px; }
.btn-sm { min-height: 48px; font-size: .9rem; padding: 8px 18px; }
.btn-block { display: flex; width: 100%; }

/* ---------- 頂部工具列 ---------- */
.topbar { background: var(--tulip-dark); color: #fff; font-size: .9rem; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
.topbar-phone { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.topbar-phone:hover { color: #fff; text-decoration: underline; }
.topbar-phone strong { font-size: 1.1rem; letter-spacing: .05em; }
.a11y-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.a11y-label { margin-right: 2px; }
.fs-btn, .hc-btn {
  min-width: 48px; min-height: 44px; border-radius: 8px; border: 2px solid rgba(255,255,255,.7);
  background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; padding: 0 10px;
}
.fs-l { font-size: 1.1em; } .fs-xl { font-size: 1.25em; }
.fs-btn[aria-pressed="true"], .hc-btn[aria-pressed="true"] { background: #fff; color: var(--tulip-dark); }
html[data-contrast="high"] .topbar { background: #000; border-bottom: 2px solid #fff; }
html[data-contrast="high"] .fs-btn[aria-pressed="true"], html[data-contrast="high"] .hc-btn[aria-pressed="true"] { background: #ffd400; color: #000; }

/* ---------- 頁首與選單 ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand img { display: block; width: 315px; max-width: 70vw; height: auto; }
html[data-contrast="high"] .brand img { background: #fff; padding: 4px; border-radius: 6px; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 12px;
  border: 2px solid var(--tulip); background: var(--card); color: var(--tulip); font: inherit; font-weight: 700; cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 3px; background: currentColor; border-radius: 2px; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; } .menu-icon::after { top: 7px; }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding-top: 0; padding-bottom: 8px; margin: 0 auto; }
.mainnav a {
  display: flex; align-items: center; min-height: 52px; padding: 6px 16px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.02rem;
}
.mainnav a:hover { background: var(--tulip-soft); color: var(--tulip-dark); }
.mainnav a.active { background: var(--tulip); color: #fff; }
html[data-contrast="high"] .mainnav a.active { color: #000; }

/* ---------- 首頁主視覺 ---------- */
.hero { background: linear-gradient(135deg, #fff3ee 0%, #fde3e7 55%, #f0f6ee 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-kicker { color: var(--leaf); font-weight: 700; margin-bottom: .3em; }
.hero h1 { font-size: 2.3rem; color: var(--tulip-dark); }
.hero-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.hero-art img { width: 100%; max-width: 320px; display: block; margin: 0 auto; }

/* 常用功能 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -28px; position: relative; }
.quick-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 12px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 150px; justify-content: center;
}
.quick-item:hover { border-color: var(--tulip); color: var(--ink); }
.quick-ico { font-size: 2.2rem; line-height: 1.2; }
.quick-t { font-weight: 800; font-size: 1.15rem; color: var(--tulip-dark); }
.quick-d { font-size: .85rem; color: var(--ink-soft); }

/* ---------- 區塊 ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--alt); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; border-left: 8px solid var(--tulip); padding-left: 14px; }
.section-head small { font-size: .75em; color: var(--leaf); font-weight: 700; margin-left: 6px; }
.section-note { color: var(--ink-soft); }
.empty { padding: 24px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* 活動卡片 */
.card-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.card-link:hover .card-title { color: var(--tulip); text-decoration: underline; }
.card-img { aspect-ratio: 16 / 10; background: var(--tulip-soft); display: block; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img-empty { display: flex; align-items: center; justify-content: center; }
.card-img-empty img { width: 40%; height: auto; object-fit: contain; opacity: .7; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-meta { font-size: .85rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-title { font-weight: 800; font-size: 1.08rem; line-height: 1.5; }
.card-text { color: var(--ink-soft); font-size: .92rem; }
.card-more { margin-top: auto; color: var(--tulip); font-weight: 700; font-size: .92rem; padding-top: 6px; }
.tag { display: inline-block; background: var(--tulip-soft); color: var(--tulip-dark); border-radius: 6px; padding: 0 10px; font-size: .8rem; font-weight: 700; }
.tag-pin { background: var(--tulip); color: #fff; }
.tag-intl { background: #e5eef9; color: #1d4f8c; }
.tag-partner { background: var(--leaf-soft); color: var(--leaf); }
html[data-contrast="high"] .tag { background: #000; color: #ffd400; border: 1px solid #ffd400; }

/* 新聞卡片 */
.news-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--ink-soft); margin: 0; }
.news-title { font-size: 1.15rem; margin: 4px 0; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--tulip); text-decoration: underline; }
.news-summary { color: var(--ink-soft); margin-bottom: 8px; }
.news-original { margin: 0 0 10px; font-size: .9rem; }
.news-original summary { cursor: pointer; color: var(--leaf); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.news-original p { background: var(--alt); padding: 10px 14px; border-radius: 8px; margin: 6px 0; }
.news-card .btn { align-self: flex-start; margin-top: auto; }

/* 首頁關於 */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-box { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.big-list { padding-left: 1.4em; } .big-list li { margin-bottom: .5em; }
.donate-box { border: 3px solid var(--tulip); }
.num { font-size: 1.3rem; color: var(--tulip-dark); letter-spacing: .06em; }

/* ---------- 內頁 ---------- */
.page-head { background: linear-gradient(135deg, #fff1ec, #fbe6ea); border-bottom: 1px solid var(--line); padding: 26px 0 22px; margin-bottom: 30px; }
html[data-contrast="high"] .page-head { background: #000; }
.page-head h1 { margin-bottom: .3em; color: var(--tulip-dark); }
.page-lead { color: var(--ink-soft); max-width: 46em; margin: 0; }
.breadcrumb { font-size: .88rem; color: var(--ink-soft); margin-bottom: 6px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-bottom: 48px; }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; min-width: 0; overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.4em; padding-bottom: .2em; border-bottom: 2px solid var(--tulip-soft); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; color: var(--tulip-dark); }
.prose ul, .prose ol { padding-left: 1.4em; } .prose li { margin-bottom: .4em; }
.prose .lead { font-size: 1.1rem; }
.prose img { border-radius: 10px; margin: 8px 0; }
.prose iframe { max-width: 100%; }
.prose blockquote { margin: 1.2em 0; padding: 14px 20px; background: var(--leaf-soft); border-left: 6px solid var(--leaf); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; } .prose td, .prose th { border: 1px solid var(--line); padding: 8px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--ink-soft); margin: 0; }
.post-cover { margin: 0 0 20px; } .post-cover img { width: 100%; }
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.pn { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--alt); }
.pn small { display: block; color: var(--tulip); font-weight: 700; }
.pn-prev { grid-column: 2; text-align: right; }
.side-nav { align-self: start; position: sticky; top: 150px; }
.side-nav h2 { font-size: 1.1rem; }
.side-nav ul { list-style: none; padding: 0; margin: 0 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-nav li + li { border-top: 1px solid var(--line); }
.side-nav li a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); min-height: 48px; }
.side-nav li a:hover { background: var(--tulip-soft); }
.side-call { background: var(--tulip-soft); border-radius: var(--radius); padding: 18px; text-align: center; }
.side-call p { margin-bottom: 8px; font-weight: 700; }

.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 70px; background: var(--alt); border-radius: 12px; margin-bottom: 12px !important; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--tulip); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bank-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.bank-card { background: var(--alt); border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.bank-card h3 { margin-top: 0 !important; }
.bank-card strong { font-size: 1.15rem; letter-spacing: .05em; }
.notice { background: #fff6dc; border: 2px solid #e8b100; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.notice h3 { margin-top: 0 !important; color: #7a5600 !important; }
.notice-soft { background: var(--leaf-soft); border-color: var(--leaf); }
html[data-contrast="high"] .notice { background: #000; border-color: #ffd400; }

/* 篩選、分頁、分頁籤 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.year-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; }
.chip.on, .chip:hover { border-color: var(--tulip); background: var(--tulip); color: #fff; }
.search-box { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.search-box input { flex: 1; min-width: 0; }
.result-count { color: var(--ink-soft); }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 30px 0 50px; }
.pager-info { font-weight: 700; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 3px solid var(--tulip); margin-bottom: 16px; }
.tab { display: flex; align-items: center; min-height: 56px; padding: 8px 20px; border-radius: 12px 12px 0 0; background: var(--alt); color: var(--ink); text-decoration: none; font-weight: 700; }
.tab.on { background: var(--tulip); color: #fff; }
.updated-note { color: var(--ink-soft); font-size: .85rem; text-align: right; margin-bottom: 40px; }

/* 季刊 */
.pub-group { margin-top: 10px; border-left: 8px solid var(--tulip); padding-left: 14px; }
.pub-grid { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.pub a { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); height: 100%; }
.pub a:hover { border-color: var(--tulip); }
.pub-cover { aspect-ratio: 3 / 4; background: var(--alt); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-ph { font-size: 3rem; }
.pub-title { font-weight: 700; }
.pub-open { color: var(--tulip); font-size: .88rem; font-weight: 700; margin-top: auto; }

/* 相關資源 */
.link-list { list-style: none; padding: 0; margin: 0 0 50px; display: grid; gap: 14px; }
.link-list a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.link-list a:hover { border-color: var(--tulip); }
.link-title { display: block; font-weight: 800; color: var(--tulip-dark); font-size: 1.08rem; }
.link-desc { display: block; color: var(--ink-soft); font-size: .92rem; }

/* 聯絡我們 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; padding-bottom: 50px; }
.contact-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.way { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
a.way:hover { border-color: var(--tulip); }
.way-wide { grid-column: 1 / -1; }
.way-ico { font-size: 1.8rem; line-height: 1.2; }
.way-t { font-weight: 800; color: var(--tulip-dark); }
.way-v { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.way-small { font-size: .95rem; }
.way .btn { margin-top: 8px; align-self: flex-start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: var(--tulip); font-weight: 400; font-size: .85rem; }
.hint { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--card); min-height: 54px; padding: 10px 14px;
  border: 2px solid #b9aca0; border-radius: 10px;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--tulip); outline: 3px solid var(--focus); outline-offset: 1px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; border: 2px solid; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-ok { background: var(--leaf-soft); border-color: var(--leaf); }
.alert-err { background: #fdecec; border-color: #c62828; color: #7a1010; }
html[data-contrast="high"] .alert-err { background: #000; color: #fff; }

/* 線上入會申請 */
.join-form { margin: 36px 0 50px; scroll-margin-top: 20px; }
.join-form h2 { margin-top: 0; color: var(--tulip-dark); }
.join-fs { border: 0; border-top: 2px solid var(--line); margin: 0 0 8px; padding: 18px 0 0; min-width: 0; }
.join-fs legend { font-weight: 800; font-size: 1.1rem; color: var(--tulip-dark); padding: 0 8px 0 0; }
.field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 16px; border: 2px solid #b9aca0; border-radius: 10px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.choice:has(input:checked) { border-color: var(--tulip); background: var(--tulip-soft); font-weight: 700 !important; }
.choice input, .check-big input { width: 24px; height: 24px; accent-color: var(--tulip); flex-shrink: 0; }
.check-big { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check-big input { margin-top: 4px; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .2em; }
.captcha-row img { border-radius: 8px; cursor: pointer; flex-shrink: 0; border: 1px solid var(--line); }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--tulip); text-decoration: underline; font: inherit; cursor: pointer; }

/* 錯誤頁 */
.msg-page { padding: 60px 16px; text-align: center; }
.msg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 20px; }

/* ---------- 合作網站與頁尾 ---------- */
.partner-strip { background: var(--leaf); color: #fff; }
.partner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.partner-kicker { margin: 0; font-size: .85rem; opacity: .9; }
.partner-name { margin: 0; font-size: 1.25rem; font-weight: 800; }
.partner-desc { margin: 0; opacity: .95; }
.site-footer { background: #3b2a26; color: #f5ebe4; padding-top: 40px; }
.site-footer a { color: #ffd9df; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.footer-title { color: #fff; font-size: 1.1rem; border-bottom: 2px solid rgba(255,255,255,.25); padding-bottom: 8px; }
.footer-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.footer-list li { margin-bottom: 8px; }
.footer-links a { display: inline-block; min-height: 40px; }
.footer-warn { color: #ffd27a; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 20px; padding-top: 16px; padding-bottom: 20px; font-size: .85rem; }
.footer-admin { color: #cbb9b0 !important; }
.to-top {
  position: fixed; right: 16px; bottom: 16px; background: var(--tulip); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; }
html[data-contrast="high"] .to-top { color: #000; }

/* ---------- 響應式 ---------- */
@media (max-width: 1000px) {
  .card-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .mainnav { display: none; border-top: 1px solid var(--line); }
  .mainnav.open { display: block; max-height: calc(100vh - 80px); overflow-y: auto; }
  .mainnav ul { flex-direction: column; padding: 8px 16px 16px; }
  .mainnav a { min-height: 60px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 30px; padding-bottom: 46px; }
  .hero-art { display: none; }
  .hero h1 { font-size: 1.9rem; }
  .quick { grid-template-columns: 1fr 1fr; }
  .news-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .a11y-label { display: none; }
  .topbar-inner { justify-content: center; }
  .card-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose { padding: 20px 18px; }
  .hero-actions .btn { width: 100%; }
  h1 { font-size: 1.5rem; } .hero h1 { font-size: 1.7rem; }
  .prev-next { grid-template-columns: 1fr; } .pn-prev { grid-column: auto; text-align: left; }
  .contact-ways { grid-template-columns: 1fr; }
  .search-box { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .topbar, .site-header, .partner-strip, .site-footer, .side-nav, .post-actions, .prev-next, .to-top { display: none !important; }
  .page-layout { display: block; } .prose { border: 0; padding: 0; }
  body { background: #fff; }
}
