/* ===========================================================
   Entron Trading— 共用設計系統 CSS
   design tokens、topbar/nav、按鈕、hero、timeline、faq、
   product card、modal、contact 等跨頁共用樣式
   由 10 個頁面中完全相同的樣式規則抽出，集中維護。
   =========================================================== */

*{ box-sizing:border-box; }

body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:var(--body);
    line-height:1.75;
    -webkit-font-smoothing:antialiased;
  }

h1,h2,h3{
    font-family:var(--display);
    color:var(--ink);
    margin:0;
    letter-spacing:0.01em;
  }

a{ color:inherit; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }

:focus-visible{
    outline:2px solid var(--brass-deep);
    outline-offset:3px;
    border-radius:2px;
  }

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 28px;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    background:rgba(246,243,236,0.92);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    z-index:999;
  }

.logo{
    font-family:var(--display);
    font-weight:700;
    font-size:21px;
    letter-spacing:0.02em;
    display:flex;
    align-items:baseline;
    gap:8px;
  }

.logo-icon{
    height:24px;
    width:auto;
    align-self:center;
  }

.topbar-right{
    display:flex;
    align-items:center;
    gap:28px;
  }

.nav-links{
    display:flex;
    align-items:center;
    gap:26px;
  }

.nav-links a{
    font-size:14.5px;
    color:var(--steel);
    text-decoration:none;
    position:relative;
    padding:4px 0;
  }

.nav-links a::after{
    content:"";
    position:absolute;
    left:0; bottom:0;
    width:0; height:1.5px;
    background:var(--brass-deep);
    transition:width .2s ease;
  }

.nav-links a:hover{ color:var(--ink); }

.nav-links a:hover::after{ width:100%; }

.nav-item-dropdown{
    position:relative;
    display:inline-flex;
    align-items:center;
  }

.nav-dropdown-trigger{
    display:inline-flex;
    align-items:center;
    gap:5px;
  }

.nav-caret{
    width:0; height:0;
    border-left:4px solid transparent;
    border-right:4px solid transparent;
    border-top:5px solid currentColor;
    opacity:0.55;
    transition:transform .2s ease;
  }

.nav-item-dropdown:hover .nav-caret,
  .nav-item-dropdown:focus-within .nav-caret{ transform:rotate(180deg); }

.nav-dropdown-menu{
    position:absolute;
    top:100%;
    left:0;
    padding-top:10px; /* 用 padding 而非 margin,避免滑鼠移動時中間出現空隙導致選單提早關閉 */
    opacity:0;
    visibility:hidden;
    transform:translateY(-6px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s;
    z-index:1100;
  }

.nav-dropdown-menu-inner{
    min-width:210px;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:10px;
    box-shadow:0 14px 30px rgba(20,23,28,0.14);
    padding:8px;
  }

.nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu{
    opacity:1; visibility:visible; transform:translateY(0);
  }

.nav-dropdown-menu a{
    display:block;
    padding:9px 12px;
    font-size:13.5px;
    color:var(--steel);
    border-radius:6px;
    text-decoration:none;
    white-space:nowrap;
  }

.nav-dropdown-menu a::after{ display:none; }

.nav-dropdown-menu a:hover{ background:var(--paper-dim); color:var(--ink); }

.nav-dropdown-viewall{
    border-top:1px solid var(--line-soft);
    margin-top:4px;
    padding-top:10px !important;
    color:var(--brass-text) !important;
    font-weight:600;
  }

.nav-toggle{
    display:none;
    background:none;
    border:none;
    cursor:pointer;
    width:34px; height:34px;
    padding:0;
    position:relative;
    flex:none;
  }

.nav-toggle span{
    position:absolute;
    left:5px; right:5px;
    height:2px;
    background:var(--ink);
    border-radius:2px;
    transition:transform .25s ease, opacity .2s ease;
  }

.nav-toggle span:nth-child(1){ top:11px; }

.nav-toggle span:nth-child(2){ top:17px; }

.nav-toggle span:nth-child(3){ top:23px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }

.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }

.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.btn-brass{
    background:var(--brass);
    color:var(--ink);
    padding:11px 20px;
    border-radius:999px;
    text-decoration:none;
  }

.btn-brass:hover{ background:var(--brass-light); transform:translateY(-1px); }

.lang-switch{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 12px;
    border:1px solid var(--line);
    border-radius:999px;
    color:var(--steel);
    text-decoration:none;
    transition:border-color .2s ease, color .2s ease;
  }

.lang-switch:hover{
    color:var(--ink);
    border-color:var(--steel);
  }

