/*
 * GNACF 視覺重構
 * 原則：真實現場、清楚路徑、少裝飾、易閱讀。
 */
:root {
  --paper: #fcfbf8;
  --canvas: #f2f5f2;
  --ink: #1e3131;
  --muted: #596766;
  --green: #165c59;
  --green-dark: #104442;
  --sand: #e8dfcf;
  --line: #d7dfda;
  --max: 1180px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --shadow-tint: 22, 92, 89;
  --radius-shell: 1.35rem;
  --radius-core: calc(var(--radius-shell) - .45rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
body > .body-wrap { background: var(--paper); }

/* 紙質 noise：固定、不攔截事件，打破數位平面感 */
body::before {
  position: fixed;
  z-index: 120;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { text-wrap: balance; }

/* 滾動進場：僅在支援且未要求減少動態時啟用 */
.has-motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(7px);
  transition:
    opacity .85s var(--ease) var(--reveal-delay, 0ms),
    transform .85s var(--ease) var(--reveal-delay, 0ms),
    filter .85s var(--ease) var(--reveal-delay, 0ms);
}
.has-motion .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* 關鍵字跑馬燈：服務地點與行動 */
.site-marquee {
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  white-space: nowrap;
}
.site-marquee__track { display: inline-flex; animation: marquee 36s linear infinite; }
.site-marquee span {
  display: inline-flex;
  align-items: center;
  padding: 0 1.4rem;
  color: var(--ink);
  font-size: clamp(.95rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.35;
}
.site-marquee span::after { margin-left: 2.8rem; color: var(--green); content: "✳"; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .site-marquee__track { animation: none; }
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 1rem;
  padding: .75rem 1rem;
  transform: translateY(-120%);
  color: #fff;
  background: var(--green-dark);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 200;
  top: 0;
  background: var(--paper);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-utility { color: var(--muted); background: var(--paper); border-bottom: 1px solid rgba(22, 92, 89, .08); font-size: .72rem; letter-spacing: .06em; }
.site-utility > div { display: flex; width: min(100% - 2.5rem, var(--max)); justify-content: space-between; margin: 0 auto; padding: .42rem 0; }
.site-utility a { color: var(--green-dark); font-weight: 700; }
.site-header__main {
  display: flex;
  width: min(100% - 1.5rem, calc(var(--max) + 1rem));
  min-height: 62px;
  align-items: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  margin: .65rem auto;
  padding: .4rem .55rem .4rem 1.15rem;
  border: 1px solid rgba(22, 92, 89, .14);
  border-radius: 999px;
  background: rgba(252, 251, 248, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(var(--shadow-tint), .1), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.site-brand { display: inline-flex; flex: 0 0 auto; padding: .35rem 0; }
.site-brand img { display: block; width: 132px; height: auto; max-height: 38px; object-fit: contain; }
.site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: clamp(.6rem, 1.4vw, 1.35rem); }
.site-nav > a {
  position: relative;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.site-nav > a:hover,
.site-nav > a[aria-current="page"] { color: var(--green-dark); }
.site-nav > a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
}
.site-nav-toggle { display: none; }
.site-header__cta, .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .68rem .7rem .68rem 1.15rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: #fff !important;
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
  transition: background .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.button { padding: .68rem 1.3rem; }
.site-header__cta:hover, .button--primary:hover { background: var(--green-dark); box-shadow: 0 10px 24px rgba(var(--shadow-tint), .22); }
.site-header__cta:active, .button:active { transform: scale(.97); }
.button__arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: .85rem;
  transition: transform .45s var(--ease), background .45s var(--ease);
}
.button:hover .button__arrow, .site-header__cta:hover .button__arrow { transform: translate(3px, -1px); background: rgba(255, 255, 255, .28); }
.button--quiet .button__arrow { background: rgba(255, 255, 255, .14); }
.site-nav__mobile-cta { display: none; }

/* Weebly 頁只換導覽與頁尾，不改寫原本的多欄、標題與區塊寬度。 */
body[class*="wsite-page-"] #header,
body[class*="wsite-page-"] #navigation,
body[class*="wsite-page-"] #footer,
body[class*="wsite-page-"] .navmobile-wrapper { display: none !important; }
body[class*="wsite-page-"] #wrapper,
body[class*="wsite-page-"] #content-wrapper { padding-top: 0; }
body[class*="wsite-page-"] .blog-body { max-width: 840px; margin: 0 auto; padding: 0 1rem 2rem; }
body[class*="wsite-page-"] .blog-header { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
body[class*="wsite-page-"] .blog-date { color: var(--green-dark); font-weight: 700; }
body[class*="wsite-page-"] .blog-social,
body[class*="wsite-page-"] .blog-comments,
body[class*="wsite-page-"] .blog-comments-bottom,
body[class*="wsite-page-"] #commentPostDiv,
body[class*="wsite-page-"] iframe[src*="weebly.com/editor/apps/showCommentForm"] { display: none !important; }
.fb-link-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}
.fb-link-card strong { color: var(--green-dark); font-size: 1.05rem; line-height: 1.4; }
.fb-link-card span { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.fb-link-card:hover { border-color: var(--green); background: var(--canvas); }
.fb-link-card:hover span { text-decoration: underline; }

.site-home { overflow-x: hidden; }
.site-home > #header,
.site-home > #wrapper { display: none !important; }
.site-home main { display: block; }
.site-story { overflow-x: hidden; }
.site-landing { overflow-x: hidden; }
.landing-hero {
  min-height: 390px;
  padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max)) / 2));
  color: #fff;
  background:
    linear-gradient(100deg, rgba(16, 68, 66, .96) 0%, rgba(16, 68, 66, .9) 54%, rgba(16, 68, 66, .38) 100%),
    var(--landing-image) left center/cover;
}
.landing-hero > div { max-width: 720px; }
.landing-hero .eyebrow { color: #dce9db; }
.landing-hero h1 { margin: 0; color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.25rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.16; }
.landing-hero p:not(.eyebrow) { max-width: 620px; margin: 1.25rem 0 0; color: #e5eeea; font-size: 1.1rem; line-height: 1.85; }
.site-support-native .landing-hero .button-row { margin-top: 1.35rem; }
.landing-section { width: min(100% - 2.5rem, var(--max)); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.landing-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.landing-card-grid > a {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 0 0 var(--radius-core) var(--radius-core);
  color: var(--ink);
  background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.landing-card-grid > a:nth-child(even) { margin-top: 1.4rem; }
.landing-card-grid > a:hover { border-color: var(--green); background: var(--canvas); transform: translateY(-5px); box-shadow: 0 16px 32px rgba(var(--shadow-tint), .11); }
.landing-card-grid h2 { margin: 0; color: var(--ink); font-size: 1.25rem; line-height: 1.35; }
.landing-card-grid p { margin: .75rem 0 1.5rem; color: var(--muted); line-height: 1.7; }
.landing-card-grid span { color: var(--green-dark); font-size: .9rem; font-weight: 800; }
.landing-next {
  display: flex;
  width: min(100% - 2.5rem, var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--sand);
}
.landing-next h2 { margin: 0; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.25rem); }
.landing-next p { margin: .6rem 0 0; color: var(--muted); }
.support-trust {
  display: flex;
  width: min(100% - 2.5rem, var(--max));
  flex-wrap: wrap;
  gap: .75rem 2rem;
  margin: 1.5rem auto 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--green-dark);
  font-size: .9rem;
  font-weight: 700;
}
.donation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.donation-grid article {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-shell);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.donation-grid article:hover { border-color: var(--green); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(var(--shadow-tint), .12); }
.donation-grid img { width: 84px; height: 84px; margin-bottom: 2rem; object-fit: contain; }
.donation-grid h2 { margin: 0; color: var(--ink); font-size: 1.25rem; }
.donation-grid p { flex: 1; color: var(--muted); line-height: 1.75; }
.donation-grid .button { width: 100%; }
.support-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; width: min(100% - 2.5rem, var(--max)); margin: 0 auto; padding: clamp(4rem, 7vw, 6rem) 0; }
.support-faq h2 { margin: 0; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.6rem); }
.support-faq details { border-top: 1px solid var(--line); }
.support-faq details:last-child { border-bottom: 1px solid var(--line); }
.support-faq summary { padding: 1.1rem 0; cursor: pointer; color: var(--ink); font-weight: 800; }
.support-faq p { color: var(--muted); line-height: 1.8; }
.story-hero {
  min-height: 380px;
  padding: clamp(4rem, 9vw, 7rem) max(1.25rem, calc((100vw - var(--max)) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 68, 66, .92), rgba(16, 68, 66, .55)),
    url("/uploads/1/3/7/3/137363135/background-images/2120220805.jpg") center/cover;
}
.story-hero > div { max-width: 700px; }
.story-hero .eyebrow { color: #dce9db; }
.story-hero h1 { margin: 0; color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.16; }
.story-hero p:not(.eyebrow) { max-width: 580px; margin: 1.25rem 0 0; color: #e5eeea; font-size: 1.1rem; line-height: 1.85; }
.story-intro {
  display: flex;
  width: min(100% - 2.5rem, var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.story-intro p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.8; }
.story-intro a { color: var(--green-dark); font-weight: 800; white-space: nowrap; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
/* 雙層卡片：外殼＋內核，像實體卡片放在托盤上 */
.story-card {
  min-width: 0;
  overflow: hidden;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-shell);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.story-card a { display: block; height: 100%; color: var(--ink); }
.story-card img { display: block; width: 100%; aspect-ratio: 1.45; object-fit: cover; border-radius: var(--radius-core); background: var(--canvas); transition: transform .7s var(--ease); }
.story-card div { padding: 1.1rem .8rem .8rem; }
.story-card p { margin: 0 0 .6rem; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .09em; }
.story-card h2 { min-height: 3.1em; margin: 0; color: var(--ink); font-size: 1.3rem; line-height: 1.45; }
.story-card span { display: block; margin-top: 1.4rem; color: var(--green-dark); font-size: .9rem; font-weight: 800; }
.story-card:hover { border-color: var(--green); box-shadow: 0 20px 40px rgba(var(--shadow-tint), .13); transform: translateY(-5px); }
.story-card:hover img { transform: scale(1.04); }
.story-grid .story-card:nth-child(6n+1) { grid-column: span 2; }
.story-grid .story-card:nth-child(6n+1) img { aspect-ratio: 2.1; }
.home-featured .story-card:nth-child(6n+1) { grid-column: auto; }
.home-featured .story-card:nth-child(6n+1) img { aspect-ratio: 1.45; }

.site-article, .site-news { overflow-x: hidden; }
.article-hero {
  min-height: 360px;
  padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max)) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 68, 66, .92), rgba(16, 68, 66, .5)),
    var(--article-image) center/cover;
}
.article-hero > div { max-width: 760px; }
.article-hero .eyebrow { color: #dce9db; }
.article-hero h1 { margin: 0; color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.2; }
.article-meta { margin: 1rem 0 0; color: #d8e4df; font-weight: 700; }
.article-body {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.article-body p, .article-body li { color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.article-body h2, .article-body h3 { color: var(--ink); line-height: 1.35; }
.article-body img { display: block; width: 100%; height: auto; margin: 1.5rem 0; border-radius: 4px; }
.article-cover { margin: 0 0 2rem; }
.article-body a { color: var(--green-dark); font-weight: 700; }
.article-body blockquote {
  margin: 1.5rem 0;
  padding: .2rem 0 .2rem 1.2rem;
  border-left: 3px solid var(--green);
  color: var(--ink);
}
.news-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.news-card a { display: block; color: var(--ink); height: 100%; }
.news-card img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; background: var(--canvas); }
.news-card div { padding: 1.2rem 1.1rem 1.3rem; }
.news-card p { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .7rem; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.news-card h2 { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.news-card span { display: block; margin-top: 1.2rem; color: var(--green-dark); font-weight: 800; }
.news-card:hover { border-color: var(--green); }
.news-empty { grid-column: 1 / -1; color: var(--muted); }
.home-hero {
  position: relative;
  display: grid;
  min-height: clamp(420px, 68vh, 640px);
  align-items: start;
  padding: calc(5.15rem + env(safe-area-inset-top, 0px)) max(1.25rem, calc((100vw - var(--max)) / 2)) clamp(2rem, 3.5vw, 2.75rem);
  --hero-overlay: linear-gradient(90deg, rgba(12, 35, 34, .58) 0%, rgba(12, 35, 34, .32) 40%, rgba(12, 35, 34, .06) 70%, transparent 90%);
  background:
    var(--hero-overlay),
    var(--home-hero-image, url('/uploads/1/3/7/3/137363135/20241214-1_orig.jpg')) center/cover;
}
.home-hero__content { width: min(720px, 100%); padding-bottom: 0; color: #fff; }
.home-hero .eyebrow { margin-bottom: .75rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  padding: .32rem .85rem;
  border: 1px solid rgba(22, 92, 89, .3);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--green); content: ""; }
.home-hero .eyebrow, .story-hero .eyebrow, .landing-hero .eyebrow, .section--ink .eyebrow { border-color: rgba(255, 255, 255, .35); color: #dce9db; }
.home-hero .eyebrow::before, .story-hero .eyebrow::before, .landing-hero .eyebrow::before, .section--ink .eyebrow::before { background: #9fc7b8; }
.home-hero h1 { margin: 0; color: #fff; font-size: clamp(2.35rem, 5.2vw, 4.35rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.1; }
.home-hero__content > p:not(.eyebrow) { max-width: 570px; margin: 1rem 0 0; color: #edf2ee; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.75; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button-row--hero { margin-top: 1.35rem; }
.home-hero .button-row--hero .button--primary {
  min-height: 52px;
  padding: .82rem 1.65rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  box-shadow: 0 12px 28px rgba(var(--shadow-tint), .28);
}
.button--quiet { border-color: rgba(255,255,255,.65); background: transparent; }
.button--quiet:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.section { width: min(100%, var(--max)); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) max(1.25rem, 4vw, 2.5rem); }
.section--tint { width: 100%; padding-right: max(1.25rem, calc((100vw - var(--max)) / 2)); padding-left: max(1.25rem, calc((100vw - var(--max)) / 2)); background: var(--canvas); }
.section-heading { max-width: 700px; margin-bottom: 2.5rem; }
.section-heading h2, .support-banner h2 { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.25; }
.section-heading--split { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 1.5rem; }
.text-link { color: var(--green-dark); font-weight: 800; text-decoration: none; white-space: nowrap; }
.text-link span { margin-left: .35rem; transition: transform .2s ease; }
.text-link:hover span { display: inline-block; transform: translateX(4px); }

.action-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 1rem; }
.action-grid a {
  position: relative;
  min-height: 250px;
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-shell);
  color: var(--ink);
  background: #fff;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.action-grid a:first-child { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.action-grid a:first-child span { color: #a9cfc0; }
.action-grid a:first-child p { color: #d5e4dc; }
.action-grid a::after { position: absolute; top: 1.6rem; right: 1.6rem; color: currentColor; content: "→"; font-size: 1.2rem; opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.action-grid a:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 18px 36px rgba(var(--shadow-tint), .12); }
.action-grid a:first-child:hover { background: var(--ink); }
.action-grid a:hover::after { opacity: 1; transform: none; }
.action-grid span { display: block; color: var(--green); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.action-grid strong { display: block; margin-top: 2.6rem; font-size: 1.4rem; }
.action-grid p { margin: .75rem 0 0; color: var(--muted); line-height: 1.7; }

/* 首頁照片拼貼：全部使用既有活動紀錄 */
.home-collage { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: 220px; gap: 1rem; }
.home-collage figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-core); box-shadow: 0 14px 30px rgba(var(--shadow-tint), .1); transition: transform .6s var(--ease); }
.home-collage figure:first-child { grid-row: span 2; }
.home-collage figure:nth-child(2) { transform: rotate(1.1deg); }
.home-collage figure:nth-child(4) { transform: rotate(-1.2deg); }
.home-collage figure:hover { transform: rotate(0) translateY(-4px); }
.home-collage img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.home-collage figure:hover img { transform: scale(1.05); }
.home-collage figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2rem .9rem .7rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(12, 35, 34, .78));
  font-size: .82rem;
  font-weight: 700;
}

.home-featured .story-grid { width: 100%; padding: 0; }

.home-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.home-intro__copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.9; }
.home-intro figure { margin: 0; }
.home-intro img { display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.home-intro figcaption { margin-top: .8rem; color: var(--muted); font-size: .88rem; }

.mission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.mission-grid a {
  display: flex;
  min-height: 265px;
  flex-direction: column;
  justify-content: end;
  padding: 1.6rem;
  border-top: 3px solid var(--green);
  border-radius: 0 0 var(--radius-core) var(--radius-core);
  color: var(--ink);
  background: var(--canvas);
  transition: background .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mission-grid a:nth-child(even) { margin-top: 1.6rem; }
.mission-grid a:hover { color: var(--ink); border-top-color: var(--green-dark); background: #e8efea; transform: translateY(-5px); box-shadow: 0 16px 30px rgba(var(--shadow-tint), .1); }
.mission-grid span { font-size: 1.25rem; font-weight: 800; }
.mission-grid p { margin: .75rem 0 0; line-height: 1.7; }

.section--ink {
  width: min(100% - 1.5rem, calc(var(--max) + 3rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3.5rem);
  border-radius: calc(var(--radius-shell) + .6rem);
  color: #fff;
  background: radial-gradient(120% 130% at 12% 0%, #29494a 0%, var(--ink) 55%, #16292b 100%);
  box-shadow: 0 26px 60px rgba(var(--shadow-tint), .2);
}
.section--ink h2 { color: #fff; }
.text-link--light { color: #d8e9df; }
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
.news-list article { border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.news-list article:nth-child(even) { border-right: 0; }
.news-list a { display: block; min-height: 215px; padding: 1.6rem; color: #fff; }
.news-list a:hover { background: rgba(255,255,255,.04); }
.news-list time { color: #b8d1c8; font-size: .8rem; font-weight: 700; letter-spacing: .05em; }
.news-list h3 { margin: 1.8rem 0 .65rem; font-size: 1.35rem; line-height: 1.45; }
.news-list p { margin: 0; color: #d7e0dc; line-height: 1.7; }

.support-banner { display: flex; width: min(100%, var(--max)); align-items: center; justify-content: space-between; gap: 2rem; margin: clamp(2rem, 5vw, 5rem) auto; padding: clamp(2rem, 5vw, 4rem) max(1.25rem, 4vw, 2.5rem); background: var(--sand); }
.support-banner .eyebrow { color: var(--green-dark); }
.support-banner > div:last-child { min-width: 250px; text-align: center; }
.support-banner p:last-child { color: var(--muted); font-size: .82rem; }

.site-footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; padding: 4rem max(1.25rem, calc((100vw - var(--max)) / 2)); color: #dce4df; background: var(--green-dark); }
.site-footer img { display: block; width: 170px; height: auto; max-height: 48px; object-fit: contain; }
.site-footer h2 { margin: 0 0 1rem; color: #fff; font-size: 1rem; }
.site-footer p { margin: .75rem 0; line-height: 1.8; }
.site-footer a { color: #dce4df; text-decoration: underline; }

/* AI 圖片會在建置時替換為既有的真實活動照片，避免留下空白區塊。 */
body.wsite-page-support .site-donation-cta { display: none; }
body.site-home .site-donation-cta { display: none !important; }

@media (min-width: 641px) {
  .site-home .home-hero {
    padding-top: calc(4.85rem + env(safe-area-inset-top, 0px));
    padding-bottom: clamp(2.25rem, 4vw, 3rem);
  }
  .site-home .home-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4rem); }
}

@media (max-width: 900px) {
  .site-header__main { gap: 1rem; }
  .site-nav { gap: 1rem; }
  .site-nav > a { font-size: .84rem; }
  .home-intro, .support-banner { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-card-grid { grid-template-columns: repeat(2, 1fr); }
  .donation-grid { grid-template-columns: repeat(2, 1fr); }
  .home-collage { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
}
@media (max-width: 640px) {
  .site-utility { display: none; }
  .site-header__main {
    width: min(100% - 1rem, 100%);
    min-height: 56px;
    align-items: center;
    justify-content: flex-start;
    margin: .5rem auto;
    padding: .4rem .4rem .4rem .85rem;
    gap: .45rem;
    overflow: visible;
  }
  .site-brand { order: 1; min-width: 0; margin-right: auto; }
  .site-brand img { width: 102px; max-height: 32px; }
  .site-header__cta {
    order: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    height: 44px;
    padding: 0 .85rem;
    font-size: .82rem;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    box-sizing: border-box;
  }
  .site-nav-toggle {
    order: 3;
    display: grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex-shrink: 0;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    box-sizing: border-box;
  }
  .site-nav-toggle span { display: block; width: 21px; height: 2px; background: currentColor; }
  .site-nav-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .site-nav {
    position: fixed;
    z-index: 190;
    top: 74px;
    right: .5rem;
    left: .5rem;
    display: none;
    max-height: calc(100dvh - 90px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-shell);
    background: var(--paper);
    box-shadow: 0 24px 55px rgba(var(--shadow-tint), .22);
    overflow-y: auto;
  }
  .site-header.is-menu-open .site-nav { display: flex; }
  .site-nav > a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .site-nav > a::after { content: "→"; color: var(--green); }
  .site-nav__mobile-cta {
    display: flex !important;
    justify-content: center !important;
    margin-top: 1.5rem;
    border: 0 !important;
    color: #fff !important;
    background: var(--green);
    font-weight: 700;
  }
  .site-nav__mobile-cta::after { display: none; }
  .home-hero {
    min-height: clamp(360px, 58svh, 520px);
    align-items: start;
    padding: calc(4.35rem + env(safe-area-inset-top, 0px)) max(1rem, calc((100vw - var(--max)) / 2)) 1.5rem;
    --hero-overlay: linear-gradient(180deg, rgba(12, 35, 34, .06) 0%, transparent 42%);
    background:
      var(--hero-overlay),
      var(--home-hero-image, url('/uploads/1/3/7/3/137363135/20241214-1_orig.jpg')) 62% center/cover;
  }
  .home-hero__content {
    max-width: 92%;
    padding: .95rem 1rem 1.05rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(12, 35, 34, .4) 0%, rgba(12, 35, 34, .22) 100%);
    box-shadow: 0 8px 28px rgba(12, 35, 34, .12);
  }
  .home-hero h1,
  .home-hero__content > p:not(.eyebrow),
  .home-hero .eyebrow {
    text-shadow: 0 1px 12px rgba(12, 35, 34, .45);
  }
  .home-hero .button-row--hero .button--primary {
    min-height: 48px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 1.02rem;
  }
  .home-hero .button-row--hero { margin-top: 1rem; }
  .site-marquee {
    padding: .7rem 0;
    line-height: 1.35;
  }
  .site-marquee span {
    padding: .2rem 1rem;
    font-size: .92rem;
    line-height: 1.35;
  }
  .story-hero { min-height: 400px; padding-top: 8rem; }
  .landing-hero { min-height: 360px; padding-top: 8rem; }
  .site-support-native .landing-hero {
    min-height: 0;
    padding: 5.25rem max(1.25rem, calc((100vw - var(--max)) / 2)) 1.1rem;
  }
  .site-support-native .landing-hero h1 { font-size: clamp(1.85rem, 9.2vw, 2.45rem); }
  .site-support-native .landing-hero p:not(.eyebrow) {
    margin-top: .75rem;
    font-size: .98rem;
    line-height: 1.6;
  }
  .site-support-native .landing-hero .button-row { margin-top: 1rem; }
  .site-support-native .support-trust {
    margin-top: .35rem;
    padding: .55rem 0;
    font-size: .75rem;
    gap: .35rem 1rem;
  }
  .home-hero h1 { font-size: clamp(2.45rem, 12vw, 3.25rem); }
  .action-grid, .news-list { grid-template-columns: 1fr; }
  .action-grid a { min-height: 180px; }
  .news-list article, .news-list article:nth-child(even) { border-right: 0; }
  .mission-grid { grid-template-columns: 1fr; }
  .mission-grid a { min-height: 170px; }
  .section-heading--split { align-items: flex-start; flex-direction: column; }
  .support-banner > div:last-child { min-width: 0; text-align: left; }
  .site-footer { grid-template-columns: 1fr; gap: 1.5rem; }
  .story-intro { align-items: flex-start; flex-direction: column; }
  .story-grid { grid-template-columns: 1fr; gap: 1rem; }
  .landing-card-grid { grid-template-columns: 1fr; }
  .landing-card-grid > a { min-height: 190px; }
  .landing-next { align-items: flex-start; flex-direction: column; }
  .donation-grid { grid-template-columns: 1fr; }
  .donation-grid article { min-height: 0; }
  .support-faq { grid-template-columns: 1fr; gap: 2rem; }
  .story-card h2 { min-height: 0; }
  .story-grid .story-card:nth-child(6n+1) { grid-column: auto; }
  .story-grid .story-card:nth-child(6n+1) img { aspect-ratio: 1.45; }
  .news-index { grid-template-columns: 1fr; }
  .mission-grid a:nth-child(even) { margin-top: 0; }
  .landing-card-grid > a:nth-child(even) { margin-top: 0; }
  .section--ink { width: min(100% - 1rem, 100%); border-radius: var(--radius-shell); }
  .home-collage { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .home-collage figure:first-child { grid-row: auto; }
  .home-collage figure:nth-child(2), .home-collage figure:nth-child(4) { transform: none; }
  .imageGallery [style*="float:left"],
  .imageGallery [style*="float: left"] {
    width: 50% !important;
    max-width: 50% !important;
  }
}
