/* =========================================================
   南橫動保協會｜高雄市六龜區南橫愛護動物協會
   ========================================================= */

:root {
  --cream: #FFF8EC;
  --cream-2: #FFF1DA;
  --peach: #FFE2D6;
  --peach-2: #FFD0C0;
  --coral: #E5776E;
  --coral-dk: #C85D55;
  --yellow: #FFEE8A;
  --yellow-2: #FFE97A;
  --mint: #5DBE9E;
  --mint-dk: #3E9C7E;
  --mint-lt: #D6F0E4;
  --sky: #CBEEF4;
  --ink: #4B3B36;
  --ink-2: #7A6760;
  --white: #FFFFFF;
  --line: #06C755;

  --font: "Chiron GoRound TC", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Quicksand", "Chiron GoRound TC", sans-serif;

  --radius: 28px;
  --container: 1160px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.95;
  letter-spacing: .05em;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 紙質顆粒 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .18;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .32  0 0 0 0 .25  0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

/* ---------- 中文斷句（配合 main.js 的 breakByPhrase） ----------
   .seg：已經標好詞邊界的文字，只在詞與詞之間、標點之後換行
   .ln ：一整句盡量排在同一行（放不下才整句換到下一行） */
.seg { word-break: keep-all; overflow-wrap: anywhere; }
.ln { display: inline-block; }
h1, h2, h3, .sec-lead, .bubble, .impact-note, .adopt-gallery-note, .adopt-note p, .hero-en { text-wrap: balance; }

mark {
  background: linear-gradient(transparent 62%, var(--yellow-2) 62%);
  color: inherit;
  padding: 0 .1em;
}

.en { font-family: var(--font-en); letter-spacing: .02em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--coral); color: #fff; padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--mint-dk); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.container--narrow { --container: 820px; }
.center { text-align: center; }
.pc { display: inline; }

/* ---------- 共用：標題 ---------- */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head--left { text-align: left; margin-bottom: 28px; }
.en-label {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.sec-head h2 {
  font-size: calc(clamp(30px, calc(3.4vw + 2px), 42px) / var(--tz, 1));
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .08em;
  color: var(--coral);
}
.sec-lead { margin-top: 16px; color: var(--ink-2); }

/* ---------- 共用：按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px 13px 30px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--coral-dk);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.nowrap { white-space: nowrap; }
.btn:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--coral-dk); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--coral-dk); }
.btn-arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--coral);
  display: grid; place-items: center; flex: none;
}
.btn-arrow svg { width: 11px; height: 11px; }
.btn--ghost {
  background: #fff;
  color: var(--coral);
  box-shadow: 0 5px 0 var(--peach-2), inset 0 0 0 2px var(--coral);
}
.btn--ghost:hover { box-shadow: 0 2px 0 var(--peach-2), inset 0 0 0 2px var(--coral); }
.btn--ghost .btn-arrow { background: var(--coral); color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--coral-dk); text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.text-link svg { width: 12px; height: 12px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- 共用：卡片、標籤 ---------- */
.card {
  position: relative;
  background: #fff;
  border-radius: 18px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--peach) 5px, transparent 5.5px) left top / 12px 12px no-repeat,
    radial-gradient(circle, var(--peach) 5px, transparent 5.5px) right top / 12px 12px no-repeat,
    radial-gradient(circle, var(--peach) 5px, transparent 5.5px) left bottom / 12px 12px no-repeat,
    radial-gradient(circle, var(--peach) 5px, transparent 5.5px) right bottom / 12px 12px no-repeat;
}

.chip {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--coral-dk);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}
.chip--coral { background: var(--coral); color: #fff; }
.chip--mint { background: var(--mint-lt); color: var(--mint-dk); }
.chip--yellow { background: var(--yellow); color: #8A6A10; }
.chip--sky { background: var(--sky); color: #2F7F90; }

/* ---------- 共用：波浪 ---------- */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 110px;
  pointer-events: none;
}
.wave--top { top: -109px; }

/* ---------- 動畫 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.bob { animation: bob 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.bob--late { animation-delay: -1.4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.float { animation: float 4s ease-in-out infinite; transform-box: fill-box; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.drift { animation: drift 26s ease-in-out infinite alternate; }
.drift--slow { animation-duration: 38s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(50px); } }

/* 場景進場：山先升起 → 公路鋪開 → 角色一個個蹦出來（--i 是出場順序） */
.rise { animation: rise-in 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 130ms) both; }
@keyframes rise-in { from { transform: translateY(46px); opacity: 0; } }

.pop {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: pop-in .72s cubic-bezier(.34,1.56,.64,1) calc(.3s + var(--i, 0) * 110ms) both;
}
.pop--flat { transform-origin: 50% 50%; animation-timing-function: cubic-bezier(.2,.9,.3,1.15); }
@keyframes pop-in { from { transform: scale(0); opacity: 0; } 55% { opacity: 1; } }

.drop {
  transform-box: fill-box;
  animation: drop-in .8s cubic-bezier(.3,1.5,.6,1) calc(.3s + var(--i, 0) * 110ms) both;
}
@keyframes drop-in { from { transform: translateY(-56px); opacity: 0; } }

.road-in { transform-origin: 322px 126px; animation: road-in 1.3s cubic-bezier(.2,.8,.2,1) .5s both; }
@keyframes road-in { from { transform: scale(.15); opacity: 0; } }

/* 場景裡的小動態 */
.heart-up {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: heart-up 3.6s ease-out var(--d, 0s) infinite;
}
@keyframes heart-up {
  0% { transform: translateY(6px) scale(.3); opacity: 0; }
  18% { transform: translateY(-6px) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(-44px) scale(1.05) rotate(10deg); opacity: 0; }
}

.paw-step { opacity: 0; animation: paw-step 5s var(--d, 0s) infinite; }
@keyframes paw-step { 0%, 4% { opacity: 0; } 10%, 62% { opacity: 1; } 80%, 100% { opacity: 0; } }

.fly { transform-box: fill-box; transform-origin: center; animation: fly 7s ease-in-out infinite; }
.fly--2 { animation-duration: 9s; animation-direction: reverse; }
@keyframes fly {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(22px, -16px) rotate(10deg); }
  50% { transform: translate(40px, 2px) rotate(-6deg); }
  75% { transform: translate(16px, 12px) rotate(8deg); }
}

/* 點一下毛孩：跳一下 + 冒愛心 */
[data-pet] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.is-hop { transform-box: fill-box; transform-origin: 50% 100%; animation: hop .62s cubic-bezier(.3,1.3,.6,1) !important; }
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(0) scale(1.09, .88); }
  50% { transform: translateY(-16%) scale(.95, 1.07); }
  82% { transform: translateY(0) scale(1.06, .94); }
  100% { transform: none; }
}
.tap-heart {
  position: absolute;
  z-index: 5;
  width: 26px; height: 23px;
  margin: -34px 0 0 -13px;
  pointer-events: none;
  animation: tap-heart .95s ease-out forwards;
}
@keyframes tap-heart {
  0% { transform: translateY(0) scale(.3); opacity: 0; }
  20% { transform: translateY(-10px) scale(1.15); opacity: 1; }
  100% { transform: translateY(-58px) scale(.9) rotate(14deg); opacity: 0; }
}

/* =========================================================
   插畫：手繪色塊風（無描邊）+ 零件待機動畫
   零件（symbol）裡的 a-* class 會在這裡動起來。
   --ad 是每個角色各自的延遲（main.js 會亂數給），避免大家同時眨眼。
   ========================================================= */
symbol, .u > svg { overflow: visible; }
svg svg { max-width: none; }

/* 黑色麥克筆線條；深色毛的角色把 --k 換成淺色 */
.k { fill: none; stroke: var(--k, #1F1B1A); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* 眼珠東張西望 */
.a-look { animation: a-look 6.4s var(--ad, 0s) infinite; }
@keyframes a-look {
  0%, 36%, 100% { transform: translate(0, 0); }
  42%, 66% { transform: translate(-2.2px, -.5px); }
  72%, 90% { transform: translate(.5px, .9px); }
}
.puff { transform-box: fill-box; transform-origin: 50% 100%; animation: puff 3.4s ease-in-out infinite; }
@keyframes puff { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.12); } }

.a-wag { animation: a-wag .46s ease-in-out var(--ad, 0s) infinite alternate; }
.a-wag--slow { animation-duration: 1.5s; }
@keyframes a-wag { from { transform: rotate(-10deg); } to { transform: rotate(20deg); } }

.a-swish { animation: a-swish 2.8s ease-in-out var(--ad, 0s) infinite alternate; }
@keyframes a-swish { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }

.a-blink { animation: a-blink 4.4s var(--ad, 0s) infinite; }
@keyframes a-blink { 0%, 91%, 100% { transform: scaleY(1); } 94%, 96% { transform: scaleY(.08); } }

.a-ear { animation: a-ear 5.6s var(--ad, 0s) infinite; }
@keyframes a-ear { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(5deg); } 92% { transform: rotate(-6deg); } }

.a-nod { animation: a-nod 3.4s ease-in-out var(--ad, 0s) infinite; }
@keyframes a-nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3.5deg); } }

.a-pant { animation: a-pant .42s ease-in-out infinite alternate; }
@keyframes a-pant { from { transform: scaleY(.8); } to { transform: scaleY(1.2); } }

.a-sway { animation: a-sway 3.6s ease-in-out var(--ad, 0s) infinite alternate; }
@keyframes a-sway { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }

.a-breathe { animation: a-breathe 3.2s ease-in-out var(--ad, 0s) infinite alternate; }
@keyframes a-breathe { from { transform: scaleY(1); } to { transform: scaleY(1.035); } }

.a-reach { animation: a-reach 2.6s ease-in-out infinite alternate; }
@keyframes a-reach { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }

.a-wave { animation: a-wave .9s ease-in-out infinite alternate; }
@keyframes a-wave { from { transform: rotate(-8deg); } to { transform: rotate(14deg); } }

.a-roll { animation: a-spin 1.1s linear infinite; }
.a-spin { animation: a-spin 26s linear infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }

.a-flap { animation: a-flap .6s ease-in-out var(--ad, 0s) infinite alternate; }
@keyframes a-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

.a-flutter { animation: a-flutter .32s ease-in-out infinite alternate; }
@keyframes a-flutter { from { transform: scaleX(1); } to { transform: scaleX(.35); } }

.a-twinkle { animation: a-twinkle 2.2s ease-in-out var(--ad, 0s) infinite; }
@keyframes a-twinkle { 0%, 100% { transform: scale(.5) rotate(0); opacity: .5; } 50% { transform: scale(1) rotate(20deg); opacity: 1; } }

.a-pulse { animation: a-pulse 1.4s ease-in-out infinite; }
@keyframes a-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* 看不到的場景先暫停，省手機電力 */
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
  height: 74px;
  background: rgba(255, 248, 236, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 rgba(229, 119, 110, .12);
}