.lang-switch-text{
    font-family:var(--mono);
    font-size:12.5px;
    font-weight:700;
    letter-spacing:0.02em;
  }

.btn-ghost{
    background:transparent;
    color:var(--ink);
    border:1px solid var(--ink);
    padding:10px 19px;
    border-radius:999px;
  }

.btn-ghost:hover{ background:var(--ink); color:var(--paper); }

.btn-dark{
    background:var(--ink);
    color:var(--paper);
    padding:13px 24px;
    border-radius:6px;
  }

.btn-dark:hover{ background:var(--ink-soft); }

.hero{
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    align-items:center;
    gap:40px;
    max-width:var(--maxw);
    margin:0 auto;
    padding:72px 28px 64px;
  }

.hero-copy h1{
    font-size:44px;
    line-height:1.28;
    font-weight:700;
    margin:18px 0 16px;
  }

.hero-copy p.lede{
    font-size:17px;
    color:var(--steel);
    max-width:440px;
    margin-bottom:30px;
  }

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:34px; }

.hero-chips{ display:flex; flex-wrap:wrap; gap:10px; }

.chip{
    font-family:var(--mono);
    font-size:12px;
    color:var(--steel);
    border:1px solid var(--line);
    background:var(--paper-dim);
    padding:6px 11px;
    border-radius:5px;
    display:inline-flex;
    align-items:center;
    gap:6px;
  }

.chip::before{
    content:"✓";
    color:var(--brass-text);
    font-weight:700;
  }

.hero-figure{ position:relative; }

.hero-figure svg{ width:100%; height:auto; display:block; }

.draw-line{
    stroke-dasharray:1600;
    stroke-dashoffset:1600;
    animation:draw 1.6s cubic-bezier(.4,0,.2,1) forwards;
  }

@keyframes draw{ to{ stroke-dashoffset:0; } }

.fade-in-part{
    opacity:0;
    animation:fadeUp .7s ease forwards;
  }

@keyframes fadeUp{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:translateY(0);} }

/* hero door-opening animation (no glow — flat fills only) */
.door-leaf{
    transform-box: fill-box;
    transform-origin: center;
  }

.door-leaf-left{ animation: doorOpenLeft 2.2s cubic-bezier(.65,0,.35,1) forwards; }
.door-leaf-right{ animation: doorOpenRight 2.2s cubic-bezier(.65,0,.35,1) forwards; }

@keyframes doorOpenLeft{
    0%, 18%{ transform:translateX(0); }
    62%, 100%{ transform:translateX(-112px); }
  }

@keyframes doorOpenRight{
    0%, 18%{ transform:translateX(0); }
    62%, 100%{ transform:translateX(112px); }
  }

.door-welcome{
    opacity:0;
    animation: doorWelcomeFade .9s ease forwards;
    animation-delay: 1.5s;
  }

@keyframes doorWelcomeFade{ from{ opacity:0; } to{ opacity:1; } }

.concerns{
    padding:80px 28px;
    background:var(--paper-dim);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
  }

.concerns .inner{ max-width:760px; margin:0 auto; }

.concerns h2{ font-size:30px; margin-bottom:8px; }

.concerns .sub{ color:var(--steel); margin-bottom:44px; font-size:15px; }

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
    gap:24px;
    margin-top:40px;
  }

.product-card{
    background:var(--paper);
    border:1.5px solid var(--steel);
    border-radius:10px;
    overflow:hidden;
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 30px rgba(20,23,28,0.09);
    border-color:var(--ink);
  }

.product-card:focus-visible{
    outline:2px solid var(--brass-deep);
    outline-offset:3px;
  }

@media (max-width: 640px){
    /* 邊框色/粗細現在已是基礎規則統一套用，這裡只保留手機版卡片底色層次(用 --paper-dim) */
    .product-card, .article-card{
      background:var(--paper-dim);
    }
  }

.modal-overlay{
    position:fixed; inset:0;
    background:rgba(20,23,28,0.55);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    z-index:1200;
    opacity:0;
    pointer-events:none;
    transition:opacity .25s ease;
  }

.modal-overlay.open{ opacity:1; pointer-events:auto; }

.modal-overlay.open .modal{ transform:translateY(0); }

.modal-close{
    position:absolute;
    top:14px; right:14px;
    width:32px; height:32px;
    border-radius:50%;
    border:1px solid var(--line);
    background:var(--paper);
    font-size:18px;
    line-height:1;
    cursor:pointer;
    color:var(--ink);
    z-index:2;
  }

.modal-close:hover{ background:var(--paper-dim); }

