/* =================================================================
   弘能家園 形象網站  Style Sheet
   風格：天藍友善 · 波浪 · 圓潤卡片 · 愛心塗鴉（參考 tanpopoen.net 排版）
   ================================================================= */

/* ---------- 粉圓體 open-huninn（社福網站常見圓體） ---------- */
@font-face {
  font-family: "Open Huninn";
  src: url("https://cdn.jsdelivr.net/gh/justfont/open-huninn-font@2.1/font/jf-openhuninn-2.1.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --blue:       #3FAFD6;   /* 主藍：按鈕、圖示 */
  --blue-deep:  #2A93BD;   /* 深藍：標題、hover */
  --blue-700:   #1E7CA0;   /* 強調文字 */
  --blue-bright:#5CC4E8;   /* 亮藍：塗鴉、點綴 */
  --blue-200:   #B3DEF0;
  --blue-150:   #C9E8F5;
  --blue-100:   #DCF0F8;
  --blue-50:    #EFF9FD;
  --mint:       #8CCDA0;   /* 輔助綠點綴 */
  --sun:        #FBD36B;   /* 輔助黃點綴 */

  --ink:        #36505A;   /* 內文 */
  --ink-soft:   #5E767E;
  --ink-faint:  #93A7AD;
  --white:      #ffffff;

  --line:       rgba(42, 147, 189, .16);
  --line-soft:  rgba(42, 147, 189, .10);

  --rounded: "Open Huninn", "Noto Sans TC", "PingFang TC", sans-serif;
  --sans:    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --quick:   "Quicksand", "Open Huninn", sans-serif;

  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;

  --sh-sm: 0 6px 18px -8px rgba(42,147,189,.28);
  --sh-md: 0 18px 40px -18px rgba(42,147,189,.40);
  --sh-lg: 0 30px 64px -24px rgba(42,147,189,.46);

  --maxw: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--rounded);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  letter-spacing: .01em;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
::selection { background: var(--blue-150); color: var(--blue-700); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 14px 14px; transition: top .25s var(--ease); }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- 圖片占位標籤（換上真實照片後可整批移除：把下面 .img-tag 的 display 設為 none，或刪除各 <span class="img-tag">） ---------- */
.img-tag {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(28, 52, 64, .72); color: #fff;
  font-family: var(--rounded); font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: 4px 11px; border-radius: 100px; pointer-events: none;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.img-tag::before { content: "📷"; font-size: .9em; }
.img-tag.tr { left: auto; right: 10px; }
.img-tag.tc { left: 50%; right: auto; top: 24px; transform: translateX(-50%); }
.hero-photo, .use-photo, .about-photo { position: relative; }

/* 真實照片層：把檔案放進 assets/images/（檔名見該資料夾說明）就會自動蓋住插畫占位；
   找不到檔案時 onerror 會移除此 <img>，維持原本插畫。 */
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.hero-photo:has(.ph-img) .img-tag,
.use-photo:has(.ph-img) .img-tag,
.about-photo:has(.ph-img) .img-tag,
.news-thumb:has(.ph-img) .img-tag { display: none; }

/* ---------- heart icon (CSS mask via inline SVG bg) ---------- */
.ic-heart {
  width: 1.05em; height: 1.05em; display: inline-block; flex: none;
  background: currentColor;
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-7-4.5-9.5-8-9.5-12C2.5 6 4.8 4 7.3 4 9.2 4 10.7 5 12 6.8 13.3 5 14.8 4 16.7 4 19.2 4 21.5 6 21.5 9c0 4-2.5 7.5-9.5 12Z'/%3E%3C/svg%3E");
          mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-7-4.5-9.5-8-9.5-12C2.5 6 4.8 4 7.3 4 9.2 4 10.7 5 12 6.8 13.3 5 14.8 4 16.7 4 19.2 4 21.5 6 21.5 9c0 4-2.5 7.5-9.5 12Z'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--rounded); font-weight: 700; font-size: 1.02rem;
  padding: 13px 28px; border-radius: 100px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); color: #fff; box-shadow: 0 12px 26px -10px rgba(42,147,189,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(42,147,189,.8); }
.btn-ghost { background: #fff; color: var(--blue-deep); border: 2px solid var(--blue-200); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-50); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--blue-deep); box-shadow: var(--sh-sm); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.btn-block { width: 100%; }
.btn-wide { padding: 18px 54px; font-size: 1.18rem; }

.btn-hero { padding: 16px 40px; font-size: 1.15rem; border-radius: 100px; }
.btn-hero .ic-heart { width: 1.3em; height: 1.3em; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-stack strong { font-size: 1.18rem; font-weight: 700; }
.btn-stack small { font-size: .82rem; opacity: .92; font-weight: 500; }

/* =================================================================
   HEADER
   ================================================================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px 0; transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .3s; }
.site-header.scrolled { background: rgba(255,255,255,.9); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); box-shadow: 0 4px 24px -14px rgba(42,147,189,.5); padding: 9px 0; }
.header-inner { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--rounded); font-weight: 700; font-size: 1.5rem; color: var(--blue-deep); letter-spacing: .03em; }
.brand-tag { font-family: var(--quick); font-size: .62rem; letter-spacing: .26em; color: var(--ink-faint); font-weight: 600; }

.nav-list { display: flex; gap: 2px; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 100px; font-weight: 500; color: var(--ink-soft); transition: color .25s, background .25s; }
.nav-list a:hover { color: var(--blue-deep); background: var(--blue-50); }
.nav-cta { padding: 10px 22px; font-size: .98rem; }
.nav-cta .ic-heart { width: 1.1em; height: 1.1em; }

.nav-toggle { display: none; width: 46px; height: 46px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: 14px; background: var(--blue-50); }
.nav-toggle span { width: 24px; height: 2.6px; background: var(--blue-deep); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* =================================================================
   Decorative doodles (hearts / flowers / drops)
   ================================================================= */
.doodles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.doodle { position: absolute; opacity: .8; }
.doodle.heart { width: 36px; height: 36px; background: var(--blue-bright);
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-7-4.5-9.5-8-9.5-12C2.5 6 4.8 4 7.3 4 9.2 4 10.7 5 12 6.8 13.3 5 14.8 4 16.7 4 19.2 4 21.5 6 21.5 9c0 4-2.5 7.5-9.5 12Z'/%3E%3C/svg%3E");
          mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-7-4.5-9.5-8-9.5-12C2.5 6 4.8 4 7.3 4 9.2 4 10.7 5 12 6.8 13.3 5 14.8 4 16.7 4 19.2 4 21.5 6 21.5 9c0 4-2.5 7.5-9.5 12Z'/%3E%3C/svg%3E"); }
.doodle.flower { width: 40px; height: 40px; background: var(--blue-bright);
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='5' r='3.2'/%3E%3Ccircle cx='12' cy='19' r='3.2'/%3E%3Ccircle cx='5' cy='12' r='3.2'/%3E%3Ccircle cx='19' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
          mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='5' r='3.2'/%3E%3Ccircle cx='12' cy='19' r='3.2'/%3E%3Ccircle cx='5' cy='12' r='3.2'/%3E%3Ccircle cx='19' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E"); }
.doodle.drop { width: 22px; height: 22px; background: var(--blue-200);
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c4 6 7 9 7 13a7 7 0 0 1-14 0c0-4 3-7 7-13Z'/%3E%3C/svg%3E");
          mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c4 6 7 9 7 13a7 7 0 0 1-14 0c0-4 3-7 7-13Z'/%3E%3C/svg%3E"); }
.doodle.light { background: rgba(255,255,255,.55); }

.d-h1 { top: 14%; left: 4%; transform: rotate(-12deg); animation: bob 6s ease-in-out infinite; }
.d-h2 { top: 30%; left: 40%; width: 22px; height: 22px; opacity: .5; animation: bob 5s ease-in-out infinite .6s; }
.d-h3 { top: 64%; left: 2%; width: 26px; height: 26px; transform: rotate(10deg); animation: bob 7s ease-in-out infinite .3s; }
.d-d1 { top: 22%; left: 30%; animation: bob 6.5s ease-in-out infinite .2s; }
.d-f1 { top: 50%; right: 4%; animation: spin 18s linear infinite; }
.d-f2 { top: 16%; right: 6%; animation: spin 20s linear infinite; }
.d-h4 { bottom: 18%; left: 5%; width: 28px; height: 28px; animation: bob 6s ease-in-out infinite; }
.d-h5 { top: 26%; left: 8%; width: 30px; height: 30px; animation: bob 6s ease-in-out infinite; }
.d-f3 { bottom: 22%; right: 8%; animation: spin 22s linear infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================================================================
   Wave dividers
   ================================================================= */
.wave-bottom, .wave-top { position: absolute; left: 0; width: 100%; line-height: 0; z-index: 2; }
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; }
.wave-bottom svg, .wave-top svg { width: 100%; height: clamp(50px, 7vw, 100px); }

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; padding: 150px 0 130px; background: linear-gradient(180deg, var(--blue-50) 0%, var(--blue-100) 100%); overflow: hidden; }
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-title { font-family: var(--rounded); font-weight: 700; font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.35; color: var(--blue-deep); letter-spacing: .02em; }
.hero-title em { font-style: normal; color: var(--blue-700); position: relative; }
.hero-title em::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: .02em; height: .3em; background: var(--sun); opacity: .55; border-radius: 8px; z-index: -1; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--ink-soft); margin: 1.4rem 0 2.2rem; font-weight: 500; }

.hero-visual { position: relative; justify-self: center; }
.hero-photo { width: min(420px, 80vw); border-radius: 50%; overflow: hidden; box-shadow: var(--sh-lg); border: 10px solid #fff; animation: floaty 6s ease-in-out infinite; }
.hero-bubble { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: #fff; color: var(--blue-deep); font-weight: 700; padding: 11px 24px; border-radius: 100px; box-shadow: var(--sh-md); white-space: nowrap; font-size: 1rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* =================================================================
   Block titles
   ================================================================= */
.block-title { font-family: var(--rounded); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--blue-deep); text-align: center; display: flex; align-items: center; justify-content: center; gap: 12px; }
.block-title.left { justify-content: flex-start; text-align: left; }
.block-title.light { color: #fff; }
.title-flower, .title-heart { width: 30px; height: 30px; flex: none; background: var(--blue); }
.title-heart { -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-7-4.5-9.5-8-9.5-12C2.5 6 4.8 4 7.3 4 9.2 4 10.7 5 12 6.8 13.3 5 14.8 4 16.7 4 19.2 4 21.5 6 21.5 9c0 4-2.5 7.5-9.5 12Z'/%3E%3C/svg%3E");
                       mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21c-7-4.5-9.5-8-9.5-12C2.5 6 4.8 4 7.3 4 9.2 4 10.7 5 12 6.8 13.3 5 14.8 4 16.7 4 19.2 4 21.5 6 21.5 9c0 4-2.5 7.5-9.5 12Z'/%3E%3C/svg%3E"); }
.title-flower { -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='5' r='3.2'/%3E%3Ccircle cx='12' cy='19' r='3.2'/%3E%3Ccircle cx='5' cy='12' r='3.2'/%3E%3Ccircle cx='19' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
                        mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='5' r='3.2'/%3E%3Ccircle cx='12' cy='19' r='3.2'/%3E%3Ccircle cx='5' cy='12' r='3.2'/%3E%3Ccircle cx='19' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E"); }
.title-heart.light, .title-flower.light { background: #fff; }
.block-sub { text-align: center; color: var(--ink-soft); font-size: 1.1rem; margin-top: .7rem; font-weight: 500; }

.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }

/* =================================================================
   USE OF DONATION
   ================================================================= */
.use { background: var(--blue-50); }
.use-list { display: grid; gap: 20px; margin-top: 48px; }
.use-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; background: #fff; border-radius: var(--r-xl); padding: 20px 28px; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.use-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.use-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); flex: none; }
.use-ic svg { width: 44px; height: 44px; }
.use-text h3 { font-family: var(--rounded); font-weight: 700; font-size: 1.5rem; color: var(--blue-deep); margin-bottom: 2px; }
.use-text p { color: var(--ink-soft); font-size: 1.02rem; }
.use-photo { width: 200px; height: 120px; border-radius: var(--r-lg); overflow: hidden; flex: none; }
.use-photo svg { width: 100%; height: 100%; object-fit: cover; }

/* =================================================================
   DONATE TIERS
   ================================================================= */
.donate { background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%); }
.tier-list { display: grid; gap: 16px; max-width: 760px; margin: 44px auto 0; }
.tier { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; background: #fff; border: 2px solid var(--blue-150); border-radius: 100px; padding: 16px 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background .25s; }
.tier:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--blue); }
.tier-amount { font-family: var(--quick); font-weight: 700; font-size: 1.5rem; color: var(--blue-deep); display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.tier-amount i { font-style: normal; font-size: .95rem; font-weight: 600; }
.tier-amount small { font-size: .8rem; color: var(--ink-faint); font-family: var(--rounded); font-weight: 500; }
.tier-amount .ic-heart { width: 1.1em; height: 1.1em; color: var(--blue); align-self: center; }
.tier-desc { color: var(--ink-soft); font-weight: 500; }
.tier-go { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue-deep); font-size: 1.4rem; line-height: 1; transition: background .25s, color .25s, transform .25s; }
.tier:hover .tier-go { background: var(--blue); color: #fff; transform: translateX(3px); }
.tier-monthly { background: var(--blue-50); border-style: dashed; }

.donate-cta { text-align: center; margin: 40px 0 8px; }

.bank-card { max-width: 760px; margin: 40px auto 0; background: #fff; border-radius: var(--r-lg); padding: 30px 34px; box-shadow: var(--sh-sm); border: 1px solid var(--line-soft); }
.bank-card h3 { font-family: var(--rounded); font-weight: 700; font-size: 1.25rem; color: var(--blue-deep); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px dotted var(--line); }
.bank-info { display: grid; gap: 14px; }
.bank-info > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; }
.bank-info dt { font-weight: 700; color: var(--ink-soft); }
.bank-note { margin-top: 18px; font-size: .85rem; color: var(--ink-faint); border-top: 1px solid var(--line-soft); padding-top: 14px; }

/* =================================================================
   EMOTIONAL BAND
   ================================================================= */
.band { position: relative; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; padding: clamp(70px, 11vw, 120px) 0; overflow: hidden; }
.band-inner { position: relative; z-index: 3; text-align: center; }
.band-text { font-family: var(--rounded); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.6; letter-spacing: .04em; }
.band-text em { font-style: normal; position: relative; padding: 0 .15em; }
.band-text em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .28em; background: rgba(255,255,255,.4); border-radius: 6px; z-index: -1; }

/* =================================================================
   TRANSPARENCY（公開徵信）
   ================================================================= */
.transparency { background: var(--blue-50); }
.fund-usage, .ledger-box { background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-sm); margin-top: 26px; }
.fund-usage { margin-top: 48px; }
.fund-usage h3, .ledger-box h3 { font-family: var(--rounded); font-weight: 700; font-size: 1.3rem; color: var(--blue-deep); margin: 0; display: flex; align-items: center; gap: 10px; }
.fund-usage h3 { margin-bottom: 24px; }
.card-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); }
.fund-bars { display: grid; gap: 16px 36px; }
.fund-bars.two-col { grid-template-columns: 1fr 1fr; }
.fund-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; font-weight: 500; color: var(--ink); }
.fund-top b { font-family: var(--quick); font-weight: 700; color: var(--blue-deep); font-size: 1.05rem; }
.bar { display: block; height: 12px; background: var(--blue-100); border-radius: 100px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--blue-bright), var(--blue-deep)); transition: width 1.3s var(--ease); }
.fund-usage.in .bar-fill { width: var(--w); }
.fund-note, .report-note { margin-top: 18px; font-size: .8rem; color: var(--ink-faint); line-height: 1.7; }

