/* 正茂科技官網：全站共用（導覽列、手機選單、頁尾、表單、燈箱） */
:root{--jm-font-zh:'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;--jm-font-en:'Inter',system-ui,-apple-system,sans-serif}
html{scroll-behavior:smooth}

/* ===== 導覽列 ===== */
.site-nav{position:sticky;top:0;z-index:100;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);font-family:var(--jm-font-zh);transition:background .3s,border-color .3s}
.site-nav--dark{background:rgba(10,30,61,.78);border-bottom:1px solid rgba(255,255,255,.08)}
.site-nav--dark.is-scrolled{background:rgba(10,30,61,.92)}
.site-nav--light{background:rgba(255,255,255,.94);border-bottom:1px solid #e1e8ed}
.site-nav__inner{max-width:1200px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;gap:24px}
.site-nav__logo{display:flex;align-items:center;flex-shrink:0}
.site-nav__logo img{height:36px;width:auto;display:block}
.site-nav__links{display:flex;gap:32px;margin-left:40px}
.site-nav__links a{font-size:15px;font-weight:500;text-decoration:none;padding:4px 0;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.site-nav--dark .site-nav__links a{color:rgba(255,255,255,.78)}
.site-nav--dark .site-nav__links a:hover{color:#fff}
.site-nav--dark .site-nav__links a.is-active{color:#00C8FF;border-bottom-color:#00C8FF}
.site-nav--light .site-nav__links a{color:#5a6c7d}
.site-nav--light .site-nav__links a:hover{color:#1266FF}
.site-nav--light .site-nav__links a.is-active{color:#1266FF;font-weight:600;border-bottom-color:#1266FF}
.site-nav__cta{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;color:#fff;text-decoration:none;white-space:nowrap;background:linear-gradient(135deg,#1266FF,#00C8FF);box-shadow:0 6px 20px rgba(18,102,255,.3);transition:filter .2s}
.site-nav__cta:hover{filter:brightness(1.1)}
.site-nav__toggle{display:none;width:44px;height:44px;border:0;background:none;cursor:pointer;padding:10px;margin-right:-10px}
.site-nav__toggle span{display:block;height:2px;margin:5px 0;border-radius:2px;transition:transform .25s,opacity .25s}
.site-nav--dark .site-nav__toggle span{background:#fff}
.site-nav--light .site-nav__toggle span{background:#0A1E3D}
.site-nav.is-open .site-nav__toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.site-nav.is-open .site-nav__toggle span:nth-child(2){opacity:0}
.site-nav.is-open .site-nav__toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.site-nav__drawer{display:none}
@media(max-width:860px){
  .site-nav__inner{padding:10px 16px;gap:12px}
  .site-nav__logo img{height:30px}
  .site-nav__links{display:none}
  .site-nav__cta{padding:8px 14px;font-size:13px}
  .site-nav__toggle{display:block}
  .site-nav.is-open .site-nav__drawer{display:block}
  .site-nav__drawer{border-top:1px solid rgba(127,140,160,.18);padding:8px 16px 20px}
  .site-nav__drawer a{display:block;padding:14px 4px;font-size:16px;font-weight:500;text-decoration:none;border-bottom:1px solid rgba(127,140,160,.14)}
  .site-nav--dark .site-nav__drawer a{color:#fff}
  .site-nav--light .site-nav__drawer a{color:#0A1E3D}
  .site-nav__drawer a.is-active{color:#1266FF}
  .site-nav--dark .site-nav__drawer a.is-active{color:#00C8FF}
}

/* ===== 頁尾 ===== */
.jm-site-footer{position:relative;background:linear-gradient(180deg,#051428 0%,#040b1c 100%);border-top:1px solid rgba(56,182,255,0.12);padding:72px 0 0;overflow:hidden;text-align:left}
.jm-site-footer::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(56,182,255,0.4) 50%,transparent)}
.jm-site-footer .jmf-container{max-width:1200px;margin:0 auto;padding:0 24px}
.jm-site-footer .jmf-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:56px;padding-bottom:56px}
.jm-site-footer .jmf-brand-col{padding-right:24px}
.jm-site-footer .jmf-logo{display:flex;align-items:center;margin-bottom:20px}
.jm-site-footer .jmf-logo img{height:38px;width:auto;display:block}
.jm-site-footer .jmf-slogan{font-size:15px;color:rgba(255,255,255,0.7);line-height:1.8;margin-bottom:28px;max-width:280px}
.jm-site-footer .jmf-contact-list{display:flex;flex-direction:column;gap:14px}
.jm-site-footer .jmf-contact-item{display:flex;align-items:flex-start;gap:12px;font-size:14px;color:rgba(255,255,255,0.75);line-height:1.6;text-decoration:none;transition:color .2s}
.jm-site-footer a.jmf-contact-item:hover{color:#38B6FF}
.jm-site-footer .jmf-contact-icon{width:32px;height:32px;flex-shrink:0;background:rgba(56,182,255,0.08);border:1px solid rgba(56,182,255,0.2);border-radius:8px;display:flex;align-items:center;justify-content:center;transition:all .2s}
.jm-site-footer a.jmf-contact-item:hover .jmf-contact-icon{background:rgba(56,182,255,0.18);border-color:rgba(56,182,255,0.5)}
.jm-site-footer .jmf-contact-icon svg{width:15px;height:15px;stroke:#38B6FF;fill:none;stroke-width:1.8}
.jm-site-footer .jmf-contact-text{padding-top:5px}
.jm-site-footer .jmf-contact-text .jmf-label{display:block;font-size:11px;color:rgba(56,182,255,0.7);letter-spacing:1.5px;margin-bottom:2px}
.jm-site-footer .jmf-link-col h4{font-size:14px;font-weight:700;color:#38B6FF;letter-spacing:2px;margin-bottom:22px;padding-bottom:14px;border-bottom:1px solid rgba(56,182,255,0.15)}
.jm-site-footer .jmf-link-col ul{list-style:none;display:flex;flex-direction:column;gap:12px;margin:0;padding:0}
.jm-site-footer .jmf-link-col a{display:inline-block;font-size:14px;color:rgba(255,255,255,0.7);text-decoration:none;transition:all .2s}
.jm-site-footer .jmf-link-col a:hover{color:#38B6FF;padding-left:6px}
.jm-site-footer .jmf-bottom{border-top:1px solid rgba(255,255,255,0.06);padding:24px 0 28px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.jm-site-footer .jmf-copyright{font-size:13px;color:rgba(255,255,255,0.45);letter-spacing:0.5px}
.jm-site-footer .jmf-legal{display:flex;gap:8px;align-items:center;font-size:13px}
.jm-site-footer .jmf-legal a{color:rgba(255,255,255,0.5);text-decoration:none;transition:color .2s}
.jm-site-footer .jmf-legal a:hover{color:#38B6FF}
.jm-site-footer .jmf-dot{color:rgba(255,255,255,0.2)}
.jm-site-footer .jmf-line-card{margin-top:12px;display:flex;align-items:center;gap:18px;padding:14px 14px 14px 18px;background:rgba(56,182,255,0.05);border:1px solid rgba(56,182,255,0.16);border-radius:12px;max-width:360px;text-decoration:none;transition:background .2s,border-color .2s}
.jm-site-footer a.jmf-line-card:hover{background:rgba(56,182,255,0.09);border-color:rgba(56,182,255,0.4)}
.jm-site-footer .jmf-line-card .qr{width:150px;height:150px;flex-shrink:0;background:#fff;border-radius:8px;padding:6px}
.jm-site-footer .jmf-line-card .qr img{width:100%;height:100%;display:block}
.jm-site-footer .jmf-line-card .jmf-label{display:block;font-family:var(--jm-font-en);font-size:11px;color:rgba(56,182,255,0.7);letter-spacing:1.5px;margin-bottom:6px}
.jm-site-footer .jmf-line-card .t{font-size:14px;color:rgba(255,255,255,0.85);line-height:1.6}
.jm-site-footer .jmf-line-card .s{margin-top:6px;font-size:12px;color:rgba(255,255,255,0.5);line-height:1.6}
@media(max-width:640px){.jm-site-footer .jmf-line-card{gap:14px;padding:12px}.jm-site-footer .jmf-line-card .qr{width:124px;height:124px}}
@media(max-width:1024px){.jm-site-footer .jmf-grid{grid-template-columns:1fr 1fr 1fr;gap:40px 32px}.jm-site-footer .jmf-brand-col{grid-column:1/-1;padding-right:0;max-width:600px}}
@media(max-width:640px){.jm-site-footer{padding-top:52px}.jm-site-footer .jmf-grid{grid-template-columns:1fr 1fr;gap:32px 20px;padding-bottom:40px}.jm-site-footer .jmf-brand-col{grid-column:1/-1}.jm-site-footer .jmf-bottom{flex-direction:column;align-items:flex-start;gap:12px;padding:20px 0 24px}}

/* ===== 需求表單（寫入原本的 Google 表單） ===== */
.jm-form{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;text-align:left}
.jm-form .full{grid-column:1/-1}
.jm-form label{display:block;font-size:14px;font-weight:600;color:#2c3e50;margin-bottom:6px}
.jm-form label em{color:#e5484d;font-style:normal;margin-left:2px}
.jm-form input{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #d5dee8;border-radius:8px;font-size:15px;font-family:inherit;color:#0A1E3D;background:#fff;transition:border-color .2s,box-shadow .2s}
.jm-form input:focus{outline:none;border-color:#1266FF;box-shadow:0 0 0 3px rgba(18,102,255,.15)}
.jm-form .hint{font-size:12px;color:#8b9aa8;margin-top:4px}
.jm-form__privacy{grid-column:1/-1;font-size:13px;color:#5a6c7d;line-height:1.7;background:#f4f7fb;border-radius:8px;padding:12px 14px}
.jm-form__privacy summary{cursor:pointer;font-weight:600;color:#2c3e50}
.jm-form__actions{grid-column:1/-1;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.jm-form button{padding:14px 32px;border:0;border-radius:8px;font-size:16px;font-weight:700;font-family:inherit;color:#fff;cursor:pointer;background:linear-gradient(135deg,#1266FF,#00C8FF);box-shadow:0 8px 24px rgba(18,102,255,.3)}
.jm-form button[disabled]{opacity:.6;cursor:wait}
.jm-form__msg{font-size:14px;font-weight:600}
.jm-form__msg.ok{color:#14804a}.jm-form__msg.err{color:#c62828}
@media(max-width:640px){.jm-form{grid-template-columns:1fr}}

/* ===== 圖片燈箱（首頁獎項） ===== */
.jm-lightbox{position:fixed;inset:0;z-index:200;background:rgba(3,10,24,.88);display:none;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.jm-lightbox.open{display:flex}
.jm-lightbox img{max-width:min(1000px,100%);max-height:90vh;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.5)}

/* ===== 手機版通用防溢出 ===== */
img,video{max-width:100%}
@media(max-width:640px){body{overflow-x:hidden}}
/* 主打產品（專屬網址）：選單 NEW 標籤＋首頁主打區塊 */
.nav-new{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.04em;line-height:16px;vertical-align:2px;color:#fff;background:linear-gradient(135deg,#1266FF,#00C8FF)}
@media(max-width:1180px) and (min-width:861px){.site-nav__links{gap:20px;margin-left:20px}.site-nav__links a{font-size:14px}}
.home-feature{position:relative;padding:80px 24px;background:linear-gradient(160deg,#0A1E3D 0%,#0f2d5c 60%,#123a7a 100%);color:#fff;font-family:var(--jm-font-zh);overflow:hidden}
.home-feature__inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 1.1fr;gap:64px;align-items:center}
.home-feature__badge{display:inline-block;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.08em;color:#0A1E3D;background:#00C8FF}
.home-feature h2{margin:16px 0 10px;font-size:clamp(28px,3.4vw,40px);font-weight:900;line-height:1.25;color:#fff}
.home-feature__tagline{margin:0 0 24px;font-size:18px;line-height:1.6;color:rgba(255,255,255,.8)}
.home-feature__points{list-style:none;margin:0 0 32px;padding:0;display:grid;gap:10px}
.home-feature__points li{position:relative;padding-left:30px;font-size:16px;font-weight:500;color:#fff}
.home-feature__points li:before{content:"✓";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:rgba(0,200,255,.18);color:#00C8FF;font-size:12px;font-weight:700;line-height:20px;text-align:center}
.home-feature__cta{display:flex;flex-wrap:wrap;gap:12px}
.home-feature__btn{display:inline-flex;align-items:center;padding:12px 24px;border-radius:10px;font-size:15px;font-weight:700;text-decoration:none;color:#fff;border:1.5px solid rgba(255,255,255,.4)}
.home-feature__btn:hover{background:rgba(255,255,255,.08)}
.home-feature__btn--primary{border:0;background:linear-gradient(135deg,#1266FF,#00C8FF);box-shadow:0 8px 24px rgba(18,102,255,.35)}
.home-feature__btn--primary:hover{filter:brightness(1.1)}
.home-feature__visual video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:16px;background:#e8f0fa;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.home-feature__visual img{display:block;width:100%;height:auto;border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.35)}
@media(max-width:860px){.home-feature{padding:56px 20px}.home-feature__inner{grid-template-columns:1fr;gap:32px}.home-feature__visual{order:-1}}
/* NEW 標籤閃閃：一道光掃過＋輕微發光（系統設定「減少動態效果」時不動） */
.home-feature__badge,.nav-new{position:relative;overflow:hidden;animation:jm-new-glow 2.4s ease-in-out infinite}
.home-feature__badge:after,.nav-new:after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.85),transparent);transform:skewX(-20deg);animation:jm-new-shine 2.4s ease-in-out infinite}
@keyframes jm-new-shine{0%{left:-60%}55%,100%{left:130%}}
@keyframes jm-new-glow{0%,100%{box-shadow:0 0 0 rgba(0,200,255,0)}50%{box-shadow:0 0 14px rgba(0,200,255,.75)}}
@media(prefers-reduced-motion:reduce){.home-feature__badge,.nav-new,.home-feature__badge:after,.nav-new:after{animation:none}}
/* 手機：產品卡片改成精簡列表（左縮圖、右名稱＋一行簡介），30 款不用滑很久 */
@media(max-width:520px){
.product-grid{gap:10px!important}
.product-grid .product-card{flex-direction:row;align-items:stretch;border-radius:12px}
.product-grid .product-card:hover{transform:none}
.product-grid .product-thumb{flex:none;width:104px;aspect-ratio:auto;align-self:stretch;min-height:84px}
/* 圖片不撐高列：高度固定，載入時版面不跳動，跳轉列才停得準 */
.product-grid .product-thumb img{position:absolute;inset:0;padding:6px}
.product-grid .product-body{padding:12px 14px;min-width:0;justify-content:center;gap:4px}
.product-grid .product-body h3{font-size:15.5px;line-height:1.4;margin:0}
.product-grid .product-body p{font-size:13px;line-height:1.55;margin:0;flex:none;color:var(--text-secondary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-grid .product-link{display:none}
}

/* ===== 手機版首頁：只留四塊（主視覺 → 三大方案 → 信任 → 結尾邀請），約 9,500px → 約 3,900px =====
   手機訪客只想：找產品、確認可不可信、聯絡。其餘內容只在手機隱藏，網頁內容與桌機版不變。 */
body .jmh-sub .jmh-sub-m{display:none}
body .tc-br{display:none}
body .cta-m{display:none}
body .solutions-section .solution-card.sol-feature{display:none}
@media(max-width:640px){
  /* 重新排序：方案提前，架構圖整塊拿掉 */
  #root{display:flex;flex-direction:column}
  #root>header{order:0}
  #root>.jmh{order:1}
  #root>#products{order:2}
  #root>div{order:3}
  #root>#honor{order:4}
  #root>#cases{order:5}
  #root>section:last-of-type{order:6}
  #root>footer{order:7}
  #about{display:none}
  /* 主視覺：手機不放按鈕，保留跑馬燈帶 */
  body .jmh-chips{display:none}
  body .jmh-sub .jmh-sub-d{display:none}
  body .jmh-sub .jmh-sub-m{display:inline}
  body .jmh-center{padding:36px 20px 40px;gap:16px}
  /* 主視覺上方的「優良企業表揚」徽章：縮小 */
  body .jmh-award{font-size:13px;padding:5px 14px 5px 10px;gap:7px;border-width:1px;box-shadow:0 0 0 3px rgba(255,210,74,.05)}
  body .jmh-award svg{width:16px;height:16px}
  /* 核心方案：左右滑動卡片（露出下一張），主打產品（即時金融）排在最後 */
  body .solutions-section{padding:48px 0}
  body .solutions-section .sol-header{margin-bottom:24px}
  body .solutions-section .sol-three{display:none}
  body .solutions-section .sol-list{flex-direction:row;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -20px;padding:0 20px 8px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  body .solutions-section .sol-list::-webkit-scrollbar{display:none}
  body .solutions-section .solution-card{flex:0 0 86%;scroll-snap-align:center}
  body .solutions-section .solution-card.sol-feature{display:grid}
  body .solutions-section .solution-image{aspect-ratio:16/10}
  body .solutions-section .solution-content{padding:20px 18px}
  body .solutions-section .solution-desc{margin-bottom:14px}
  body .solutions-section .sol-products{margin-bottom:18px}
  body .home-feature{display:none}
  /* 信任區：榮譽縮成「標題＋三條資歷＋小獎牌」，工程案例左右滑，產業圖示拿掉 */
  #honor{padding:36px 20px 40px!important}
  #honor .jm-eyebrow,#honor .honor-grid>div:first-child>p{display:none!important}
  #honor h2{font-size:24px!important;margin-bottom:16px!important}
  #honor .hn-facts{display:none}
  #honor .honor-grid{gap:22px!important}
  #honor .honor-media{grid-template-columns:minmax(0,190px)!important}
  body .trust-section{padding:36px 0 44px}
  body .trust-section .tc-industry-ribbon{display:none}
  body .trust-section .tc-photo-ribbon{margin-bottom:0}
  body .trust-section .tc-divider-label{margin-bottom:16px}
  body .trust-section .tc-photo-bento{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -20px;padding:0 20px 6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  body .trust-section .tc-photo-bento::-webkit-scrollbar{display:none}
  body .trust-section .tc-photo-card,body .trust-section .tc-photo-card.hero{flex:0 0 82%;height:200px;scroll-snap-align:center}
  body .trust-section .tc-section-cta{margin-top:24px}
  /* 置中與斷行 */
  #honor .honor-grid>div:first-child{text-align:center}
  #honor .honor-media figure,#honor figcaption{text-align:center}
  body .trust-section .tc-divider-label .small-line{display:none}
  body .trust-section .tc-divider-label{text-align:center}
  body .trust-section .tc-br{display:inline}
  #root>section:last-of-type{padding:48px 20px!important}
  #root>section:last-of-type>div{padding:40px 22px!important;text-align:center}
  #root>section:last-of-type h2{font-size:32px!important}
  #root>section:last-of-type p{margin-left:auto;margin-right:auto}
  body .cta-d{display:none}
  body .cta-m{display:inline}
}

/* ===== 手機版精簡（關於我們）：原本約 7,070px ===== */
@media(max-width:680px){
  body .hero{padding:56px 0 40px}
  body .intro,body .capability,body .industries,body .award,body .info,body .final-cta{padding:44px 0}
  body .capability-header,body .industry-header,body .info-header{margin-bottom:28px}
  body .chain-row{grid-template-columns:repeat(2,1fr);gap:28px 14px}
  body .chain-node{padding:0 4px}
  body .chain-circle{width:64px;height:64px;margin-bottom:12px}
  body .chain-circle svg{width:28px;height:28px}
  body .chain-title{font-size:17px;margin-bottom:6px}
  body .chain-desc{font-size:13px;line-height:1.6}
  body .industry-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  body .industry-card{padding:16px 14px}
  body .industry-icon{width:40px;height:40px;margin-bottom:10px}
  body .industry-name{font-size:16px;margin-bottom:4px}
  body .award-grid{gap:24px}
  body .award-desc{margin-bottom:20px}
  body .info-card-wrap{gap:14px}
  body .info-card{padding:20px}
  body .info-row{margin-bottom:12px;padding-bottom:12px}
}

/* ===== 手機版精簡（系統整合）：原本約 6,750px ===== */
@media(max-width:560px){
  body .ip-hero{padding:56px 0 36px}
  body .ip-section-head{margin-bottom:28px}
  body .ip-arch,body .ip-flowsec,body .ip-caps{padding:48px 0}
  body .ip-cta-sec{padding:40px 0 64px}
  body .ip-hub-grid{gap:20px}
  body .ip-col{gap:8px}
  body .ip-hubnode{padding:10px 13px}
  body .ip-hub{padding:22px 18px 18px}
  body .ip-hub-modules{margin-bottom:12px}
  body .ip-cap-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  body .ip-cap-card{padding:16px 14px;border-radius:14px}
  body .ip-cap-icon{width:40px;height:40px;border-radius:10px}
  body .ip-cap-desc{font-size:12.5px;line-height:1.6}
  body .ip-steps{grid-template-columns:1fr;gap:10px}
  body .ip-cap-title{font-size:16px;margin-bottom:6px}
  body .ip-step{padding:14px 16px}
  body .ip-step-top{margin-bottom:8px}
  body .ip-step-no{font-size:22px}
  body .ip-step-title{margin-bottom:4px}
}

/* ===== 手機版精簡（產品方案與三個分類頁的諮詢區）：約 1,200px → 約 760px ===== */
@media(max-width:520px){
  body .cta-section{padding:44px 0}
  body .cta-section h2{font-size:24px;margin-bottom:12px}
  body .cta-section .lead{font-size:15px;line-height:1.7;margin-bottom:20px}
  body .cta-points{gap:10px;margin-bottom:24px}
  body .cta-point{padding:14px 16px}
  body .cta-point h4{margin-bottom:4px}
  body .cta-actions{margin-bottom:24px}
  body .cta-contact{gap:8px 24px;padding-top:20px}
  body .cat-hero{padding:56px 0 44px}
  body .group-label .en{display:none}
}