.modal-body{ padding:34px 30px; }

.modal-body h3{ font-size:22px; margin:10px 0 6px; }

.modal-body .modal-tagline{ color:var(--steel); font-size:14.5px; margin-bottom:22px; }

.spec-list{ margin:0; }

.spec-list > div{
    display:grid;
    grid-template-columns:96px 1fr;
    gap:12px;
    padding:12px 0;
    border-top:1px solid var(--line-soft);
    font-size:14px;
  }

.spec-list > div:last-child{ border-bottom:1px solid var(--line-soft); }

.spec-list dt{
    font-family:var(--mono);
    font-size:12.5px;
    font-weight:600;
    color:var(--brass-text);
    margin:0;
  }

.spec-list dd{ margin:0; color:var(--ink); }

.modal-detail-text{ font-size:14.5px; color:var(--steel); margin:0 0 20px; }

.modal-body-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
  }

.modal-share-btn{
    display:inline-flex;
    align-items:center;
    gap:7px;
    font-family:var(--body);
    font-weight:700;
    font-size:13px;
    color:var(--ink);
    background:var(--paper-dim);
    border:1px solid var(--steel);
    padding:7px 14px;
    border-radius:999px;
    cursor:pointer;
    white-space:nowrap;
    transition:background .18s ease, transform .18s ease, border-color .18s ease;
  }

.modal-share-btn:hover{ background:var(--brass-light); border-color:var(--brass-deep); transform:translateY(-1px); }

.modal-share-btn.is-copied{
    background:var(--brass-light);
    border-color:var(--brass-deep);
    color:var(--ink);
  }

.product-media{
    aspect-ratio:1/1;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
  }

.product-media img{
    width:100%; height:100%;
    object-fit:contain;
    display:block;
  }

.product-body{ padding:18px 20px 22px; }

.product-name{
    font-family:var(--body); /* 強制蓋掉 h1,h2,h3 的 var(--display)，維持無襯線粗體視覺，不受標籤是 div 或 h2/h3 影響 */
    font-weight:700;
    font-size:16px;
    margin-bottom:4px;
  }

.product-tagline{
    font-size:13px;
    color:var(--steel);
    margin-bottom:14px;
  }

.product-specs{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
  }

.product-specs .chip{ font-size:11px; padding:5px 9px; }

.flow{ padding:90px 28px; max-width:var(--maxw); margin:0 auto; }

.flow-head{ max-width:600px; margin-bottom:56px; }

.flow-head h2{ font-size:30px; margin-bottom:8px; }

.flow-head p{ color:var(--steel); font-size:15px; }

.steps{
    position:relative;
    max-width:680px;
  }

.steps::before{
    content:"";
    position:absolute;
    left:23px; top:8px; bottom:8px;
    width:1px;
    background-image:linear-gradient(var(--line) 60%, transparent 0%);
    background-size:1px 8px;
    background-repeat:repeat-y;
  }

.step{
    position:relative;
    display:grid;
    grid-template-columns:48px 1fr;
    gap:20px;
    padding-bottom:44px;
  }

.step:last-child{ padding-bottom:0; }

.step-num{
    width:48px; height:48px;
    border-radius:50%;
    background:var(--paper);
    border:1.5px solid var(--brass);
    color:var(--ink);
    font-family:var(--mono);
    font-size:14px;
    display:flex; align-items:center; justify-content:center;
    z-index:1;
  }

.step h3{ font-size:18px; font-weight:700; margin-bottom:6px; }

.step p{ color:var(--steel); font-size:14.5px; margin:0; }

.step-tag{
    font-family:var(--mono);
    font-size:11.5px;
    font-weight:600;
    color:var(--brass-text);
    letter-spacing:0.1em;
    text-transform:uppercase;
    margin-bottom:4px;
    display:block;
  }

.timeline-legend{
    display:flex;
    flex-wrap:wrap;
    gap:22px;
    margin:8px 0 40px;
  }

.timeline-legend .item{
    display:flex;
    align-items:center;
    gap:8px;
    font-family:var(--mono);
    font-size:12px;
    color:var(--steel);
  }

.timeline-legend .dot{
    width:10px; height:10px;
    border-radius:50%;
    flex:none;
  }

.dot-mech{ background:var(--steel); }

.dot-elec{ background:var(--brass); }

.dot-smart{ background:var(--brass-deep); }

.timeline-list{
    position:relative;
    max-width:680px;
  }

.timeline-list::before{
    content:"";
    position:absolute;
    left:23px; top:8px; bottom:8px;
    width:1px;
    background-image:linear-gradient(var(--line) 60%, transparent 0%);
    background-size:1px 8px;
    background-repeat:repeat-y;
  }

