
  :root{
    --th-primary:#e8472b;     /* 廷皓橘紅 */
    --th-primary-d:#c0381f;
    --th-dark:#1a1d21;
    --th-ink:#212529;
    --th-muted:#6c757d;
    --th-body-bg:#ffffff;
    --th-section-bg:#f8f9fa;
    --th-card-bg:#ffffff;
    --th-border:#e7e7e7;
  }
  /* 深色版：相反色版，沿用橘紅招牌色，背景轉深炭灰 */
  [data-bs-theme="dark"]{
    --th-ink:#e9ecef;
    --th-muted:#9aa3ad;
    --th-body-bg:#121417;
    --th-section-bg:#1a1d21;
    --th-card-bg:#22262b;
    --th-border:#33383f;
  }
  body{font-family:"Noto Sans TC",system-ui,sans-serif;color:var(--th-ink);background:var(--th-body-bg);transition:background .3s,color .3s;}
  h1,h2,h3,.display-font{font-family:"Kanit","Noto Sans TC",sans-serif;letter-spacing:.5px;}
  .text-th{color:var(--th-primary)!important;}
  .bg-th{background-color:var(--th-primary)!important;}
  .bg-th-section{background:var(--th-section-bg)!important;}
  .btn-th{background:var(--th-primary);border:none;color:#fff;font-weight:700;letter-spacing:1px;border-radius:50rem;padding:.75rem 2rem;transition:.2s;text-decoration:none;display:inline-block;}
  .btn-th:hover{background:var(--th-primary-d);color:#fff;transform:translateY(-2px);}

  /* ===== Agency 招牌 navbar：透明 → 捲動變實心深色 ===== */
  #mainNav{
    background:transparent;transition:.35s ease-in-out;padding-top:1.4rem;padding-bottom:1.4rem;
  }
  #mainNav .navbar-brand{display:flex;align-items:center;gap:.55rem;font-family:"Kanit";font-weight:700;color:#fff;}
  #mainNav .navbar-brand img{height:36px;}
  #mainNav .nav-link{
    font-family:"Kanit","Noto Sans TC";font-weight:600;letter-spacing:.6px;
    color:rgba(255,255,255,.85)!important;text-transform:uppercase;font-size:.92rem;
    padding:.5rem 1rem!important;transition:.2s;
  }
  #mainNav .nav-link:hover,#mainNav .nav-link.active,#mainNav .nav-link[aria-current="page"]{color:var(--th-primary)!important;}
  #mainNav.navbar-shrink{
    background:var(--th-dark);box-shadow:0 .25rem 1rem rgba(0,0,0,.3);
    padding-top:.65rem;padding-bottom:.65rem;
  }
  #mainNav.navbar-shrink .navbar-brand{color:var(--th-primary);}
  /* logo 依主題切換：淺底用深色 logo，深底/透明 navbar 用淺色 logo */
  .logo-light{display:none;} .logo-dark{display:inline;}
  /* navbar 永遠深底（透明覆蓋深 hero / shrink 深色），所以恆用 dark logo */
  .theme-toggle{
    width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.5);
    background:transparent;color:#fff;font-size:1.1rem;display:inline-flex;align-items:center;
    justify-content:center;transition:.2s;cursor:pointer;flex:0 0 auto;
  }
  .theme-toggle:hover{background:var(--th-primary);border-color:var(--th-primary);}

  /* ===== Masthead hero ===== */
  .masthead{
    position:relative;color:#fff;text-align:center;padding:14rem 0 11rem;
    background:linear-gradient(rgba(15,17,20,.78),rgba(15,17,20,.86)),
               url('/demos/assets/img/ir-radiators.jpg') center/cover no-repeat;
  }
  .masthead::after{
    content:"";position:absolute;bottom:-1px;left:0;width:100%;height:90px;
    background:var(--th-body-bg);clip-path:polygon(0 100%,100% 0,100% 100%);transition:background .3s;
  }
  .masthead .subheading{font-family:"Noto Sans TC";font-weight:500;letter-spacing:2px;font-size:1.15rem;margin-bottom:1.4rem;color:#fff;}
  .masthead .heading{font-family:"Kanit","Noto Sans TC";font-weight:700;font-size:clamp(2rem,5vw,3.5rem);line-height:1.2;margin-bottom:.5rem;}
  .masthead .lead-line{color:rgba(255,255,255,.75);max-width:680px;margin:1.4rem auto 2rem;}

  /* 內頁小型 hero */
  .page-hero{
    position:relative;color:#fff;text-align:center;padding:10rem 0 5rem;
    background:linear-gradient(rgba(15,17,20,.8),rgba(15,17,20,.88)),
               url('/demos/assets/img/ir-radiators.jpg') center/cover no-repeat;
  }
  .page-hero h1{font-family:"Kanit","Noto Sans TC";font-weight:700;font-size:clamp(1.9rem,4.5vw,3rem);}
  .page-hero .sub{color:rgba(255,255,255,.7);letter-spacing:2px;}

  /* ===== Section title ===== */
  .section-heading{font-family:"Kanit","Noto Sans TC";font-weight:700;font-size:2.4rem;margin-bottom:.25rem;}
  .section-subheading{font-style:italic;color:var(--th-muted);margin-bottom:3.5rem;font-size:1.05rem;}

  /* ===== Services 圓形 icon ===== */
  .svc-icon{
    width:96px;height:96px;border-radius:50%;background:var(--th-primary);color:#fff;font-size:2.4rem;
    display:flex;align-items:center;justify-content:center;margin:0 auto 1.4rem;
    box-shadow:0 .6rem 1.5rem rgba(232,71,43,.35);transition:.25s;
  }
  .svc-item:hover .svc-icon{transform:translateY(-6px) rotate(-4deg);}
  .svc-item h4{font-family:"Kanit","Noto Sans TC";font-weight:700;margin-bottom:.5rem;}
  .svc-item p{color:var(--th-muted);font-size:.95rem;}

  /* ===== Stats 條 ===== */
  .stat-strip{background:var(--th-dark);color:#fff;}
  .stat-num{font-family:"Kanit";font-weight:700;font-size:2.2rem;color:var(--th-primary);line-height:1;}
  .stat-lbl{color:rgba(255,255,255,.7);font-size:.92rem;margin-top:.4rem;}

  /* ===== Portfolio 方格 + hover 疊色 ===== */
  .portfolio-box{position:relative;display:block;overflow:hidden;border-radius:.4rem;}
  .portfolio-box img{width:100%;height:260px;object-fit:cover;transition:transform .4s ease;}
  .portfolio-box:hover img{transform:scale(1.08);}
  .portfolio-box .portfolio-box-caption{
    position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
    text-align:center;color:#fff;opacity:0;background:rgba(232,71,43,.9);transition:opacity .3s ease;padding:1rem;
  }
  .portfolio-box:hover .portfolio-box-caption{opacity:1;}
  .portfolio-box .project-icon{font-size:2.2rem;margin-bottom:.5rem;}
  .portfolio-box .project-name{font-family:"Kanit","Noto Sans TC";font-weight:700;font-size:1.2rem;}
  .portfolio-box .project-cat{font-size:.85rem;text-transform:uppercase;letter-spacing:1px;opacity:.85;}

  /* ===== Timeline ===== */
  .timeline{position:relative;list-style:none;padding:0;margin:0;}
  .timeline::before{content:"";position:absolute;top:0;bottom:0;left:40px;width:2px;background:var(--th-border);}
  .timeline > li{position:relative;margin-bottom:3rem;min-height:120px;}
  .timeline .tl-image{
    position:absolute;left:0;width:80px;height:80px;border-radius:50%;background:var(--th-primary);color:#fff;
    display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;z-index:2;
    box-shadow:0 .4rem 1rem rgba(0,0,0,.15);font-family:"Kanit";
  }
  .timeline .tl-image span{font-size:1.1rem;font-weight:700;line-height:1;}
  .timeline .tl-image small{font-size:.62rem;letter-spacing:1px;}
  .timeline .tl-panel{margin-left:110px;}
  .timeline .tl-panel h4{font-family:"Kanit","Noto Sans TC";font-weight:700;margin-bottom:.3rem;}
  .timeline .tl-panel .sub{color:var(--th-primary);font-weight:600;font-size:.9rem;margin-bottom:.5rem;}
  .timeline .tl-panel p{color:var(--th-muted);margin-bottom:0;}
  @media(min-width:992px){
    .timeline::before{left:50%;margin-left:-1px;}
    .timeline > li{min-height:160px;}
    .timeline .tl-image{left:50%;width:100px;height:100px;margin-left:-50px;}
    .timeline .tl-panel{width:44%;margin-left:0;text-align:right;}
    .timeline > li:nth-child(even) .tl-panel{margin-left:56%;text-align:left;}
  }

  /* ===== cards ===== */
  .why-card{border:0;border-radius:.6rem;background:var(--th-card-bg);box-shadow:0 .4rem 1.2rem rgba(0,0,0,.06);height:100%;transition:.25s;}
  .why-card:hover{transform:translateY(-6px);box-shadow:0 .8rem 1.8rem rgba(0,0,0,.12);}
  .why-card .bi{font-size:2rem;color:var(--th-primary);}

  .spec-card{background:var(--th-card-bg);border:1px solid var(--th-border);border-radius:.6rem;height:100%;transition:.25s;overflow:hidden;}
  .spec-card:hover{transform:translateY(-5px);box-shadow:0 .7rem 1.6rem rgba(0,0,0,.12);}
  .spec-card .spec-icon{width:64px;height:64px;border-radius:50%;background:var(--th-primary);color:#fff;font-size:1.7rem;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;}
  .spec-card h5{font-family:"Kanit","Noto Sans TC";font-weight:700;}
  .spec-card .text-muted{color:var(--th-muted)!important;}

  /* ===== Contact ===== */
  .contact{
    background:linear-gradient(rgba(15,17,20,.9),rgba(15,17,20,.94)),
               url('/demos/assets/img/uv-lamp-glow.webp') center/cover no-repeat;color:#fff;
  }
  .contact .social a{
    width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.4);color:#fff;
    display:inline-flex;align-items:center;justify-content:center;font-size:1.2rem;transition:.2s;text-decoration:none;
  }
  .contact .social a:hover{background:var(--th-primary);border-color:var(--th-primary);}
  footer.copyright{background:#0e1013;color:rgba(255,255,255,.6);font-size:.85rem;}
  footer.copyright a{color:rgba(255,255,255,.75);text-decoration:none;}
  footer.copyright a:hover{color:var(--th-primary);}
  .price-pill{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:.5rem;}

  .form-control,.form-select{background:var(--th-card-bg);border-color:var(--th-border);color:var(--th-ink);}
  .form-control:focus,.form-select:focus{background:var(--th-card-bg);color:var(--th-ink);border-color:var(--th-primary);box-shadow:0 0 0 .2rem rgba(232,71,43,.2);}