/* --tz＝手機「系統字體放大」的倍率（index.html 開頭的小程式量出來的，沒放大就是 1）。
   logo 和浮動按鈕是固定尺寸的元件，字級除以 --tz 抵銷放大，才不會被撐破；
   內文不抵銷，照使用者設定的大字顯示。 */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-pill {
  font-size: calc(14px / var(--tz, 1));
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--coral);
  background: #fff;
  border-radius: 999px;
  padding: 1px 14px;
  line-height: 1.9;
}
.logo-main { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { width: 40px; height: auto; }
.logo-text {
  font-size: calc(25px / var(--tz, 1));
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--coral);
  line-height: 1.2;
}
/* 中文名下面的英文小字（Nanheng Paws） */
.logo-name { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.logo-en {
  font-size: calc(14px / var(--tz, 1));
  font-weight: 700;
  letter-spacing: .21em;
  line-height: 1.3;
  transition: opacity .2s;
}
.logo .logo-en { color: var(--coral); }
/* 捲動後 header 變窄，英文收起來 */
.site-header.is-scrolled .logo-en { max-height: 0; overflow: hidden; opacity: 0; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; gap: 18px; }
.nav-list a {
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .06em;
  padding-bottom: 3px;
  background: linear-gradient(var(--peach-2), var(--peach-2)) left bottom / 100% 2px no-repeat;
  transition: background-size .3s, color .2s;
}
.nav-list a:hover { color: var(--coral); background-image: linear-gradient(var(--coral), var(--coral)); }
.nav-list a, .nav-cta { white-space: nowrap; }

/* 下拉選單：「關於我們」「一起幫忙」底下的細項（滑鼠移上去或 Tab 到才出現） */
.nav-list > li { position: relative; }
.nav-list .has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 2px 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-4px) rotate(45deg);
  opacity: .55;
  transition: transform .2s;
}
.nav-list .has-sub:hover > a::after,
.nav-list .has-sub:focus-within > a::after { transform: translateY(-1px) rotate(225deg); }
.sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 150px;
  margin-top: 14px;
  padding: 10px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--peach-2), 0 14px 30px rgba(75, 59, 54, .12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }  /* 滑鼠從主項目移到下拉時不會斷掉 */
.has-sub:hover > .sub,
.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-list .sub a,
.nav-list .sub a:hover {
  display: block;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 16px;
  background-image: none;
}
.nav-list .sub a:hover { background-color: var(--cream); color: var(--coral); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--coral-dk);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta svg { width: 17px; height: 17px; }
.nav-cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--coral-dk); }

/* 社群連結：Facebook、Instagram、Threads、LINE */
.header-social { flex: none; display: flex; gap: 8px; }
.social-btn {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 3px 0 var(--peach-2);
  transition: transform .15s, box-shadow .15s;
}
.social-btn svg { width: 28px; height: 28px; }
.social-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--peach-2); }

/* 手機選單底部：四個圖示＋名稱 */
.mm-social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mm-social a {
  display: grid; justify-items: center; gap: 6px;
  padding: 10px 2px 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 0 var(--peach-2);
  font-size: calc(14px / var(--tz, 1));
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.mm-social svg { width: 36px; height: 36px; }

/* 頁尾：半透明膠囊 */
.footer-social { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; margin-top: 14px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font-size: calc(16px / var(--tz, 1));
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.social-pill svg { width: 28px; height: 28px; flex: none; box-shadow: 0 0 0 2px #fff; border-radius: 50%; }
.social-pill:hover { background: rgba(255, 255, 255, .32); }
.contact-fb { display: inline-flex; align-items: center; gap: 10px; }
.contact-fb svg { width: 28px; height: 28px; flex: none; }

.menu-btn {
  display: none;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
  z-index: 60;
  box-shadow: 0 3px 0 var(--peach-2);
}
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 2.5px;
  background: var(--coral); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn span:nth-child(3) { top: 30px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--cream);
  padding: 100px 32px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu li a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 11px 4px;
  font-size: 22px; font-weight: 700; line-height: 1.5;
  text-decoration: none;
  border-bottom: 2px dashed var(--peach-2);
}
.mobile-menu li a .en { order: 2; font-size: 15px; color: var(--coral); }
/* 手機選單的細項：排在主項目下面的一列小按鈕 */
.mobile-menu li.has-sub { border-bottom: 2px dashed var(--peach-2); padding-bottom: 14px; }
.mobile-menu li.has-sub > a { border-bottom: 0; padding-bottom: 8px; }
.mobile-menu .mm-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px; }
.mobile-menu .mm-sub a {
  display: inline-block;
  border-bottom: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 0 var(--peach-2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}
.mobile-menu .btn { align-self: center; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
}
/* 插圖與標題放在同一個等比舞台裡，任何螢幕寬度下相對位置都不變 */
.hero-stage {
  position: relative;
  /* 場景比例 1440:800；寬度跟著視窗高度走，首屏剛好一個畫面 */
  width: min(100%, calc(100vh * 1.8));
  width: min(100%, calc(100svh * 1.8));
  min-width: min(100%, 980px);
  margin-inline: auto;
  container-type: inline-size;
}
.hero-scene { width: 100%; height: auto; overflow: visible; }
.hero-scene--m { display: none; }   /* 手機版場景，寬度 ≤1000px 才顯示 */
.hero-sky { display: none; }
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 21%;
  max-width: 36cqw;
}
.hero-title {
  font-size: calc(clamp(32px, calc(3.9cqw + 2px), 78px) / var(--tz, 1));
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .12em;
  color: var(--ink);
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-title .line:nth-child(2) { animation-delay: .18s; }
.hero-en {
  margin-top: 1.2cqw;
  font-size: clamp(14px, calc(1.04cqw + 2px), 20px);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-2);
  opacity: 0;
  animation: rise .9s .4s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-lead {
  margin-top: 1.1cqw;
  font-size: clamp(16px, calc(1.1cqw + 2px), 21px);
  font-weight: 500;
  opacity: 0;
  animation: rise .9s .55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* 桌機但首屏舞台比較窄時（小筆電、矮視窗）：字放大後左欄放不下三行英文，
   只留短句，內文改成自然換行，才不會壓到公路 */
@media (min-width: 1001px) {
  @container (max-width: 1160px) {
    .hero-en-more { display: none; }
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll::after {
  content: "";
  width: 2px; height: 34px;
  background: linear-gradient(var(--coral) 50%, var(--peach-2) 50%) 0 0 / 100% 200%;
  animation: scrollLine 1.8s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes scrollLine { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* =========================================================
   Impact
   ========================================================= */
.impact {
  position: relative;
  background: var(--peach);
  padding: 60px 0 150px;
  margin-top: 90px;
}
.impact-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.impact-item {
  background: #fff;
  border-radius: 999px 999px 32px 32px;
  padding: 36px 16px 30px;
  text-align: center;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.impact-item:nth-child(2) { --i: 1; }
.impact-item:nth-child(3) { --i: 2; }
.impact-item:nth-child(4) { --i: 3; }
.impact-icon {
  display: grid; place-items: center;
  width: 84px; height: 84px; margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--cream);
}
.impact-icon svg { width: 52px; height: 52px; }
.impact-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: calc(clamp(40px, calc(4vw + 2px), 56px) / var(--tz, 1));
  line-height: 1.2;
  color: var(--coral);
  letter-spacing: 0;
  white-space: nowrap;
}
.impact-num small { font-family: var(--font); font-size: calc(19px / var(--tz, 1)); margin-left: 4px; color: var(--ink); }
.impact-label { font-weight: 700; margin-top: 4px; }
.impact-note { text-align: center; margin-top: 28px; font-size: 16px; color: var(--ink-2); }

/* =========================================================
   About
   ========================================================= */
.about {
  position: relative;
  padding: 40px 0 180px;
}
.hill-deco {
  position: absolute;
  top: -150px;
  left: 0; right: 0;
  height: 100px;
  pointer-events: none;
}
.hill-deco__house { position: absolute; left: 22%; bottom: 8px; width: 110px; }
.hill-deco__cat { position: absolute; right: 24%; bottom: 14px; width: 54px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-art {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
}
.about-art::before {
  content: "";
  position: absolute;
  inset: 12% 0 4% 10%;
  background: var(--yellow);
  border-radius: 58% 42% 50% 50% / 50% 46% 54% 50%;
}
.about-photo { position: absolute; margin: 0; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo--main {
  left: 4%; top: 0;
  width: 62%;
  aspect-ratio: 3 / 4;
  border-radius: 46% 54% 44% 56% / 34% 36% 64% 66%;
  box-shadow: 0 10px 0 var(--peach-2);
}
.about-photo--sub {
  right: 0; bottom: 6%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 8px 0 var(--peach-2);
}
.about-deco { position: absolute; }
.about-deco--dog { left: 2%; bottom: 0; width: 22%; }
.about-deco--heart { right: 18%; top: 14%; width: 9%; }
.about-deco--flower { left: 54%; bottom: 2%; width: 6%; }
.about-caption {
  position: absolute;
  right: 2%; top: 30%;
  background: #fff;
  color: var(--coral);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.6;
  padding: 10px 16px;
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--peach-2);
  transform: rotate(4deg);
}
.about-text p { margin-bottom: 1.2em; }

/* 山裡的日常：照片輪播 */
.daily { margin-top: 110px; }
.daily .sec-head { margin-bottom: 36px; }
.daily-strip { overflow: hidden; padding: 12px 0 20px; }
.daily-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.daily-strip:hover .daily-track { animation-play-state: paused; }
.daily-track li {
  flex: none;
  height: 300px;
  background: #fff;
  padding: 10px;
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--peach);
}
.daily-track li:nth-child(odd) { transform: rotate(-2deg); }
.daily-track li:nth-child(even) { transform: rotate(2deg) translateY(14px); }
.daily-track img { height: 100%; width: auto; border-radius: 14px; }
.about-text .btn { margin-top: 8px; }

.timeline {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 19px; left: 8%; right: 8%;
  border-top: 3px dashed var(--peach-2);
}
.timeline li { position: relative; text-align: center; padding: 0 6px; }
.tl-year {
  position: relative;
  display: inline-block;
  min-width: 92px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--peach-2);
  color: var(--coral);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.8;
}
.timeline li p { margin-top: 14px; font-size: 17px; line-height: 1.8; }
.timeline .is-now .tl-year { background: var(--coral); color: #fff; box-shadow: none; }

/* =========================================================
   Work
   ========================================================= */
.work {
  position: relative;
  background: var(--peach);
  padding: 20px 0 170px;
}
.bubble-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 96px;
  padding-top: 70px;
}
.bubble-person {
  position: absolute;
  top: 0; left: 50%;
  width: 96px;
  transform: translateX(-50%);
}
.bubble {
  position: relative;
  background: #fff;
  border-radius: 999px;
  padding: 30px 64px;
  text-align: center;
  font-size: clamp(22px, calc(2.3vw + 2px), 29px);
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: .1em;
  color: var(--coral);
}
.bubble::after {
  content: "";
  position: absolute;
  left: calc(50% + 26px);
  top: -20px;
  width: 34px; height: 26px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 12% 0);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}
.work-item { transition-delay: calc(var(--i, 0) * 100ms); }
.work-item:nth-child(2) { --i: 1; }
.work-item:nth-child(3) { --i: 2; }
.work-item:nth-child(4) { --i: 3; }
.work-art svg { width: 100%; height: auto; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.work-item:hover .work-art svg { transform: rotate(-3deg) scale(1.04); }
.dots { display: none; justify-content: center; gap: 8px; }
.dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--peach-2); transition: width .3s, background .3s; }
.dots span.is-on { width: 22px; background: var(--coral); }
.work .dots span { background: #fff; }
.work .dots span.is-on { background: var(--coral); }
.work-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 2;
}
.work-item h3 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: .08em;
  display: flex; align-items: baseline; gap: 10px;
}
.work-no { font-size: 17px; color: var(--ink-2); }
.work-item p { margin-top: 8px; font-size: 17px; line-height: 1.95; }

/* =========================================================
   TNR
   ========================================================= */
.tnr {
  position: relative;
  padding: 40px 0 130px;
}
.tnr-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}
.tnr-card { padding: 44px 48px 48px; box-shadow: 0 8px 0 var(--peach); }
.tnr-list > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 2px dashed var(--peach);
}
.tnr-list > div:first-child { padding-top: 0; }
.tnr-list dt { font-weight: 800; color: var(--coral); }
.tnr-list dd { margin: 0; }
.tnr-list dd .chip { margin: 0 6px 6px 0; }
.tnr-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; }