/* 捐助明細 table */
.ledger-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.ledger-intro { color: var(--ink-soft); font-size: .96rem; margin: 14px 0 18px; }
.latest-dl { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); border: 1px solid var(--blue-150); border-radius: 16px; padding: 16px 20px; }
.latest-dl-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.latest-dl-tag { flex: none; background: var(--blue); color: #fff; font-weight: 700; font-size: .78rem; padding: 4px 13px; border-radius: 100px; }
.latest-dl-name { font-weight: 700; color: var(--blue-deep); }
.latest-dl-btn { flex: none; }
.ledger-sub { color: var(--ink-faint); font-size: .9rem; font-weight: 500; margin: 22px 0 10px; }
.drive-embed { width: 100%; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--blue-50); }
.drive-embed iframe { display: block; width: 100%; height: 440px; border: 0; }
.ledger-wrap { width: 100%; }
.ledger-table { width: 100%; border-collapse: collapse; }
.ledger-table th { text-align: left; font-weight: 700; color: var(--blue-deep); font-size: .9rem; padding: 12px 14px; border-bottom: 2px solid var(--blue-100); white-space: nowrap; }
.ledger-table td { padding: 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink); vertical-align: middle; }
.ledger-table tbody tr { transition: background .2s; }
.ledger-table tbody tr:hover { background: var(--blue-50); }
.ledger-table td:first-child { color: var(--ink-faint); font-family: var(--quick); }
.yr-chip { display: inline-block; background: var(--blue-100); color: var(--blue-deep); font-family: var(--quick); font-weight: 700; font-size: .8rem; padding: 2px 11px; border-radius: 100px; white-space: nowrap; }
.ftype { display: inline-block; margin-left: 8px; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; vertical-align: middle; letter-spacing: .04em; }
.ftype.word { background: #E1ECFB; color: #2B5797; }
.ftype.excel { background: #DEF3E6; color: #1E7145; }
.ftype.pdf { background: #FBE3E0; color: #B3261E; }
.date-cell { font-family: var(--quick); color: var(--ink-soft); white-space: nowrap; }
.ledger-table .dl { font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.ledger-table .dl::before { content: "↓ "; }
.ledger-table .dl:hover { color: var(--blue); }

.legal-note { max-width: 840px; margin: 34px auto 0; text-align: center; font-size: .9rem; color: var(--ink-soft); line-height: 1.95; background: #fff; border: 1.5px dashed var(--blue-200); border-radius: var(--r-md); padding: 22px 26px; }

/* =================================================================
   ABOUT
   ================================================================= */
.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-photo { width: 100%; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); border: 8px solid #fff; rotate: -2deg; }
.about-photo svg { width: 100%; height: auto; }
.about-badge { position: absolute; right: -16px; bottom: -20px; background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); color: #fff; border-radius: var(--r-md); padding: 14px 22px; box-shadow: var(--sh-md); rotate: 3deg; font-family: var(--rounded); font-weight: 700; font-size: 1.5rem; display: flex; flex-direction: column; text-align: center; gap: 2px; }
.about-badge small { font-size: .78rem; font-weight: 500; opacity: .95; }
.lead { font-family: var(--rounded); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--blue-deep); margin: 1rem 0 1rem; }
.lead em { font-style: normal; color: var(--blue-700); }
.about-copy p { color: var(--ink-soft); }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.8rem; }
.mini-card { background: var(--blue-50); border-radius: var(--r-md); padding: 22px; border-left: 5px solid var(--blue); }
.mini-card h3 { font-family: var(--rounded); font-weight: 700; color: var(--blue-deep); font-size: 1.15rem; margin-bottom: 6px; }
.mini-card p { font-size: .95rem; }
.mini-card:nth-child(2) { border-left-color: var(--mint); }

/* =================================================================
   SERVICES
   ================================================================= */
.services { background: var(--blue-50); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.service-card { background: #fff; border-radius: var(--r-lg); padding: 34px 28px; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.service-ic { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--blue-100); color: var(--blue-deep); font-size: 1.7rem; margin-bottom: 18px; transition: background .3s, color .3s; }
.service-card:hover .service-ic { background: var(--blue); color: #fff; }
.service-card h3 { font-family: var(--rounded); font-weight: 700; font-size: 1.3rem; color: var(--blue-deep); margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: .98rem; }

/* =================================================================
   IMPACT
   ================================================================= */
.impact { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.impact .block-title { margin-bottom: 50px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-num { font-family: var(--quick); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.8rem); color: #fff; line-height: 1; display: block; }
.stat span { display: block; margin-top: 10px; color: rgba(255,255,255,.9); }
.impact-note { text-align: center; margin-top: 34px; font-size: .82rem; color: rgba(255,255,255,.55); }

/* =================================================================
   NEWS
   ================================================================= */
.news { background: #fff; }
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.news-thumb { position: relative; aspect-ratio: 5/3; }
.news-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.news-cat { position: absolute; left: 14px; top: 14px; z-index: 5; background: rgba(255,255,255,.95); color: var(--blue-deep); font-size: .76rem; font-weight: 700; padding: 5px 13px; border-radius: 100px; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-body time { font-family: var(--quick); font-size: .85rem; color: var(--ink-faint); font-weight: 600; letter-spacing: .05em; }
.news-body h3 { font-family: var(--rounded); font-weight: 700; font-size: 1.16rem; line-height: 1.6; color: var(--blue-deep); margin: 6px 0 8px; }
.news-body p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.news-more { margin-top: 14px; font-weight: 700; color: var(--blue); font-size: .92rem; }
.news-more:hover { color: var(--blue-deep); }

/* 追蹤粉專卡 */
.follow-card { position: relative; overflow: hidden; max-width: 760px; margin: 48px auto 0; text-align: center; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; border-radius: var(--r-xl); padding: 56px 40px; box-shadow: var(--sh-md); }
.follow-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6; background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.18), transparent 40%), radial-gradient(circle at 8% 92%, rgba(0,0,0,.12), transparent 45%); }
.follow-card > * { position: relative; z-index: 1; }
.follow-badge { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #fff; color: var(--blue-deep); font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 2.6rem; line-height: 1; margin-bottom: 22px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.3); }
.follow-card h3 { font-family: var(--rounded); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.follow-card p { color: rgba(255,255,255,.92); max-width: 46ch; margin: 0 auto 28px; }
.follow-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline-light { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.24); transform: translateY(-3px); }

/* =================================================================
   VOLUNTEER
   ================================================================= */
.volunteer { background: var(--blue-50); }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.join-card { background: #fff; border-radius: var(--r-lg); padding: 38px 30px 32px; box-shadow: var(--sh-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.join-card:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.join-num { font-family: var(--quick); font-weight: 700; font-size: 2.8rem; color: var(--blue-200); line-height: 1; display: block; margin-bottom: 14px; }
.join-card h3 { font-family: var(--rounded); font-weight: 700; font-size: 1.35rem; color: var(--blue-deep); margin-bottom: 8px; }
.join-card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 16px; }
.join-link { font-weight: 700; color: var(--blue); }
.join-link:hover { color: var(--blue-deep); }

/* =================================================================
   CONTACT
   ================================================================= */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 1.6rem; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-100); color: var(--blue-deep); font-size: 1.2rem; }
.contact-list strong { display: block; font-size: .82rem; color: var(--ink-faint); font-weight: 700; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--blue); }
.social { display: flex; gap: 10px; margin-top: 1.8rem; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--quick); font-size: .8rem; font-weight: 700; transition: background .25s, transform .25s; }
.social a:hover { background: var(--blue-deep); transform: translateY(-3px); }

.contact-form { background: var(--blue-50); border-radius: var(--r-lg); padding: 38px; box-shadow: var(--sh-sm); }
.contact-form h3 { font-family: var(--rounded); font-weight: 700; font-size: 1.4rem; color: var(--blue-deep); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
.field label span { color: var(--blue); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(63,175,214,.15); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 14px; font-size: .92rem; min-height: 1.4em; font-weight: 700; }
.form-note.ok { color: var(--blue-deep); }
.form-note.err { color: #D2604A; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { position: relative; background: var(--blue-deep); color: rgba(255,255,255,.82); padding: 90px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-brand .brand-name { color: #fff; font-size: 1.7rem; display: block; margin-bottom: 8px; }
.footer-fullname { font-size: .82rem !important; color: rgba(255,255,255,.62) !important; line-height: 1.7 !important; margin-bottom: 14px !important; }
.footer-brand p { font-size: .96rem; line-height: 1.9; margin-bottom: 20px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 9px; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-family: var(--rounded); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.footer-nav a { font-size: .94rem; transition: color .25s, padding-left .25s; }
.footer-nav a:hover { color: var(--sun); padding-left: 6px; }
.footer-contact p { font-size: .92rem; line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Floating donate ---------- */
.float-donate { position: fixed; right: 22px; bottom: 22px; z-index: 90; background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep)); color: #fff; font-family: var(--rounded); font-weight: 700; padding: 14px 24px; border-radius: 100px; box-shadow: var(--sh-md); display: inline-flex; align-items: center; gap: 8px; transform: translateY(130px); transition: transform .4s var(--ease); }
.float-donate.show { transform: translateY(0); }
.float-donate:hover { transform: translateY(-3px); }
.float-donate .ic-heart { width: 1.15em; height: 1.15em; }

/* =================================================================
   REVEAL
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

.mb-only { display: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-title { order: 0; }
  .hero-visual { order: -1; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { width: min(460px, 100%); margin: 0 auto; }
  .service-grid, .news-grid, .join-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: rgba(255,255,255,.98); backdrop-filter: blur(14px); box-shadow: var(--sh-md); padding: 12px; animation: dropIn .3s var(--ease); }
  .nav.open .nav-list { flex-direction: column; gap: 2px; }
  .nav.open .nav-list a { padding: 14px 18px; font-size: 1.05rem; border-radius: 14px; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

  .hero { padding: 120px 0 100px; }
  .use-card { grid-template-columns: auto 1fr; }
  .use-photo { display: none; }
  .tier { grid-template-columns: auto 1fr auto; padding: 14px 20px; }
  .tier-amount { font-size: 1.2rem; }
  .tier-desc { font-size: .9rem; }
  .news-head { flex-direction: column; align-items: flex-start; }
  .mini-cards { grid-template-columns: 1fr; }
  .fund-bars.two-col { grid-template-columns: 1fr; }
  .fund-usage, .ledger-box { padding: 24px; }
  .ledger-head h3 { font-size: 1.15rem; }
  .ledger-table th:nth-child(1), .ledger-table td:nth-child(1),
  .ledger-table th:nth-child(2), .ledger-table td:nth-child(2) { display: none; }
  .ledger-table th, .ledger-table td { padding: 11px 8px; }
  .mb-only { display: inline; }
  .float-donate { right: 14px; bottom: 14px; padding: 12px 18px; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .service-grid, .news-grid, .join-grid, .field-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner, .footer-bottom { grid-template-columns: 1fr; }
  .bank-info > div { grid-template-columns: 1fr; gap: 2px; }
  .tier { gap: 12px; padding: 13px 18px; }
  .tier-amount { font-size: 1.05rem; }
  .tier-desc { font-size: .8rem; line-height: 1.4; }
  .btn-wide { padding: 16px 34px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
