/* 全站浮動鈕＋手機選單修正（2026-11-11）
   電腦：右下「免費諮詢」疊在「免費報價」上方；手機（≤768px）合成一顆，點開再選 */
.nh-fab{ position:fixed; right:28px; z-index:1000; display:flex; align-items:center; gap:12px;
  background:#fff; color:#31504A; border:none; border-radius:50px; padding:9px 22px 9px 9px;
  box-shadow:0 12px 34px rgba(49,80,74,.3); font-family:inherit; cursor:pointer; text-decoration:none;
  transition:transform .25s, box-shadow .25s; }
.nh-fab:hover{ transform:translateY(-3px) scale(1.03); box-shadow:0 16px 40px rgba(49,80,74,.42); }
.nh-fab .qb-ic{ width:46px; height:46px; border-radius:50%; flex:0 0 auto; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#CBB07E,#A9843F); box-shadow:0 2px 8px rgba(169,132,63,.5); }
.nh-fab .qb-ic.ic-green{ background:linear-gradient(135deg,#75A79A,#587D73); box-shadow:0 2px 8px rgba(88,125,115,.5); }
.nh-fab .qb-tx{ display:flex; flex-direction:column; align-items:flex-start; line-height:1.18; text-align:left; }
.nh-fab .qb-tx b{ font-size:15px; font-weight:800; color:#31504A; }
.nh-fab .qb-tx small{ font-size:11px; color:#8a8882; letter-spacing:.02em; }
/* 電腦版兩顆同寬、只留標題（2026-11-11 本人要求） */
#nhConsultFab, #nhQuoteFab, #quoteBtn{ width:172px !important; box-sizing:border-box; }
#quoteBtn .qb-tx small{ display:none !important; }
#nhConsultFab{ bottom:100px; }
/* 手機合一按鈕：展開時變成「✕ 關閉」 */
#nhFabMenu .ic-x, #nhFabMenu .lbl-close{ display:none; }
#nhFabMenu[aria-expanded="true"] .ic-x, #nhFabMenu[aria-expanded="true"] .lbl-close{ display:flex; }
#nhFabMenu[aria-expanded="true"] .qb-ic svg:not(.ic-x), #nhFabMenu[aria-expanded="true"] .lbl-open{ display:none; }
#nhFabMenu[aria-expanded="true"] .qb-ic{ background:#8a8882; box-shadow:none; }
#nhQuoteFab{ bottom:28px; }
#nhFabMenu, #nhFabPanel{ display:none; }
#toTopBtn{ bottom:calc(172px + env(safe-area-inset-bottom, 0px)) !important; }
nav.nav-open ~ .nh-fab, nav.nav-open ~ #nhFabPanel{ display:none !important; }

/* 手機直式，或橫式手機（高度矮、觸控）都合成一顆 */
@media (max-width:768px), (max-height:500px) and (pointer:coarse){
  #nhConsultFab, #nhQuoteFab, #quoteBtn{ display:none !important; }
  #nhFabMenu{ display:flex; right:18px; bottom:calc(18px + env(safe-area-inset-bottom, 0px)); }
  #toTopBtn{ bottom:calc(100px + env(safe-area-inset-bottom, 0px)) !important; }
  #nhFabPanel.open{ display:flex; flex-direction:column; gap:10px; position:fixed; right:18px; z-index:1001;
    bottom:calc(92px + env(safe-area-inset-bottom, 0px)); }
  #nhFabPanel a{ display:block; background:#fff; color:#31504A; font-weight:800; font-size:15px; text-decoration:none;
    padding:13px 22px; border-radius:50px; box-shadow:0 8px 24px rgba(49,80,74,.28); text-align:right; }
  #nhFabPanel a small{ display:block; font-size:11px; font-weight:400; color:#8a8882; }
}
/* 2026-11-12 手機橫式（螢幕矮）：浮動鈕只留圓形圖示，少擋內容；避開瀏海與圓角 */
@media (max-height:500px) and (orientation:landscape){
  #nhFabMenu{ padding:6px !important; right:calc(14px + env(safe-area-inset-right, 0px)); bottom:calc(12px + env(safe-area-inset-bottom, 0px)); }
  #nhFabMenu .qb-tx{ display:none !important; }
  #nhFabPanel.open{ right:calc(14px + env(safe-area-inset-right, 0px)); bottom:calc(72px + env(safe-area-inset-bottom, 0px)); }
  #toTopBtn{ bottom:calc(72px + env(safe-area-inset-bottom, 0px)) !important; right:calc(14px + env(safe-area-inset-right, 0px)) !important; }
}
/* 漢堡選單在 1024px 以下出現（含橫式手機、平板），修正一起套用 */
@media (max-width:1024px){
  /* 手機選單：可捲動、不被瀏覽器下方列擋住 */
  nav.nav-open .nav-links{ max-height:calc(100vh - var(--nav-h, 70px)); max-height:calc(100dvh - var(--nav-h, 70px));
    overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
    padding-bottom:calc(32px + env(safe-area-inset-bottom, 0px)) !important; }
  /* 首頁的漢堡鈕在 nav 外面，打開時一樣變成 ✕ */
  nav.nav-open ~ .nav-burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  nav.nav-open ~ .nav-burger span:nth-child(2){ opacity:0; }
  nav.nav-open ~ .nav-burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
}

/* 2026-11-11 本人要求：拿掉標題旁／上方的英文小標（對照「AI 做的網頁 7 個老毛病」第 1、2 條）。
   只隱藏、不刪 HTML，要恢復就刪掉這條 */
html body .section-label.section-label, html body .section-eyebrow.section-eyebrow, html body .article-eyebrow.article-eyebrow, html body .eyebrow.eyebrow, html body .faq-section-label.faq-section-label, html body #contact .sec-head > .section-label{ display:none !important; }