.tnr-art { position: relative; margin: 0; }
.tnr-photo {
  background: #fff;
  padding: 12px 12px 6px;
  border-radius: 20px;
  box-shadow: 0 8px 0 var(--peach);
  transform: rotate(-2.5deg);
}
.tnr-photo img { width: 100%; height: auto; border-radius: 12px; }
.tnr-photo figcaption { text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-2); padding: 6px 0 2px; }
.tnr-ear {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: -10px;
  padding-right: 2%;
}
.tnr-ear svg { width: 132px; flex: none; }
.tnr-callout {
  white-space: nowrap;
  background: var(--coral);
  color: #fff;
  border-radius: 20px;
  padding: 12px 20px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
  box-shadow: 0 5px 0 var(--coral-dk);
  transform: rotate(-4deg);
}
.tnr-callout strong { font-size: 21px; }

/* =========================================================
   Adopt
   ========================================================= */
.adopt { padding: 40px 0 120px; }
.adopt-blob {
  width: min(100% - 24px, 1360px);
  margin-inline: auto;
  background: #fff;
  border-radius: 46% 54% 50% 50% / 9% 9% 7% 7%;
  padding: 110px 0 100px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--cream);
  border-radius: 26px;
  padding: 28px 24px 30px;
  text-align: center;
  transition-delay: calc(var(--i, 0) * 100ms);
}
.step:nth-child(2) { --i: 1; }
.step:nth-child(3) { --i: 2; }
.step:nth-child(4) { --i: 3; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -19px; top: 50%;
  width: 14px; height: 14px;
  border-top: 3px solid var(--coral);
  border-right: 3px solid var(--coral);
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
}
.step-no {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--mint);
  border-radius: 999px;
  padding: 0 14px;
  line-height: 2;
}
.step-icon { width: 76px; height: 76px; margin: 14px auto 6px; }
.step h3 { font-size: 21px; font-weight: 800; color: var(--coral); letter-spacing: .06em; }
.step p { margin-top: 6px; font-size: 17px; line-height: 1.85; }

.adopt-gallery { margin-top: 72px; text-align: center; }
.adopt-gallery-title {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--coral);
  margin-bottom: 24px;
}
.adopt-gallery-title::before,
.adopt-gallery-title::after {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--coral);
  vertical-align: middle;
  margin: 0 12px;
  border-radius: 2px;
}
.adopt-photos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.adopt-photos li {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--cream);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.adopt-photos li:nth-child(even) { transform: translateY(18px); }
.adopt-photos li:hover { transform: scale(1.05) rotate(-3deg); }
.adopt-photos img { width: 100%; height: 100%; object-fit: cover; }
.adopt-gallery-note { margin-top: 34px; font-size: 16px; color: var(--ink-2); }

.adopt-note {
  margin: 48px auto 0;
  max-width: 820px;
  text-align: center;
}
.adopt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 28px; }

/* =========================================================
   Support
   ========================================================= */
.support { padding: 20px 0 190px; }
.support-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) {
  .support-list { grid-template-columns: repeat(2, 1fr); }
  /* 三張卡排兩欄時，最後一張佔滿整列，不會孤零零擺在左邊 */
  .support-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.support-card {
  border-radius: 34px;
  padding: 36px 40px 38px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .8s ease;
}
.support-card:hover { transform: translateY(-4px); }
.support-card--sky { background: var(--sky); }
.support-card--yellow { background: var(--yellow); }
.support-card--peach { background: var(--peach); }
.support-card--mint { background: var(--mint-lt); }
.support-head { display: flex; align-items: center; gap: 14px; }
.support-head svg {
  width: 58px; height: 58px; padding: 12px;
  background: #fff; border-radius: 50%; flex: none;
}
.support-head h3 { font-size: 25px; font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.support-card p:last-of-type { flex: 1; }
.support-card .text-link { align-self: flex-start; }
/* 所需物資的小插畫：狗狗抓跳蚤＋除蚤滴劑 */
.supply-art { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 220 / 120; margin: 2px auto 0; }
@keyframes flea-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-7px); } 55% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: no-preference) {
  .flea { transform-box: fill-box; animation: flea-hop 1.3s ease-in-out infinite; }
}

/* =========================================================
   News
   ========================================================= */
