/* ============================================================================
   小綠書 V2「下載＋有聲書銷售頁」— Prototype A 乾淨現代課程風
   白底＋品牌綠＋圓角卡片。免費下載為主 → 試聽互動 → 最後才付款；
   金額只出現在最終付款區；sticky 滑過試聽區大半才出現、最終付款區隱藏。
   所有規則限縮在 .lgbv2-dl 內（無全域 reset、無 body/html 樣式），不污染全站。
   部署：佈景主題 css/ 目錄，is_page('download-little-green-book-v2') 載入，
   版本號用 filemtime()
   ============================================================================ */
/* ===== Prototype A · clean course =====
   全部樣式都包在 .lgbv2-dl 下：無全域 reset、無 body/html 樣式 */
.lgbv2-dl{
  font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,-apple-system,sans-serif;
  color:#1a1d1a; background:#ffffff; line-height:1.7;
  -webkit-text-size-adjust:100%;
}
.lgbv2-dl *, .lgbv2-dl *::before, .lgbv2-dl *::after{ box-sizing:border-box; }
.lgbv2-dl img{ max-width:100%; height:auto; display:block; }
.lgbv2-dl a{ color:#1f7a3d; }
.lgbv2-dl p{ margin:0 0 1em; }
.lgbv2-dl h1,.lgbv2-dl h2,.lgbv2-dl h3{ margin:0 0 .5em; line-height:1.3; letter-spacing:.01em; }

.pa-wrap{ max-width:1200px; margin:0 auto; padding:0 24px; }
.pa-eyebrow{
  display:inline-block; font-size:13px; font-weight:800; letter-spacing:.14em;
  color:#1f7a3d; text-transform:uppercase; margin-bottom:12px;
}
.pa-h1{ font-size:clamp(30px,4.2vw,46px); font-weight:900; line-height:1.25; }
.pa-h2{ font-size:clamp(24px,3vw,32px); font-weight:900; }
.pa-h3{ font-size:19px; font-weight:800; }
.pa-lead{ font-size:17px; color:#3d423d; }
.pa-section{ padding:56px 0; }
.pa-section--alt{ background:#f7f8f7; }
.pa-card{
  background:#fff; border:1px solid #e8eae8; border-radius:18px;
  box-shadow:0 10px 30px rgba(26,29,26,.08); padding:28px;
}
.pa-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:#1f7a3d; color:#fff !important; font-weight:800; font-size:17px;
  padding:15px 34px !important; border-radius:999px; text-decoration:none; border:0; cursor:pointer; text-shadow:none;
  transition:background .18s ease, transform .18s ease; line-height:1.4; text-align:center;
}
.lgbv2-dl .pa-btn:hover{ background:#176233; }
.lgbv2-dl .pa-btn:active{ transform:scale(.98); }
.pa-btn--ghost{
  background:#fff; color:#1f7a3d !important; border:2px solid #1f7a3d;
}
.lgbv2-dl .pa-btn--ghost:hover{ background:#eef5f0; }
.pa-micro{ font-size:13px; color:#6b706b; }

/* ---------- Hero ---------- */
.pa-hero{
  padding:64px 0 48px;
  position:relative; overflow:hidden;
  background:
    radial-gradient(640px 420px at 88% 18%, rgba(31,122,61,.08), transparent 70%),
    radial-gradient(560px 400px at 8% 88%, rgba(31,122,61,.06), transparent 70%),
    linear-gradient(180deg,#f2f7f3 0%,#ffffff 100%);
}
/* 淡點陣：只在中間柔和出現，不搶字 */
.pa-hero::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:radial-gradient(rgba(31,122,61,.10) 1.2px, transparent 1.4px);
  background-size:26px 26px;
  -webkit-mask-image:radial-gradient(75% 65% at 50% 42%, #000 25%, transparent 100%);
  mask-image:radial-gradient(75% 65% at 50% 42%, #000 25%, transparent 100%);
}
.pa-hero .pa-wrap{ position:relative; z-index:1; }
.pa-hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.pa-hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin:26px 0 10px; align-items:center; }
/* 次要 CTA：安靜的文字連結，不搶主按鈕 */
.pa-link{
  color:#1f7a3d; font-weight:700; font-size:15px;
  text-decoration:underline; text-underline-offset:4px;
}
.lgbv2-dl a.pa-link:hover{ color:#176233; }
.pa-product-card{ position:relative; }
.pa-product-card img.pa-product-img{
  border-radius:20px; box-shadow:0 24px 60px rgba(31,122,61,.22);
  border:1px solid #e8eae8; background:#eef3ee; min-height:300px; object-fit:cover;
}
.pa-badge-float{
  position:absolute; top:18px; left:18px; background:#1a1d1a; color:#fff;
  font-size:13px; font-weight:700; padding:7px 14px; border-radius:999px;
}

/* ---------- Letter（拆信互動：無 JS 也可用 checkbox hack） ---------- */
.pa-letter{ margin-top:34px; max-width:560px; }
.pa-letter-state{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.pa-envelope{
  position:relative; background:#fff; border:1px solid #dfe3df; border-radius:16px;
  box-shadow:0 10px 30px rgba(26,29,26,.08); padding:34px 28px; text-align:center; overflow:hidden;
}
.pa-envelope-flap{
  width:0; height:0; margin:0 auto 18px;
  border-left:64px solid transparent; border-right:64px solid transparent;
  border-top:44px solid #d7e4db;
}
.pa-envelope p{ font-weight:700; font-size:16px; color:#3d423d; margin-bottom:18px; }
.pa-letter-paper{ display:none; }
.pa-letter-state:checked ~ .pa-envelope{ display:none; }
.pa-letter-state:checked ~ .pa-letter-paper{ display:block; }
.pa-letter-paper{
  background:#fffdf6; border:1px solid #e6dfc8; border-radius:6px;
  box-shadow:0 14px 34px rgba(26,29,26,.10); padding:30px 30px 26px; position:relative;
}
.pa-letter-text{ font-size:16.5px; position:relative; }
.pa-letter-sign{ text-align:right; font-weight:800; margin-top:12px; position:relative; }
.pa-letter-claire{ display:flex; align-items:center; gap:14px; margin-top:18px; position:relative; }
.pa-letter-claire img{ width:64px; height:64px; border-radius:50%; object-fit:cover; border:2px solid #1f7a3d; }
.pa-letter-claire .pa-name{ font-weight:800; }
.pa-letter-claire .pa-role{ font-size:13px; color:#6b706b; }

/* ---------- 主內容兩欄：左文／右 sticky 購買卡 ---------- */
.pa-layout{ display:grid; grid-template-columns:minmax(0,880px); justify-content:center; }
.pa-side{ position:fixed; z-index:60; top:50%; transform:translateY(-50%); right:max(20px, calc(50% - 764px)); width:300px; }
.pa-buycard{ background:#fff; border:1px solid #e8eae8; border-radius:18px;
  box-shadow:0 14px 40px rgba(26,29,26,.10); padding:26px; }
.pa-buycard .pa-prod-name{ font-weight:800; font-size:16px; margin-bottom:10px; }
.pa-price-row{ display:flex; align-items:baseline; gap:10px; margin:6px 0 2px; }
.pa-price{ font-size:36px; font-weight:900; color:#1a1d1a; }
.pa-price-old{ font-size:16px; color:#9aa09a; text-decoration:line-through; }
.pa-save{ display:inline-block; background:#e7f4ec; color:#1f7a3d; font-weight:800;
  font-size:14px; padding:4px 12px; border-radius:999px; margin:4px 0 14px; }
.pa-buycard .pa-btn{ width:100%; margin:6px 0 12px; }
.pa-buycard .pa-micro{ text-align:center; }
.pa-side-note{ font-size:13px; color:#6b706b; text-align:center; margin-top:10px; }

/* ---------- P.S. ---------- */
.pa-ps{ border-left:4px solid #1f7a3d; padding:6px 0 6px 20px; font-size:16.5px; }
.pa-ps strong{ font-weight:800; }

/* ---------- 試聽播放器 ---------- */
.pa-tabs{ display:flex; gap:10px; margin:18px 0 20px; flex-wrap:wrap; }
.pa-tab{
  border:2px solid #dfe3df; background:#fff; border-radius:999px; padding:10px 22px;
  font-size:15px; font-weight:700; color:#3d423d; cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.pa-tab[aria-selected="true"]{ border-color:#1f7a3d; background:#eef5f0; color:#1f7a3d; }
.pa-player{ display:flex; align-items:center; gap:16px; }
.pa-play{
  flex:0 0 auto; width:60px; height:60px; border-radius:50%; border:0; cursor:pointer;
  background:#1f7a3d; color:#fff; font-size:22px; display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, transform .15s ease;
}
.lgbv2-dl .pa-play:hover{ background:#176233; }
.pa-track{ flex:1 1 auto; min-width:0; }
.pa-track-title{ font-weight:800; font-size:15px; margin-bottom:8px; }
.pa-seek{ width:100%; accent-color:#1f7a3d; cursor:pointer; }
.pa-time{ display:flex; justify-content:space-between; font-size:13px; color:#6b706b; font-variant-numeric:tabular-nums; }
.pa-player-fallback audio{ width:100%; margin-top:12px; }
/* 播放中指示：小等化器（只有播放時出現＋跳動） */
.pa-eq{ display:none; align-items:flex-end; gap:3px; height:24px; flex:0 0 auto; }
.pa-eq i{ width:4px; height:25%; background:#1f7a3d; border-radius:2px; }
.pa-player-card.is-playing .pa-eq{ display:inline-flex; }
.pa-player-card.is-playing .pa-eq i{ animation:pa-eq-bounce .9s ease-in-out infinite; }
.pa-player-card.is-playing .pa-eq i:nth-child(2){ animation-delay:.15s; }
.pa-player-card.is-playing .pa-eq i:nth-child(3){ animation-delay:.3s; }
.pa-player-card.is-playing .pa-eq i:nth-child(4){ animation-delay:.45s; }
@keyframes pa-eq-bounce{ 0%,100%{ height:25%; } 50%{ height:100%; } }
/* hero 產品圖：輕微浮動 */
.pa-product-img{ animation:pa-float 7s ease-in-out infinite; }
@keyframes pa-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
@media (prefers-reduced-motion:reduce){
  .pa-player-card.is-playing .pa-eq i{ animation:none; }
  .pa-product-img{ animation:none; }
}
.pa-speed{ display:flex; align-items:center; gap:8px; margin-top:12px; }
.pa-speed-label{ font-size:13px; color:#6b706b; font-weight:700; }
.pa-speed-btn{
  border:1.5px solid #dfe3df; background:#fff; color:#3d423d;
  font-size:13px; font-weight:700; padding:6px 14px !important; border-radius:999px;
  cursor:pointer; text-shadow:none !important; line-height:1.5;
  transition:border-color .15s ease, background .15s ease;
}
.pa-speed-btn.is-on{ background:#1f7a3d; border-color:#1f7a3d; color:#fff; }

/* ---------- 價值堆疊 ---------- */
.pa-stack{ display:grid; gap:14px; margin:22px 0; }
.pa-stack-item{
  display:flex; gap:16px; align-items:flex-start; background:#fff;
  border:1px solid #e8eae8; border-radius:14px; padding:18px 20px;
  box-shadow:0 6px 18px rgba(26,29,26,.05);
}
.pa-check{
  flex:0 0 auto; width:30px; height:30px; border-radius:50%;
  background:#1f7a3d; color:#fff; font-weight:900; display:flex;
  align-items:center; justify-content:center; font-size:16px;
}
.pa-stack-item .pa-t{ font-weight:800; font-size:16px; }
.pa-stack-item .pa-v{ font-size:14px; color:#6b706b; }
.pa-stack-total{
  display:flex; justify-content:space-between; align-items:center;
  background:#1a1d1a; color:#fff; border-radius:14px; padding:16px 22px;
  font-weight:800; font-size:16px; margin-bottom:22px;
}
.pa-quote{
  border-left:4px solid #1f7a3d; background:#f2f7f3; border-radius:0 14px 14px 0;
  padding:20px 24px; font-size:18px; font-weight:700; margin:22px 0;
}
.pa-offer-price{ display:flex; align-items:baseline; gap:14px; margin:18px 0 6px; flex-wrap:wrap; }
.pa-offer-price .pa-now{ font-size:44px; font-weight:900; }
.pa-offer-price .pa-was{ font-size:18px; color:#9aa09a; text-decoration:line-through; }
.pa-offer-cta{ margin:18px 0 10px; }
.pa-offer-cta .pa-btn{ font-size:19px; padding:17px 46px; }

/* ---------- 試閱 ---------- */
.pa-sample-head{ display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px; margin-bottom:6px; }
.pa-counter{ font-weight:800; color:#1f7a3d; font-variant-numeric:tabular-nums; }
.pa-slist{ display:grid; gap:10px; margin-top:16px; }
.pa-sitem{
  background:#fff; border:1px solid #e8eae8; border-radius:14px; overflow:hidden;
  transition:border-color .15s ease;
}
.pa-sitem.done{ border-color:#1f7a3d; background:#f4faf6; }
.pa-sitem summary{
  list-style:none; cursor:pointer; padding:16px 18px; display:flex; gap:14px; align-items:flex-start;
}
.pa-sitem summary::-webkit-details-marker{ display:none; }
.pa-snum{
  flex:0 0 auto; width:28px; height:28px; border-radius:8px; background:#eef1ee;
  color:#3d423d; font-weight:800; font-size:14px; display:flex; align-items:center; justify-content:center;
}
.pa-zh{ font-weight:700; font-size:16px; flex:1 1 auto; }
.pa-hint{ font-size:12px; color:#9aa09a; white-space:nowrap; padding-top:3px; }
.pa-splay{
  margin-left:auto; flex:0 0 auto; align-self:center;
  width:36px; height:36px; border-radius:50%; border:none; cursor:pointer;
  background:#1f7a3d; color:#fff; font-size:13px; line-height:1;
  display:inline-flex; align-items:center; justify-content:center;
  padding:0 !important; text-shadow:none !important;
}
.pa-splay:hover{ background:#176032; }
.pa-sitem.playing{ border-color:#e8a13d; }
.pa-sitem.playing .pa-splay{ background:#e8a13d; }
.pa-en{ padding:0 18px 6px 60px; color:#1f7a3d; font-size:15.5px; font-weight:600; }
.pa-en .pa-alt{ display:block; color:#3d7a52; }
.pa-done-row{ display:flex; align-items:center; gap:10px; padding:6px 18px 16px 60px; }
.pa-done-row input[type="checkbox"]{
  width:22px; height:22px; accent-color:#1f7a3d; cursor:pointer; margin:0;
  appearance:auto; -webkit-appearance:auto;
}
.pa-done-row label{ font-size:14px; font-weight:700; color:#3d423d; cursor:pointer; }

/* ---------- 為什麼需要 ---------- */
.pa-why{ display:grid; gap:14px; margin:24px 0 30px; }
/* 01 區：左圖右文（桌機）；手機改單欄圖上文下 */
.pa-why-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:40px; align-items:center; margin:24px 0 30px; }
.pa-why-grid .pa-why{ margin:0; }
.pa-why-photo{ margin:0; }
.pa-why-photo img{ width:100%; height:auto; display:block; }
.pa-why-item{ display:flex; gap:16px; align-items:flex-start; }
.pa-why-item .pa-n{
  flex:0 0 auto; width:34px; height:34px; border-radius:10px; background:#e7f4ec;
  color:#1f7a3d; font-weight:900; display:flex; align-items:center; justify-content:center;
}
.pa-why-item .pa-t{ font-weight:800; font-size:16.5px; margin-bottom:2px; }
.pa-why-item .pa-d{ color:#3d423d; font-size:15px; }
.pa-mini-cta{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  background:#fff; border:1px solid #e8eae8; border-radius:14px; padding:18px 22px;
  box-shadow:0 6px 18px rgba(26,29,26,.05);
}
.pa-mini-cta .pa-mp{ font-size:26px; font-weight:900; }
.pa-mini-cta .pa-mp small{ font-size:14px; color:#9aa09a; text-decoration:line-through; font-weight:600; margin-left:8px; }
.pa-mini-cta .pa-btn{ margin-left:auto; padding:12px 30px; font-size:16px; }

/* ---------- 學員回響 ---------- */
.pa-stat{ text-align:center; margin-bottom:28px; }
.pa-stat .pa-big{ font-size:clamp(28px,3.6vw,40px); font-weight:900; }
.pa-stat .pa-big em{ font-style:normal; color:#1f7a3d; }
.pa-rev-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:24px 0; }
.pa-rev{
  background:#fff; border:1px solid #e8eae8; border-radius:16px; padding:22px;
  box-shadow:0 8px 22px rgba(26,29,26,.06); display:flex; flex-direction:column; gap:10px;
}
.pa-stars{ color:#f5a623; font-size:17px; letter-spacing:2px; }
.pa-rev .pa-txt{ font-size:15.5px; font-weight:600; flex:1 1 auto; }
.pa-rev .pa-who{ display:flex; align-items:center; gap:10px; }
.pa-avatar{
  width:40px; height:40px; border-radius:50%; background:#1f7a3d; color:#fff;
  font-weight:900; display:flex; align-items:center; justify-content:center; font-size:16px;
}
.pa-rev .pa-who .pa-nm{ font-size:14px; font-weight:700; }
.pa-rev .pa-who .pa-tag{ font-size:12px; color:#9aa09a; }
.pa-origin{ margin:26px 0; }
.pa-origin .pa-line{ font-size:17px; margin-bottom:10px; }
.pa-origin .pa-line--big{ font-size:20px; font-weight:800; }

/* ---------- FAQ ---------- */
.pa-faq{ display:grid; gap:12px; margin-top:20px; }
.pa-faq details{
  background:#fff; border:1px solid #e8eae8; border-radius:14px; overflow:hidden;
}
.pa-faq summary{
  list-style:none; cursor:pointer; padding:18px 22px; font-weight:800; font-size:16px;
  display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.pa-faq summary::-webkit-details-marker{ display:none; }
.pa-faq summary::after{ content:"+"; font-size:22px; font-weight:400; color:#1f7a3d; flex:0 0 auto; }
.pa-faq details[open] summary::after{ content:"–"; }
.pa-faq .pa-a{ padding:0 22px 20px; color:#3d423d; }

/* ---------- 結尾 CTA ---------- */
.pa-final{ background:#1a1d1a; color:#fff; text-align:center; padding:72px 24px; }
.pa-sign{display:block;width:160px;max-width:46%;height:auto;margin:30px auto 0;}
.pa-final .pa-h2{ color:#fff; }
.pa-final .pa-fp{ font-size:40px; font-weight:900; margin:10px 0 2px; }
.pa-final .pa-fp small{ font-size:16px; color:#b9beb9; text-decoration:line-through; font-weight:600; margin-left:10px; }
.pa-final .pa-micro{ color:#b9beb9; }
.pa-final .pa-btn{ margin:20px 0 12px; font-size:19px; padding:17px 52px; }

/* ---------- 最終付款區：內容清單 ---------- */
.lgbv2-dl .pa-final-list{ list-style:none; margin:6px 0 4px; padding:0; display:grid; gap:12px; justify-items:center; }
.lgbv2-dl .pa-final-list li{ display:flex; align-items:center; gap:12px; font-size:17px; font-weight:700; }
.lgbv2-dl .pa-final-list .pa-check{ width:26px; height:26px; font-size:14px; }
.lgbv2-dl .pa-final-list .pa-bonus{ color:#ffd97a; }
.lgbv2-dl .pa-final .pa-fp{ white-space:nowrap; }
@media (max-width:760px){
  .lgbv2-dl .pa-final .pa-fp{ font-size:32px; }
  .pa-why-grid{ grid-template-columns:1fr; gap:24px; }
  .pa-why-photo{ max-width:300px; margin:0 auto; }
  /* 跟讀句子：手機改兩行（編號＋中文＋播放鍵／提示文字第二行），中文不再被擠扁 */
  .pa-sitem summary{
    display:grid;
    grid-template-columns:auto 1fr auto;
    grid-template-areas:"num zh play" "num hint play";
    gap:2px 12px; align-items:center;
  }
  .pa-sitem .pa-snum{ grid-area:num; }
  .pa-sitem .pa-zh{ grid-area:zh; }
  .pa-sitem .pa-hint{ grid-area:hint; padding-top:0; white-space:normal; }
  .pa-sitem .pa-splay{ grid-area:play; margin-left:0; }
}

/* ---------- sticky 顯示邏輯：預設隱藏，滑到試聽區才出現（無 JS 時保持隱藏） ---------- */
.lgbv2-dl .pa-side,
.lgbv2-dl .pa-mobile-bar{
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .25s ease, visibility .25s ease;
}
.lgbv2-dl .pa-side.is-on,
.lgbv2-dl .pa-mobile-bar.is-on{
  opacity:1; visibility:visible; pointer-events:auto;
}

/* ---------- 手機 sticky bar ---------- */
.pa-mobile-bar{
  display:none; position:fixed; left:0; right:0; bottom:0; z-index:50;
  background:#fff; border-top:1px solid #e8eae8; box-shadow:0 -8px 24px rgba(26,29,26,.10);
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  align-items:center; gap:12px;
}
.pa-mobile-bar .pa-mbp{ font-size:22px; font-weight:900; }
.pa-mobile-bar .pa-mbp small{ display:block; font-size:11px; color:#9aa09a; text-decoration:line-through; font-weight:600; }
.pa-mobile-bar .pa-btn{ flex:1 1 auto; padding:13px 20px; font-size:16px; }

/* ---------- RWD ---------- */
@media (max-width:1569px){
  .pa-side{ display:none; }
  .pa-mobile-bar{ display:flex; }
  .lgbv2-dl.pa-bar-on{ padding-bottom:76px; }
}
@media (max-width:760px){
  .pa-hero{ padding:44px 0 36px; }
  .pa-hero-grid{ grid-template-columns:1fr; gap:28px; }
  .pa-product-card{ max-width:420px; margin:0 auto; width:100%; }
  .pa-section{ padding:40px 0; }
  .pa-rev-grid{ grid-template-columns:1fr; }
  .pa-player{ flex-wrap:wrap; }
  .pa-mini-cta .pa-btn{ margin-left:0; width:100%; }
  .pa-stack-total{ flex-direction:column; gap:6px; text-align:center; }
}

/* ---------- reduced motion：動效瞬間完成 ---------- */
@media (prefers-reduced-motion: reduce){
  .lgbv2-dl *, .lgbv2-dl *::before, .lgbv2-dl *::after{
    transition:none !important; animation:none !important; scroll-behavior:auto !important;
  }
}
.lgbv2-dl .pa-shadow-bridge{margin:20px 0 0;color:#4a5a52;font-size:15px;}
.lgbv2-dl .pa-merge-div{border:0;border-top:1px solid #e8eae8;margin:36px 0;}
