/* Bootstrap 5.3.3 integration: preserve the established industrial theme. */
body{overflow-wrap:break-word}
img,video{max-width:100%;height:auto}
main,.layout>*,.cards>*,.formgrid>*,.two>*,.detail-grid>*{min-width:0}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible{outline:3px solid #16a6c9;outline-offset:3px}
.btn{line-height:1.5}
.menu-toggle,.category-toggle{display:none;border:1px solid #bacbd4;border-radius:8px;padding:10px 12px;min-height:44px;font:inherit;color:#12365a;background:#fff;white-space:nowrap}
.site-menu{flex:1;min-width:0}
.site-menu.collapse,.product-menu.collapse{display:block}
body.page-home .site-menu{flex:0 1 auto}
body.page-home .site-navbar{padding:0}
body.page-home .diagnosis-modal{height:100%;overflow-y:auto}
body.page-home .modalbox{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
body.page-home .close{min-width:44px;min-height:44px}
body.page-home .modalbox h2{padding-right:24px}
body.page-inner .card{display:block}
body.page-inner .card .btn.secondary{color:#087a9a}
body.page-inner .table-responsive{max-width:100%}
body.page-inner .table-responsive table{min-width:540px}
body.page-inner .article-body{padding-top:32px;overflow-wrap:anywhere}
body.page-admin .table-responsive{max-width:100%}
body.page-admin input,body.page-admin select,body.page-admin textarea{min-width:0;max-width:100%}
@media(max-width:1199.98px){
.menu-toggle{display:block;margin-left:auto}
.site-menu{flex-basis:100%!important;width:100%}
.site-menu.collapse:not(.show){display:none}
.site-menu.show{display:block}
body.page-inner .header .wrap,body.page-home .site-navbar .wrap{flex-wrap:wrap;gap:12px;padding-top:12px;padding-bottom:12px}
body.page-home .site-navbar{height:auto;min-height:72px}
body.page-home .links,body.page-inner .nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:4px;max-height:none;overflow:visible;padding:8px 0}
body.page-home .links a,body.page-inner .nav-link{display:block;flex:0 0 auto;width:100%;box-sizing:border-box;padding:12px 14px;min-height:44px;border-radius:8px}
/* Let the expanded mobile menu scroll with the page on short screens. */
body.page-inner .header,body.page-home .site-navbar{position:relative;top:auto}
body.page-admin .admin-top{flex-direction:row;flex-wrap:wrap;align-items:center;padding:14px 18px;gap:12px}
body.page-admin .admin-top nav{flex-direction:column;max-height:60dvh;overflow:auto}
body.page-admin .admin-top nav a{min-height:44px}
}
@media(max-width:991.98px){
body.page-inner .layout{grid-template-columns:minmax(0,1fr);gap:24px;padding-top:24px}
body.page-inner .side-tree{position:static}
body.page-inner .side-title{display:none}
.category-toggle{display:block;width:100%;border:0;text-align:left;background:#0a1930;color:#fff;border-radius:0;padding:14px 18px}
.product-menu.collapse:not(.show){display:none}
.product-menu.show{display:block;max-height:60dvh;overflow-y:auto}
body.page-inner .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
body.page-home .hero .wrap,body.page-home .aigrid,body.page-home .centergrid{grid-template-columns:minmax(0,1fr)}
body.page-home .hero .wrap{padding-top:48px;padding-bottom:48px;gap:32px}
body.page-home .hero-features{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}
body.page-home .hero{min-height:0}
body.page-home .visual{height:320px}
body.page-home .hf{padding:12px}
body.page-home .head{display:block}
body.page-home .head p{margin-top:16px}
}
@media(max-width:575.98px){
body.page-inner .wrap,body.page-inner .header .wrap,body.page-inner .hero .wrap{padding-left:16px;padding-right:16px}
body.page-inner .top .wrap{justify-content:center;padding:8px 12px;font-size:11px}
body.page-inner .top span:last-child{display:none}
body.page-inner .hero .wrap{padding-top:34px;padding-bottom:34px}
body.page-inner h1{font-size:28px;line-height:1.4;overflow-wrap:anywhere}
body.page-inner h2{font-size:24px}
body.page-inner .cards,body.page-inner .funnel,body.page-inner .formgrid{grid-template-columns:minmax(0,1fr)}
body.page-inner .cta{flex-direction:column;align-items:stretch;padding:22px}
body.page-inner .btn{white-space:normal;min-height:44px}
body.page-inner input,body.page-inner select,body.page-inner textarea{font-size:16px;min-width:0}
body.page-inner .footer .wrap{gap:16px}
body.page-home .hero h1{font-size:clamp(32px,9.5vw,42px)}
body.page-home .hero .btn{display:block;width:100%;margin:0 0 12px;white-space:normal}
body.page-home .hero-features,body.page-home .problemgrid,body.page-home .capgrid,body.page-home .ailist,body.page-home .boxes,body.page-home .choices{grid-template-columns:minmax(0,1fr)}
body.page-home .hf{padding-left:0;border-right:0;border-bottom:1px solid #ffffff29}
body.page-home .aipanel{padding:24px}
body.page-home .aipanel h3{font-size:26px}
body.page-home .center h2,body.page-home .ctabox h2{font-size:32px}
body.page-home .modalbox{padding:24px 18px}
body.page-home .modalbox h2{font-size:24px}
body.page-home .diagnosis-modal{padding:12px}
body.page-home .hud,body.page-home .thermal-label{font-size:9px;letter-spacing:0}
body.page-admin .admin-wrap{padding:16px 12px}
body.page-admin .panel{padding:16px}
body.page-admin .panel-head,body.page-admin .form-actions{flex-wrap:wrap;gap:12px}
body.page-admin .panel h2{font-size:22px}
body.page-admin .login-card{padding:24px;overflow-wrap:anywhere}
body.page-admin .login-card h1{font-size:26px}
body.page-admin .detail-grid{overflow-wrap:anywhere}
body.page-admin input,body.page-admin textarea,body.page-admin select{font-size:16px}
}

/* V19 全站頁尾聯絡資訊 */
body.page-home footer .site-footer-contact,body.page-inner .footer .site-footer-contact{display:block;padding-top:28px;padding-bottom:28px;font-size:14px;color:#d5e4ec}
body.page-home footer .site-footer-contact h2,body.page-inner .footer .site-footer-contact h2{font-size:24px;font-weight:700;line-height:1.4;letter-spacing:normal;margin:0 0 16px;color:#fff}
.site-footer-contact address{font-size:14px;font-style:normal;line-height:1.9;margin:0;overflow-wrap:anywhere}
.site-footer-contact .footer-contact-numbers{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:baseline;column-gap:24px}
.site-footer-contact .footer-contact-numbers>span{white-space:nowrap}
body.page-home footer .site-footer-contact a,body.page-inner .footer .site-footer-contact a{color:#8ce0f0;text-decoration:underline;text-underline-offset:3px;display:inline;padding:0;font-size:inherit;line-height:inherit}
body.page-home footer .site-footer-contact a:hover,body.page-inner .footer .site-footer-contact a:hover{color:#fff}
@media(max-width:575.98px){.site-footer-contact .footer-contact-numbers{column-gap:12px}}

/* V20 首頁與所有內頁共用頁尾 */
body.page-home footer.site-footer,body.page-inner footer.site-footer{background:#04101a;color:#8ea4af;padding:32px 0;margin:0;font-size:14px;line-height:1.75}
body.page-home footer.site-footer .wrap,body.page-inner footer.site-footer .wrap{width:min(1180px,calc(100% - 40px));max-width:1180px;margin:0 auto;padding:0;display:block}
body.page-home footer.site-footer .site-footer-contact,body.page-inner footer.site-footer .site-footer-contact{padding:28px 0;color:#d5e4ec;font-size:14px;border-bottom:1px solid rgba(255,255,255,.18)}
body.page-home footer.site-footer .site-footer-contact h2,body.page-inner footer.site-footer .site-footer-contact h2{font-size:24px;font-weight:700;line-height:1.4;letter-spacing:normal;margin:0 0 16px;color:#fff}
body.page-home footer.site-footer .site-footer-bottom,body.page-inner footer.site-footer .site-footer-bottom{padding:18px 0 4px;font-size:14px;line-height:1.75;white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:575.98px){body.page-home footer.site-footer .wrap,body.page-inner footer.site-footer .wrap{width:calc(100% - 28px)}}

/* V21 頁尾版權靠左，服務與規格說明靠右 */
body.page-home footer.site-footer .wrap.site-footer-bottom,
body.page-inner footer.site-footer .wrap.site-footer-bottom {
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:baseline;
  gap:12px 24px;
  font-size:14px;
  line-height:1.75;
  white-space:normal;
  overflow:visible;
}
.site-footer-bottom .footer-copyright{text-align:left}
.site-footer-bottom .footer-description{text-align:right;min-width:0}
@media(max-width:767.98px){
  body.page-home footer.site-footer .wrap.site-footer-bottom,
  body.page-inner footer.site-footer .wrap.site-footer-bottom{
    grid-template-columns:minmax(0,1fr);
  }
}

/* V22 高溫產品圖片：位於標題下方，等比例縮放至卡片內 */
body.page-high-temp .cards .card{min-width:0;overflow:hidden}
body.page-high-temp .cards .card .high-temp-product-image{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;align-self:center;flex-shrink:0;border-radius:8px}

/* V23 產品圖片放大檢視 */
body.page-high-temp .cards .card .product-image-zoom{display:block;width:100%;max-width:100%;min-width:0;cursor:zoom-in;border-radius:8px;overflow:hidden}
.product-image-zoom:focus-visible{outline:3px solid #16a6c9;outline-offset:3px}
body.page-high-temp .product-viewer{width:min(1500px,94vw);max-width:94vw;max-height:94vh;max-height:94dvh;margin:auto;padding:0;border:0;border-radius:12px;background:#fff;color:#182533;overflow:auto;box-shadow:0 16px 80px #0008}
.product-viewer::backdrop{background:rgba(0,0,0,.82)}
.product-viewer .product-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #dce4eb}
body.page-high-temp .product-viewer h2{margin:0;font-size:18px;line-height:1.5}
.product-viewer-close{flex:0 0 auto;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #dce4eb;border-radius:8px;background:#f4f7fa;color:#182533;font:inherit;cursor:pointer}
body.page-high-temp .product-viewer .product-viewer-image{display:block;width:100%;height:auto;max-height:78vh;max-height:78dvh;object-fit:contain;background:#f4f7fa}

/* V24 左側選單：目前頁面 */
body.page-inner .side-tree a.side-main.active,
body.page-inner .side-tree a.side-sub-link.active,
body.page-inner .side-tree a[aria-current="page"]{color:#ff7007;font-weight:800}

/* 防爆型產品圖片燈箱：沿用 high-temp.html 效果 */
body.page-explosion-proof .product-viewer{width:min(1500px,94vw);max-width:94vw;max-height:94vh;max-height:94dvh;margin:auto;padding:0;border:0;border-radius:12px;background:#fff;color:#182533;overflow:auto;box-shadow:0 16px 80px #0008}
body.page-explosion-proof .product-viewer h2{margin:0;font-size:18px;line-height:1.5}
body.page-explosion-proof .product-viewer .product-viewer-image{display:block;width:100%;height:auto;max-height:78vh;max-height:78dvh;object-fit:contain;background:#f4f7fa}
@media(max-width:560px){body.page-explosion-proof .explosion-proof-product-image{height:auto;max-height:260px}}


/* 整合系統圖片燈箱：沿用 high-temp.html 效果 */

/* V9 applications：圖片排版與 high-temp.html 完全一致 */
body.page-applications .cards .card{min-width:0;overflow:hidden}
body.page-applications .cards .card .high-temp-product-image{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;align-self:center;flex-shrink:0;border-radius:8px}
body.page-applications .cards .card .product-image-zoom{display:block;width:100%;max-width:100%;min-width:0;cursor:zoom-in;border-radius:8px;overflow:hidden}
body.page-applications .product-viewer{width:min(1500px,94vw);max-width:94vw;max-height:94vh;max-height:94dvh;margin:auto;padding:0;border:0;border-radius:12px;background:#fff;color:#182533;overflow:auto;box-shadow:0 16px 80px #0008}
body.page-applications .product-viewer h2{margin:0;font-size:18px;line-height:1.5}
body.page-applications .product-viewer .product-viewer-image{display:block;width:100%;height:auto;max-height:78vh;max-height:78dvh;object-fit:contain;background:#f4f7fa}


/* Central monitoring image viewer - matches high-temp.html */
body.page-central .product-viewer{width:min(1500px,94vw);max-width:94vw;max-height:94vh;max-height:94dvh;margin:auto;padding:0;border:0;border-radius:12px;background:#fff;color:#182533;overflow:auto;box-shadow:0 16px 80px #0008}
body.page-central .product-viewer h2{margin:0;font-size:18px;line-height:1.5}
body.page-central .product-viewer .product-viewer-image{display:block;width:100%;height:auto;max-height:78vh;max-height:78dvh;object-fit:contain;background:#f4f7fa}
.language-switch{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:8px 0;font-size:13px;}
.language-switch a{padding:5px 10px;border:1px solid #dce4eb;border-radius:5px;line-height:1.5;}
.language-switch a[aria-current=page]{color:#fff;background:#04347f;border-color:#04347f;}