.timeline-item{
    position:relative;
    padding-left:68px;
    margin-bottom:14px;
  }

.timeline-q{
    width:100%;
    background:none;
    border:1px solid var(--line);
    border-radius:8px;
    padding:16px 18px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    text-align:left;
    font-family:var(--body);
  }

.timeline-q:hover{ border-color:var(--brass); }

.timeline-year{
    font-family:var(--mono);
    font-size:12px;
    font-weight:600;
    color:var(--brass-text);
    display:block;
    margin-bottom:4px;
  }

.timeline-title{
    font-weight:700;
    font-size:15.5px;
    color:var(--ink);
  }

.timeline-a{
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
  }

.timeline-a p{
    margin:12px 4px 4px;
    padding:14px 18px;
    background:var(--paper);
    border-left:2px solid var(--brass);
    border-radius:0 8px 8px 0;
    font-size:14px;
    color:var(--steel);
  }

.faq{ padding:90px 28px; max-width:760px; margin:0 auto; }

.faq-head{ margin-bottom:40px; }

.faq-head h2{ font-size:30px; margin-bottom:8px; }

.faq-head p{ color:var(--steel); font-size:15px; }

.faq-item{ border-top:1px solid var(--line); }

.faq-item:last-child{ border-bottom:1px solid var(--line); }

.faq-q{
    width:100%;
    background:none;
    border:none;
    cursor:pointer;
    padding:22px 4px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    text-align:left;
    font-family:var(--body);
    font-size:16px;
    font-weight:700;
    color:var(--ink);
  }

.faq-q .idx{
    font-family:var(--mono);
    font-size:12.5px;
    font-weight:600;
    color:var(--brass-text);
    margin-right:12px;
  }

.faq-icon{
    flex:none;
    width:20px; height:20px;
    position:relative;
  }

.faq-icon::before, .faq-icon::after{
    content:"";
    position:absolute;
    background:var(--ink);
    top:50%; left:50%;
    transform:translate(-50%,-50%);
  }

.faq-icon::before{ width:14px; height:1.5px; }

.faq-icon::after{ width:1.5px; height:14px; transition:transform .25s ease; }

.faq-item[aria-expanded="true"] .faq-icon::after,
  .timeline-item[aria-expanded="true"] .faq-icon::after{ transform:translate(-50%,-50%) rotate(90deg); }

.faq-item[aria-expanded="true"] .faq-icon::before,
  .timeline-item[aria-expanded="true"] .faq-icon::before{ transform:translate(-50%,-50%) rotate(180deg); }

.faq-a{
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
  }

.faq-a p{
    margin:0 4px 22px;
    color:var(--steel);
    font-size:14.5px;
    max-width:600px;
  }

.contact{
    padding:90px 28px;
    text-align:left;
    background:var(--paper);
    border-top:1px solid var(--line);
  }

.contact .inner{
    max-width:640px;
    margin:0 auto;
    background:var(--ink);
    color:var(--paper);
    border-radius:14px;
    padding:52px 44px;
  }

.contact .eyebrow{ color:var(--brass-light); }

.contact .eyebrow::before{ background:var(--brass-light); }

.contact h2{ color:var(--paper); font-size:28px; margin:14px 0 10px; }

