/* 首頁專用樣式（2026-11-14 改版：精簡版）。只被 index.html 載入；全站共用樣式在 site.css */
#who,#how,#join{scroll-margin-top:77px}

/* 陪誰：大照片＋一句話 */
.home-photo{min-height:420px;border-radius:28px}

/* 小互動：選一隻現實怪獸（圖示卡片＋揭曉對話框） */
.home-quiz{background:var(--yellow-soft);padding:64px 0}
.home-quiz-in{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.home-chip{margin:0;background:#FFE7CC;color:#8A4B00;border-radius:999px;padding:4px 14px;font-size:14px;font-weight:700;letter-spacing:.08em}
.home-q{margin:0;font-family:var(--round);font-size:clamp(24px,2.8vw,32px);line-height:1.45;color:var(--navy)}
.home-opts{display:grid;grid-template-columns:repeat(3,minmax(0,200px));gap:16px;justify-content:center;margin-top:8px}
.home-opt{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;padding:26px 16px 22px;border:2px solid var(--line2);border-radius:24px;background:var(--paper);color:var(--navy);font:inherit;cursor:pointer;box-shadow:0 4px 0 var(--line2);transition:transform .18s,box-shadow .18s,border-color .18s,background .18s}
.home-opt:hover{transform:translateY(-4px);border-color:var(--orange);box-shadow:0 8px 0 #F5C99A}
.home-opt:active{transform:translateY(1px);box-shadow:0 2px 0 var(--line2)}
.home-opt b{font-family:var(--round);font-weight:400;font-size:21px;line-height:1.35}
.home-ico{display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:var(--yellow-soft)}
.home-ico.t2{background:var(--teal-soft)}
.home-ico.t3{background:#FFE7CC}
.home-ico svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.home-opt[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:0 6px 0 #001A36;transform:translateY(-4px)}
.home-opt[aria-pressed="true"] .home-ico{background:var(--yellow);color:var(--navy)}
.home-opt[aria-pressed="true"]::before{content:"你的選擇";position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--yellow);color:var(--navy);font-size:13px;font-weight:700;padding:3px 12px;border-radius:999px;white-space:nowrap}
/* 選完之後：另外兩隻怪獸也一起「出現」 */
.home-quiz.done .home-opt[aria-pressed="false"]{border-color:var(--orange);background:#FFF6EC;box-shadow:0 4px 0 #F5C99A;animation:homePop .5s ease both}
@keyframes homePop{0%{transform:scale(1)}40%{transform:scale(1.07) rotate(-2deg)}70%{transform:scale(.98) rotate(1deg)}100%{transform:none}}
/* 揭曉：對話框 */
.home-reveal{position:relative;margin-top:14px;max-width:560px;background:var(--paper);border-radius:24px;padding:24px 28px;box-shadow:0 10px 24px rgba(0,46,93,.10);flex-direction:column;align-items:center;gap:6px;scroll-margin-bottom:100px}
.home-reveal::before{content:"";position:absolute;top:-9px;left:50%;width:20px;height:20px;background:var(--paper);transform:translateX(-50%) rotate(45deg);border-radius:4px}
.home-reveal p{margin:0;color:var(--ink-2);font-size:17px;line-height:1.75}
.home-reveal .home-pick{font-size:14px;font-weight:700;color:var(--teal-ink)}
.home-reveal .home-big-line{font-family:var(--round);font-size:24px;line-height:1.45;color:var(--navy)}
.home-reveal .link{margin-top:6px;align-self:center}
.home-reveal{display:flex}
.home-quiz.js .home-reveal{display:none}
.home-quiz.js.done .home-reveal{display:flex;animation:homeIn .4s ease .25s both}
.home-quiz:not(.js) .home-pick{display:none}
@keyframes homeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:600px){
  .home-opts{grid-template-columns:1fr;width:100%;max-width:360px;gap:12px}
  .home-opt{flex-direction:row;justify-content:flex-start;gap:16px;padding:14px 18px;text-align:left}
  .home-ico{width:52px;height:52px;flex:0 0 auto}
  .home-ico svg{width:30px;height:30px}
  .home-opt[aria-pressed="true"]::before{left:auto;right:14px;top:50%;transform:translateY(-50%)}
  .home-reveal{padding:20px 20px}
  .home-reveal .home-big-line{font-size:21px}
}

/* 怎麼陪：照片圖卡 */
.home-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.home-tiles a{position:relative;display:flex;flex-direction:column;justify-content:flex-end;aspect-ratio:3/4;border-radius:24px;overflow:hidden;text-decoration:none;color:#fff;padding:18px;background:var(--navy)}
.home-img{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .3s}
.home-tiles a::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,30,60,.85) 0%,rgba(0,30,60,.3) 42%,rgba(0,30,60,0) 68%)}
.home-tiles b,.home-tiles small{position:relative;z-index:1}
.home-tiles b{font-family:var(--round);font-weight:400;font-size:21px;line-height:1.35}
.home-tiles small{font-size:14px;color:#E8EEF5;line-height:1.5;margin-top:2px}
.home-tiles a:hover{color:#fff}
.home-tiles a:hover .home-img{transform:scale(1.04)}
.home-tiles a:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
@media (max-width:1024px){.home-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 陪出什麼：三個數字 */
.home-stats .stat span{font-size:16px;color:var(--navy)}
.home-src{margin:-8px 0 0;text-align:center;font-size:14px;color:#3F3A2F}

/* 生命故事：卡片只留封面、分類、標題與日期 */
.home-feed .post-body p{display:none}

/* 一起陪伴 */
.home-join{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.home-join p{margin:0;max-width:560px}
.home-big{min-height:56px;padding:14px 44px;font-size:19px}
.home-more{font-size:15px}
.home-more a{color:#fff;margin:0 4px}
.home-more a:hover{color:var(--yellow)}
.home-slogan{margin:0;font-size:clamp(34px,5vw,60px);line-height:1.35;color:var(--navy)}

/* 2026-11-14 電腦版：三個色塊改雙欄，並加背景裝飾與照片 */
.home-quiz{position:relative;overflow:hidden}
.home-quiz::before,.home-quiz::after,.home-close::before{content:"";position:absolute;border-radius:50%;pointer-events:none}
.home-quiz::before{width:440px;height:440px;left:-170px;bottom:-230px;background:repeating-radial-gradient(circle,transparent 0 20px,rgba(239,122,0,.16) 20px 22px)}
.home-quiz::after{width:320px;height:320px;right:-90px;top:-100px;background:radial-gradient(circle,rgba(72,192,216,.45) 2px,transparent 2.6px) 0 0/18px 18px;-webkit-mask:radial-gradient(circle,#000 50%,transparent 70%);mask:radial-gradient(circle,#000 50%,transparent 70%)}
.home-quiz-in{position:relative;z-index:1}
.home-quiz-text{display:flex;flex-direction:column;align-items:center;gap:14px}
.home-quiz-play{display:flex;flex-direction:column;align-items:center;width:100%}
.home-hint{margin:0;font-size:15px;color:var(--muted)}
.home-joinsec{background:linear-gradient(rgba(0,46,93,.86),rgba(0,46,93,.92)),url(https://static.wixstatic.com/media/0f0dc9_06196e68be6e43a39c86662eb15eef54~mv2.jpg/v1/fill/w_1200,h_900,q_80/join.jpg) center/cover}
.home-close{position:relative;overflow:hidden}
.home-close::before{width:560px;height:560px;right:-160px;top:50%;transform:translateY(-50%);background:repeating-radial-gradient(circle,transparent 0 22px,rgba(0,46,93,.09) 22px 24px)}
.home-close-in{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:28px;text-align:center}
.home-news{display:flex;flex-direction:column;align-items:center;gap:8px}
.home-news b{font-size:18px;color:var(--navy)}
.home-news p{margin:0;color:#1C2B3D;font-size:16px}
.home-news .btn{margin-top:8px}
.home-news small{font-size:13px;line-height:1.6;color:#3F3A2F;max-width:300px}
@media (min-width:961px){
  .home-quiz{padding:96px 0}
  .home-quiz-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center;text-align:left}
  .home-quiz-text{align-items:flex-start}
  .home-q{font-size:clamp(30px,3vw,40px)}
  .home-opts{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin-top:0}
  .home-opt{padding:30px 14px 26px}
  .home-ico{width:84px;height:84px}
  .home-ico svg{width:48px;height:48px}
  .home-reveal{align-self:stretch;max-width:none}
  .home-joinsec{padding:128px 0;background:linear-gradient(90deg,var(--navy) 0%,var(--navy) 36%,rgba(0,46,93,.72) 56%,rgba(0,46,93,.12) 100%),url(https://static.wixstatic.com/media/0f0dc9_06196e68be6e43a39c86662eb15eef54~mv2.jpg/v1/fill/w_1800,h_1000,q_80/join.jpg) right center/cover}
  .home-join{align-items:flex-start;text-align:left;max-width:520px}
  .home-join .h2{font-size:clamp(34px,3.6vw,46px)}
  .home-close{padding:104px 0}
  .home-close-in{flex-direction:row;justify-content:space-between;text-align:left}
  .home-slogan{font-size:clamp(48px,5.4vw,72px)}
  .home-news{align-items:flex-start;background:var(--paper);border-radius:28px;padding:32px 36px;width:380px;box-shadow:0 12px 28px rgba(0,46,93,.12)}
}
@media (max-width:720px){
  .home-quiz::before{width:300px;height:300px;left:-150px;bottom:-170px}
  .home-quiz::after{width:220px;height:220px;right:-90px;top:-90px}
  .home-close::before{width:360px;height:360px;right:-200px}
}
/* 手機底部捐款列：只在 960px 以下出現 */
.home-dock{display:none}
@media (max-width:960px){
  .home-dock{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:45;align-items:center;justify-content:space-between;gap:12px;background:var(--navy);padding:10px 16px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -6px 20px rgba(0,46,93,.18);transition:transform .25s ease}
  .home-dock p{margin:0;color:#fff;font-size:15px;line-height:1.45;font-weight:500}
  .home-dock .btn{flex:0 0 auto;min-height:48px;padding:10px 24px;font-size:16px}
  .home-dock.is-hidden{transform:translateY(110%)}
  body.home{padding-bottom:76px}
  body.home-dock-on #wixheadless-banner-container{bottom:calc(84px + env(safe-area-inset-bottom))!important}
}
@media (max-width:720px){
  .home-photo{min-height:260px}
  .home-quiz{padding:44px 0}
  .home-tiles{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 24px;gap:12px;margin:0 -24px;padding:0 24px 8px;scrollbar-width:none}
  .home-tiles::-webkit-scrollbar{display:none}
  .home-tiles li{flex:0 0 62%;scroll-snap-align:start}
  .home-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .home-stats .stat{flex-direction:column;align-items:center;text-align:center;gap:4px;padding:16px 6px}
  .home-stats .stat b{min-width:0;text-align:center;font-size:26px;line-height:1.2}
  .home-stats .stat b small{display:block;margin:2px 0 0;font-size:13px}
  .home-stats .stat span{font-size:13px;line-height:1.5}
}
@media (max-width:360px){.home-dock p{font-size:14px}}
@media (prefers-reduced-motion:reduce){.home-dock{transition:none}html{scroll-behavior:auto}.home-quiz.js.done .home-reveal{animation:none}.home-img{transition:none}.home-tiles a:hover .home-img{transform:none}.home-opt{transition:none}.home-opt:hover{transform:none}.home-quiz.done .home-opt[aria-pressed="false"]{animation:none}}
/* 2026-11-14 怪獸題：圖示換成孩子畫的怪獸（去背圖，原圖在雲端 16_怪獸素材） */
.home-ico img{display:block;width:86%;height:86%;object-fit:contain}
.home-opt[aria-pressed="true"] .home-ico{background:#fff}
.home-credit{margin:0;font-size:14px;font-weight:700;color:var(--teal-ink)}
@media (min-width:961px){.home-ico{width:112px;height:112px}}
@media (max-width:600px){.home-ico{width:64px;height:64px}}
/* 2026-11-16 首頁數字改回 A 版的呈現：黃色數字卡＋完整說明（原 .home-stats 規則保留未使用） */
.home-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.home-nums .stat{background:var(--yellow)}
.home-nums .stat span{color:var(--navy)}
.home-numsrc{margin:-12px 0 0;font-size:14px;color:var(--muted)}
@media (max-width:760px){.home-nums{grid-template-columns:1fr;gap:12px}}
@media (max-width:720px){
  .home-nums .stat{flex-direction:column;align-items:flex-start;text-align:left;gap:2px;padding:18px 24px}
  .home-nums .stat b{min-width:0;text-align:left;font-size:42px}
}
/* 2026-11-16 首頁兩張大照片：手機載入較小的版本，700px 以上才載入原本的大小 */
.ph.home-hero-ph{background-image:url(https://static.wixstatic.com/media/0f0dc9_ef83d2cf2505421da325190a464f1e0b~mv2.png/v1/fill/w_840,h_600,q_82/photo.jpg)}
.ph.home-who-ph{background-image:url(https://static.wixstatic.com/media/0f0dc9_a6bfd4f0bfcb41e780a307a7cb0db14c~mv2.jpg/v1/fill/w_800,h_600,q_82/photo.jpg)}
@media (min-width:700px){
  .ph.home-hero-ph{background-image:url(https://static.wixstatic.com/media/0f0dc9_ef83d2cf2505421da325190a464f1e0b~mv2.png/v1/fill/w_1400,h_1000,q_85/photo.jpg)}
  .ph.home-who-ph{background-image:url(https://static.wixstatic.com/media/0f0dc9_a6bfd4f0bfcb41e780a307a7cb0db14c~mv2.jpg/v1/fill/w_1200,h_900,q_85/photo.jpg)}
}

/* 2026-11-21 主視覺：圓弧色塊＋孩子畫的怪獸（取代拱形黃框） */
.home-hero{overflow:hidden}
.home-hero-art{position:relative}
.home-hero-art::before{content:"";position:absolute;inset:-18px -26px 28px 22px;background:var(--yellow);border-radius:52% 48% 56% 44%/46% 54% 46% 54%}
.home-hero-art::after{content:"";position:absolute;width:180px;height:180px;right:-50px;top:-40px;background:radial-gradient(circle,rgba(72,192,216,.6) 2.4px,transparent 3px) 0 0/18px 18px;border-radius:50%}
.home-hero-art .home-hero-ph{position:relative;z-index:1;min-height:480px;border-radius:48% 52% 44% 56%/56% 48% 52% 44%}
.home-hero-mon{position:absolute;z-index:2;width:130px;height:auto;left:-36px;bottom:-26px;transform:rotate(-8deg);filter:drop-shadow(0 8px 10px rgba(0,46,93,.18))}
.home-hero-mon.m3{left:auto;bottom:auto;right:-20px;top:-30px;width:100px;transform:rotate(10deg)}
.home-hero-ring{position:absolute;z-index:2;width:64px;height:64px;border-radius:50%;border:10px solid var(--orange);right:30px;bottom:-14px}
@media (max-width:943px){.split.media-first>.home-hero-art{order:-1}}
@media (max-width:960px){.home-hero-art .home-hero-ph{min-height:360px}}
@media (max-width:720px){
  .home-hero-art{margin:12px 8px 8px}
  .home-hero-art::before{inset:-10px -12px 18px 12px}
  .home-hero-art::after{width:120px;height:120px;right:-30px;top:-24px}
  .home-hero-art .home-hero-ph{min-height:260px}
  .home-hero-mon{width:84px;left:-14px;bottom:-16px}
  .home-hero-mon.m3{width:64px;right:-6px;top:-18px}
  .home-hero-ring{width:44px;height:44px;border-width:7px;right:20px;bottom:-8px}
}
/* 2026-11-21 數字區：「深耕」和單位一樣大、數字捲動時往上跑；資料來源小字已拿掉 */
.stat b small.pre{margin:0 6px 0 0}
.home-nums .num{display:inline-block;text-align:center}
/* 2026-11-21 怪獸卡：怪獸放大、三張不同底色、各加一句副標；選了之後顯示各自的回應 */
.home-opt-txt{display:flex;flex-direction:column;align-items:center;gap:4px}
.home-sub{font-size:14px;line-height:1.5;color:var(--ink-2);font-weight:400}
.home-opt[aria-pressed="true"] .home-sub{color:var(--on-navy)}
.home-ico{overflow:visible}
.home-ico img{width:118%;height:118%;max-width:none;margin:-9%;transition:transform .2s}
.home-opt:hover .home-ico img{transform:rotate(-6deg) scale(1.04)}
.home-opts .home-opt:nth-child(1):not([aria-pressed="true"]){background:#FFF8E6}
.home-opts .home-opt:nth-child(2):not([aria-pressed="true"]){background:#EEF8FA}
.home-opts .home-opt:nth-child(3):not([aria-pressed="true"]){background:#FFF1E4}
@media (min-width:961px){.home-ico{width:140px;height:140px}.home-opt{padding:24px 14px}}
@media (max-width:600px){.home-ico{width:76px;height:76px}.home-opt-txt{align-items:flex-start}}
.home-reveal .home-own{font-size:18px;color:var(--navy);font-weight:500}
.home-reveal .home-own:empty{display:none}
@media (prefers-reduced-motion:reduce){.home-ico img{transition:none}.home-opt:hover .home-ico img{transform:none}}

/* 2026-11-21 修正：手機版 .stat span 的小字設定不要套到數字上 */
.stat b .num{font-size:inherit;line-height:inherit;color:inherit}

/* 2026-11-21 平板寬度（721–960px）改用右下角圓形捐款按鈕，底部捐款列只留在手機（720px 以下） */
@media (min-width:721px) and (max-width:960px){.home-dock{display:none!important}body.home{padding-bottom:0}}
/* 2026-11-21 生命故事：左右換頁（電腦一次 3 篇、平板 2 篇、手機 1 篇可直接滑） */
.home-feed-nav{display:flex;align-items:center;gap:10px}
.home-feed-btn{width:44px;height:44px;border-radius:50%;border:2px solid var(--navy);background:var(--paper);color:var(--navy);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.home-feed-btn:hover:not(:disabled){background:var(--yellow-soft)}
.home-feed-btn:disabled{opacity:.35;cursor:default}
.home-feed-btn svg{width:18px;height:18px}
.home-feed-nav .link{margin-left:8px;align-self:center}
.home-feed-slide .post-grid{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
.home-feed-slide .post-grid::-webkit-scrollbar{display:none}
.home-feed-slide .post-grid>.post-card,.home-feed-slide .post-grid>.skeleton{flex:0 0 calc((100% - 48px)/3);min-width:0;scroll-snap-align:start}
@media (max-width:900px){.home-feed-slide .post-grid>.post-card,.home-feed-slide .post-grid>.skeleton{flex:0 0 calc((100% - 24px)/2)}}
@media (max-width:600px){.home-feed-slide .post-grid>.post-card,.home-feed-slide .post-grid>.skeleton{flex:0 0 86%}.home-feed-dots{display:none!important}}
.home-feed-dots{display:flex;justify-content:center;gap:8px;margin-top:-8px}
.home-feed-dots button{width:10px;height:10px;border-radius:999px;border:0;padding:0;background:var(--line2);cursor:pointer;transition:width .2s}
.home-feed-dots button[aria-current="true"]{width:28px;background:var(--navy)}
@media (prefers-reduced-motion:reduce){.home-feed-dots button{transition:none}}