.news {
  position: relative;
  background: var(--peach);
  padding: 30px 0 100px;
}
.news-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.news-card { transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .8s ease; }
.news-card:hover { transform: translateY(-6px); }
.news-card a {
  display: flex; flex-direction: column; gap: 6px;
  height: 100%;
  padding: 24px 24px 26px;
  text-decoration: none;
}
.news-thumb {
  aspect-ratio: 5 / 3;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.news-thumb svg { width: 100%; height: 100%; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb--peach { background: #FFEDE5; }
.news-thumb--night { background: #5F6FA3; }
.news-thumb--mint { background: var(--mint-lt); }
.news-thumb--yellow { background: #FFF6C2; }
.news-date { font-size: 16px; color: var(--ink-2); font-weight: 600; }
.news-card h3 { font-size: 19px; font-weight: 800; line-height: 1.6; letter-spacing: .04em; }
.news-card p { font-size: 16px; line-height: 1.8; color: var(--ink-2); flex: 1; }
.news-card .chip { align-self: flex-start; margin-top: 8px; }
.news-card:nth-child(2) { transition-delay: 90ms; }
.news-card:nth-child(3) { transition-delay: 180ms; }
.news-card:nth-child(4) { transition-delay: 270ms; }

/* =========================================================
   Thanks
   ========================================================= */
.thanks {
  background: var(--peach);
  padding: 30px 0 150px;
}
.thanks .sec-head { margin-bottom: 36px; }
.thanks-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}
.thanks-photos li {
  background: #fff;
  padding: 10px;
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--peach-2);
}
.thanks-photos li:nth-child(1) { transform: rotate(-1.5deg); }
.thanks-photos li:nth-child(3) { transform: rotate(1.5deg); }
.thanks-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  flex: none;
  background: #fff;
  border-radius: 999px;
  padding: 10px 26px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--peach-2);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* =========================================================
   FAQ
   ========================================================= */
.faq { position: relative; padding: 30px 0 170px; }
.faq-list { display: grid; gap: 16px; }
.faq-item {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 5px 0 var(--peach);
}
.faq-item summary {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 64px 20px 24px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 26px; top: 50%;
  width: 12px; height: 12px;
  border-right: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.q {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
}
.faq-a { padding: 0 28px 24px 78px; color: var(--ink-2); }
.faq-a p + p { margin-top: .7em; }

/* =========================================================
   Contact
   ========================================================= */
.contact {
  position: relative;
  background: var(--peach);
  padding: 30px 0 60px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.contact-list {
  background: #fff;
  border-radius: 34px;
  padding: 18px 40px;
  box-shadow: 0 8px 0 var(--peach-2);
}
.contact-list li {
  display: grid;
  grid-template-columns: 6.5em 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 18px 0;
  border-bottom: 2px dashed var(--peach);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label { font-weight: 800; color: var(--coral); }
.contact-big {
  font-size: calc(clamp(30px, calc(3vw + 2px), 40px) / var(--tz, 1));
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .04em;
  line-height: 1.3;
}
.contact-big:hover { color: var(--coral); }
.contact-sub { grid-column: 2; font-size: 16px; color: var(--ink-2); }
.contact-mid { font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--peach); }
.footer-art svg { width: 100%; height: 170px; overflow: hidden; }
.footer-inner {
  background: var(--mint);
  color: #fff;
  padding: 24px 0 120px;
  margin-top: -2px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 40px;
  font-size: 17px;
  line-height: 1.9;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 800; letter-spacing: .12em;
  margin-bottom: 8px;
}
.footer-logo .logo-en { font-size: 15px; letter-spacing: .2em; margin-top: 2px; }
.footer-slogan { margin-top: 8px; font-weight: 700; color: var(--yellow); }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 24px; align-content: start; justify-content: start; }
.footer-nav a { text-decoration: none; font-weight: 700; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact a { text-underline-offset: 3px; }
.copyright { text-align: center; margin-top: 48px; font-size: 15px; opacity: .85; }

/* =========================================================
   遇到受傷的動物（插畫為主，每步一句話）
   ========================================================= */
.rescue { position: relative; background: var(--sky); padding: 10px 0 190px; }
.r-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.r-step {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 14px 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 5px 0 #A9DCE6;
  text-align: center;
  transition-delay: calc(var(--i, 0) * 100ms);
}
.r-scene { display: block; width: 100%; height: auto; aspect-ratio: 200 / 140; }
.r-step .step-no { margin-top: 6px; }
.r-step h3 { margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.r-step p { margin-top: 2px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
/* 電話響：手機抖一抖、響鈴弧線一閃一閃 */
.r-ring { transform-box: fill-box; transform-origin: 50% 90%; animation: r-ring 2.4s ease-in-out infinite; }
@keyframes r-ring {
  0%, 55%, 100% { transform: rotate(0); }
  60% { transform: rotate(-7deg); } 66% { transform: rotate(7deg); }
  72% { transform: rotate(-5deg); } 78% { transform: rotate(4deg); } 84% { transform: rotate(0); }
}
.r-waves { animation: r-waves 2.4s ease-in-out infinite; }
@keyframes r-waves { 0%, 52% { opacity: 0; } 60%, 88% { opacity: 1; } 100% { opacity: 0; } }

.rescue-board { display: grid; gap: 20px; margin-top: 56px; }
.rescue-board-title {
  margin-top: 14px;
  font-size: 23px; font-weight: 800; letter-spacing: .08em;
  text-align: center;
  color: var(--ink);
}
.call-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.call-card a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 16px;
  height: 100%;
  padding: 16px 20px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 5px 0 #A9DCE6;
  transition: transform .15s, box-shadow .15s;
}
.call-card a:hover { transform: translateY(3px); box-shadow: 0 2px 0 #A9DCE6; }
.call-badge {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--sky);
}
.call-badge svg { width: 34px; height: 34px; overflow: visible; }
.call-body { display: flex; flex-direction: column; min-width: 0; }
.call-who { font-size: 15.5px; font-weight: 700; color: var(--ink-2); }
.call-num {
  font-size: calc(28px / var(--tz, 1)); font-weight: 700; line-height: 1.25;
  letter-spacing: .02em;
  color: var(--coral);
  white-space: nowrap;
}
.call-note { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.call-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
}
.call-icon svg { width: 20px; height: 20px; }
.call-card--main a { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-dk); }
.call-card--main a:hover { box-shadow: 0 2px 0 var(--coral-dk); }
.call-card--main .call-badge { background: #fff; }
.call-card--main .call-who,
.call-card--main .call-note { color: rgba(255, 255, 255, .92); }
.call-card--main .call-num { color: #fff; }
.call-card--main .call-icon { background: #fff; color: var(--coral); }

.r-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.r-case {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 12px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .78);
  text-align: center;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.r-case svg { display: block; width: 100%; height: auto; aspect-ratio: 120 / 84; }
.r-case strong { margin-top: 6px; font-size: 17.5px; font-weight: 800; color: var(--ink); }
.r-case span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rescue-src { margin-top: 4px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* =========================================================
   相片集
   ========================================================= */
.gallery { background: var(--peach); padding: 10px 0 110px; overflow: hidden; overflow: clip; }  /* 歪斜的拍立得不能把頁面撐寬 */
.gallery .sec-head { margin-bottom: 30px; }
.g-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.g-filter {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 7px 18px;
  border: 0; border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.5;
  box-shadow: 0 3px 0 var(--peach-2);
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .15s;
}
.g-filter:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--peach-2); }
.g-filter[aria-pressed="true"] { background: var(--coral); color: #fff; box-shadow: 0 3px 0 var(--coral-dk); }
.g-filter-n { font-size: 14px; opacity: .7; }

/* 木頭桌面：平塗木色＋幾道手繪木紋，邊緣一條深色厚邊 */
.g-table {
  position: relative;
  padding: 46px 34px 58px;
  border-radius: 34px;
  background-color: #EDCFA4;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260' viewBox='0 0 520 260' fill='none' stroke='%23C9965F' stroke-width='3' stroke-linecap='round' opacity='.35'%3E%3Cpath d='M-10 40 C 90 28, 170 52, 260 38 S 430 26, 530 44'/%3E%3Cpath d='M-10 112 C 70 120, 150 100, 240 110 S 400 124, 530 106'/%3E%3Cpath d='M-10 182 C 110 170, 200 194, 300 180 S 450 168, 530 188'/%3E%3Cpath d='M300 128 c 18 -12 42 -10 52 4 c 8 12 -6 24 -26 22 c -18 -2 -32 -14 -26 -26z'/%3E%3Cpath d='M-10 236 C 80 244, 180 226, 280 238 S 440 250, 530 232'/%3E%3C/svg%3E");
  background-size: 520px 260px;
  box-shadow: 0 12px 0 #D3A672, inset 0 -6px 0 rgba(201, 150, 95, .25);
}

/* 拍立得：白框、下方留白寫標題，每張歪一點、互相壓到一點點 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 6px;   /* 左右幾乎貼齊，加上位移就會互相壓到；上下留空，標題不會被蓋住 */
}
@media (min-width: 1181px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }
.gallery-grid .g-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 9px 9px 0;
  border: 0;
  border-radius: 3px;
  background: #FFFDF8;
  box-shadow: 0 1px 2px rgba(75, 59, 54, .18), 0 10px 18px rgba(110, 72, 36, .22);
  cursor: zoom-in;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, opacity .6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
/* 進場：像照片一張張丟到桌上 */
.gallery-grid .g-item.reveal:not(.is-in) {
  opacity: 0;
  transform: translate(var(--x, 0), calc(var(--y, 0) - 40px)) rotate(calc(var(--r, 0deg) * 2.5)) scale(1.12);
}
.gallery-grid .g-item.is-in { transition-delay: 0s; }
.gallery-grid .g-item[hidden] { display: none; }
.gallery-grid .g-item img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream-2);
}
.g-cap {
  display: block;
  padding: 9px 2px 11px;
  font-size: calc(15px / var(--tz, 1));
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 紙膠帶 */
.gallery-grid .g-item:nth-child(3n+1)::before,
.gallery-grid .g-item:nth-child(5n+3)::before {
  content: "";
  position: absolute;
  top: -11px; left: 50%;
  width: 38%; height: 22px;
  margin-left: -19%;
  background: rgba(255, 233, 122, .78);
  transform: rotate(-4deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.gallery-grid .g-item:nth-child(5n+3)::before { background: rgba(214, 240, 228, .9); transform: rotate(5deg); left: 62%; }
.gallery-grid .g-item:nth-child(6n)::before {
  content: "";
  position: absolute;
  top: -9px; left: -12px;
  width: 54px; height: 20px;
  background: rgba(255, 208, 192, .9);
  transform: rotate(-38deg);
}
/* 滑鼠移上去／鍵盤選到：拿起來擺正 */
.gallery-grid .g-item:hover,
.gallery-grid .g-item:focus-visible {
  z-index: 5;
  transform: translate(var(--x, 0), calc(var(--y, 0) - 10px)) rotate(0deg) scale(1.07);
  box-shadow: 0 2px 3px rgba(75, 59, 54, .16), 0 22px 30px rgba(110, 72, 36, .28);
}
.gallery-grid .g-item:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

/* 看更多：桌上還沒攤開的一疊拍立得 */
.g-pile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: rotate(3deg) translate(4px, 2px);
}
.g-pile[hidden] { display: none; }
.g-pile::before,
.g-pile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: #FFFDF8;
  box-shadow: 0 1px 2px rgba(75, 59, 54, .16), 0 8px 14px rgba(110, 72, 36, .18);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.g-pile::before { transform: rotate(-11deg) translate(-8px, 6px); }
.g-pile::after { transform: rotate(7deg) translate(7px, -4px); }
.g-pile:hover::before { transform: rotate(-17deg) translate(-16px, 8px); }
.g-pile:hover::after { transform: rotate(13deg) translate(14px, -6px); }
.g-pile-top {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px 9px 0;
  border-radius: 3px;
  background: #FFFDF8;
  box-shadow: 0 1px 2px rgba(75, 59, 54, .18), 0 10px 18px rgba(110, 72, 36, .22);
}
.g-pile-photo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 1;
  background: var(--peach);
  color: var(--coral-dk);
}
.g-pile-photo b { font-size: calc(20px / var(--tz, 1)); letter-spacing: .06em; }
.g-pile-photo small { font-size: calc(14px / var(--tz, 1)); font-weight: 700; color: var(--ink-2); }
.g-pile:focus-visible { outline: 3px solid var(--coral); outline-offset: 6px; }

/* 全螢幕看圖 */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.lightbox::backdrop { background: rgba(40, 30, 27, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lb-figure {
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
  max-width: min(100% - 140px, 1000px);
  padding: 14px 14px 0;
  border-radius: 4px;
  background: #FFFDF8;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .4);
  color: var(--ink);
  transform: rotate(-1deg);
}
.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  max-height: calc(100svh - 220px);
  width: auto; height: auto;
  user-select: none; -webkit-user-drag: none;
}
.lb-figure.is-in { animation: lb-img .35s cubic-bezier(.2,.8,.2,1); }
@keyframes lb-img { from { opacity: 0; transform: rotate(-4deg) scale(.94); } }
.lb-figure figcaption {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  max-width: 34em;
  padding: 12px 8px 16px;
  text-align: center;
  text-wrap: balance;
}
.lb-title { font-size: 19px; font-weight: 800; letter-spacing: .08em; }
.lb-desc { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.lb-count {
  position: absolute; top: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: calc(15px / var(--tz, 1)); font-weight: 700; letter-spacing: .1em;
  opacity: .8;
}
.lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #fff;
  color: var(--coral);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .15s;
}
.lb-btn:hover { transform: translateY(2px); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* =========================================================
   浮動按鈕
   ========================================================= */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  gap: 14px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.float-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.float-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative;
  min-width: 220px;
  padding: 10px 26px 12px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.45;
  transition: transform .15s, box-shadow .15s;
}
.float-sub { font-size: calc(14px / var(--tz, 1)); font-weight: 700; white-space: nowrap; }
.float-sub i { font-style: normal; }
.float-main { font-size: calc(19px / var(--tz, 1)); font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.float-btn--light {
  background: #fff;
  color: var(--coral);
  box-shadow: inset 0 0 0 2px var(--coral), 0 5px 0 var(--peach-2);
}
.float-btn--light .float-main { background: linear-gradient(transparent 60%, var(--yellow-2) 60%); }
.float-btn--green {
  background: var(--mint);
  color: #fff;
  padding-right: 58px;
  box-shadow: 0 5px 0 var(--mint-dk);
}
.float-btn--green svg { position: absolute; right: 22px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); }
.float-btn:hover { transform: translateY(3px); }
.float-btn--light:hover { box-shadow: inset 0 0 0 2px var(--coral), 0 2px 0 var(--peach-2); }
.float-btn--green:hover { box-shadow: 0 2px 0 var(--mint-dk); }

/* =========================================================
   RWD
   ========================================================= */
/* 筆電寬度：選單和四個社群圖示要擠在同一列，間距縮小、圖示拿掉白底 */
@media (min-width: 1181px) and (max-width: 1319px) {
  .site-header { gap: 14px; }
  .nav { gap: 16px; }
  .nav-list { gap: 12px; }
  .header-social { gap: 5px; }
  .social-btn, .social-btn:hover { width: 32px; height: 32px; background: none; box-shadow: none; }
  .social-btn svg { width: 32px; height: 32px; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .site-header { padding: 0 24px; }
}

/* 手機：頁首只放得下一個，留 Facebook；四個都在選單最下面 */
@media (max-width: 520px) {
  .social-btn--more { display: none; }
}

@media (max-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .r-steps, .r-cases { grid-template-columns: repeat(2, 1fr); }

  /* ---- 首屏：手機／平板用直式場景 ---- */
  .hero { padding-top: calc(var(--header-h) + 14px); }
  .hero-stage { width: 100%; min-width: 0; max-width: 620px; }
  .hero-copy { position: relative; left: auto; top: auto; max-width: none; padding: 0 clamp(20px, 6cqw, 40px); }
  .hero-title { font-size: calc(clamp(34px, calc(9.4cqw + 2px), 60px) / var(--tz, 1)); line-height: 1.42; }
  .hero-en { font-size: clamp(14.5px, calc(3.3cqw + 2px), 19px); margin-top: 10px; }
  .hero-en-more { display: none; }
  .hero-lead { font-size: clamp(16.5px, calc(3.9cqw + 2px), 21px); margin-top: 10px; line-height: 1.85; }
  .hero-scene--d { display: none; }
  .hero-scene--m { display: block; }
  .hero-art { margin-top: 6px; }
  .hero-scroll { display: none; }

  .hero-sky { display: block; position: absolute; inset: 0 0 auto 0; height: 360px; pointer-events: none; overflow: hidden; }
  .hero-sky svg { position: absolute; overflow: visible; }
  .sky-sun { top: calc(var(--header-h) + 4px); right: max(14px, calc(50% - 300px)); width: clamp(70px, 20vw, 110px); animation: pop-in .8s cubic-bezier(.34,1.56,.64,1) .2s both; }
  .sky-cloud--1 { top: calc(var(--header-h) + 96px); right: -34px; width: 118px; animation: drift 22s ease-in-out infinite alternate; }
  .sky-cloud--2 { top: calc(var(--header-h) - 18px); left: 44%; width: 78px; opacity: .9; animation: drift 30s ease-in-out infinite alternate-reverse; }
  .sky-doodle--1 { top: calc(var(--header-h) + 150px); right: 20px; width: 34px; transform: rotate(-8deg); }
  .sky-doodle--2 { top: calc(var(--header-h) + 2px); right: 42%; width: 16px; }
  .impact-list { grid-template-columns: repeat(2, 1fr); }
  .work-list { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .tnr-grid { grid-template-columns: 1fr; }
  .tnr-art { max-width: 560px; width: 100%; margin-inline: auto; order: -1; }
  .adopt-photos { grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
  .adopt-photos li:nth-child(even) { transform: none; }
  .about-grid { gap: 40px; }
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .timeline::before { top: 10px; bottom: 10px; left: 45px; right: auto; border-top: 0; border-left: 3px dashed var(--peach-2); }
  .timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; text-align: left; padding: 10px 0; }
  .timeline li p { margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 76px; }
  body { font-size: 17.5px; }
  .pc { display: none; }

  /* 遇到受傷的動物 */
  .rescue { padding-bottom: 150px; }
  .r-steps, .r-cases { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .r-step { padding: 8px 8px 14px; border-radius: 22px; box-shadow: 0 4px 0 #A9DCE6; }
  .r-step .step-no { margin-top: 2px; font-size: 12.5px; padding: 0 10px; }
  .r-step h3 { margin-top: 6px; font-size: 17px; letter-spacing: .04em; }
  .r-step p { font-size: 14px; line-height: 1.55; }
  .rescue-board { gap: 14px; margin-top: 30px; }
  .rescue-board-title { font-size: 20px; margin-top: 10px; }
  .call-list { grid-template-columns: 1fr; gap: 12px; }
  .call-card a { column-gap: 12px; padding: 12px 14px; border-radius: 20px; }
  .call-badge { width: 48px; height: 48px; }
  .call-badge svg { width: 28px; height: 28px; }
  .call-who { font-size: 14.5px; }
  .call-num { font-size: calc(24px / var(--tz, 1)); }
  .call-note { font-size: 13.5px; }
  .call-icon { width: 38px; height: 38px; }
  .call-icon svg { width: 18px; height: 18px; }
  .r-case { padding: 8px 8px 12px; border-radius: 20px; }
  .r-case strong { font-size: 16px; }
  .r-case span { font-size: 13.5px; }

  /* 相片集：兩欄；看圖時上下張按鈕移到下方中間，手指好按 */
  .gallery { padding-bottom: 90px; }
  .g-filters { gap: 8px; margin-bottom: 22px; }
  .g-filter { padding: 6px 14px; font-size: 15.5px; }
  .g-table { padding: 30px 16px 38px; border-radius: 26px; box-shadow: 0 9px 0 #D3A672, inset 0 -5px 0 rgba(201, 150, 95, .25); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 2px; }
  .gallery-grid .g-item, .g-pile-top { padding: 6px 6px 0; }
  .g-cap { padding: 7px 2px 9px; font-size: calc(13.5px / var(--tz, 1)); letter-spacing: .04em; }
  .g-pile-photo b { font-size: calc(17px / var(--tz, 1)); }
  .g-pile-photo small { font-size: calc(12.5px / var(--tz, 1)); }
  .lightbox[open] { padding: 64px 0 88px; }
  .lb-figure { max-width: calc(100% - 24px); }
  .lb-figure { padding: 9px 9px 0; }
  .lb-figure img { max-height: calc(100vh - 290px); max-height: calc(100svh - 290px); }
  .lb-title { font-size: 17px; }
  .lb-desc { font-size: 14.5px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; margin-top: 0; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .container { width: min(100% - 32px, var(--container)); }
  .site-header { padding: 0 16px; }
  .site-header.is-scrolled { height: 66px; }
  .logo-pill { font-size: calc(12.5px / var(--tz, 1)); padding: 0 10px; }
  .logo-text { font-size: calc(21px / var(--tz, 1)); }
  .logo-en { font-size: calc(12.5px / var(--tz, 1)); letter-spacing: .19em; }
  .logo-mark { width: 32px; }
  .sec-head { margin-bottom: 40px; }
  .btn { padding: 13px 14px 13px 22px; gap: 10px; letter-spacing: .04em; }


  .impact { margin-top: 70px; padding: 40px 0 120px; }
  .impact-list { gap: 12px; }
  .impact-item { padding: 24px 8px 20px; border-radius: 999px 999px 24px 24px; }
  .impact-icon { width: 62px; height: 62px; }
  .impact-icon svg { width: 38px; height: 38px; }
  .impact-num small { font-size: calc(16px / var(--tz, 1)); }
  .impact-label { font-size: 16px; }

  .wave { height: 60px; }
  .wave--top { top: -59px; }
  .hill-deco { top: -96px; height: 70px; }
  .hill-deco__house { width: 70px; left: 10%; }
  .hill-deco__cat { width: 36px; right: 12%; }

  .about { padding-bottom: 130px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 400px; margin-inline: auto; }
  .timeline { margin-top: 64px; }

  .work { padding-bottom: 130px; }
  .bubble-wrap { margin-bottom: 64px; padding-top: 56px; }
  .bubble-person { width: 76px; }
  .bubble { padding: 22px 30px; border-radius: 40px; }
  /* 橫滑卡片（在做的事、最新消息）：用手指左右滑，下一張會露出一點 */
  [data-carousel] {
    display: flex;
    gap: 14px;
    max-width: none;
    margin-inline: -16px;
    padding: 6px 20px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > li { flex: 0 0 84%; scroll-snap-align: start; }
  [data-carousel] > li.reveal { opacity: 1; transform: none; }
  .dots { display: flex; }

  .work-item { background: #fff; border-radius: 28px; padding: 12px 20px 24px; box-shadow: 0 6px 0 var(--peach-2); }
  .work-art { max-width: 250px; margin-inline: auto; }
  .work-tag { margin-top: 4px; }
  .work-item h3 { font-size: 23px; }
  .work-item p { margin-top: 6px; }

  .tnr { padding-bottom: 100px; }
  .tnr-ear { margin-top: -4px; }
  .tnr-ear svg { width: 100px; }
  .tnr-card { padding: 28px 18px 30px; }
  .about-caption { font-size: 14px; padding: 8px 12px; }
  .daily { margin-top: 80px; }
  .daily-track { gap: 14px; }
  .daily-track li { height: 210px; padding: 7px; border-radius: 18px; }
  .daily-track img { border-radius: 12px; }
  .adopt-gallery { margin-top: 56px; }
  .adopt-gallery-title { font-size: 20px; }
  .adopt-photos { gap: 10px; }
  .adopt-photos li { border-width: 4px; }
  .thanks-photos { gap: 10px; margin-bottom: 36px; }
  .thanks-photos li { padding: 5px; border-radius: 14px; box-shadow: 0 4px 0 var(--peach-2); }
  .thanks-photos img { border-radius: 10px; }
  .tnr-list > div { grid-template-columns: 1fr; gap: 4px; }
  .tnr-actions .btn { width: 100%; justify-content: space-between; letter-spacing: .02em; }
  .tnr-callout { font-size: 15px; padding: 8px 14px; }
  .tnr-callout strong { font-size: 18px; }

  .adopt { padding-bottom: 80px; }
  .adopt-blob { border-radius: 40px; padding: 64px 0 60px; width: calc(100% - 16px); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 68px 1fr;
    column-gap: 16px;
    align-items: center;
    text-align: left;
    background: none;
    border-radius: 0;
    padding: 12px 4px;
  }
  .step-icon { grid-column: 1; grid-row: 1 / span 3; width: 68px; height: 68px; margin: 0; padding: 12px; background: var(--cream); border-radius: 50%; position: relative; z-index: 1; }
  .step-no { grid-column: 2; justify-self: start; font-size: 14px; }
  .step h3 { grid-column: 2; font-size: 20px; margin-top: 2px; }
  .step p { grid-column: 2; margin-top: 0; font-size: 16.5px; }
  .step:not(:last-child)::after,
  .step:nth-child(2)::after {
    display: block;
    left: 37px; right: auto;
    top: calc(50% + 38px); bottom: auto;
    width: 0; height: calc(100% - 76px);
    border: 0;
    border-left: 3px dashed var(--peach-2);
    border-radius: 0;
    transform: none;
  }
  .adopt-actions .btn { width: 100%; justify-content: space-between; }

  .support { padding-bottom: 130px; }
  .support-list { grid-template-columns: 1fr; gap: 18px; }
  .support-card { padding: 28px 24px 30px; border-radius: 28px; }
  .support-head svg { width: 50px; height: 50px; padding: 10px; }
  .support-head h3 { font-size: 22px; }

  .news { padding-bottom: 80px; }
  .news-list { margin-bottom: 0; }
  .news .dots { margin-bottom: 40px; }

  .thanks { padding-bottom: 110px; }
  .faq { padding-bottom: 120px; }
  .faq-item summary { font-size: 18px; padding: 16px 52px 16px 16px; gap: 12px; }
  .faq-item summary::after { right: 20px; }
  .q { width: 32px; height: 32px; font-size: 17px; }
  .faq-a { padding: 0 20px 20px 60px; }

  .contact-list { padding: 8px 22px; border-radius: 28px; }
  .contact-list li { grid-template-columns: 1fr; }
  .contact-sub { grid-column: 1; }

  .footer-art svg { height: 150px; }
  .impact-icon { width: 72px; height: 72px; }
  .impact-icon svg { width: 48px; height: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding-bottom: 110px; }

  .float-cta { left: 10px; right: 10px; bottom: 10px; gap: 8px; }
  .float-btn { flex: 1; min-width: 0; padding: 8px 10px 10px; }
  .float-btn--green { padding-right: 40px; }
  .float-btn--green svg { right: 14px; width: 20px; height: 20px; }
  .float-sub { font-size: calc(12.5px / var(--tz, 1)); letter-spacing: 0; }
  .float-main { font-size: calc(17px / var(--tz, 1)); letter-spacing: .04em; }
}

/* 窄手機：浮動按鈕的小字拿掉兩側斜線，才放得下 */
@media (max-width: 400px) {
  .float-sub i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track span:nth-child(n+11) { display: none; }
  .daily-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 16px; }
  .daily-track li[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* =========================================================
   免費結紮資訊（插畫版）
   ========================================================= */
.tnr-sub { font-size: 21px; font-weight: 800; letter-spacing: .06em; text-align: center; color: var(--ink); }
.tnr-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.tnr-pet { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.tnr-pet svg { display: block; width: 100%; max-width: 116px; height: auto; aspect-ratio: 1; }
.tnr-pet strong { font-size: 18px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.tnr-pet small { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.tnr-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 11px 0 8px;
  font-size: 14.5px; font-weight: 800; line-height: 1.8;
}
.tnr-tag svg { width: 15px; height: 15px; }
.tnr-tag--free { background: var(--mint-lt); color: var(--mint-dk); }
.tnr-tag--pay { background: var(--yellow); color: #7A5C0A; }
.tnr-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 24px; padding-top: 24px;
  border-top: 2.6px dashed var(--peach-2);
}
.tnr-fact {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 10px 14px;
  background: var(--cream);
  text-align: center;
}
.tnr-fact svg { display: block; width: 100%; max-width: 160px; height: auto; aspect-ratio: 120 / 84; }
.tnr-fact strong { margin-top: 4px; font-size: 17px; font-weight: 800; color: var(--ink); }
.tnr-fact span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 760px) {
  .tnr-sub { font-size: 19px; }
  .tnr-who { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .tnr-pet svg { max-width: 124px; }
  .tnr-pet strong { font-size: 17px; }
  .tnr-facts { gap: 10px; margin-top: 20px; padding-top: 20px; }
  .tnr-fact { padding: 8px 6px 12px; }
  .tnr-fact strong { font-size: 15.5px; }
  .tnr-fact span { font-size: 13px; }
}

/* =========================================================
   愛媽互助網
   ========================================================= */
.aima { position: relative; background: #FFF3C4; padding: 10px 0 190px; }
.aima-promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -18px 0 8px; }
.aima-promise li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 8px;
  border-radius: var(--pr, var(--pill-a));
  background: #fff;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
}
.aima-promise svg { width: 26px; height: 26px; }
.aima-sub {
  margin: 56px 0 20px;
  font-size: 23px; font-weight: 800; letter-spacing: .08em;
  text-align: center;
  color: var(--ink);
}
.help-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-card {
  display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 14px;
  padding: 16px 18px;
  border-radius: var(--hr, var(--hand-a));
  background: #fff;
  box-shadow: 0 5px 0 #F0DC92;
}
.help-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--br, var(--blob-a));
  background: #FFF8EC;
}
.help-icon svg { width: 46px; height: 46px; overflow: visible; }
.help-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.help-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.help-tags span {
  padding: 0 10px;
  border-radius: var(--pill-a);
  background: var(--peach);
  color: var(--coral-dk);
  font-size: 13.5px; font-weight: 800; line-height: 1.8;
}
.help-tags .help-type { background: var(--mint-lt); color: var(--mint-dk); }
.help-need { font-size: 16.5px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.help-when { font-size: 14px; color: var(--ink-2); }
.help-card .text-link { align-self: flex-start; margin-top: 4px; font-size: 15px; }
.help-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 24px 26px;
  border-radius: var(--hand-b);
  background: #fff;
  text-align: center;
}
.help-list[hidden], .help-empty[hidden] { display: none; }
.help-empty svg { width: 160px; height: auto; }
.help-empty-title { font-size: 19px; font-weight: 800; color: var(--ink); }
.help-empty p:not(.help-empty-title) { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.help-empty .btn { margin-top: 10px; }
.aima-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aima-tool { padding: 24px 22px 26px; }
.aima-tool .support-head h3 { font-size: 20px; }
.aima-tool .support-head svg { width: 54px; height: 54px; padding: 8px; }
.aima-tool p { font-size: 15.5px; }
@media (max-width: 1000px) {
  .help-list { grid-template-columns: repeat(2, 1fr); }
  .aima-tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .aima { padding-bottom: 150px; }
  .aima-promise { gap: 8px; margin-top: -10px; }
  .aima-promise li { font-size: 14.5px; padding: 5px 12px 5px 6px; }
  .aima-sub { margin: 44px 0 16px; font-size: 20px; }
  .help-list { grid-template-columns: 1fr; gap: 12px; }
  .help-card { padding: 14px 14px; column-gap: 12px; }
  .help-icon { width: 56px; height: 56px; }
  .help-icon svg { width: 40px; height: 40px; }
  .aima-tools { grid-template-columns: 1fr; gap: 12px; }
  .aima-tool { padding: 20px 18px 22px; }
}

/* 愛媽 LINE 社群卡片 */
.line-join {
  display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 24px;
  max-width: 940px;
  margin: 40px auto 0;
  padding: 22px 28px;
  border-radius: var(--hand-c);
  background: #fff;
  box-shadow: 0 6px 0 #BDEBCB;
}
.line-join[hidden] { display: none; }
.line-art { width: 100%; height: auto; }
.line-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.line-badge {
  padding: 0 12px;
  border-radius: var(--pill-a);
  background: #06C755;
  color: #fff;
  font-size: 14px; font-weight: 800; line-height: 1.9; letter-spacing: .06em;
}
.line-text h3 { font-size: 22px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.line-text p { font-size: 16px; line-height: 1.7; color: var(--ink); }
.line-text .line-note { font-size: 14.5px; color: var(--ink-2); }
.line-btn, .help-empty-btn.is-line { background: #06C755; box-shadow: 0 5px 0 #049A42; }
.line-btn:hover, .help-empty-btn.is-line:hover { box-shadow: 0 2px 0 #049A42; }
.line-btn .btn-arrow, .help-empty-btn.is-line .btn-arrow { color: #06C755; }
.line-btn { margin-top: 6px; }
.line-qr { width: 132px; text-align: center; font-size: 13px; color: var(--ink-2); }
.line-qr svg { display: block; width: 132px; height: 132px; margin-bottom: 4px; }
.line-qr:empty { display: none; }
@media (max-width: 1000px) {
  .line-join { grid-template-columns: 180px 1fr; }
  .line-qr { display: none; }
}
@media (max-width: 760px) {
  .line-join { grid-template-columns: 1fr; gap: 6px; margin-top: 30px; padding: 16px 18px 22px; justify-items: center; }
  .line-art { max-width: 230px; }
  .line-text { align-items: center; text-align: center; }
  .line-text h3 { font-size: 20px; }
}

/* =========================================================
   試算表內容：近期結紮場次、現在等家的孩子（有資料才顯示）
   ========================================================= */
.tnr-sessions { margin-bottom: 26px; padding-bottom: 24px; border-bottom: 2.6px dashed var(--peach-2); }
.session-list { display: grid; gap: 10px; margin-top: 12px; }
.session {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--hr, var(--hand-a));
  background: var(--peach);
}
.session-date {
  flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 70px; height: 66px;
  padding-top: 12px;
  border-radius: 18px 22px 16px 24px / 22px 16px 24px 18px;
  background: #fff;
  box-shadow: inset 0 14px 0 var(--coral);
}
.session-date b { font-size: calc(19px / var(--tz, 1)); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.session-date small { margin-top: 1px; font-size: calc(12.5px / var(--tz, 1)); font-weight: 700; color: var(--ink-2); }
.session-body { display: flex; flex-direction: column; min-width: 0; }
.session-body strong { font-size: 17px; font-weight: 800; line-height: 1.45; color: var(--ink); }
.session-meta { font-size: 15px; font-weight: 700; color: var(--coral-dk); }
.session-note { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.pets { margin-top: 72px; text-align: center; }
.pet-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; text-align: left; }
.pet-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--hr, var(--hand-a));
  background: var(--cream);
}
.pet-photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--mint-lt); }
.pet-photo--cat { background: #FFD9E4; }
.pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.pet-photo svg { width: 100%; height: 100%; }
.pet-info { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.pet-name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); }
.pet-sex { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--blob-a); }
.pet-sex--male { background: #3A8DC9; }
.pet-sex--female { background: #F07AA0; }
.pet-sex svg { width: 18px; height: 18px; }
.pet-meta { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.pet-trait { font-size: 16px; line-height: 1.6; color: var(--ink); }
.pet-health { display: flex; flex-wrap: wrap; gap: 6px; }
.pet-health li {
  padding: 0 10px 0 8px;
  border-radius: var(--pill-a);
  background: var(--mint-lt);
  color: var(--mint-dk);
  font-size: 13.5px; font-weight: 700; line-height: 1.8;
}
.pet-health li::before { content: "✓ "; }
.pet-btn { align-self: flex-start; margin-top: auto; padding: 10px 12px 10px 20px; font-size: 16px; }
@media (max-width: 1000px) { .pet-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .tnr-sessions { margin-bottom: 22px; padding-bottom: 20px; }
  .session { gap: 12px; padding: 8px 12px 8px 8px; }
  .session-date { width: 64px; height: 62px; }
  .session-body strong { font-size: 16px; }
  .session-meta { font-size: 14.5px; }
  .pets { margin-top: 56px; }
  .pet-list { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .pet-info { padding: 14px 16px 18px; }
  .pet-name { font-size: 19px; }
}

/* =========================================================
   兒童手繪外框（2026-11-15）
   不畫描邊線，只把形狀改成歪歪的手繪感，像小朋友剪下來的色紙。
   卡片用 --hand-*、膠囊按鈕用 --pill-*、圓形用 --blob-*；
   同一排的卡片依 nth-child 換不同歪法，才不會每張都一樣。
   拍立得、看大圖的相框維持照片的樣子。
   ========================================================= */
:root {
  --hand-a: 255px 22px 225px 22px / 22px 225px 22px 255px;
  --hand-b: 22px 255px 22px 225px / 225px 22px 255px 22px;
  --hand-c: 225px 26px 255px 18px / 26px 255px 18px 225px;
  --pill-a: 40px 30px 44px 32px / 30px 40px 28px 38px;
  --pill-b: 30px 44px 32px 40px / 38px 28px 40px 30px;
  --blob-a: 55% 45% 52% 48% / 48% 54% 46% 52%;
  --blob-b: 46% 54% 47% 53% / 55% 45% 53% 47%;
}
li:nth-child(3n+2), .faq-item:nth-child(3n+2) { --hr: var(--hand-b); --pr: var(--pill-b); --br: var(--blob-b); }
li:nth-child(3n), .faq-item:nth-child(3n) { --hr: var(--hand-c); }

/* 卡片、相框、對話框 */
.card, .about-caption, .daily-track li, .bubble, .tnr-photo, .tnr-callout,
.support-card, .thanks-photos li, .faq-item, .contact-list, .sub,
.r-step, .r-case, .call-card a, .g-table, .news-thumb, .tnr-fact {
  border-radius: var(--hr, var(--hand-a));
}
.impact-item { border-radius: 50% 50% 26px 32px / 118px 104px 24px 30px; }
li:nth-child(even).impact-item { border-radius: 50% 50% 32px 24px / 104px 120px 30px 22px; }
.daily-track img, .thanks-photos img, .tnr-photo img { border-radius: 30px 8px 24px 10px / 10px 26px 8px 30px; }
@media (min-width: 761px) {
  .step { border-radius: var(--hr, var(--hand-a)); }
}
@media (max-width: 760px) {
  .work-item { border-radius: var(--hr, var(--hand-a)); }
}

/* 對話框的尾巴：轉 45° 的白色小方塊 */
.bubble::after {
  top: -13px;
  width: 26px; height: 26px;
  margin-left: -13px;
  clip-path: none;
  border-radius: 5px 0 0 0;
  transform: rotate(45deg);
}

/* 膠囊按鈕、標籤 */
.btn, .nav-cta, .chip, .logo-pill, .tl-year, .work-tag, .step-no, .g-filter, .float-btn,
.social-pill, .marquee-track span, .mobile-menu .mm-sub a, .tnr-tag {
  border-radius: var(--pr, var(--pill-a));
}
/* 原本靠珊瑚色細線框出來的白色按鈕，改成淡粉色底 */
.btn--ghost { background: var(--peach); box-shadow: 0 5px 0 var(--peach-2); }
.btn--ghost:hover { box-shadow: 0 2px 0 var(--peach-2); }
.float-btn--light { box-shadow: 0 5px 0 var(--peach-2), 0 6px 18px rgba(75, 59, 54, .12); }
.float-btn--light:hover { box-shadow: 0 2px 0 var(--peach-2), 0 4px 12px rgba(75, 59, 54, .12); }

/* 圓形：圖示、照片、按鈕 */
.social-btn, .menu-btn, .impact-icon, .about-photo--sub, .adopt-photos li, .support-head svg,
.q, .call-badge, .call-icon, .lb-btn, .btn-arrow {
  border-radius: var(--br, var(--blob-a));
}
@media (max-width: 760px) {
  .step-icon { border-radius: var(--blob-a); }
}

/* =========================================================
   認養浪浪（認養前須知，插畫為主，每格一句話）
   卡片沿用「遇到受傷的動物」的 .r-step / .r-case
   ========================================================= */
.ag { position: relative; background: var(--mint-lt); padding: 10px 0 190px; }
.ag-sub {
  margin: 64px 0 22px;
  font-size: 23px; font-weight: 800; letter-spacing: .08em;
  text-align: center;
  color: var(--ink);
}
.ag .sec-head + .ag-sub { margin-top: 0; }
.ag .r-step { box-shadow: 0 5px 0 #B3E0C9; }
.ag .r-case { background: rgba(255, 255, 255, .82); }

/* 回家前的準備：一格一樣東西 */
.ag-kit { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px 10px; }
.ag-kit li {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.kit-icon {
  display: grid; place-items: center;
  width: 100%; max-width: 112px; aspect-ratio: 1;
  border-radius: var(--br, var(--blob-a));
  background: #fff;
}
.kit-icon svg { width: 76%; height: auto; overflow: visible; }
.kit-name { font-size: 15.5px; font-weight: 700; line-height: 1.5; color: var(--ink); }

/* 回家後 3 天、3 週、3 個月 */
.ag-settle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ag-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px 22px;
  border-radius: var(--hr, var(--hand-a));
  background: #fff;
  box-shadow: 0 5px 0 #B3E0C9;
  text-align: center;
  transition-delay: calc(var(--i, 0) * 120ms);
}
.ag-stage:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -23px; top: 50%;
  width: 14px; height: 14px;
  border-top: 3.4px solid var(--mint-dk);
  border-right: 3.4px solid var(--mint-dk);
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
}
.ag-days {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 0 16px;
  border-radius: var(--pr, var(--pill-a));
  background: var(--coral);
  color: #fff;
  font-size: calc(17px / var(--tz, 1)); font-weight: 800; line-height: 1.9; letter-spacing: .06em;
  white-space: nowrap;
}
.ag-days b { margin-right: 3px; font-size: calc(25px / var(--tz, 1)); line-height: 1; }
.ag-scene { display: block; width: 100%; height: auto; aspect-ratio: 200 / 140; margin-top: 6px; }
.ag-stage h3 { margin-top: 6px; font-size: 21px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.ag-stage p { margin-top: 2px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.ag-note { margin-top: 22px; font-size: 16px; text-align: center; color: var(--ink-2); }

/* 去哪裡認養 */
.ag-where { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ag-place {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 22px 22px;
  border-radius: var(--hr, var(--hand-a));
  background: #fff;
  box-shadow: 0 5px 0 #B3E0C9;
  transition-delay: calc(var(--i, 0) * 100ms);
}
.ag-place-head { display: flex; align-items: center; gap: 14px; }
.ag-badge {
  flex: none;
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border-radius: var(--br, var(--blob-a));
  background: var(--mint-lt);
}
.ag-badge svg { width: 36px; height: 36px; overflow: visible; }
.ag-place h3 { font-size: 20px; font-weight: 800; line-height: 1.45; letter-spacing: .04em; color: var(--ink); }
.ag-place-sub { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ag-facts { display: grid; gap: 6px; }
.ag-facts li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.ag-facts li::before {
  content: "";
  position: absolute; left: 1px; top: .36em;
  width: 17px; height: 17px;
  border-radius: var(--blob-a);
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ag-place .text-link { align-self: flex-start; margin-top: auto; }

@media (prefers-reduced-motion: no-preference) {
  .a-tick { animation: a-tick 8s steps(8) infinite; }
}
@keyframes a-tick { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  .ag-kit { grid-template-columns: repeat(4, 1fr); }
  .ag-settle { gap: 22px; }
  .ag-stage:not(:last-child)::after { right: -18px; }
  .ag-where { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .ag { padding-bottom: 150px; }
  .ag-sub { margin: 44px 0 16px; font-size: 20px; }
  .ag-kit { gap: 12px 8px; }
  .kit-icon { max-width: 84px; }
  .ag-settle { grid-template-columns: 1fr; gap: 12px; }
  .ag-stage {
    display: grid; grid-template-columns: 46% 1fr; align-content: center; align-items: start;
    column-gap: 12px;
    padding: 10px 14px 12px 8px;
    border-radius: var(--hr, var(--hand-a));
    text-align: left;
  }
  .ag-stage:not(:last-child)::after { display: none; }
  .ag-stage .ag-scene { grid-column: 1; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .ag-days { grid-column: 2; grid-row: 1; justify-self: start; padding: 0 12px; font-size: calc(15px / var(--tz, 1)); }
  .ag-days b { font-size: calc(21px / var(--tz, 1)); }
  .ag-stage h3 { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .ag-stage p { grid-column: 2; grid-row: 3; font-size: 14.5px; line-height: 1.55; }
  .ag-note { margin-top: 16px; font-size: 15px; }
  /* 6 個字的短標題：系統字體放大超過 1.35 倍時不再跟著放大，不然窄卡片放不下會被硬切 */
  .ag .r-step h3 { font-size: calc(17px * min(var(--tz, 1), 1.35) / var(--tz, 1)); letter-spacing: .02em; }
  .ag-stage h3 { font-size: calc(17.5px * min(var(--tz, 1), 1.35) / var(--tz, 1)); letter-spacing: .02em; }
  .kit-name { font-size: calc(13.5px * min(var(--tz, 1), 1.35) / var(--tz, 1)); letter-spacing: 0; }
  .ag-place { padding: 16px 16px 18px; gap: 10px; }
  .ag-badge { width: 54px; height: 54px; }
  .ag-badge svg { width: 32px; height: 32px; }
  .ag-place h3 { font-size: calc(18.5px * min(var(--tz, 1), 1.35) / var(--tz, 1)); }
  .ag-facts li { font-size: 14.5px; }
}

/* =========================================================
   分頁（2026-11-16 拆頁）：抓紮／救援／送養／收容／關於我們
   每頁開頭是 .page-head（標題、這頁有什麼、插畫），抓紮與救援頁再加一條 .flow 流程
   ========================================================= */
/* 導覽列：四大主軸前面的編號、目前這一頁 */
.nav-list { gap: 24px; }
.nav-no { margin-right: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--coral); }
.nav-list a[aria-current="page"] { color: var(--coral); background-image: linear-gradient(var(--coral), var(--coral)); }
.mobile-menu li a { align-items: center; }
.mm-name { display: flex; flex-direction: column; }
.mm-name small { font-size: calc(14.5px * min(var(--tz, 1), 1.2) / var(--tz, 1)); font-weight: 700; line-height: 1.5; letter-spacing: .02em; color: var(--ink-2); }
.mobile-menu li a .en { flex: none; white-space: nowrap; margin-left: 12px; }
.mobile-menu li a[aria-current="page"] .mm-name { color: var(--coral); }

.page-head {
  position: relative;
  background: var(--ph, var(--peach));
  padding: calc(var(--header-h) + 30px) 0 150px;
}
.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 24px 48px;
}
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.crumb a { color: inherit; text-decoration: none; border-bottom: 2px solid rgba(122, 103, 96, .3); }
.crumb a:hover { color: var(--coral); border-color: currentColor; }
.page-title {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 12px;
  font-size: calc(clamp(44px, calc(4.6vw + 4px), 68px) / var(--tz, 1));
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .12em;
  color: var(--coral);
}
.page-no { font-size: .4em; letter-spacing: .04em; color: var(--ink-2); }
.page-en { margin-top: 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.page-lead { margin-top: 18px; font-size: 19px; line-height: 1.95; }
.page-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-toc a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(75, 59, 54, .12);
  font-size: 16px; font-weight: 700; line-height: 1.5;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, color .2s;
}
.page-toc a::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: translateY(-2px) rotate(45deg);
}
.page-toc a:hover { transform: translateY(2px); box-shadow: 0 1px 0 rgba(75, 59, 54, .12); color: var(--coral); }
.page-head-art svg { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; overflow: visible; }
/* 畫在這一區底部、下一區顏色的波浪（下一區自己沒有波浪時用） */
.wave--into { top: auto; bottom: -1px; }

/* 流程：誘捕 → 結紮 → 剪耳 → 回置／接到通報 → … → 康復 */
.flow-title { margin: 56px 0 24px; text-align: center; font-size: 23px; font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px; }
.flow-step {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  transition-delay: calc(var(--i, 0) * 110ms);
}
/* 兩步之間的虛線箭頭（插畫圓圈固定 180px，線從這個圓的右邊連到下一個圓的左邊） */
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 89px;
  left: calc(50% + 100px);
  width: calc(100% - 168px);
  border-top: 3px dashed rgba(229, 119, 110, .55);
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 85px;
  left: calc(150% - 79px);
  width: 9px; height: 9px;
  border-top: 3px solid var(--coral);
  border-right: 3px solid var(--coral);
  transform: rotate(45deg);
  opacity: .75;
}
.flow-art {
  display: grid; place-items: center;
  width: min(100%, 180px);
  aspect-ratio: 1;
  border-radius: var(--br, var(--blob-a));
  background: #fff;
}
.flow-art svg { width: 84%; height: auto; overflow: visible; }
.flow-no {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 16px; font-weight: 700;
}
.flow-step h3 { margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.flow-step p { margin-top: 2px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* 頁尾的「上一個／下一個主軸」 */
.pillar-pager { position: relative; z-index: 1; display: flex; gap: 16px; margin-top: 64px; }
.pp {
  display: inline-flex; flex-direction: column; gap: 2px;
  min-width: 0;
  padding: 12px 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(75, 59, 54, .1);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.pp:hover { transform: translateY(2px); box-shadow: 0 2px 0 rgba(75, 59, 54, .1); }
.pp small { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pp span { font-size: 20px; font-weight: 800; letter-spacing: .06em; color: var(--coral); white-space: nowrap; }
.pp b { margin-right: 8px; font-size: 14px; color: var(--ink-2); }
.pp--prev small::before { content: "‹ "; }
.pp--next { margin-left: auto; align-items: flex-end; text-align: right; }
.pp--next small::after { content: " ›"; }

/* 首頁：成果數字和四大主軸連成一片 */
.impact--joined { padding-bottom: 40px; }
.impact--joined + .work { padding-top: 0; }
.impact--joined + .work > .wave--top { display: none; }
.work-more { margin-top: 12px; font-size: 17px; }

/* 收容頁 */
.shelter { position: relative; padding: 20px 0 150px; }
.shelter-kids { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 20px; align-items: stretch; }
.shelter-count {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 26px 16px;
  border-radius: var(--hr, var(--hand-a));
  background: var(--peach);
  text-align: center;
}
.shelter-count svg { width: 96px; height: auto; }
.shelter-count .impact-num .pre { margin: 0 6px 0 0; }
.shelter-count .count { display: inline-block; min-width: 3ch; text-align: center; }
.shelter-count-label { font-size: 18px; font-weight: 700; }
.shelter-who { grid-template-columns: repeat(2, 1fr); }
.shelter .r-step { box-shadow: 0 5px 0 #DCEBC4; }
.shelter .r-case { background: #fff; box-shadow: 0 4px 0 #DCEBC4; }
.shelter .daily { margin-top: 96px; }
.shelter-help { position: relative; background: var(--sky); padding: 20px 0 190px; }
.support-list--two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; }
.aima-tools--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
.ag-where--two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }

@media (max-width: 1000px) {
  .page-head-grid { grid-template-columns: 1fr; }
  .page-head-art { order: -1; }
  .page-head-art svg { max-width: 300px; }
  .page-head-text { text-align: center; }
  .crumb, .page-title, .page-toc { justify-content: center; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; max-width: 560px; margin-inline: auto; }
  .flow-step::before, .flow-step::after { display: none; }
  .shelter-kids { grid-template-columns: 1fr; }
  .shelter-count { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 0 14px; padding: 16px; }
  .shelter-count svg { width: 64px; }
  .shelter-count-label { grid-column: 1 / -1; }
  .support-list--two, .ag-where--two { grid-template-columns: 1fr; max-width: 620px; }
}
@media (max-width: 760px) {
  .page-head { padding: calc(var(--header-h) + 10px) 0 90px; }
  .page-head-art svg { max-width: 230px; }
  .page-title { font-size: calc(44px / var(--tz, 1)); }
  .page-en { font-size: 15px; }
  .page-lead { margin-top: 12px; font-size: 17.5px; }
  .page-toc { gap: 8px; margin-top: 20px; }
  .page-toc a { padding: 6px 12px 6px 14px; font-size: 15px; }
  .flow-title { margin-top: 40px; font-size: 21px; }
  .flow-art { width: 100%; }
  .flow-no { width: 26px; height: 26px; font-size: 14px; }
  .flow-step h3 { font-size: calc(18px * min(var(--tz, 1), 1.35) / var(--tz, 1)); letter-spacing: .02em; }
  .flow-step p { font-size: 14.5px; }
  .pillar-pager { margin-top: 44px; gap: 10px; }
  .pp { padding: 10px 16px; border-radius: 18px; }
  .pp span { font-size: 18px; }
  .pp b { margin-right: 6px; }
  .impact--joined { padding-bottom: 30px; }
  .shelter { padding-bottom: 110px; }
  .shelter .daily { margin-top: 64px; }
  .shelter-help { padding-bottom: 150px; }
  .aima-tools--two { grid-template-columns: 1fr; }
  .shelter .r-step h3 { font-size: calc(17px * min(var(--tz, 1), 1.35) / var(--tz, 1)); letter-spacing: .02em; }
}
.crumb-sep { width: 10px; height: 10px; color: var(--ink-2); opacity: .7; }


/* =========================================================
   首頁：為什麼要結紮（接在「與其一直收容…」後面）
   ========================================================= */
.why { max-width: 880px; margin: -40px auto 88px; text-align: center; }
.why-title { font-size: 24px; font-weight: 800; letter-spacing: .08em; color: var(--ink); }
.why-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.why-card {
  display: flex; flex-direction: column; align-items: center;
  margin: 0;
  padding: 14px 14px 18px;
  border-radius: var(--hr, var(--hand-a));
  background: #fff;
  box-shadow: 0 5px 0 var(--peach-2);
}
.why-card--yes { --hr: var(--hand-b); }
.why-card svg { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 200 / 140; overflow: visible; }
.why-card figcaption { display: flex; flex-direction: column; margin-top: 6px; }
.why-card strong { font-size: 21px; font-weight: 800; letter-spacing: .06em; color: var(--coral); }
.why-card--yes strong { color: var(--mint-dk); }
.why-card span { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.why-text { margin-top: 22px; font-size: 19px; font-weight: 700; line-height: 1.9; }

/* =========================================================
   首頁：你可以怎麼幫忙（在地／外地）＋關於捐款
   ========================================================= */
.assist { position: relative; padding: 10px 0 150px; }
.assist .sec-head { margin-bottom: 36px; }
.assist-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin-inline: auto; }
.assist-group {
  padding: 22px 22px 24px;
  border-radius: var(--hr, var(--hand-a));
  background: var(--peach);
}
.assist-group:nth-child(2) { --hr: var(--hand-b); background: var(--sky); }
.assist-group-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: .08em; color: var(--ink);
}
.assist-group-title svg { width: 28px; height: 28px; flex: none; }
.assist-list { display: grid; gap: 10px; margin-top: 16px; }
.assist-act, .assist-follow {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(75, 59, 54, .1);
  font: inherit;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}
.assist-act { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.assist-act:hover { transform: translateY(2px); box-shadow: 0 1px 0 rgba(75, 59, 54, .1); }
.assist-ico {
  flex: none;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--br, var(--blob-a));
  background: var(--ic, var(--cream));
}
.assist-ico svg { width: 66%; height: 66%; overflow: visible; }
.assist-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.assist-txt b { font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.assist-txt small { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.assist-chev { flex: none; width: 12px; height: 12px; color: var(--coral); }
.assist-follow { flex-wrap: wrap; }
.assist-social { display: flex; gap: 6px; }
.assist-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform .15s; }
.assist-social a:hover { transform: translateY(-2px); }
.assist-social svg { width: 34px; height: 34px; }

.promise {
  display: flex; align-items: flex-start; gap: 18px;
  max-width: 1040px;
  margin: 28px auto 0;
  padding: 20px 24px;
  border-radius: 24px;
  border: 2px dashed var(--peach-2);
  background: #fff;
}
.promise-icon { flex: none; width: 52px; height: auto; margin-top: 4px; }
.promise-body h3 { font-size: 19px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.promise-body p { margin-top: 4px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.promise-body .promise-best { font-weight: 800; color: var(--coral-dk); }

/* 頁尾：立案資訊 */
.footer-reg { font-size: 14.5px; line-height: 1.7; opacity: .92; }

@media (max-width: 1000px) {
  .assist-groups { grid-template-columns: 1fr; max-width: 620px; }
  .promise { max-width: 620px; }
}
@media (max-width: 760px) {
  .why { margin: -24px auto 64px; }
  .why-title { font-size: 21px; }
  .why-compare { gap: 10px; margin-top: 14px; }
  .why-card { padding: 8px 8px 12px; }
  .why-card strong { font-size: calc(18px * min(var(--tz, 1), 1.35) / var(--tz, 1)); }
  .why-card span { font-size: 14px; }
  .why-text { font-size: 17.5px; }
  .assist { padding-bottom: 100px; }
  .assist .sec-head { margin-bottom: 24px; }
  .assist-group { padding: 16px 12px 16px; }
  .assist-group-title { font-size: 20px; }
  .assist-act, .assist-follow { gap: 12px; padding: 10px 12px 10px 10px; }
  .assist-ico { width: 46px; height: 46px; }
  .assist-txt b { font-size: 17.5px; }
  .assist-txt small { font-size: 14px; }
  .assist-social { width: 100%; justify-content: flex-end; }
  .promise { flex-direction: column; align-items: center; gap: 8px; padding: 16px 16px 18px; text-align: center; }
  .promise-icon { width: 44px; margin: 0; }
  .promise-body p { font-size: 15px; }
}
