/* 《全球中央》公益贈閱計畫 — 中央通訊社色調 */
:root {
  --navy: #0b2d5c;        /* 中央社深藍 */
  --navy-deep: #071e3f;
  --blue: #1465a8;        /* CNA 藍 */
  --blue-light: #3d8ecb;
  --sky: #eaf2f9;
  --red: #c8322b;         /* CNA 紅(強調/CTA) */
  --gold: #e8a33d;        /* 已認養/感謝 */
  --gold-bg: #fdf3e3;
  --map-none: #46586a;
  --map-lv1: #9dcdea;
  --map-lv2: #68a3cf;
  --map-lv3: #326f9f;
  --map-lv4: #123d6b;
  --ink: #1e2a38;
  --ink-soft: #55677c;
  --line: #dce5ee;
  --bg: #f7fafc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(11, 45, 92, 0.08);
  --shadow-lg: 0 8px 30px rgba(11, 45, 92, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  line-break: strict;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, .lede, .note { text-wrap: pretty; }
.mobile-break { display: none; }

img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 45, 92, 0.97);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 2px 12px rgba(7,30,63,0.35);
}
.site-header .container {
  display: flex; align-items: center; gap: 20px;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; }
.brand .logo-mark {
  width: 58px; height: 58px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  flex: none; display: block;
}
.brand .brand-text { line-height: 1.35; font-size: 20px; }
.brand .brand-text small { display: block; font-weight: 500; font-size: 13.5px; opacity: .85; letter-spacing: 1.5px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: rgba(255,255,255,.92); font-size: 17.5px; padding: 10px 15px; border-radius: 10px;
  transition: background .15s; white-space: nowrap;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-cta {
  background: var(--red); color: #fff !important; font-weight: 700;
  padding: 12px 24px !important; border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(200,50,43,.4);
}
.nav-cta:hover { background: #b02a24 !important; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; padding: 6px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(61,142,203,.35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(200,50,43,.18), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #123c74 100%);
  color: #fff;
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .kicker {
  display: inline-block; font-size: 13.5px; letter-spacing: 2px; font-weight: 700;
  color: #ffd9a0; border: 1px solid rgba(255,217,160,.45);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.28; font-weight: 900; letter-spacing: 1px; }
.hero h1 .accent { color: #8ec7f0; }
.hero .lede { margin: 20px 0 30px; font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.88); max-width: 32em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 16px; font-weight: 700;
  border: 0; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(200,50,43,.45); animation: cta-pulse 2.2s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(200,50,43,.45), 0 0 0 0 rgba(200,50,43,.5); }
  50% { box-shadow: 0 4px 16px rgba(200,50,43,.45), 0 0 0 12px rgba(200,50,43,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .ticker-track, .pulse-ring, .county-shape.active { animation: none !important; }
  .map-entrance .county-shape { opacity: 1; transform: none; }
}
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px;
}
.hero-stat {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 14px 16px;
}
.hero-stat b { display: block; font-size: 26px; font-weight: 900; color: #8ec7f0; }
.hero-stat span { font-size: 12.5px; color: rgba(255,255,255,.78); }

/* Hero 雜誌意象 */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual { gap: 18px; }
.magazine {
  width: min(300px, 80%); aspect-ratio: 3/4; border-radius: 10px; overflow: hidden;
  box-shadow: 24px 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.18);
  transform: rotate(4deg);
  transition: transform .3s;
}
.magazine:hover { transform: rotate(0deg) scale(1.03); }
.magazine .mag-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.mag-caption {
  font-size: 12.5px; color: rgba(255,255,255,.7); letter-spacing: 1px; text-align: center;
}

/* ---------- 區塊通用 ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--blue); background: var(--sky); border-radius: 999px; padding: 5px 16px; margin-bottom: 12px;
}
.section-head h2 {
  max-width: 22em; margin-left: auto; margin-right: auto;
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.45;
  font-weight: 900; color: var(--navy); letter-spacing: .5px;
}
.section-head p {
  margin: 14px auto 0; color: var(--ink-soft); max-width: 38em;
  line-height: 1.85;
}

.alt { background: #fff; }

/* ---------- 困境數據 ---------- */
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gap-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 26px; text-align: center; border-top: 4px solid var(--blue);
}
.gap-card.red { border-top-color: var(--red); }
.gap-card b { font-size: 44px; font-weight: 900; color: var(--navy); display: block; line-height: 1.2; }
.gap-card .what { display: block; margin-top: 8px; font-weight: 700; }
.gap-card .src { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.quote {
  margin: 40px auto 0; max-width: 620px; text-align: center;
  font-size: 17px; color: var(--ink-soft); font-style: italic;
}
.quote b { color: var(--navy); font-style: normal; }

/* ---------- 關於中央社/全球中央 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px;
}
.about-card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); font-size: 22px; margin-bottom: 14px;
}
.about-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.about-card p { font-size: 14px; line-height: 1.8; color: var(--ink-soft); }

.mag-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.feature {
  background: linear-gradient(180deg, var(--sky), #fff 65%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
}
.feature h4 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.mag-meta { text-align: center; margin-top: 26px; color: var(--ink-soft); font-size: 14px; }
.mag-meta b { color: var(--red); }

/* ---------- 儀表板 ---------- */
.dashboard {
  background: linear-gradient(165deg, var(--navy-deep), var(--navy) 60%, #123c74);
  color: #fff;
}
.dashboard .section-head h2, .dashboard .section-head p { color: #fff; }
.dashboard .section-head .tag { background: rgba(255,255,255,.12); color: #ffd9a0; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dash-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.dash-card b { font-size: 38px; font-weight: 900; display: block; color: #8ec7f0; line-height: 1.25; font-variant-numeric: tabular-nums; }
.dash-card.gold b { color: var(--gold); }
.dash-card span { font-size: 13.5px; color: rgba(255,255,255,.8); }
.progress-wrap { margin-top: 30px; }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: rgba(255,255,255,.85); }
.progress-bar {
  height: 18px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden;
}
.progress-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #f5c878);
  box-shadow: 0 0 14px rgba(232,163,61,.6);
  transition: width 1s ease;
}
.sponsor-wall {
  margin-top: 38px; padding: 28px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,217,160,.28);
  border-radius: 22px; text-align: center; box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.sponsor-wall h3 { font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 20px; }
.demo-label, .demo-badge {
  display: inline-flex; align-items: center; background: var(--red); color: #fff;
  border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800;
  font-style: normal; letter-spacing: .5px; vertical-align: 2px;
}
.sponsor-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.sponsor-card {
  min-width: 0; width: 100%; max-width: 420px; flex: 1 1 300px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: linear-gradient(145deg, #fff8e9, #f5c86f); color: #6f460b;
  border: 2px solid rgba(255,225,159,.9); border-radius: 16px; padding: 15px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 24px rgba(232,163,61,.16);
  transition: transform .2s, box-shadow .2s;
}
.sponsor-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 30px rgba(232,163,61,.32); }
.sponsor-heart {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(200,50,43,.35);
}
.sponsor-copy { min-width: 0; }
.sponsor-copy b {
  display: block; color: var(--navy); line-height: 1.3;
  overflow-wrap: anywhere; text-wrap: balance;
}
.sponsor-copy small { display: block; margin-top: 3px; color: #76551f; line-height: 1.45; }
.sponsor-empty { color: rgba(255,255,255,.65); font-size: 14.5px; }

/* ---------- 認養地圖(主舞台) ---------- */
.map-section {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(61,142,203,.28), transparent 60%),
    radial-gradient(700px 500px at 95% 90%, rgba(232,163,61,.14), transparent 55%),
    linear-gradient(180deg, #123c74 0%, var(--navy) 30%, var(--navy-deep) 100%);
  color: #fff;
  padding-top: 56px;
}
.map-section .container { max-width: 1220px; }
.map-section .section-head h2 { color: #fff; }
.map-section .section-head h2 .hl {
  color: var(--gold); font-size: 1.25em;
  text-shadow: 0 0 24px rgba(232,163,61,.55);
}
.map-section .section-head p { color: rgba(255,255,255,.82); }
.map-section .section-head p b { color: #ffd9a0; }
.map-section .section-head .tag { background: rgba(255,255,255,.12); color: #ffd9a0; }

/* 跑馬燈 */
.ticker {
  overflow: hidden; margin: 0 auto 34px; max-width: 980px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: inline-flex; gap: 12px; white-space: nowrap; will-change: transform;
  animation: ticker-scroll 60s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 6px 16px; font-size: 13.5px; color: rgba(255,255,255,.88);
}
.ticker-chip b { color: #ffd9a0; font-weight: 700; }
.ticker-chip.adopted-chip {
  background: linear-gradient(90deg, rgba(200,50,43,.88), rgba(158,28,23,.88));
  border-color: rgba(255,217,160,.85); color: #fff;
  box-shadow: 0 0 18px rgba(232,163,61,.25);
}
.ticker-chip.adopted-chip b { color: #fff2bf; font-size: 1.08em; }
.ticker-chip .demo-badge { margin-right: 2px; background: #fff2bf; color: #7c1d19; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 版面:初始只有大地圖;選了縣市後清單從右側展開 */
.map-layout {
  display: grid; grid-template-columns: 1fr 0fr; gap: 0; align-items: start;
  transition: grid-template-columns .75s cubic-bezier(.22, .9, .3, 1), gap .75s;
}
.map-layout.exploring { grid-template-columns: minmax(330px, .9fr) 1.3fr; gap: 30px; }
.map-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.35);
  padding: 18px; position: relative; backdrop-filter: blur(4px);
  transition: padding .75s;
}
.map-layout.exploring .map-panel {
  position: sticky; top: 100px;
}
.map-stage { position: relative; overflow: hidden; border-radius: 10px; }
.map-panel svg {
  width: 100%; height: min(72vh, 690px); display: block;
  transition: height .75s;
}
.exploring .map-panel svg { height: min(52vh, 500px); }

/* 地圖上的提示與瀏覽全部 */
.map-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(7,30,63,.85); border: 1px solid rgba(255,217,160,.45);
  color: #ffd9a0; font-size: 14.5px; font-weight: 700; white-space: nowrap;
  border-radius: 999px; padding: 9px 22px; pointer-events: none;
  animation: hint-bob 2.6s ease-in-out infinite;
}
.exploring .map-hint { display: none; }
@keyframes hint-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}
.browse-all {
  display: block; margin: 14px auto 0; background: none; border: 0;
  color: rgba(255,255,255,.65); font-size: 13.5px; text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.browse-all:hover { color: #fff; }
.exploring .browse-all { display: none; }
#mapZoom { transition: transform .7s cubic-bezier(.22, .9, .3, 1); transform-origin: 0 0; }

.county-shape {
  fill: var(--map-none); stroke: rgba(210, 232, 248, .68); stroke-width: .8; cursor: pointer;
  transition: fill .2s, filter .2s, opacity .5s, transform .5s;
  transform-box: fill-box; transform-origin: center;
}
.county-shape.lv1 { fill: var(--map-lv1); }
.county-shape.lv2 { fill: var(--map-lv2); }
.county-shape.lv3 { fill: var(--map-lv3); }
.county-shape.lv4 { fill: var(--map-lv4); }
.county-shape:hover { filter: brightness(1.35) drop-shadow(0 0 10px rgba(120,200,255,.8)); }
.county-shape.active {
  fill: var(--gold);
  filter: drop-shadow(0 0 12px rgba(232,163,61,.9));
  animation: county-glow 1.8s ease-in-out infinite;
}
.county-shape.none { cursor: default; }
@keyframes county-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(232,163,61,.6)); }
  50% { filter: drop-shadow(0 0 18px rgba(232,163,61,1)); }
}
/* 進場動畫:JS 加上 .enter 之前隱藏 */
.map-entrance .county-shape { opacity: 0; transform: scale(.6); }
.map-entrance .county-shape.enter { opacity: 1; transform: scale(1); }
.county-label {
  font-size: 12px; fill: #fff; pointer-events: none; text-anchor: middle; font-weight: 700;
  paint-order: stroke; stroke: rgba(7,30,63,.7); stroke-width: 2.4px;
  opacity: 0; transition: opacity .8s;
}
.map-ready .county-label { opacity: 1; }
.county-label.dark { fill: rgba(255,255,255,.55); stroke: none; font-weight: 500; }
.inset-box { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.25); stroke-dasharray: 4 4; }

/* 脈動光點 */
.pulse-dot { fill: #ffd9a0; pointer-events: none; }
.pulse-ring {
  fill: none; stroke: #ffd9a0; pointer-events: none;
  animation: pulse-ring 2.4s ease-out infinite;
  transform-box: fill-box; transform-origin: center;
}
@keyframes pulse-ring {
  0% { transform: scale(.4); opacity: .9; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.map-reset {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: 13px; font-weight: 700;
  border: 0; border-radius: 999px; padding: 8px 16px; box-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.map-reset:hover { background: #fff; }

/* 滑鼠跟隨 tooltip */
.map-tooltip {
  position: fixed; z-index: 300; pointer-events: none;
  background: rgba(7,30,63,.95); color: #fff; border: 1px solid rgba(140,200,255,.4);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; line-height: 1.55;
  box-shadow: 0 6px 24px rgba(0,0,0,.45); max-width: 240px;
  transform: translate(14px, -50%);
}
.map-tooltip b { color: #ffd9a0; font-size: 15px; }
.map-tooltip .tt-row { color: rgba(255,255,255,.85); }
.map-tooltip .tt-cta { color: #8ec7f0; font-weight: 700; }

.map-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 0 6px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.map-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }

/* 右側清單(深色底):exploring 才展開 */
.list-panel {
  min-width: 0; overflow: hidden;
  opacity: 0; transform: translateX(36px); pointer-events: none;
  transition: opacity .5s, transform .55s;
}
.map-layout:not(.exploring) .list-panel { display: none; }
.exploring .list-panel { opacity: 1; transform: none; pointer-events: auto; transition-delay: .3s; }
.county-headline {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.county-headline h3 { font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.county-headline .sub { color: rgba(255,255,255,.75); font-size: 14px; }
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px;
}
.filters select, .filters input[type="search"] {
  font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.filters input[type="search"] { flex: 1; min-width: 150px; }
.chk { font-size: 14px; color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: 6px; }

.school-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.school-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; transition: box-shadow .15s, transform .15s;
  position: relative;
}
.school-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.school-card.adopted { background: var(--gold-bg); border-color: #f0d9ad; }
.school-card h4 { font-size: 16.5px; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.school-card .meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.badge {
  font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap;
}
.badge.remote { background: var(--sky); color: var(--blue); }
.badge.special { background: #fdeaea; color: var(--red); }
.badge.extreme { background: var(--red); color: #fff; }
.badge.small-school { background: #eef7ee; color: #2c7a3d; }
.adopted-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: var(--gold); color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 4px 14px;
}
.open-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  border: 1.5px dashed var(--blue-light); color: var(--blue); font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 3px 14px;
}
.list-empty { color: rgba(255,255,255,.7); padding: 40px 0; text-align: center; grid-column: 1/-1; }
.load-more {
  margin: 18px auto 0; display: block; background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 10px 26px;
  font-size: 14.5px; font-weight: 700; transition: background .15s;
}
.load-more:hover { background: rgba(255,255,255,.22); }

/* 學校詳情彈窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(7,30,63,.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 18px; max-width: 520px; width: 100%;
  padding: 30px; position: relative; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal .close {
  position: absolute; top: 14px; right: 14px; background: var(--sky); border: 0;
  width: 34px; height: 34px; border-radius: 50%; font-size: 17px; color: var(--navy);
}
.modal h3 { font-size: 22px; color: var(--navy); margin-bottom: 4px; padding-right: 30px; }
.modal .loc { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.modal dl { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; font-size: 14.5px; margin-top: 14px; }
.modal dt { color: var(--ink-soft); }
.modal dd { color: var(--ink); word-break: break-all; }
.modal .adopted-banner {
  background: var(--gold-bg); border: 1px solid #f0d9ad; color: #8a5a13;
  border-radius: 12px; padding: 12px 16px; font-weight: 700; margin-top: 16px;
}
.modal .cta-banner {
  background: var(--sky); border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 14.5px;
}
/* ---------- 贊助方案 ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.plans.single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.plan {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 34px 30px; border: 1.5px solid var(--line); position: relative;
}
.plan.featured { border-color: var(--gold); box-shadow: 0 10px 36px rgba(232,163,61,.25); }
.plan .flag {
  position: absolute; top: -14px; right: 22px; background: var(--gold); color: #fff;
  font-size: 13px; font-weight: 800; padding: 5px 16px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(232,163,61,.5);
}
.plan .plan-name { font-size: 15px; font-weight: 700; color: var(--blue); letter-spacing: 1px; }
.plan .price { margin: 10px 0 4px; color: var(--navy); }
.plan .price b { font-size: 38px; font-weight: 900; }
.plan .price span { font-size: 14px; color: var(--ink-soft); }
.plan .price .price-sub { display: block; margin-top: 4px; }
.plan ul { list-style: none; margin: 18px 0 0; }
.plan li { padding: 8px 0 8px 30px; position: relative; font-size: 14.5px; border-top: 1px dashed var(--line); }
.plan li::before {
  content: "✓"; position: absolute; left: 4px; color: var(--gold);
  font-weight: 900;
}
.plan.basic li::before { color: var(--blue-light); }
.plan li { line-height: 1.8; }
.plan .note { margin-top: 16px; font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); }
.donation-receipt {
  max-width: 920px; margin: 28px auto 0; display: flex; align-items: center; gap: 24px;
  padding: 28px 32px; overflow: hidden; position: relative;
  background:
    radial-gradient(460px 180px at 100% 0%, rgba(232,163,61,.2), transparent 70%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; border: 2px solid rgba(232,163,61,.65); border-radius: 20px;
  box-shadow: 0 12px 34px rgba(11,45,92,.24), 0 0 24px rgba(232,163,61,.12);
}
.donation-receipt::after {
  content: "捐贈憑證"; position: absolute; right: -16px; bottom: -22px;
  color: rgba(255,255,255,.045); font-size: 68px; font-weight: 900; white-space: nowrap;
  pointer-events: none;
}
.donation-receipt-icon {
  width: 72px; height: 72px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, #fff4d8, #f2bb58); border-radius: 20px;
  font-size: 34px; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.donation-receipt-copy { position: relative; z-index: 1; }
.donation-receipt-tag {
  display: inline-block; margin-bottom: 6px; padding: 3px 11px;
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: .5px;
}
.donation-receipt h3 { color: #ffd995; font-size: 24px; line-height: 1.4; }
.donation-receipt p { max-width: 42em; margin-top: 7px; line-height: 1.85; color: rgba(255,255,255,.92); }
.donation-receipt small { display: block; margin-top: 5px; line-height: 1.7; color: rgba(255,255,255,.68); }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px;
  position: relative;
}
.step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-size: 17px; margin-bottom: 14px;
}
.step h4 { color: var(--navy); font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.steps-note { text-align: center; margin-top: 22px; color: var(--ink-soft); font-size: 14px; }

/* ---------- 回饋 ---------- */
.esg-highlight {
  max-width: 980px; margin: 0 auto 24px; padding: 30px 32px;
  display: flex; align-items: center; gap: 28px; position: relative; overflow: hidden;
  color: #fff; border: 2px solid rgba(232,163,61,.72); border-radius: 20px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(232,163,61,.22), transparent 72%),
    linear-gradient(140deg, var(--navy-deep), var(--navy));
  box-shadow: 0 14px 38px rgba(11,45,92,.2), 0 0 28px rgba(232,163,61,.1);
}
.esg-highlight::after {
  content: "ESG"; position: absolute; right: -12px; bottom: -50px;
  color: rgba(255,255,255,.045); font-size: 150px; line-height: 1; font-weight: 900;
  pointer-events: none;
}
.esg-highlight-icon {
  width: 98px; height: 98px; flex: none; display: grid; place-items: center;
  border-radius: 50%; color: var(--navy-deep); font-size: 24px; font-weight: 900;
  background: linear-gradient(145deg, #fff4d8, #f0b54e);
  box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.75);
}
.esg-highlight-copy { min-width: 0; position: relative; z-index: 1; }
.esg-eyebrow {
  display: inline-block; margin-bottom: 7px; color: #ffd995;
  font-size: 15px; font-weight: 800; letter-spacing: 1px;
}
.esg-highlight h3 { color: #fff; font-size: 25px; line-height: 1.5; }
.esg-highlight p { max-width: 46em; margin-top: 7px; color: rgba(255,255,255,.88); font-size: 16.5px; line-height: 1.85; }
.esg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.esg-tags span {
  padding: 5px 11px; color: #fff4d8; border: 1px solid rgba(255,217,149,.48);
  border-radius: 999px; background: rgba(255,255,255,.08); font-size: 14px; font-weight: 700;
}
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.benefit .ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky); font-size: 21px;
}
.benefit h4 { font-size: 15.5px; color: var(--navy); margin-bottom: 4px; }
.benefit p { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- CTA / 頁尾 ---------- */
.cta-section {
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(232,163,61,.28), transparent 60%),
    linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: #fff; text-align: center;
}
.cta-section h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; line-height: 1.4; }
.cta-section p { margin: 18px auto 30px; max-width: 32em; line-height: 1.9; color: rgba(255,255,255,.88); }
.contact-card {
  margin: 0 auto; max-width: 560px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 26px 30px;
  text-align: left; font-size: 15px;
}
.contact-card b { color: #ffd9a0; }
.contact-card .row { padding: 7px 0; display: flex; align-items: flex-start; gap: 12px; line-height: 1.75; }
.contact-card .row span:first-child { flex: none; opacity: .75; width: 52px; }
.contact-card a { color: #8ec7f0; }

.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.6); font-size: 13px;
  padding: 26px 0; text-align: center; line-height: 1.8;
}
.site-footer a { color: rgba(255,255,255,.8); }

/* ---------- 全站字級放大一級 ---------- */
body { font-size: 18px; }
.brand .brand-text { font-size: 22px; }
.brand .brand-text small, .hero .kicker, .section-head .tag { font-size: 15px; }
.main-nav a { font-size: 19px; }
.nav-toggle { font-size: 28px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); }
.hero .lede, .quote { font-size: 19px; }
.btn { font-size: 18px; }
.hero-stat b, .county-headline h3 { font-size: 30px; }
.hero-stat span, .mag-caption, .gap-card .src, .plan .note { font-size: 14.5px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 42px); }
.gap-card b { font-size: 48px; }
.about-card .ic { font-size: 24px; }
.about-card h3, .feature h4 { font-size: 19px; }
.about-card p, .feature p, .mag-meta, .dash-card span, .progress-label,
.county-headline .sub, .filters select, .filters input[type="search"], .chk,
.school-card .meta, .adopted-tag, .open-tag, .modal .loc, .plan .price span,
.step p, .steps-note, .benefit p { font-size: 15.5px; }
.donation-receipt-tag { font-size: 14px; }
.donation-receipt h3 { font-size: 27px; }
.donation-receipt p { font-size: 17px; }
.donation-receipt small { font-size: 14.5px; }
.dash-card b, .plan .price b { font-size: 42px; }
.sponsor-wall h3 { font-size: 19px; }
.sponsor-copy b { font-size: 17px; }
.sponsor-copy small { font-size: 14px; }
.demo-label, .demo-badge { font-size: 12.5px; }
.ticker-chip, .map-hint, .browse-all, .load-more, .modal dl, .modal .cta-banner,
.plan li, .contact-card { font-size: 16px; }
.county-label { font-size: 13.5px; }
.map-reset, .map-tooltip, .map-legend, .school-card .meta { font-size: 14.5px; }
.map-tooltip b, .plan .plan-name, .benefit h4 { font-size: 17px; }
.school-card h4, .step h4 { font-size: 18.5px; }
.badge { font-size: 13px; }
.modal .close { font-size: 19px; }
.modal h3 { font-size: 25px; }
.plan .flag, .site-footer { font-size: 14.5px; }
.step .num { font-size: 19px; }
.benefit .ic { font-size: 23px; }
.cta-section h2 { font-size: clamp(30px, 4vw, 44px); }

/* 後台同樣套用一級放大 */
.admin-bar h1 { font-size: 25px !important; }
.admin-bar .btn-sm, .tbl .btn-sm { font-size: 15px !important; }
.login-box h1 { font-size: 23px !important; }
.login-box p, .login-err, .stat-pill { font-size: 15.5px !important; }
.tbl-filters select, .tbl-filters input, table, .pager,
.form-grid input, .form-grid select { font-size: 16px !important; }
th, td .adopted-tag, .form-grid label { font-size: 14.5px !important; }

/* ---------- RWD ---------- */
/* 大字級導覽在中等寬度改用漢堡選單,避免換行 */
@media (max-width: 1120px) {
  .main-nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; align-items: stretch;
    padding: 12px 16px 18px; gap: 6px; box-shadow: 0 14px 24px rgba(0,0,0,.35);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; font-size: 18px; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 1024px) {
  .map-layout.exploring { grid-template-columns: minmax(290px, .85fr) 1.15fr; }
  .about-grid, .mag-features { grid-template-columns: repeat(2, 1fr); }
  .dash-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { display: none; }
  .map-layout, .map-layout.exploring { grid-template-columns: 1fr; }
  .map-layout.exploring { gap: 26px; }
  .map-panel, .map-layout.exploring .map-panel { position: relative; top: auto; max-width: 480px; margin: 0 auto; width: 100%; }
  .map-panel svg, .exploring .map-panel svg { height: min(58vh, 480px); }
  .list-panel { transform: translateY(24px); }
  .school-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 86px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .site-header .container { height: 78px; gap: 12px; }
  .main-nav { top: 78px; }
  .brand { min-width: 0; gap: 10px; }
  .brand .logo-mark { width: 52px; height: 52px; border-radius: 10px; }
  .brand .brand-text { font-size: 18px; white-space: nowrap; }
  .mobile-break { display: block; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
  .hero .kicker { font-size: 14px; line-height: 1.65; letter-spacing: 1px; }
  .hero h1 { font-size: 36px; line-height: 1.35; }
  .hero .lede { font-size: 17px; line-height: 1.9; }
  .section-head { margin-bottom: 36px; }
  .section-head h2, .cta-section h2 { font-size: 28px; line-height: 1.5; }
  .section-head p { max-width: 32em; line-height: 1.9; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:last-child { grid-column: 1 / -1; }
  .gap-grid { grid-template-columns: 1fr; }
  .about-grid, .mag-features, .dash-cards, .steps, .benefits { grid-template-columns: 1fr; }
  .esg-highlight { display: block; padding: 26px 22px; }
  .esg-highlight-icon { width: 70px; height: 70px; margin-bottom: 18px; font-size: 19px; }
  .esg-highlight h3 { font-size: 22px; }
  .esg-highlight p { font-size: 16px; }
  .esg-tags { gap: 7px; }
  .sponsor-wall { padding: 22px 16px; }
  .plan { padding: 30px 22px; }
  .plan .price b { font-size: 38px; }
  .donation-receipt { display: block; padding: 24px 20px; }
  .donation-receipt-icon { width: 56px; height: 56px; border-radius: 16px; font-size: 27px; }
  .donation-receipt-icon { margin-bottom: 16px; }
  .donation-receipt h3 { font-size: 24px; line-height: 1.5; }
  .donation-receipt p { font-size: 16px; }
  .mag-meta { line-height: 1.8; }
  .map-hint { max-width: calc(100% - 24px); padding: 8px 15px; font-size: 14px; }
  .contact-card { padding: 22px 18px; }
  .contact-card .row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
  .contact-card .row span:first-child { width: auto; }
  .contact-card a { overflow-wrap: anywhere; }
  .brand .brand-text small { display: none; }
  .modal dl { grid-template-columns: 84px 1fr; }
}