.contact .lede{ color:#B9BEC6; font-size:15px; margin-bottom:30px; max-width:460px; }

.contact-rows{ margin-bottom:32px; }

.contact-row{
    display:flex;
    gap:14px;
    font-family:var(--mono);
    font-size:14.5px;
    padding:12px 0;
    border-top:1px solid rgba(255,255,255,0.12);
    color:#E5E7EB;
  }

.contact-row:last-child{ border-bottom:1px solid rgba(255,255,255,0.12); }

.contact-row .k{ color:#7C8590; width:120px; flex:none; }

.contact-row a{
    color:#E5E7EB;
    text-decoration:none;
    border-bottom:1px solid transparent;
    transition:border-color .18s ease, color .18s ease;
  }

.contact-row a:hover{ color:var(--brass-light); border-color:var(--brass-light); }

footer{
    text-align:center;
    padding:26px;
    background:var(--ink);
    color:#7C8590;
    font-size:12.5px;
    font-family:var(--mono);
  }

.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease; }

.reveal.in{ opacity:1; transform:translateY(0); }

.tag-pop{
    opacity:0;
    color:var(--brass-light);
    transition:opacity .5s ease, color .6s ease;
  }

.tag-pop.in{
    opacity:1;
    color:var(--brass-text);
  }

.tag-pop-dark{
    opacity:0;
    color:#F3E4C9;
    transition:opacity .5s ease, color .6s ease;
  }

.tag-pop-dark.in{
    opacity:1;
    color:var(--brass-light);
  }

@media (max-width: 480px){
    /* ⚠️ 修正：原本 .btn-brass,.btn-ghost 沒有範圍限制，
       連 header 導覽列的「免費咨詢」CTA 也被強制 width:100%，
       在 topbar-right 這種小容器裡擠成怪形狀。
       改為只限定在 hero-actions 區塊內生效。 */
    .hero-actions .btn-brass, .hero-actions .btn-ghost{ width:100%; justify-content:center; }
    .hero-actions{ flex-direction:column; }
    .contact-row{ flex-direction:column; gap:2px; }
    .contact-row .k{ width:auto; }
  }

/* ===========================================================
   共用頁面元件樣式（原本重複貼在多個頁面 <style> 區塊內，2025-07 合併去重）
   涵蓋：breadcrumb、article-header/body、spec-list、
         product modal/lightbox、CTA 卡片等跨頁共用元件
   =========================================================== */

/* ---------- CTA BOX（配合 assets/cta-box.js 使用）---------- */
.cta-box{
  max-width:var(--maxw);
  margin:64px auto 0;
  padding:0 28px 64px;
}

.cta-box-inner{
  background:var(--ink);
  border-radius:16px;
  padding:48px 40px;
  text-align:center;
}

.cta-box-title{
  color:var(--paper);
  font-family:var(--display);
  font-size:26px;
  line-height:1.4;
  margin:0 0 12px;
}

.cta-box-desc{
  color:#B9BEC6;
  font-size:15px;
  max-width:520px;
  margin:0 auto 28px;
}

.cta-box-btn{
  display:inline-block;
  text-decoration:none;
}

@media (max-width:640px){
  .cta-box-inner{ padding:36px 24px; }
  .cta-box-title{ font-size:22px; }
}

:root{
    --ink:#14171C;
    --ink-soft:#2A2E36;
    --paper:#F6F3EC;
    --paper-dim:#EDE9DE;
    --steel:#3D4552;
    --steel-soft:#6B7280;
    --brass:#C79A56;
    --brass-light:#E4C489;
    --brass-deep:#A87D3C;
    --brass-text:#85642F;
    --brass-emphasis:#6B4F24; /* 對比度較高(約6.8:1),供 eyebrow 標籤加強可讀性用 */
    --alert:#B5482E;
    --line: rgba(20,23,28,0.14);
    --line-soft: rgba(20,23,28,0.08);

    --display: "Noto Serif TC", serif;
    --body: "Noto Sans TC", sans-serif;
    --mono: "IBM Plex Mono", monospace;

    --maxw: 1120px;
  }

html{ scroll-behavior:smooth; scroll-padding-top:76px; }

@media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  }

.eyebrow{
    font-family:var(--mono);
    font-size:12.5px;
    font-weight:700;
    letter-spacing:0.06em; /* 原本 0.14em 對中文來說字距過寬、密度過低,收緊後更好辨識 */
    text-transform:uppercase;
    color:var(--brass-emphasis); /* 原本 --brass-text 對比偏低(約4.9:1),改用對比更高的顏色 */
    background:rgba(199,154,86,0.16); /* 加上底色小色塊,讓標籤在滑動瀏覽時更容易被注意到 */
    border:1px solid rgba(199,154,86,0.4);
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:5px 13px 5px 10px;
  }

