  /* ---- 首頁「章節搜尋＋分類瀏覽」區塊躁點（noise/grain）紋理 ----
     2026-10-04：從 index-draft.html 草稿頁確認滿意後正式套回 index.html。
     參考 landmarkplaza.com.tw 的 .locationArea 做法：把搜尋/瀏覽整塊獨立成一個
     有底色、圓角的「區塊」，疊上一層細緻雜訊顆粒增加質感。雜訊用 feTurbulence
     產生、feColorMatrix 染成品牌主色（--primary #8A6410）並壓低透明度，純
     CSS/SVG 做法，不需要額外圖檔。只放在 index.html 自己的 style 區塊，沒有
     搬進共用 style.css（#shortcuts 只存在於首頁，不需要全站共用）。 */
  #shortcuts::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.541  0 0 0 0 0.392  0 0 0 0 0.063  0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size:220px 220px;
    pointer-events:none;
  }
  /* 「章節搜尋」「分類瀏覽」中標題：介於 .h2-hero（大標題）跟 .group-title（小標籤）之間，
     呼應整塊新加的「手冊快速查找」大標題，變成視覺上的次層級標題 */
  .shortcuts-subtitle{
    margin:0;
    font-size:clamp(20px,2.2vw,24px);
    font-weight:700;
    letter-spacing:.02em;
    line-height:1.4;
    color:#4A4038;
  }
  /* ---- RWD：筆電（預設，>820px）／平板（≤820px，沿用全站既有的 820px 中斷點）／
     手機（≤480px，新增，全站目前沒有更窄的中斷點，這裡專屬補上）----
     只調整「章節搜尋＋分類瀏覽」這個新區塊本身的留白、圓角、裝飾線條大小，
     文字（手冊快速查找／章節搜尋／分類瀏覽）本來就用 clamp() 寫，螢幕變窄會
     自動縮到下限，不用額外處理；左右兩欄的 grid 本來就是 auto-fit，螢幕變窄
     會自動變成單欄堆疊，也不用額外處理。 */
  #shortcuts{
    border-radius:80px 80px 0 0;
  }
  .shortcuts-inner{
    position:relative;
    z-index:1;
    max-width:1280px;
    margin:0 auto;
    padding:72px 32px 80px;
  }
  .shortcuts-title-block{
    margin-bottom:48px;
  }
  .shortcuts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(360px,100%),1fr));
    gap:clamp(36px,4vw,64px);
    align-items:start;
  }
  /* 右下角「翻開的書」裝飾線條：2026-10-06 新增，素材來自 assets/img/book.svg（單一
     連續 path 畫成的書本剪影，原始是黑色填色圖示，這裡改成跟其他裝飾線條一樣的
     純線條畫法：fill:none + stroke，顏色改成指定的 #6E5C34）。進場動畫參考
     landmarkplaza.com.tw 的 .decoPath 做法：用 stroke-dasharray / stroke-dashoffset
     把整條線「畫」出來，但沒有照抄對方用 keyframe + 其 ScrollReveal 函式庫的寫法，
     改成輕量版——由下面新增的一小段 inline <script> 在頁面載入時用
     path.getTotalLength() 量出線條實際長度，設定 dasharray/dashoffset 蓋住整條線，
     再用 IntersectionObserver 偵測這個區塊捲動進畫面時，把 dashoffset 轉場到 0，
     線條就會沿著它原本的路徑方向（書本這個素材剛好是從左下角一路畫到右上角）
     呈現「由左到右畫出來」的效果，只觸發一次，不會每次捲動進出都重播。 */
  .shortcuts-deco-book{
    position:absolute;
    right:-12rem;
    bottom:-50px;
    width:40%;
    height:auto;
    opacity:.5;
    pointer-events:none;
    z-index:0;
  }
  .shortcuts-deco-book path{
    fill:none;
    stroke:#6E5C34;
    stroke-width:6;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  @media (max-width:820px){
    /* 平板：圓角、留白、裝飾線條等比縮小，避免在較窄版面上顯得比例失衡 */
    #shortcuts{ border-radius:48px 48px 0 0; }
    .shortcuts-deco-book{ width:340px; right:-30px; bottom:-20px; }
    .shortcuts-inner{ padding:56px 28px 64px; }
    .shortcuts-title-block{ margin-bottom:36px; }
  }
  @media (max-width:480px){
    /* 手機：留白再收緊、裝飾線條再縮小＋降低透明度，避免跟標題/內容擠在一起 */
    #shortcuts{ border-radius:32px 32px 0 0; }
    .shortcuts-deco-book{ width:220px; right:-18px; bottom:-10px; opacity:.4; }
    .shortcuts-inner{ padding:40px 20px 48px; }
    .shortcuts-title-block{ margin-bottom:28px; }
    /* 2026-10-04 新增：使用者反應手機版「整個頁面外側留白」太寬。首頁這幾個區塊
       （開場跑馬燈 #top、翻到你需要的那一章 #topics、底部「手上的紙本手冊」CTA）
       是 index.html 自己的 inline style，左右留白原本固定 32px，這裡在手機斷點
       收到 20px，跟 .shortcuts-inner 已經在用的手機留白數值一致；inline style
       優先權比外部/內嵌樣式表都高，所以需要 !important 才蓋得過。 */
    #top,
    #topics > div,
    #topics + section {
      padding-left: 20px !important;
      padding-right: 20px !important;
    }
  }

  /* ---- 2026-10-06：首頁行內樣式收斂為 class（頁面專屬，不搬進共用 style.css）---- */
  .hero-section{ position:relative; max-width:1280px; margin:0 auto; padding:24px 32px 24px; }
  .hero-glow-gold{
    position:absolute; left:-220px; top:-200px; width:780px; height:780px;
    border-radius:999px;
    background:radial-gradient(circle at 50% 50%,rgba(239,187,60,.16) 0%,rgba(239,187,60,.07) 38%,rgba(239,187,60,0) 70%);
    filter:blur(18px); z-index:0; pointer-events:none;
  }
  .hero-glow-brown{
    position:absolute; right:-140px; top:180px; width:520px; height:520px;
    border-radius:999px;
    background:radial-gradient(circle at 50% 50%,rgba(184,150,96,.14) 0%,rgba(184,150,96,0) 70%);
    filter:blur(22px); z-index:0; pointer-events:none;
  }
  .hero-grid{
    position:relative; z-index:1; display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:48px; align-items:center; padding:28px 0 8px; margin-left:clamp(0px,3vw,52px);
  }
  .hero-text-col{ display:flex; flex-direction:column; gap:26px; max-width:30em; }
  .hero-title{
    margin:0; font-size:clamp(34px,4.4vw,58px); font-weight:700; line-height:1.28;
    letter-spacing:.01em; max-width:12em; text-wrap:balance;
  }
  .hero-title-accent{ color:#8A6410; }
  .hero-dot{ width:8px; height:8px; border-radius:999px; background:#EFBB3C; margin-top:11px; flex:none; }
  .hero-lede{ margin:0; font-size:16px; font-weight:400; line-height:2; color:#6F655C; }
  .hero-cta-row{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
  .hero-cta-primary{
    background:#F0C147; color:#3B3111; font-size:16px; font-weight:500;
    letter-spacing:.04em; padding:17px 42px;
  }
  .hero-cta-secondary{
    display:none; font-size:15px; font-weight:400; color:#6F655C;
    border-bottom:1px solid #D9C9BA; padding-bottom:4px;
  }
  .hero-img-wrap{ position:relative; }
  .hero-img-frame{ border-radius:24px; overflow:hidden; background:#F3EEE8; }
  .hero-img{ display:block; width:100%; height:auto; aspect-ratio:556/592; object-fit:cover; }
  .scroll-indicator{
    position:absolute; left:calc(50% - 50vw + 20px); bottom:0; z-index:2;
    display:flex; flex-direction:column; align-items:center; gap:14px; color:#6F655C;
  }
  .scroll-indicator-label{
    writing-mode:vertical-rl; font-family:'Jost',sans-serif; font-size:12px; letter-spacing:.34em;
  }
  .scroll-indicator-line{ width:1px; height:64px; background:linear-gradient(#E4DCD2,#EFBB3C); }
  .marquee-section{ position:relative; margin-top:56px; }
  .marquee-grid-bg{
    position:absolute; left:0; right:0; top:-150px; bottom:-150px; background:#FBF7F2;
    background-image:linear-gradient(#EFE7DC 1px,transparent 1px),linear-gradient(90deg,#EFE7DC 1px,transparent 1px);
    background-size:56px 56px;
    -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 30%,#000 70%,transparent 100%);
    mask-image:linear-gradient(180deg,transparent 0%,#000 30%,#000 70%,transparent 100%);
    pointer-events:none; z-index:0;
  }
  .marquee-fade{
    position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:70%; height:420%;
    background:radial-gradient(ellipse at 50% 50%,rgba(253,251,249,.9) 0%,rgba(253,251,249,.5) 45%,rgba(253,251,249,0) 75%);
    pointer-events:none; z-index:0;
  }
  .marquee-viewport{ position:relative; z-index:1; overflow:hidden; }
  .marquee-track{ display:flex; width:max-content; animation:marquee 26s linear infinite; padding:26px 0; }
  .shortcuts-section{ position:relative; z-index:1; background:#F7F2EC; overflow:hidden; }
  .shortcuts-card{
    display:flex; flex-direction:column; gap:20px; padding:30px 30px 32px;
    border-radius:24px; background:#FFFFFF; box-shadow:0 10px 26px rgba(74,64,56,.07);
  }
  .topics-section{ position:relative; padding:96px 0 0; overflow:hidden; }
  .topics-inner{ position:relative; z-index:1; max-width:1280px; margin:0 auto; padding:0 32px; }
  .topics-header-row{ display:flex; align-items:flex-end; gap:32px; flex-wrap:wrap; margin-bottom:40px; }
  .topics-title{
    margin:0; font-size:clamp(30px,3.6vw,44px); font-weight:700; letter-spacing:.02em;
    line-height:1.35; color:#4A4038;
  }
  .topics-see-all{
    margin:0 0 6px auto; border:1px solid #E4DCD2; padding:13px 26px;
    font-size:14px; font-weight:500; color:#4A4038;
  }
  .cta-band-section{ max-width:1280px; margin:0 auto; padding:96px 32px 104px; }
  .cta-box{
    position:relative; border-radius:28px; background:#F7F2EC; padding:clamp(40px,6vw,72px);
    display:flex; align-items:end; gap:40px; flex-wrap:wrap; overflow:hidden;
  }
  .cta-glow{
    position:absolute; right:-120px; bottom:-180px; width:520px; height:520px;
    border-radius:999px;
    background:radial-gradient(circle at 50% 50%,rgba(239,187,60,.15) 0%,rgba(239,187,60,.05) 42%,rgba(239,187,60,0) 72%);
    filter:blur(14px); pointer-events:none;
  }
  .cta-text-col{ position:relative; display:flex; flex-direction:column; gap:18px; max-width:30em; }
  .cta-title{ margin:0; font-size:clamp(26px,3.4vw,38px); font-weight:700; line-height:1.5; }
  .cta-eyebrow{
    display:none; font-family:'Jost',sans-serif; font-weight:400; font-size:14px;
    letter-spacing:.28em; color:#645B52;
  }
  .cta-lede{ margin:0; font-size:15px; font-weight:400; line-height:2.05; color:#6F655C; }
  .cta-action-button{
    position:relative; background:#F0C147; color:#3B3111; font-size:16px;
    font-weight:500; padding:17px 40px; margin-left:auto;
  }
  /* 2026-10-06 新增：CTA 區塊「手上的紙本手冊，在這裡也翻得到。」裝飾
     mom&baby.svg，做法比照 #shortcuts 的 .shortcuts-deco-book——原始素材是
     單一連續 path、預設黑色填色，拿掉原本的白底 <rect> 跟對應的 style，
     path 本身改成 stroke:#6E5C34 描邊，捲動進畫面時用 stroke-dasharray/
     dashoffset 由左到右畫出來（邏輯見下方 </body> 前的 inline script，跟
     .shortcuts-deco-book 那段幾乎一樣，只是換一個選擇器，因為只有首頁這一處
     用到，沒有寫進共用 main.js）。.cta-box 本身已經有 overflow:hidden，所以
     可以放心讓裝飾往外bleed出去。.cta-text-col／.cta-action-button 都已經有
     position:relative（見上），所以就算裝飾疊在同一層，文字跟按鈕還是會
     蓋在裝飾線條上面，不會被壓住。
     2026-10-06 再更新：使用者要求改成右上角＋實色填滿——錨點從
     right/bottom 改成 right/top（bleed 位置從右下角改成右上角）、拿掉
     max-width 的尺寸上限（讓裝飾在大螢幕上可以跟著 44% 等比例放大，不被
     380px 卡住）、path 補上 fill:#6E5C34（原本只有描邊 stroke，現在變成
     「實色剪影＋同色描邊」的疊加效果，描邊仍保留、捲動進場動畫不受影響，
     只是現在即使動畫播放中，實色 fill 本身一開始就是完整可見的）；同時
     .cta-box 改成 align-items:end，讓文字／按鈕對齊貼著卡片底部，跟移到
     右上角的裝飾互不干擾、版面更乾淨。 */
  .cta-deco-mombaby{
    position:absolute;
    right:-2rem;
    top:-4rem;
    width:44%;
    height:auto;
    opacity:.5;
    pointer-events:none;
    z-index:0;
  }
  .cta-deco-mombaby path{
    fill:#6E5C34;
    stroke:#6E5C34;
    stroke-width:6;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  /* ---- 以下兩個斷點放在這裡（檔案最後面），不是跟上面「平板：圓角、留白...」
     那兩個斷點合併寫在一起，是因為這裡要覆寫的 .hero- 系列、.cta-deco-mombaby
     基礎規則本身定義在更後面的地方；CSS 在同樣選擇器特異度下是看原始碼順序
     決定誰贏，跟是否包在 @media 裡無關，所以覆寫規則一定要寫在被覆寫的基礎
     規則「後面」才會生效（這裡沒有用 !important，純粹靠把覆寫規則擺在對的
     位置）。 */
  @media (max-width:820px){
    .cta-deco-mombaby{ width:280px; right:-20px; top:-14px; }
  }
  @media (max-width:480px){
    .cta-deco-mombaby{ width:170px; right:-12px; top:-10px; opacity:.4; }

    /* 2026-10-06 新增：手機版 hero 區塊修正。scroll-indicator（「SCROLL DOWN」
       直書文字＋下方線條）維持原本 position:absolute;bottom:0 釘在 .hero-section
       最下緣的寫法不變（使用者要求保留 position:absolute，不要改成 static）。
       原本擔心單欄堆疊後圖片會跟它重疊，但因為下面這批「圖片和文案縮小置中」
       的調整已經讓圖片整體變矮（.hero-img-wrap 縮到 72%/240px），圖片下緣跟
       .hero-section 下緣之間本來就留出足夠空間，scroll-indicator 用原本的
       position:absolute;bottom:0 釘底就不會再疊到圖片（已實測 480/414/375/320px
       四個寬度確認無重疊），所以這裡不需要另外覆寫 .scroll-indicator。 */
    /* 手機版 hero 圖片和文案縮小＋水平置中：單欄堆疊時文字/圖片原本都撐滿
       .hero-grid 分配到的欄寬、左右貼齊留白，這裡讓 .hero-grid 用
       justify-items:center 置中對齊，文案欄位（標題、副標列、按鈕列）跟
       圖片都縮小寬度、水平置中，版面更集中，不會太滿版。 */
    .hero-grid{ grid-template-columns:1fr; justify-items:center; margin-left:0; }
    .hero-text-col{
      align-items:center;
      text-align:center;
      max-width:300px;
    }
    .hero-text-col .row-start-12{ justify-content:center; }
    .hero-cta-row{ justify-content:center; }
    .hero-img-wrap{ width:72%; max-width:240px; }
  }
  /* 2026-10-06 新增：使用者要求「平板狀態下，首頁的 hero 仍維持文案與圖並排的
     顯示」。.hero-grid 原本的 grid-template-columns:repeat(auto-fit,
     minmax(340px,1fr)) 在容器可用寬度小於兩欄各 340px＋48px 間距（約 728px）
     時就會自動塌縮成單欄，實測這個自然塌縮點落在 816/817px 左右，比一般
     認知的「平板」範圍還寬，導致平板寬度（481～820px）也被收成單欄直向堆疊。
     這裡強制在這個斷點下維持兩欄（minmax(0,1fr) 讓欄寬可以縮得比 340px 更窄，
     不受 auto-fit 自然塌縮影響），並比照本檔案前面「次章節/相關單元清單」
     breakdown 記錄過的同一個陷阱，幫兩個子欄位補上 min-width:0——否則窄欄位
     下文案/圖片仍可能依照內容最小寬度把欄位撐爆、造成水平溢出。480px 以下
     （手機）維持上面既有的單欄置中版面不變，不受這個斷點影響。 */
  @media (min-width:481px) and (max-width:820px){
    .hero-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .hero-text-col{ min-width:0; }
    .hero-img-wrap{ min-width:0; }
  }