
  :root{
    --th-ink:#1a1f2b;
    --th-blue:#10243f;
    --th-red:#e23b2e;
    --th-amber:#ff7a18;
    --th-paper:#f4f1ea;

    /* 主題語意變數(淺色) */
    --th-bg:#f4f1ea;
    --th-text:#1a1f2b;
    --th-muted:#5b6473;
    --th-surface:#ffffff;
    --th-surface-2:#fbf9f4;
    --th-border:rgba(16,36,63,.08);
    --th-header-bg:rgba(255,255,255,.92);
    --th-header-text:#10243f;
    --th-table-head:#10243f;
    --th-shadow:rgba(16,36,63,.12);
  }
  /* 深色主題覆寫:把米白底翻成深藍夜色,紅/琥珀保留作招牌色 */
  [data-bs-theme="dark"]{
    --th-bg:#0c121d;
    --th-text:#eef2f8;
    --th-muted:#9aa6b8;
    --th-surface:#141d2e;
    --th-surface-2:#101725;
    --th-border:rgba(255,255,255,.10);
    --th-header-bg:rgba(12,18,29,.92);
    --th-header-text:#eef2f8;
    --th-table-head:#1c2b45;
    --th-shadow:rgba(0,0,0,.5);
  }

  *{ -webkit-tap-highlight-color: transparent; }
  body{
    font-family:"Noto Sans TC", system-ui, "Segoe UI", sans-serif;
    color:var(--th-text);
    background:var(--th-bg);
    overflow-x:hidden;
    transition:background .25s ease, color .25s ease;
  }
  h1,h2,h3,.display-1,.display-3{ font-weight:900; letter-spacing:.02em; }
  .text-th-red{ color:var(--th-red); }
  .section-pad{ padding:4.5rem 0; }

  /* ===== 共用 Header(固定頂欄,4 頁一致) ===== */
  .sp-header{
    position:sticky; top:0; z-index:1030;
    background:var(--th-header-bg);
    backdrop-filter:saturate(160%) blur(10px);
    border-bottom:1px solid var(--th-border);
  }
  .sp-header .navbar-brand{ display:flex; align-items:center; gap:.6rem; font-weight:900; color:var(--th-header-text); }
  .sp-header .navbar-brand .logo-img{ height:38px; }
  /* logo 依主題切換顯示 */
  .logo-dark{ display:none; }
  [data-bs-theme="dark"] .logo-light{ display:none; }
  [data-bs-theme="dark"] .logo-dark{ display:inline-block; }
  .sp-header .nav-link{ font-weight:700; color:var(--th-header-text); opacity:.78; padding-inline:.95rem; }
  .sp-header .nav-link:hover{ opacity:1; color:var(--th-red); }
  .sp-header .nav-link[aria-current="page"]{ opacity:1; color:var(--th-red); border-bottom:3px solid var(--th-red); }
  .theme-toggle{
    width:42px; height:42px; border-radius:50%;
    border:1px solid var(--th-border);
    background:transparent; color:var(--th-header-text);
    font-size:1.15rem; display:flex; align-items:center; justify-content:center;
    transition:transform .2s ease, background .2s ease;
  }
  .theme-toggle:hover{ transform:scale(1.08); background:var(--th-red); color:#fff; border-color:var(--th-red); }
  .theme-toggle .bi-moon-stars-fill{ display:none; }
  [data-bs-theme="dark"] .theme-toggle .bi-sun-fill{ display:none; }
  [data-bs-theme="dark"] .theme-toggle .bi-moon-stars-fill{ display:inline-block; }

  /* 手機收合選單面板 */
  .sp-collapse .nav-link[aria-current="page"]{ border-bottom:0; }
  @media (max-width:991.98px){
    .sp-collapse{ padding-top:.5rem; }
    .sp-header .nav-link{ padding:.6rem .2rem; }
  }

  /* ===== 首屏 Hero ===== */
  .sp-hero{
    position:relative;
    min-height:calc(100vh - 66px);
    display:flex; align-items:center; justify-content:center;
    text-align:center; color:#fff;
    background:
      linear-gradient(rgba(8,14,26,.72), rgba(8,14,26,.80)),
      url("/demos/assets/img/ir-radiators.jpg") center/cover no-repeat fixed;
  }
  .sp-hero .eyebrow{ letter-spacing:.5em; text-transform:uppercase; font-size:.8rem; font-weight:700; color:var(--th-amber); }
  .sp-hero h1{ font-size:clamp(2.2rem,6vw,4.4rem); line-height:1.1; text-shadow:0 .3rem 1.6rem rgba(0,0,0,.5); }
  .sp-hero .lead{ color:rgba(255,255,255,.88); max-width:680px; margin-inline:auto; }
  .sp-hero .scroll-cue{ position:absolute; bottom:1.5rem; left:50%; transform:translateX(-50%); color:rgba(255,255,255,.7); font-size:1.6rem; animation:bob 1.8s infinite; }
  @keyframes bob{ 0%,100%{ transform:translate(-50%,0);} 50%{ transform:translate(-50%,10px);} }

  /* ===== 頁首小 banner(內頁用) ===== */
  .sp-pagehead{
    position:relative; color:#fff; text-align:center;
    padding:5rem 1rem 4rem;
    background:
      linear-gradient(rgba(8,14,26,.74), rgba(8,14,26,.82)),
      url("/demos/assets/img/ir-closeup.webp") center/cover no-repeat;
  }
  .sp-pagehead h1{ font-size:clamp(1.9rem,4.5vw,3rem); text-shadow:0 .3rem 1.2rem rgba(0,0,0,.5); }
  .sp-pagehead .eyebrow{ letter-spacing:.45em; text-transform:uppercase; font-size:.75rem; font-weight:700; color:var(--th-amber); }
  .sp-pagehead .breadcrumb{ justify-content:center; margin:0; }
  .sp-pagehead .breadcrumb a{ color:rgba(255,255,255,.85); text-decoration:none; }
  .sp-pagehead .breadcrumb-item.active{ color:var(--th-amber); }
  .sp-pagehead .breadcrumb-item+.breadcrumb-item::before{ color:rgba(255,255,255,.5); }

  /* ===== Stat 條 ===== */
  .sp-stats{ background:var(--th-blue); color:#fff; }
  .sp-stats .num{ font-size:2rem; font-weight:900; color:var(--th-amber); }
  .sp-stats .lbl{ font-size:.85rem; color:rgba(255,255,255,.7); }

  /* ===== 交錯大圖 callout ===== */
  .callout{ position:relative; }
  .callout .img-col{ min-height:340px; background-size:cover; background-position:center; }
  @media (min-width:992px){ .callout .img-col{ min-height:480px; } }
  .callout .text-col{ padding:3rem 2rem; }
  @media (min-width:992px){ .callout .text-col{ padding:4.5rem 3.5rem; } }
  .callout .tag{
    display:inline-flex; align-items:center; gap:.4rem;
    font-size:.72rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
    padding:.35rem .8rem; border-radius:999px;
    background:rgba(226,59,46,.12); color:var(--th-red); margin-bottom:1rem;
  }
  .callout h2{ font-size:clamp(1.6rem,3vw,2.4rem); }
  .callout p{ color:var(--th-muted); }
  .callout .feat-list li{ margin-bottom:.5rem; }
  .callout .feat-list i{ color:var(--th-red); margin-right:.5rem; }
  .callout.tone-paper{ background:var(--th-surface-2); }
  .callout.tone-white{ background:var(--th-surface); }

  /* ===== 深色 CTA 橫幅 ===== */
  .sp-cta-band{
    color:#fff;
    background:
      linear-gradient(rgba(12,14,22,.86), rgba(12,14,22,.92)),
      url("/demos/assets/img/ir-closeup.webp") center/cover no-repeat;
    padding:5rem 1rem; text-align:center;
  }
  .sp-cta-band h2{ font-size:clamp(1.8rem,4vw,3rem); }

  /* ===== 服務卡 ===== */
  .svc-card{
    background:var(--th-surface); border:1px solid var(--th-border);
    border-radius:1rem; padding:1.75rem; height:100%;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .svc-card:hover{ transform:translateY(-6px); box-shadow:0 1rem 2rem var(--th-shadow); }
  .svc-card h3{ color:var(--th-text); }
  .svc-card p{ color:var(--th-muted); }
  .svc-card .ic{
    width:54px; height:54px; border-radius:.9rem;
    display:flex; align-items:center; justify-content:center;
    font-size:1.5rem; color:#fff; background:var(--th-blue); margin-bottom:1rem;
  }
  [data-bs-theme="dark"] .svc-card .ic{ background:var(--th-red); }

  /* 區段抬頭 tag(淺/深底通用) */
  .sec-tag{
    display:inline-flex; align-items:center; gap:.4rem;
    font-size:.72rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
    padding:.35rem .8rem; border-radius:999px;
    background:rgba(226,59,46,.12); color:var(--th-red);
  }
  .lead-muted{ color:var(--th-muted); }

  /* ===== 價目表 ===== */
  .price-table{ background:var(--th-surface); border-radius:1rem; overflow:hidden; border:1px solid var(--th-border); color:var(--th-text); }
  .price-table thead{ background:var(--th-table-head); color:#fff; }
  .price-table tbody td{ color:var(--th-text); }

  /* ===== Footer ===== */
  .sp-footer{ background:#0c121d; color:rgba(255,255,255,.72); text-align:center; padding:3.5rem 1rem 2.5rem; }
  .sp-footer .footer-tel{ color:#fff; font-weight:900; font-size:1.6rem; text-decoration:none; }
  .sp-footer .footer-tel:hover{ color:var(--th-amber); }
  .sp-footer a.flink{ color:rgba(255,255,255,.72); text-decoration:none; }
  .sp-footer a.flink:hover{ color:var(--th-amber); }
  .sp-social{ display:flex; gap:.85rem; justify-content:center; flex-wrap:wrap; margin:1.5rem 0; }
  .sp-social a{
    width:50px; height:50px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:1.25rem; text-decoration:none;
    background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
    transition:all .2s ease;
  }
  .sp-social a:hover{ background:var(--th-red); border-color:var(--th-red); transform:translateY(-4px); }