.eyebrow::before{
    content:"";
    width:12px; height:1.5px;
    background:var(--brass-deep);
    display:inline-block;
  }

  /* ---------- HEADER 產品介紹 下拉選單 ---------- */

  

  

  

  

  

  

  @media (max-width: 640px){
    /* 選單開啟時鎖住 body 捲動（由 nav.js 切換 class），
       雙重保險：即使 overscroll-behavior 支援度不足，也不會捲到主頁。 */
    body.nav-open{
      overflow:hidden;
    }
    .nav-toggle{ display:block; }

    /* 🔧 手機版改成兩排排版：
       第一排 logo 獨占滿版寬度（不管公司名稱多長都有完整空間，
       未來若改成「安創貿易」/「Entron Trading」也不會被擠壓）；
       第二排放語言切換、聯絡我們、漢堡選單，靠右對齊。
       nav-links（展開後的選單面板）仍是 position:absolute，
       不受這裡的兩排排版影響，一樣會蓋在整個 topbar 下方。 */
    .topbar{
      flex-wrap:wrap;
      row-gap:10px;
    }
    .logo{
      flex:1 1 100%;
      justify-content:center;
    }
    .topbar-right{
      flex:1 1 100%;
      gap:14px;
      flex-wrap:wrap;
      justify-content:center;
      row-gap:8px;
    }

    /* header CTA 在窄螢幕縮小尺寸，避免跟語言切換、漢堡擠在一起 */
    .topbar-right .btn-brass{
      padding:8px 14px;
      font-size:13px;
      white-space:nowrap;
    }
    .nav-links{
      position:absolute;
      top:100%;
      left:0; right:0;
      flex-direction:column;
      align-items:flex-start;
      gap:0;
      background:var(--paper);
      border-bottom:1px solid var(--line);
      padding:4px 28px 12px;
      max-height:0;
      overflow:hidden;
      transition:max-height .3s ease, min-height .3s ease;
      z-index:1000;
    }
    /* ⚠️ 修正：固定 px 值在子選單展開後內容變長時仍會裁掉底部選項，
       改用視窗高度扣掉 header 高度，並加上 overflow-y:auto，
       內容過長時選單自己出現捲軸，不會再被裁切。 */
    .nav-links[data-open="true"]{
      max-height:calc(100vh - 64px);
      min-height:calc(100vh - 64px); /* 內容較少時（如子選單未展開）背景仍鋪滿到底，不透出下方頁面 */
      overflow-y:auto;
      -webkit-overflow-scrolling:touch;
      overscroll-behavior:contain; /* 選單捲到底時不再把捲動帶到下方主頁 */
    }
    .nav-links a{
      width:100%;
      padding:13px 0;
      border-top:1px solid var(--line-soft);
    }
    .nav-links a::after{ display:none; }

    /* 手機版：下拉選單改為巢狀直接展開，不依賴 hover */
    .nav-item-dropdown{
      display:block;
      width:100%;
      border-top:1px solid var(--line-soft);
    }
    .nav-item-dropdown .nav-dropdown-trigger{
      width:100%;
      padding:13px 0 6px;
      border-top:none;
      justify-content:space-between;
    }
    .nav-dropdown-menu{
      position:static;
      padding-top:0;
      opacity:1;
      visibility:visible;
      transform:none;
      max-height:0;
      overflow:hidden;
      transition:max-height .25s ease;
    }
    /* 手風琴展開狀態：由 nav.js 切換 .nav-item-dropdown 上的
       data-expanded 屬性控制，600px 只是給夠大的上限，
       實際高度仍由選單內容本身決定 */
    .nav-item-dropdown[data-expanded="true"] .nav-dropdown-menu{
      max-height:600px;
    }
    .nav-item-dropdown[data-expanded="true"] .nav-caret{
      transform:rotate(180deg);
    }
    .nav-dropdown-menu-inner{
      min-width:0;
      background:none;
      border:none;
      box-shadow:none;
      padding:0 0 8px 14px;
    }
    .nav-dropdown-menu a{
      padding:9px 0;
      border-top:none;
      font-size:13.5px;
      color:var(--steel-soft);
    }
  }

.btn{
    font-family:var(--body);
    font-weight:700;
    font-size:14.5px;
    border:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:8px;
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  }

  /* ---------- PRODUCT MODAL ---------- */

  .modal{
    background:var(--paper);
    border-radius:14px;
    max-width:600px;
    width:100%;
    max-height:88vh;
    overflow-y:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:0;
    position:relative;
    transform:translateY(10px);
    transition:transform .25s ease;
  }

.modal-media{
    background:var(--paper-dim);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    aspect-ratio:4/3;
  }

.modal-media img{ width:100%; height:100%; object-fit:contain; display:block; padding:24px; cursor:zoom-in; }

  /* ---------- PRODUCT LIGHTBOX（點擊 modal 圖片放大檢視） ---------- */

  .lightbox-overlay{
    position:fixed; inset:0;
    background:rgba(20,23,28,0.88);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
    z-index:1400;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
  }

.lightbox-overlay.open{ opacity:1; pointer-events:auto; }

.lightbox-overlay img{
    max-width:92vw;
    max-height:88vh;
    object-fit:contain;
    display:block;
    border-radius:6px;
  }

.lightbox-close{
    position:absolute;
    top:20px; right:24px;
    width:40px; height:40px;
    border-radius:50%;
    border:1px solid rgba(246,243,236,0.35);
    background:rgba(20,23,28,0.4);
    color:var(--paper);
    font-size:20px;
    line-height:1;
    cursor:pointer;
    z-index:2;
  }

