/* landing.css — 形象首頁（未登入時取代登入頁）(規格書未涵蓋，本次擴充新增)
   由設計畫布「形象首頁 v3（綠金＋名句動畫）」轉成正式網頁；所有規則都限定在 #landing-screen 裡，動畫名稱加 lp- 前綴，
   不會影響小荷包本身的樣式。照片：Pexels、Pixabay 免費授權圖庫；主視覺錢袋取自品牌素材。 */
#landing-screen { display: block; min-height: 100vh; }
#landing-screen[hidden] { display: none; }
/* html.no-landing（index.html 最前面的小程式加的）：登入結果出來前先不顯示首頁，頂端列、背景維持平常的樣子；app.js 確定要顯示首頁時會拿掉它 */
html.no-landing #landing-screen { display: none; }
html:not(.no-landing) body.landing-mode .topbar, html:not(.no-landing) body.landing-mode .ambient-mesh { display: none !important; }
html:not(.no-landing) body.landing-mode { background: #fffaf0; }
#landing-screen .lp-login-link { color: #13362b; text-decoration: none; font-weight: 700; }
#landing-screen .lp-login-link:hover { color: #087958; }
#landing-screen{margin:0;background:#fffaf0}
#landing-screen a{color:#087958}#landing-screen a:hover{color:#065c43}
#landing-screen a:focus-visible, #landing-screen button:focus-visible{outline:3px solid #f5b301;outline-offset:3px}
#landing-screen .v2{font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:#13362b;-webkit-font-smoothing:antialiased}
#landing-screen .hand{font-family:"LXGW WenKai TC","Kaiti TC","BiauKai",serif;font-weight:700}
#landing-screen .wrap{max-width:1240px;margin:0 auto;padding:0 24px;box-sizing:border-box}
#landing-screen .nav-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px}
#landing-screen .hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:24px;align-items:center}
#landing-screen .feat4{display:grid;grid-template-columns:repeat(4,1fr)}
#landing-screen .feat4>div+div{border-left:1px solid #c9dcd3}
#landing-screen .cards6{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
#landing-screen .split2{display:grid;grid-template-columns:1fr 1fr;gap:24px}
#landing-screen .steps3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
#landing-screen .promise3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@keyframes lp-rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
#landing-screen .rise{animation:lp-rise .9s cubic-bezier(.2,.7,.2,1) both}
@keyframes lp-floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
#landing-screen .floaty{animation:lp-floaty 6s ease-in-out infinite}
@keyframes lp-swoosh{from{stroke-dashoffset:900}to{stroke-dashoffset:0}}
#landing-screen .swoosh path{stroke-dasharray:900;animation:lp-swoosh 1.4s .6s cubic-bezier(.3,.7,.2,1) both}
@keyframes lp-glow{0%,100%{opacity:.75}50%{opacity:1}}
#landing-screen .sun{animation:lp-glow 7s ease-in-out infinite}
@keyframes lp-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
#landing-screen .donate{animation:lp-pulse 2.8s ease-in-out infinite}
#landing-screen .donate:hover{animation-play-state:paused}
#landing-screen .card{transition:transform .25s ease,box-shadow .25s ease}
#landing-screen .card:hover{transform:translateY(-4px);box-shadow:0 18px 36px -18px rgba(8,121,88,.45)}
#landing-screen .btn-main{transition:background .2s ease,transform .2s ease}
#landing-screen .btn-main:hover{background:#065c43 !important;transform:translateY(-1px)}
@media (max-width:980px){
  #landing-screen .hero-grid{grid-template-columns:1fr}
  #landing-screen .hero-art{order:-1;max-width:560px;margin:0 auto}
  #landing-screen .cards6{grid-template-columns:repeat(2,1fr)}
  #landing-screen .split2, #landing-screen .steps3, #landing-screen .promise3{grid-template-columns:1fr}
}
@media (max-width:640px){
  #landing-screen .wrap{padding:0 16px}
  #landing-screen .feat4{grid-template-columns:repeat(2,1fr);row-gap:18px}
  #landing-screen .feat4>div+div{border-left:0}
  #landing-screen .cards6{grid-template-columns:1fr}
  #landing-screen .hero-title{font-size:60px !important}
  #landing-screen .hero-slogan{font-size:30px !important}
  #landing-screen .nav-links{gap:6px 14px;font-size:14px}
  #landing-screen .hide-sm{display:none}
}
@media (prefers-reduced-motion:reduce){
  #landing-screen .rise, #landing-screen .floaty, #landing-screen .swoosh path, #landing-screen .sun, #landing-screen .donate{animation:none}
}

/* ===== v3：固定背景＋名句、文字動畫 ===== */
#landing-screen{overflow-x:hidden;overflow-x:clip} /* clip 不會讓這一層變成捲動容器，頁首 position:sticky 才有效；舊瀏覽器不認 clip 就退回 hidden */
#landing-screen [data-anim-root]{overflow-x:hidden;overflow-x:clip}
@supports (overflow:clip){#landing-screen [data-anim-root]{overflow-x:clip}}
/* 意境照片：背景固定，捲動時照片不動、內容滑過去；綠色調遮罩配合品牌色 */
#landing-screen .quote-band{background-color:#0b3d2e;position:relative;height:600px;background-size:cover;background-position:center;background-attachment:fixed;display:flex;align-items:center;justify-content:center;padding:0 24px;overflow:hidden}
#landing-screen .quote-band::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,46,34,.18) 0%,rgba(4,46,34,.42) 55%,rgba(4,46,34,.62) 100%)}
#landing-screen .quote{position:relative;z-index:1;margin:0;max-width:22em;text-align:center;color:#ffffff;text-shadow:0 2px 18px rgba(0,0,0,.45)}
#landing-screen .quote blockquote{margin:0;font-family:"LXGW WenKai TC","Kaiti TC","BiauKai",serif;font-weight:700;font-size:clamp(34px,5.2vw,66px);line-height:1.3;letter-spacing:.08em;text-wrap:balance}
#landing-screen .quote figcaption{margin-top:20px;font-size:16px;letter-spacing:.2em;color:#ffd75e}
#landing-screen .quote .q-line{display:block;width:84px;height:5px;border-radius:3px;background:#f5b301;margin:22px auto 0}
#landing-screen .qb-coins.bg-on{background-image:url(../img/landing/quote-coins.webp);background-position:center 70%}
#landing-screen .qb-trail.bg-on{background-image:url(../img/landing/quote-trail.webp);background-position:center 60%}
#landing-screen .qb-wheat.bg-on{background-image:url(../img/landing/quote-wheat.webp);background-position:center 55%}
#landing-screen .qb-books.bg-on{background-image:url(../img/landing/quote-books.webp);background-position:center 40%}
#landing-screen .qb-sea.bg-on{background-image:url(../img/landing/quote-sea.webp);background-position:center 60%}
@supports (-webkit-touch-callout: none){#landing-screen .quote-band{background-attachment:scroll}}
/* 名句逐字顯現：捲到才一個字一個字從模糊淡入，出處最後出現；捲走藏回去，再捲回來重播 */
#landing-screen .q-text .ch{display:inline-block}
#landing-screen .q-armed .q-text .ch, #landing-screen .q-armed .q-cap{opacity:0}
#landing-screen .q-text.play .ch{animation:lp-chIn 1s ease both}
#landing-screen .q-cap.play{animation:lp-quoteCap 1.6s ease both}
@keyframes lp-chIn{from{opacity:0;filter:blur(10px)}to{opacity:1;filter:none}}
@keyframes lp-quoteCap{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* 設計稿檢視器裡頁面本身不捲：改成循環播放 */
#landing-screen .q-loop .q-text .ch{animation:lp-chLoop 9s ease infinite both}
#landing-screen .q-loop .q-cap{animation:lp-capLoop 9s ease infinite both}
@keyframes lp-chLoop{0%{opacity:0;filter:blur(10px)}11%{opacity:1;filter:none}80%{opacity:1;filter:none}92%{opacity:0;filter:blur(6px)}100%{opacity:0;filter:blur(10px)}}
@keyframes lp-capLoop{0%{opacity:0;transform:translateY(12px)}12%{opacity:1;transform:none}74%{opacity:1}86%{opacity:0}100%{opacity:0}}
/* 主視覺標語：開頁時逐字跳出 */
#landing-screen .hero-slogan .hc{display:inline-block;animation:lp-hcIn .6s cubic-bezier(.2,.8,.2,1.3) both}
@keyframes lp-hcIn{from{opacity:0;transform:translateY(18px) scale(.8)}to{opacity:1;transform:none}}
/* 移入動畫：有 JS 時才先藏起來，捲到加 .in 播放（淡入、上滑、左右滑入、彈跳） */
#landing-screen .anim-ready .anim{transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
#landing-screen .anim-ready .anim:not(.in){opacity:0}
#landing-screen .anim-ready .anim-up:not(.in){transform:translateY(36px)}
#landing-screen .anim-ready .anim-left:not(.in){transform:translateX(-56px)}
#landing-screen .anim-ready .anim-right:not(.in){transform:translateX(56px)}
#landing-screen .anim-ready .anim-zoom:not(.in){transform:scale(.9)}
#landing-screen .anim-ready .anim-bounce{transition:none}
#landing-screen .anim-ready .anim-bounce:not(.in){opacity:0}
#landing-screen .anim-ready .anim-bounce.in{animation:lp-bounceIn .9s cubic-bezier(.2,.7,.2,1) both}
@keyframes lp-bounceIn{0%{opacity:0;transform:scale(.6) translateY(20px)}55%{opacity:1;transform:scale(1.06) translateY(-6px)}75%{transform:scale(.97) translateY(2px)}100%{opacity:1;transform:none}}
@media (max-width:720px){#landing-screen .anim-ready .anim-left:not(.in){transform:translateX(-24px)}#landing-screen .anim-ready .anim-right:not(.in){transform:translateX(24px)}}
/* 打字顯示：中文一字約 1em，steps 逐字展開，結尾閃兩下游標 */
#landing-screen .type{display:inline-block;white-space:nowrap;overflow:hidden;vertical-align:bottom;border-right:.07em solid transparent;max-width:100%}
#landing-screen .anim-ready .type:not(.in){width:0}
#landing-screen .anim-ready .type.t9.in{animation:lp-typing-t9 .86s steps(9) both,lp-caret .7s step-end .86s 3}
@keyframes lp-typing-t9{from{width:0}to{width:9.3em}}
#landing-screen .anim-ready .type.t11.in{animation:lp-typing-t11 1.04s steps(11) both,lp-caret .7s step-end 1.04s 3}
@keyframes lp-typing-t11{from{width:0}to{width:11.3em}}
@keyframes lp-caret{50%{border-right-color:currentColor}}
@media (max-width:720px){#landing-screen .type{white-space:normal;width:auto!important;animation:none!important;border:none}}
@media (prefers-reduced-motion:reduce){
  #landing-screen .anim-ready .anim, #landing-screen .anim-ready .anim-bounce, #landing-screen .anim-ready .type, #landing-screen .q-text .ch, #landing-screen .q-cap, #landing-screen .hero-slogan .hc{opacity:1!important;transform:none!important;transition:none!important;animation:none!important;filter:none!important}
  #landing-screen .anim-ready .type{width:auto!important;border:none}
}
/* 標語在 1280 左右的寬度會把「。」擠到第二行：依螢幕寬度縮放、桌面版不換行（手機版另外設定、可以換行） */
@media (min-width: 641px) { #landing-screen .hero-slogan { font-size: clamp(30px, 3.2vw, 46px) !important; white-space: nowrap; } }
/* 名句框原本 max-width: 22em（以 16px 算只有 352px），字放大到 66px 就被擠成三行、逗號跑到行首：改成依畫面寬度給足空間 */
#landing-screen .quote { max-width: min(92vw, 1080px); }

/* 小荷包特色：電子借據（#lp-contract） */
#landing-screen .lp-contract{background:linear-gradient(180deg,#eef8f2 0%,#fffaf0 100%)}
#landing-screen .lc-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;padding-top:88px;padding-bottom:96px}
#landing-screen .lc-eyebrow{margin:0;font-weight:700;letter-spacing:.2em;color:#8a5d00;font-size:14px}
#landing-screen .lc-title{margin:10px 0 0;font-size:40px;line-height:1.25;font-weight:900;color:#0b4d3a}
#landing-screen .lc-lead{margin:18px 0 0;font-size:17px;line-height:1.85;color:#2f4d43}
#landing-screen .lc-lead strong{color:#087958}
#landing-screen .lc-steps{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:14px}
#landing-screen .lc-step{display:flex;gap:14px;align-items:flex-start}
#landing-screen .lc-step-no{flex:none;width:34px;height:34px;border-radius:50%;background:#087958;color:#fff;font-weight:900;display:grid;place-items:center;font-size:16px}
#landing-screen .lc-step div strong{display:block;font-size:17px;color:#0b4d3a}
#landing-screen .lc-step div span{display:block;font-size:15px;line-height:1.7;color:#4d6a5f}
#landing-screen .lc-trust{list-style:none;margin:26px 0 0;padding:16px 18px;border-radius:16px;background:#fff;border:1px solid #d8ebe1;display:grid;gap:8px;font-size:15px;color:#2f4d43}
#landing-screen .lc-trust li{display:flex;gap:10px;align-items:flex-start;line-height:1.6}
#landing-screen .lc-cta{display:inline-flex;align-items:center;min-height:48px;margin-top:26px;padding:0 28px;border-radius:999px;background:#087958;color:#fff!important;text-decoration:none;font-weight:800;font-size:16px}
#landing-screen .lc-note{margin:16px 0 0;font-size:13px;line-height:1.7;color:#5b6f67}
#landing-screen .lc-art{position:relative;justify-self:center;width:100%;max-width:440px}
#landing-screen .lc-doc{position:relative;background:#fff;border-radius:18px;padding:30px 24px 40px;border:1px solid #e3ece7;box-shadow:0 30px 60px -28px rgba(8,77,58,.45);transform:rotate(-1.5deg)}
#landing-screen .lc-stamp{position:absolute;top:-18px;right:-8px;transform:rotate(8deg);padding:6px 14px;border:3px solid #c0392b;border-radius:10px;color:#c0392b;font-weight:900;font-size:15px;background:rgba(255,255,255,.85)}
#landing-screen .lc-doc-title{margin:0;text-align:center;font-weight:900;font-size:19px;letter-spacing:.06em;color:#13362b}
#landing-screen .lc-doc-no{margin:4px 0 14px;text-align:center;font-size:12px;color:#5b6f67;font-family:ui-monospace,Menlo,monospace}
#landing-screen .lc-doc-parties{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#landing-screen .lc-doc-parties div{padding:10px 12px;border-radius:10px;background:#f4f8f6}
#landing-screen .lc-doc-parties span{display:block;font-size:12px;color:#5b6f67}
#landing-screen .lc-doc-parties strong{font-size:16px;color:#13362b}
#landing-screen .lc-doc-clause{margin:14px 0;padding:10px 12px;border-left:3px solid #087958;background:#f7fbf9;border-radius:0 8px 8px 0;font-size:14px;line-height:1.7;color:#2f4d43}
#landing-screen .lc-doc-signs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#landing-screen .lc-sign{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:8px;align-items:center;padding:8px;border:1px dashed #cfdcd5;border-radius:10px}
#landing-screen .lc-sign svg{width:100%;height:40px}
#landing-screen .lc-sign em{grid-column:1 / -1;font-style:normal;font-size:11px;color:#5b6f67;margin-top:4px}
#landing-screen .lc-photo{width:40px;height:40px;border-radius:8px;background:linear-gradient(160deg,#cfe7dc,#9fcdb8);position:relative;overflow:hidden}
#landing-screen .lc-photo::after{content:"";position:absolute;left:50%;top:9px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#5f8f7a;box-shadow:0 18px 0 6px #5f8f7a}
#landing-screen .lc-photo-b{background:linear-gradient(160deg,#fde9b8,#f3cf7a)}
#landing-screen .lc-photo-b::after{background:#a07a2a;box-shadow:0 18px 0 6px #a07a2a}
#landing-screen .lc-doc-hash{margin:12px 0 0;font-size:11px;color:#5b6f67;font-family:ui-monospace,Menlo,monospace}
#landing-screen .lc-mail{position:absolute;left:-14px;bottom:-18px;padding:10px 16px;border-radius:999px;background:#0b4d3a;color:#fff;font-weight:700;font-size:14px;box-shadow:0 14px 28px -12px rgba(0,0,0,.4)}
#landing-screen .lc-br{display:none}
@media (max-width:980px){
  #landing-screen .lc-wrap{grid-template-columns:1fr;gap:56px;padding-top:64px;padding-bottom:80px}
  #landing-screen .lc-br{display:inline}
}
@media (max-width:640px){
  #landing-screen .lc-title{font-size:30px}
  #landing-screen .lc-doc{padding:22px 16px 40px;transform:none}
  #landing-screen .lc-stamp{right:8px;top:-16px;font-size:13px}
  #landing-screen .lc-mail{left:8px;bottom:-16px;font-size:13px}
  #landing-screen .lc-doc-signs{grid-template-columns:1fr}
}

/* 小荷包特色：收件箱（#lp-inbox）；排版跟電子借據相反（圖左字右） */
#landing-screen .lp-inbox{background:linear-gradient(180deg,#fffaf0 0%,#eef8f2 100%)}
#landing-screen .ib-wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:56px;align-items:center;padding-top:88px;padding-bottom:96px}
#landing-screen .ib-art{position:relative;justify-self:center;width:100%;max-width:380px}
#landing-screen .ib-phone{background:#fff;border:1px solid #dfeae4;border-radius:28px;padding:14px;box-shadow:0 30px 60px -28px rgba(8,77,58,.45);transform:rotate(1.5deg)}
#landing-screen .ib-phone-head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 12px;border-bottom:1px solid #eef3f0}
#landing-screen .ib-phone-title{font-weight:900;font-size:17px;color:#0b4d3a}
#landing-screen .ib-badge{min-width:24px;height:24px;border-radius:12px;background:#d93636;color:#fff;font-weight:800;font-size:13px;display:grid;place-items:center;padding:0 6px}
#landing-screen .ib-chat{display:flex;flex-direction:column;gap:12px;padding:16px 4px}
#landing-screen .ib-row{display:flex;gap:8px;align-items:flex-end}
#landing-screen .ib-row-out{justify-content:flex-end}
#landing-screen .ib-avatar{flex:none;width:32px;height:32px;border-radius:50%;background:#f5b301;color:#3d2a00;font-weight:900;display:grid;place-items:center;font-size:14px}
#landing-screen .ib-avatar-staff{background:#087958;color:#fff}
#landing-screen .ib-bubble{max-width:78%;padding:9px 12px;border-radius:16px;font-size:14px;line-height:1.55}
#landing-screen .ib-bubble small{display:block;font-size:11px;font-weight:700;margin-bottom:2px;color:#4d6a5f}
#landing-screen .ib-in{background:#f1f6f3;color:#13362b;border-bottom-left-radius:4px}
#landing-screen .ib-out{background:#087958;color:#fff;border-bottom-right-radius:4px}
#landing-screen .ib-input{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;padding:8px 8px 8px 14px;border-radius:999px;border:1px solid #dfeae4;color:#5b6f67;font-size:14px}
#landing-screen .ib-input b{background:#087958;color:#fff;border-radius:999px;padding:6px 16px;font-size:14px}
#landing-screen .ib-bell{position:absolute;right:-10px;top:-18px;padding:8px 14px;border-radius:999px;background:#0b4d3a;color:#fff;font-weight:700;font-size:13px;box-shadow:0 14px 28px -12px rgba(8,77,58,.6)}
#landing-screen .ib-points{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:16px}
#landing-screen .ib-points li{display:flex;gap:14px;align-items:flex-start}
#landing-screen .ib-ico{flex:none;width:44px;height:44px;border-radius:50%;background:#e1f3ea;display:grid;place-items:center;font-size:20px}
#landing-screen .ib-points strong{display:block;font-size:17px;color:#0b4d3a}
#landing-screen .ib-points span:not(.ib-ico){display:block;font-size:15px;line-height:1.7;color:#4d6a5f}
@media (max-width:980px){
  #landing-screen .ib-wrap{grid-template-columns:1fr;gap:48px;padding-top:64px;padding-bottom:80px}
  #landing-screen .ib-text{order:-1}
}
@media (max-width:640px){
  #landing-screen .ib-phone{transform:none}
  #landing-screen .ib-bell{right:6px;top:-16px}
}

/* 常見問題（#lp-faq）：用原生 details／summary，不需要程式，鍵盤與讀屏都能用 */
#landing-screen .lp-faq{background:#fffaf0}
#landing-screen .faq-wrap{max-width:860px;margin:0 auto;padding:80px 20px 88px}
#landing-screen .faq-list{margin-top:36px;display:grid;gap:12px}
#landing-screen .faq-item{background:#fff;border:1px solid #e3ece7;border-radius:16px;padding:0 20px}
#landing-screen .faq-item[open]{border-color:#087958;box-shadow:0 12px 28px -18px rgba(8,77,58,.45)}
#landing-screen .faq-item summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;font-size:17px;font-weight:800;color:#0b4d3a}
#landing-screen .faq-item summary::-webkit-details-marker{display:none}
#landing-screen .faq-item summary::after{content:"＋";flex:none;font-size:20px;color:#087958}
#landing-screen .faq-item[open] summary::after{content:"－"}
#landing-screen .faq-item summary:focus-visible{outline:3px solid #f5b301;outline-offset:2px;border-radius:8px}
#landing-screen .faq-item p{margin:0 0 18px;font-size:15px;line-height:1.85;color:#3f5c51}
/* 頁尾的連結：手機上要夠大好點 */
#landing-screen footer a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
@media (max-width:640px){#landing-screen .faq-wrap{padding:56px 16px 64px}#landing-screen .faq-item summary{font-size:16px}}

/* 頁首右邊的漢堡選單：關於我們、隱私權政策、服務條款（首頁與三個說明頁共用；開關由 js/head-menu.js 輔助，原生 details 沒有 JS 也能用） */
#landing-screen .lp-menu{position:relative}
#landing-screen .lp-menu summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:rgba(8,121,88,.08);color:#087958;cursor:pointer;transition:background .2s}
#landing-screen .lp-menu summary::-webkit-details-marker{display:none}
#landing-screen .lp-menu summary:hover{background:rgba(8,121,88,.16)}
#landing-screen .lp-menu[open] summary{background:#087958;color:#fff}
#landing-screen .lp-menu-panel{position:absolute;right:0;top:calc(100% + 8px);min-width:184px;background:#fff;border:1px solid #d8ebe1;border-radius:14px;box-shadow:0 18px 40px -18px rgba(8,77,58,.5);padding:6px;display:grid;z-index:10}
#landing-screen .lp-menu-panel a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;color:#13362b !important;text-decoration:none;font-weight:500;font-size:15px;white-space:nowrap}
#landing-screen .lp-menu-panel a:hover,#landing-screen .lp-menu-panel a[aria-current]{background:#eef6f2;color:#065c43 !important}

/* 頁首固定在頂端（不受捲軸影響）：首頁與三個說明頁共用。半透明白底加模糊，內容從後面捲過也看得清楚；
   錨點連結（#lp-features…）要留出頁首的高度，標題才不會被蓋住 */
#landing-screen .lp-head{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html:not(.no-landing){scroll-padding-top:84px}
/* 說明頁：頁首外面的兩層容器不能擋住 sticky，讓頁首相對整個頁面固定 */
#landing-screen.page-head-host, #landing-screen.page-head-host > .v2{display:contents}
/* 手機：頁首只留 logo、「免費開始使用」與漢堡，其餘（聯絡我們、登入、Donate）收進漢堡選單，固定在頂端時才不佔掉太多畫面 */
#landing-screen .lp-menu-panel a.lp-menu-extra, #landing-screen .lp-menu-panel .lp-menu-sep{display:none}
#landing-screen .lp-menu-panel .lp-menu-sep{height:1px;margin:4px 8px;padding:0;min-height:0;background:#d8ebe1}
@media (max-width:640px){
  #landing-screen .hide-xs{display:none !important} /* 這幾個連結行內樣式有 display，一定要 !important */
  #landing-screen .lp-menu-panel a.lp-menu-extra{display:flex}
  #landing-screen .lp-menu-panel .lp-menu-sep{display:block}
  #landing-screen .lp-head .wrap{flex-wrap:nowrap !important;padding-top:8px !important;padding-bottom:8px !important}
  #landing-screen .lp-head .nav-links{flex-wrap:nowrap;gap:8px}
  #landing-screen .lp-head .btn-main{padding:0 14px !important;font-size:14px;white-space:nowrap}
  #landing-screen .lp-head img{width:36px !important;height:36px !important}
  #landing-screen .lp-head a[href="#lp-top"] span, #landing-screen .lp-head a[href="../"] span{font-size:22px !important}
  html:not(.no-landing){scroll-padding-top:64px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* 頁首固定在頂端，所以一定要維持單排、不能換行變很高：電腦寬度縮小字距；比較窄時依序收掉文字連結（平板只留 logo、按鈕與漢堡） */
#landing-screen .lp-head .nav-links{gap:6px 14px;font-size:14px !important;flex-wrap:nowrap}
@media (max-width:1279px){#landing-screen .hide-md{display:none !important}}
@media (max-width:980px){#landing-screen .lp-head .nav-links a.hide-sm{display:none !important}}

/* 15 秒宣傳短片區塊：影片比例固定（16:9），沒載入前就先佔好位置，頁面不會跳動 */
#landing-screen .lp-video{background:#fffaf0}
#landing-screen .lv-wrap{padding-top:72px;padding-bottom:72px;text-align:center}
#landing-screen .lv-frame{position:relative;max-width:820px;margin:28px auto 0;aspect-ratio:16/9;background:#0b4d3a;border-radius:20px;overflow:hidden;box-shadow:0 18px 40px -22px rgba(8,121,88,.55)}
#landing-screen .lv-frame video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#0b4d3a}
@media (max-width:640px){#landing-screen .lv-wrap{padding-top:48px;padding-bottom:48px}#landing-screen .lv-frame{border-radius:14px}}

/* Donate 對話框（js/donate.js）：先選捐款方式，再看該方式的 QR code */
.dn-dialog{border:0;border-radius:24px;padding:0;max-width:min(92vw,380px);width:100%;background:#fff;color:#0b4d3a;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.dn-dialog::backdrop{background:rgba(0,0,0,.5)}
.dn-box{position:relative;padding:32px 24px 24px;text-align:center}
.dn-title{margin:0 0 6px;font-size:22px;color:#0b4d3a}
.dn-note{margin:0 0 16px;font-size:15px;color:#4d6a5f;line-height:1.6}
.dn-close{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;background:none;font-size:20px;cursor:pointer;color:#4d6a5f;border-radius:50%}
.dn-method{display:block;width:100%;min-height:52px;border:0;border-radius:999px;background:#f5b301;color:#3d2a00;font:700 17px inherit;font-family:inherit;cursor:pointer}
.dn-method:hover{filter:brightness(.95)}
.dn-qr{display:block;margin:0 auto 12px;width:220px;max-width:100%;height:auto;border-radius:12px;border:1px solid #e3ece7}
.dn-back{min-height:44px;padding:0 16px;border:0;background:none;color:#0b4d3a;font:600 15px inherit;font-family:inherit;cursor:pointer;text-decoration:underline}
.dn-dialog button:focus-visible{outline:3px solid #0b4d3a;outline-offset:2px}