.lightbox-close:hover{ background:rgba(20,23,28,0.65); }

  /* ---------- PRODUCT LIST PAGE（buttons.html、eps.html 等產品分類頁共用） ---------- */

  .product-section{
    max-width:var(--maxw, 960px);
    margin:0 auto;
    padding:8px 28px 64px;
  }

/* 卡片內完整規格區塊：預設隱藏，只在 modal 開啟時把內容複製出來顯示 */
.product-full-detail[hidden]{ display:none; }

/* 佔位卡片：純展示用，不可點擊。沿用 product-media / product-body 結構，
   讓上方留白高度跟真實產品卡的圖片區一致，粗體標題才會跟左邊卡片對齊 */
.product-card.placeholder{
    border:1px dashed var(--line, rgba(20,23,28,0.2));
    background:transparent;
    box-shadow:none;
    cursor:default;
  }

.product-card.placeholder:hover,
.product-card.placeholder:focus-visible{
    transform:none;
    box-shadow:none;
    border-color:var(--line, rgba(20,23,28,0.2));
  }

.product-card.placeholder .product-media{ background:transparent; }

  /* ---------- TIMELINE ---------- */

  

  

  
  
  .timeline-marker{
    position:absolute;
    left:0; top:8px;
    width:48px; height:48px;
    border-radius:50%;
    background:var(--paper);
    border:1.5px solid var(--steel);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--mono);
    font-size:12px;
    color:var(--ink);
    z-index:1;
  }

.timeline-marker.era-elec{ border-color:var(--brass); }

.timeline-marker.era-smart{ border-color:var(--brass-deep); background:var(--brass-light); }

  /* ---------- SCROLL REVEAL ---------- */

  @media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

@media (prefers-reduced-motion: reduce){
    .tag-pop, .tag-pop-dark{ opacity:1; transition:none; }
    .tag-pop{ color:var(--brass-text); }
    .tag-pop-dark{ color:var(--brass-light); }
  }

/* ---------- MOBILE ---------- */
  @media (max-width: 860px){
    .hero{ grid-template-columns:1fr; padding-top:44px; }
    .hero-copy h1{ font-size:32px; }
    .hero-figure{ order:-1; max-width:280px; margin:0 auto 12px; }
    .contact .inner{ padding:38px 26px; }
  }

/* ---------- ARTICLES HUB ---------- */
  .articles-hero{
    padding:72px 28px 40px;
    max-width:var(--maxw);
    margin:0 auto;
  }

.articles-hero h1{
    font-size:36px;
    line-height:1.32;
    font-weight:700;
    margin:16px 0 14px;
  }

.articles-hero p{
    color:var(--steel);
    font-size:16px;
    max-width:560px;
  }

.article-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:24px;
    max-width:var(--maxw);
    margin:0 auto;
    padding:16px 28px 100px;
  }

.article-card{
    display:flex;
    flex-direction:column;
    background:var(--paper);
    border:1.5px solid var(--steel);
    border-radius:10px;
    padding:26px 24px;
    text-decoration:none;
    color:inherit;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

.article-card:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 30px rgba(20,23,28,0.09);
    border-color:var(--brass);
  }

.article-card .tag{
    font-family:var(--mono);
    font-size:11.5px;
    font-weight:600;
    letter-spacing:0.08em;
    color:var(--brass-text);
    text-transform:uppercase;
    margin-bottom:12px;
  }

.article-card h3{
    font-size:19px;
    line-height:1.4;
    margin-bottom:10px;
  }

.article-card p{
    color:var(--steel);
    font-size:14px;
    margin:0 0 18px;
    flex:1;
  }

.article-card .read-more{
    font-family:var(--mono);
    font-size:12.5px;
    font-weight:600;
    color:var(--ink);
    display:inline-flex;
    align-items:center;
    gap:6px;
  }

.article-card .read-more::after{ content:"→"; transition:transform .18s ease; }

.article-card:hover .read-more::after{ transform:translateX(3px); }

.article-card.placeholder{
    border-style:dashed;
    align-items:flex-start;
    justify-content:center;
    color:var(--steel-soft);
    cursor:default;
  }

.article-card.placeholder:hover{
    transform:none;
    box-shadow:none;
    border-color:var(--line);
  }

.article-card.placeholder .tag{ color:var(--steel-soft); }

/* ---------- ARTICLE DETAIL ---------- */
  .breadcrumb{
    max-width:760px;
    margin:0 auto;
    padding:36px 28px 0;
    font-family:var(--mono);
    font-size:12.5px;
    color:var(--steel-soft);
  }

.breadcrumb a{ color:var(--steel); text-decoration:none; border-bottom:1px solid var(--line); }

.breadcrumb a:hover{ color:var(--ink); border-color:var(--ink); }

.article-header{
    max-width:760px;
    margin:0 auto;
    padding:20px 28px 40px;
    border-bottom:1px solid var(--line);
  }

.article-header h1{
    font-size:32px;
    line-height:1.4;
    font-weight:700;
    margin:16px 0 0;
  }

.article-body{
    max-width:760px;
    margin:0 auto;
    padding:48px 28px 100px;
    font-size:16.5px;
    color:var(--ink-soft);
  }

.article-body h2{
    font-size:23px;
    margin:52px 0 18px;
    color:var(--ink);
  }

.article-body h2:first-child{ margin-top:0; }

.article-body h3{
    font-size:18px;
    margin:34px 0 12px;
    color:var(--ink);
  }

.article-body p{ margin:0 0 18px; }

.article-body ul, .article-body ol{
    margin:0 0 20px;
    padding-left:22px;
  }

.article-body li{ margin-bottom:8px; }

.article-body strong{ color:var(--ink); }

.article-body .lead{
    font-size:17.5px;
    color:var(--steel);
  }

.article-body table{
    width:100%;
    border-collapse:collapse;
    margin:0 0 24px;
    font-size:14px;
  }

.article-body th, .article-body td{
    text-align:left;
    padding:12px 14px;
    border:1px solid var(--line);
  }

.article-body th{
    background:var(--paper-dim);
    font-weight:700;
    color:var(--ink);
  }

.article-body td{ color:var(--ink-soft); }

.article-body .table-wrap{
    overflow-x:auto;
    margin:0 0 24px;
    -webkit-overflow-scrolling:touch;
  }

.article-body .table-wrap table{ margin:0; min-width:560px; }

.media-placeholder{
    color:var(--steel-soft);
    font-family:var(--mono);
    font-size:12.5px;
    letter-spacing:0.05em;
  }

/* ---------- ARTICLE AUDIO PLAYER ---------- */
#article-audio-player{
    max-width:760px;
    margin:0 auto;
    padding:28px 28px 0;
  }

.audio-player-label{
    font-family:var(--mono);
    font-size:12.5px;
    font-weight:600;
    letter-spacing:0.05em;
    color:var(--brass-text);
    margin-bottom:10px;
  }

.audio-player-controls{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    padding:14px 18px;
    border:1px solid var(--line);
    border-radius:10px;
    background:var(--paper-dim);
  }

.audio-btn{
    font-family:var(--body);
    font-weight:700;
    font-size:13.5px;
    border:1px solid var(--steel);
    background:var(--paper);
    color:var(--ink);
    padding:8px 16px;
    border-radius:999px;
    cursor:pointer;
    transition:background .18s ease, transform .18s ease;
  }

.audio-btn:hover{ background:var(--brass-light); transform:translateY(-1px); }

.audio-btn:disabled{ opacity:0.5; cursor:default; transform:none; }

.audio-btn-play{ border-color:var(--brass-deep); }

.audio-btn-speed{
    font-family:var(--mono);
    min-width:44px;
    padding:8px 12px;
    text-align:center;
  }

.audio-progress-wrap{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1;
    min-width:160px;
  }

.audio-progress-track{
    flex:1;
    height:5px;
    background:var(--line);
    border-radius:999px;
    cursor:pointer;
    position:relative;
    overflow:hidden;
  }

.audio-progress-fill{
    height:100%;
    width:0%;
    background:var(--brass-deep);
    border-radius:999px;
  }

.audio-time{
    font-family:var(--mono);
    font-size:12px;
    color:var(--steel);
    white-space:nowrap;
  }

@media (max-width:480px){
    .audio-player-controls{ padding:12px 14px; }
    .audio-progress-wrap{ width:100%; order:3; }
  }

/* 播放中且原始位置捲出畫面時，控制列固定在畫面底部 */
.audio-player-controls.is-floating{
    position:fixed;
    left:0;
    right:0;
    bottom:16px;
    width:calc(100% - 32px);
    max-width:704px;
    margin:0 auto;
    z-index:1200;
    box-shadow:0 12px 30px rgba(20,23,28,0.2);
    animation:audioFloatIn .2s ease;
  }

@keyframes audioFloatIn{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:translateY(0); }
  }

.audio-player-controls-spacer{ display:block; }

@media (prefers-reduced-motion: reduce){
    .audio-player-controls.is-floating{ animation:none; }
  }
