/* ==========================================================
   和昌國際工業 — site styles (頁首三等分對齊＆子選單修正版)
   ========================================================== */

:root{
  --navy:#0f2f52;
  --navy-deep:#0a2038;
  --blue:#0069b7;
  --blue-light:#eaf3fb;
  --sky:#4fa8e0;
  --gold:#a9791f;
  --ink:#2c3440;
  --gray:#6a7480;
  --gray-deep:#1e1e1e;
  --line:#e3e8ee;
  --paper:#ffffff;
  --radius:2px;
  --maxw:1600px;
  --header-h:76px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x:hidden;}
body{
  margin:0;
  font-family: 'Prompt', 'Noto Sans Thai', 'Kanit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color:var(--ink);
  line-height:1.7;
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,p{margin:0;}
a{color:inherit;text-decoration:none;}
button{font:inherit;background:none;border:0;cursor:pointer;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;}
img{max-width:100%;display:block;}

.section-eyebrow{
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-deep);
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1.4rem;
}
.section-eyebrow span{
  font-size: 1.125rem;
  font-weight: 400;
  color: #ababab;
  letter-spacing: .02em;
}
.section-eyebrow.center{
  justify-content:center;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:0;
}
.eyebrow-divider{
  display:block;
  width:14px;
  height:auto;
  margin:0;
}

.section-eyebrow.with-line{flex-wrap:wrap;}
.section-eyebrow span.eyebrow-main{
  position:relative;
  font-size:1em;
  font-weight:inherit;
  color:inherit;
}
.eyebrow-main::after{
  content: "";
  position:absolute;
  left:0;
  bottom:-8px;
  width: 40px;
  height: 2px;
  background-color:var(--blue);
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: 13px 32px 10px 36px;
  border-radius:999px;
  font-size:1.25rem;
  font-weight:600;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.btn span{transition:transform .2s ease; display:inline-flex; align-items:center;}
.btn-arrow{width:1.1em; height:1.1em; display:block;}
.btn:hover span{transform:translateX(3px);}
.btn-outline {
    border: 1.5px solid var(--blue);
    color: var(--blue);
}
.btn-outline:hover{background:var(--blue);color:#fff;}
.btn-solid{
  background:var(--blue);
  color:#fff;
}
.btn-solid:hover{background:#fff; color:#0069b7; border:1px solid #0069b7;}
.btn.small{padding:.55rem 1.3rem;font-size:.82rem;}
.center-btn{display:flex;margin:3rem auto 0;width:max-content;}


/* ============ HEADER ============ */
/* transform 改以 margin auto 置中（下層 position:fixed 子選單
   為了以視窗為基準正確計算，不使用 transform) */
.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: calc(100% - 160px);
  max-width: 1840px;
  min-height: 80px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 200;
  background: #fff;
  box-shadow: 0 3px 18px rgba(10, 32, 56, .08);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.site-header.is-scrolled {
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  padding: 0 60px;
}

.header-inner{
  width:100%;
  height:64px;
  display:grid;
  grid-template-columns:250px minmax(0,1fr) minmax(150px,max-content);  /* 右欄依「經營事業」按鈕寬度 */
  align-items:center;
  padding:0 52px;
  position:relative;
  column-gap:20px;
}

.logo{
  display:flex;
  align-items:center;
  gap:.6rem;
  flex-shrink:0;
}
.logo-mark{display:flex;flex-shrink:0;}
.logo-img{
  display:block;
  height:54px;
  width:auto;
}
.logo-text{display:flex;flex-direction:column;line-height:1.2;}
.logo-text strong{
  font-size:1.05rem;
  color:var(--navy);
  letter-spacing:.02em;
  white-space:nowrap;
}
.logo-text em{
  font-style:normal;
  font-size:.60rem;
  color:var(--gray);
  letter-spacing:.01em;
  white-space:nowrap;
}


.main-nav {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  width: auto;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-item{
  position: static !important; /* ★ 取消個別 li 的定位基準 */

  list-style: none !important;
  flex-shrink: 0;
}
.nav-link{
  position:relative;
  font-size:1.125rem;
  font-weight:500;
  padding:1.05rem 0;
  color:var(--gray-deep);
  display:flex;
  align-items:center;
  gap:8px;
  background:none;
  border:none;
  cursor:pointer;
  white-space:nowrap;
}
.nav-item.has-mega > .nav-link::after{
  content:"";
  width:7px;
  height:7px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transform-origin:center;
  transition:transform .2s ease;
}
.nav-item.has-mega > .nav-link::before{
  content:"";
  position:absolute;
  left:-4px;
  right:-4px;
  bottom:-11px;
  height:2px;
  background:var(--blue);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
  z-index:150;
}
.nav-item.has-mega:hover > .nav-link,
.nav-item.has-mega.open > .nav-link{
  color:var(--blue);
  font-weight:600;
}
.nav-item.has-mega:hover > .nav-link::before,
.nav-item.has-mega.open > .nav-link::before{
  transform:scaleX(1);
}
.nav-item.has-mega:hover > .nav-link::after,
.nav-item.has-mega.open > .nav-link::after{
  transform:rotate(225deg) translateY(-1px);
}
.nav-item.no-arrow > .nav-link::after{display:none;}

.language-wrap {
  position: relative;
  justify-self: end;
  background: #0076cd;
  border-radius: 24px;
  color: #fff;
  font-size: 1rem;        /* 比上方選單（1.125rem）稍小 */
  font-weight: 500;
  padding: 9px 32px;
  white-space: nowrap;   /* 文字與 ▾ 不換行 */
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;                     /* 置中對齊於「經營事業」按鈕下方 */
  right: auto;
  transform: translateX(-50%);
  min-width: 140px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
  padding: 8px 0;
  display: none;
  z-index: 300;
}

.language-menu a {
  display: block;
  padding: 9px 18px;
  font-size: inherit;   /* 與「經營事業」按鈕相同字級 */
  color: var(--ink);
  white-space: nowrap;
}

.language-menu a:hover {
  background: var(--blue-light);
  color: var(--navy);
}

.language-wrap:hover .language-menu {
  display: block;
}
/* 觸控裝置沒有 :hover，因此補強為點擊開啟/關閉（桌面版 hover 運作維持不變) */
.language-wrap.is-open .language-menu {
  display: block;
}
/* Language 修正按鈕 ↔ 選單之間 8px 空隙，導致滑鼠往下移時選單消失的問題
   → 在選單上方建立看不見的連接區域，滑鼠經過時也維持展開 */
.language-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* ============ MEGA MENU / SUB MENU ============ */
.mega-panel,
.sub-menu{
  display: none;
  position: fixed;                 /* 與頁首同寬・置中（以視窗為基準) */
  top: 108px;                      /* 頁首 top（28px）＋頁首高度(80px) */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 160px);       /* .site-header 相同的計算方式 */
  max-width: 1840px;               /* .site-header 相同 */
  box-sizing: border-box;

  min-height: 0;
  background: #fff;
  padding: 0;
  z-index: 100;
  overflow: hidden;

  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .07);
  border-top: 1px solid #f0f2f5;
}

.nav-item:hover .mega-panel,
.nav-item.open .mega-panel,
.nav-item:hover .sub-menu,
.nav-item.open .sub-menu{
  display:block;
}

.site-header.is-scrolled .mega-panel,
.site-header.is-scrolled .sub-menu{
  top: 80px;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

/* 捲動時頁首左右 padding 由 40px→60px 改變，因此,
   若要維持 Logo 對齊，灰色方框的左側留白也要一起加大 */
.site-header.is-scrolled .mega-info{
  padding-left:112px;
}

/* 內容使用面板全寬 — 灰色方框到 Logo～選單中間點為止的
   固定寬度（不隨大選單項目改變的一致版面) */
.mega-inner,
.sub-menu-inner{
  width:100%;
  max-width:none;
  margin:0;
  display:grid;
  grid-template-columns:384px minmax(160px,auto) 1fr;
  align-items:stretch;
  justify-content:start;
  padding:0;
}

/* 左側灰色說明方框（面板左端，全高）— 文字與 Logo 左端對齊 */
.mega-info{
  background:#f5f6f8;
  padding:42px 40px 42px 92px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:12px;
}
.mega-info h3{
  font-size:1.75rem;
  color:#333333;
  font-weight:600;
  line-height:1.35;
}
.mega-info p{
  font-size:1rem;
  color:#333333;
  line-height:1.75;
}

/* 中間連結列表 — JS 依展開中的大選單項目 x 座標對齊
   加上額外間距（--links-offset），讓連結位於該項目正下方 */
.mega-links{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:44px 0 44px 56px;
  margin-left:var(--links-offset, 0px);
}
.mega-links a{
  font-size:1.125rem;
  color:#1e1e1e;
  line-height:1.5;
  padding:9px 16px;
  border-radius:6px;
  transition:background .2s ease, color .2s ease;
  white-space:nowrap;
}
.mega-links a:hover{
  color:var(--blue);
  font-weight:600;
}

/* 右側圖片（面板右端)
   即使大選單沒有子選單（.mega-links），照片也會落到第 2 格（窄連結用）
   固定在第 3 格，避免被往前拉 */
.mega-photo{
  grid-column:3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:36px 60px;
}
.mega-photo-img{
  width:330px;          /* 100% → 固定寬度：不受欄寬計算影響 */
  max-width:100%;
  height:215px;
  flex-shrink:0;
  border-radius:2px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.mega-img-1{background-image:url("../img/proj-4.jpg");}
.mega-img-2{background-image:url("../img/plant-neihu.jpg");}
.mega-img-3{background-image:url("../img/proj-1.jpg");}
.mega-img-4{background-image:url("../img/proj-5.jpg");}
.mega-img-5{background-image:url("../img/news-1.jpg");}
.mega-img-6{background-image:url("../img/contact/contact_s.jpg");}

.nav-toggle{display:none;}
.nav-scrim{
  position:fixed;inset:0;
  background:rgba(10,32,56,.35);
  opacity:0;visibility:hidden;
  transition:opacity .2s ease;
  z-index:90;
}
.nav-scrim.is-visible{opacity:1;visibility:visible;}

/* ============ HERO ============ */
.hero-stage{
  position:relative;
  width:100%;
  height:950px; /* 指定高度 1024px */
  overflow:hidden;
  background:#087cc5;
}

.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  visibility:hidden;
  transition:opacity 1.1s ease;
  overflow:hidden;
}

.hero-slide.is-active{
  opacity:1 !important;
  visibility:visible !important;
}

/* 主視覺背景圖片 3 張（輪播) */
.hero-slide::before{
  content:"";
  position:absolute;
  inset:0;

  background-image:
    linear-gradient(
      90deg,
      rgba(6,20,36,0.15) 0%,
      rgba(6,20,36,0.05) 50%,
      rgba(6,20,36,0) 100%
    ),
    url("../img/top_img01.png");

  background-repeat:no-repeat;
  background-position: center 100%;
  background-size:cover;

  z-index:0;
}
/* 2第 2、第 3 張輪播換成其他背景圖片 */
.hero-slide:nth-of-type(2)::before{
  background-image:
    linear-gradient(
      90deg,
      rgba(6,20,36,0.15) 0%,
      rgba(6,20,36,0.05) 50%,
      rgba(6,20,36,0) 100%
    ),
    url("../img/top_img02.png");
}
.hero-slide:nth-of-type(3)::before{
  background-image:
    linear-gradient(
      90deg,
      rgba(6,20,36,0.15) 0%,
      rgba(6,20,36,0.05) 50%,
      rgba(6,20,36,0) 100%
    ),
    url("../img/top_img03.png");
}

/* 文字顯示在圖片上 */
.hero-slide > *{
  position:relative;
  z-index:1;
}
.hero-tag{
  position:absolute;
  left:var(--tx);top:var(--ty);
  color:#fff;font-weight:700;font-size:1.05rem;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
  letter-spacing:.02em;
}
.hero-tag::before{
  content:"";
  position:absolute;left:0;bottom:-10px;
  width:26px;height:3px;background:#fff;opacity:.75;
}
.hero-overlay{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:160px;               /* 位於頁首正下方 */
  width:calc(100% - 160px); /* 與頁首 width 相同 */
  max-width:1840px;         /* 與頁首 max-width 相同 */
  padding:0 52px;           /* 與 Logo 左側線完全對齊 */
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  pointer-events:none;
  z-index:2;
  opacity:1;
  visibility:visible;
  transition:opacity .6s ease, visibility 0s linear 0s;
}
/* 文字只在第一張背景（top_img01）時顯示，第 2・3 張背景時隱藏 */
#heroStage:not(.hero-bg-1) .hero-overlay{
  opacity:0;
  visibility:hidden;
  transition:opacity .6s ease, visibility 0s linear .6s;
}

/* 上方小標題 */
.hero-eyebrow{
  color:#ffffff;
  font-weight:500;
  font-size:2.15rem;          /* 放大尺寸（原本 1.35rem) */
  letter-spacing:0.04em;     /* 增加字距 */
  margin-bottom:0.9rem;
  text-shadow:0 2px 8px rgba(0,0,0,.2);
}

/* 主標題 */
.hero-overlay h1 {
  font-size: clamp(2.15rem, 3vw, 3.4rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  margin-bottom: 1.2rem;
}

.hero-title-bold{
  font-weight:700;
}

/* 後面的文字 : normal (400) */
.hero-title-normal{
  font-weight:400; /* 或 normal */
}

/* 昌與「國」之間下方的直線（維持位置) */
.hero-divider{
  width: 1px;
  height: 72px;
  background-color: rgb(255, 255, 255);
  opacity: 0.85;
  border-radius: 1px;
  margin-left: calc(7.16em);
}
.hero-controls{
  position:absolute;
  left:24px;bottom:22px;
  z-index:5;
  display:flex;align-items:center;gap:1rem;
  color:#fff;font-size:.85rem;
}
.carousel-controls{
  display:flex;align-items:center;gap:1rem;
  margin-top:1rem;
  color:var(--gray);
  font-size:.85rem;
}
.carousel-controls.light{color:#fff;position:absolute;left:1.4rem;bottom:1.2rem;margin:0;}
.carousel-controls.light.bottom-right{
  left:auto;
  right:-5px;
  bottom:0;
  margin:0;
  background:#f8f8f8;
  background:#f8f8f8;
  color:var(--gray);
  height:50px;
/*  min-width:180px;*/
  padding:0 .9rem 0 1.1rem;
  border-radius:20px 0 0 0;
  gap:.55rem;
  z-index:4;
}
.carousel-controls.light.bottom-right .carousel-count em,
.carousel-controls.light.bottom-right .carousel-total{color:var(--gray-deep);font-weight:700;font-style:normal;font-size:1em;}
.carousel-controls.light.bottom-right .carousel-total{color:var(--gray);font-weight:600;}
.carousel-track{
  width:46px;height:2px;border-radius:2px;
  background:var(--line);
  position:relative;overflow:hidden;
  flex-shrink:0;
}
.carousel-track-fill{
  position:absolute;left:0;top:0;height:100%;
  width:0%;
  background:var(--blue);
  transition:width .4s ease;
}
.carousel-controls.light.bottom-right .carousel-arrow{
   width: 24px;
   height: 24px;
   background: var(--blue);
   border-color: var(--blue);
   flex-shrink: 0;
   margin-right: .4rem;
   stroke-linecap:round;
}
.carousel-count em{font-style:normal;color:var(--navy);font-weight:700;}
.hero-controls .carousel-count em,
.carousel-controls.light .carousel-count em{color:#fff;}
.carousel-arrow{
  width:30px;height:30px;border-radius:50%;
  border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;color:var(--navy);
  background:#fff;
}
.hero-controls .carousel-arrow,
.carousel-controls.light .carousel-arrow{border-color:rgba(255,255,255,.7);color:#fff;background:rgba(255,255,255,.12);backdrop-filter:blur(2px);}
.carousel-arrow:hover{background:var(--navy);color:#fff;border-color:var(--navy);}

/* ---- 工廠縮圖下方輪播控制 (01 -- 03  <> ) ---- */
.hero-plants-controls{
  position:absolute;
  left:125px;              /* .hero-plants(照片方框）設為相同值 → 左側線對齊 */
  bottom:36px;
  z-index:3;
  display:flex;
  align-items:center;
  gap:14px;
  color:#fff;
  font-weight:700;
  font-size:.85rem;
  line-height:1;             /* 統一文字/箭頭基準線 */
}
.hpc-count{
  min-width:16px;
  line-height:1;
  display:flex;
  align-items:center;
}
.hpc-track{
  width:220px;
  height:2px;
  background:rgba(255,255,255,.35);
  position:relative;
  overflow:hidden;
}
.hpc-fill{
  position:absolute;
  left:0;top:0;
  height:100%;
  width:0%;
  background:#fff;
}
.hpc-fill.animate{
  transition:width 5s linear;
}
.hpc-arrow{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    margin:0;
    border:0;
    background:none;
    color:#fff;
    flex-shrink:0;
}
.hpc-arrow svg{width:22px;height:22px;}
.hero-plants{
  opacity:1;
  visibility:visible;
  transition:opacity .6s ease, visibility 0s linear 0s;
  pointer-events:auto;
}
#heroStage:not(.hero-bg-1) .hero-plants{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .6s ease, visibility 0s linear .6s;
}


.hero-plants{
  position:absolute;
  left:125px;
  bottom:90px;
  z-index:3;
  display:flex;
  gap:30px;
}
.hero-plant-item{
  position:relative;
  width:284px;
  height:382px;
  border-radius:4px;
  overflow:hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .10);
}
.hero-plant-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hero-plant-label{
  position:absolute;
  left:0;right:0;bottom:0;
  padding:14px 20px 12px;
  color:#0069b7;
  font-weight:700;
  font-size:1.45rem;
  letter-spacing:.1em;
  text-align: right;
}

/* ============ ABOUT ============ */
.about{
  background:#f8f8f8;
  padding:4.5rem 0;
}
.about-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:2.5rem;  
  align-items:center;
  box-sizing:border-box;
}
.about-text p:not(.section-eyebrow){
  color:var(--gray-deep);
  font-size:1.125rem;
  margin-top:1rem;
}
.about-text h2 {
  font-size: 2rem;
  color: #0069b7;
  font-weight: 600;
  line-height: 1.4;
  margin: .3rem 0 1rem;
  padding-bottom: 18px;
  border-bottom: 1px solid #0069b7;  
}
.about-text .btn{margin-top:1rem;}
.about-carousel{
  position:relative;
  width:100%;
  max-width:520px;
  aspect-ratio:1/1;
  justify-self:end;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}
.about-photo{
  position:absolute;inset:0;
  background:linear-gradient(120deg,#bfe1f2,#3d84ad 45%,#0f3a5c 100%) center/cover no-repeat;
  opacity:0;
  z-index:1;
  transition:opacity .8s ease;
}
.about-photo.is-active{opacity:1;z-index:2;}
.about-photo-1{background:url('../img/about_img_r.png') center/cover no-repeat;}
.about-photo-2{background:url('../img/about_img_r02.png') center/cover no-repeat;}
.about-photo-3{background:url('../img/about_img_r03.png') center/cover no-repeat;}

/* ============ AWARDS ============ */
.awards{
/*  background:var(--blue-light);*/
  padding:4.5rem 0;
  border-bottom: 1px solid #e2e2e2;
}
.awards-history-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
  box-sizing:border-box;
}
.awards-slider{
  position:relative;
  margin-top:1rem;
}
.awards-arrow{
  position:absolute;
  top:240px;
  transform:translateY(-50%);
  width:38px;height:38px;
  border-radius:50%;
  color:var(--grey);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  z-index:5;
  font-size:1.3rem;
  transition:background .25s ease, color .25s ease, opacity .25s ease;
}
.awards-arrow-prev{left:0;}
.awards-arrow-next{right:0;}
.awards-arrow[disabled]{opacity:.35;cursor:default;pointer-events:none;}

.awards-viewport{
  margin:0 60px;
  overflow:hidden;
  position:relative;
}
.awards-viewport::before,
.awards-viewport::after{
  content:"";
  position:absolute;
  top:0;bottom:0;
  width:40px;
  z-index:2;
  pointer-events:none;
}
.awards-viewport::before{left:0;background:linear-gradient(90deg, #ffffff 0%, transparent 100%);}
.awards-viewport::after{right:0;background:linear-gradient(270deg, #ffffff 0%, transparent 100%);}

.awards-track{
  display:flex;
  transition:transform .6s cubic-bezier(.65,0,.35,1);
  will-change:transform;
}
.awards-item{
  flex:0 0 33.3333%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:0 28px;
  box-sizing:border-box;
  position:relative;
  text-align:center;
}
.awards-item::before{
  content:"";
  position:absolute;
  top:240px;left:-20px;right:-20px;
  height:1px;
  background:var(--gold);
  opacity:.45;
  z-index:0;
}
.awards-track.no-anim{transition:none;}
.awards-trophy{
  width:auto;max-width:220px;height:200px;
  margin:0 auto .6rem;
  position:relative;z-index:1;
  transition:transform .35s ease;
}
.awards-trophy img{
  width:auto;height:100%;max-width:100%;
  object-fit:contain;display:block;margin:0 auto;
}
.awards-item:hover .awards-trophy{transform:translateY(-6px);}
.awards-dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--gold);
  margin:1.6rem auto 1.1rem;
  position:relative;z-index:1;
}
.awards-year{
  display:inline-block;
  font-size:3rem;font-weight:700;
  color:var(--gold);
  margin-bottom:.7rem;
}
.awards-desc{
  font-size:1.125rem;
  line-height:1.6;
  color:var(--gray-deep);
  max-width:280px;
  margin:0 auto;
}

.awards-more-btn-wrap{display:flex;justify-content:center;margin-top:6rem;}
.awards-more-btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:42px;gap:10px;padding:0 1.4rem;
  border:1.5px solid var(--blue);
  border-radius:999px;
  background:var(--blue);
  color:#fff;
  font-size:.9rem;font-weight:600;
  white-space:nowrap;
  transition:background .25s ease, color .25s ease, border-color .25s ease;
}
.awards-more-btn:hover{background:var(--navy);border-color:var(--navy);color:#fff;}
.awards-more-btn .arrow-icon{transition:transform .25s ease;}
.awards-more-btn:hover .arrow-icon{transform:translateX(4px);}

@media (max-width:900px){
  .awards-item{flex:0 0 100%;padding:0 8px;}
  .awards-item::before{left:-8px;right:-8px;}
  .awards-viewport{margin:0 44px;}
  .awards-viewport::before,
  .awards-viewport::after{display:none;}
  .awards-desc{max-width:none;width:100%;}
}

/* ============ PROJECTS ============ */
.projects{max-width:var(--maxw);margin:5rem auto 0;padding:0 24px;}
.projects-visual{
  position:relative;
  width:100vw;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  margin-top:2.5rem;
}
.projects-band{
  position:absolute;
  top:140px;     /* 從第一列圖片高度（280px）約 1/3 處開始藍色背景 */
  left:0;right:0;bottom:0;
  background:var(--blue-light);
  z-index:0;
}
.projects-inner{
  position:relative;
  z-index:1;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 40px 6rem;
}
.project-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1.4fr 1fr;
  grid-template-rows:repeat(2,280px);
  grid-auto-flow:column;
  gap:28px;
}
.project-cell{
  display:block;
  border-radius:20px;
  background:#dfe9f2;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.proj-tall{grid-row:1 / span 2; border-radius:30px;}
.projects-visual .center-btn{position:relative;z-index:1;}
.proj-bg{
  position:absolute;inset:0;
  background:linear-gradient(150deg,#8fb9d4,#1c4f74) center/cover no-repeat;
  transform:scale(1);
  transition:transform .5s ease;
}
.project-cell::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(15,47,82,0) 25%, rgba(15,47,82,.55) 65%, rgba(9,28,48,.92) 100%);
  transition:opacity .35s ease;
  pointer-events:none;
  z-index:1;
}
.project-cell:hover .proj-bg{transform:scale(1.12);}
.project-cell:hover::before{opacity:.9;}
.bg-1{background-image:url('../img/proj-ntu-humanities.jpg');}
.bg-2{background-image:url('../img/proj-2.jpg');}
.bg-3{background-image:url('../img/proj-3.jpg');}
.bg-4{background-image:url('../img/proj-4.jpg');}
.bg-5{background-image:url('../img/proj-5.jpg');}
.proj-caption{
  position:absolute;left:18px;right:56px;bottom:16px;
  color:#fff;font-size:1.125rem;font-weight:600;line-height:1.4;
  letter-spacing:0.02rem;
  text-shadow:0 1px 6px rgba(0,0,0,.5);
  z-index:2;
}
.proj-arrow{
  position:absolute;top:14px;right:14px;
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.65);
  color:#fff;
  z-index:2;
  transition:background .3s ease, border-color .3s ease;
}
.proj-arrow svg{width:16px;height:16px;}
.project-cell:hover .proj-arrow{background:var(--blue);border-color:var(--blue);}

/* ============ VIDEO ============ */
.video-feature{max-width:var(--maxw);margin:5rem auto 0;padding:0 24px;}
.video-frame{
  position:relative;
  aspect-ratio:16/7;
  border-radius:var(--radius);
  overflow:hidden;
  background:#0a1a2c;
}
.video-cover{
  position:absolute;inset:0;
  /* 封面：① img/yt1280x720_hoch.png ② YouTube 高畫質縮圖 ③ YouTube 一般縮圖（讀不到前面的圖會顯示後面的） */
  background-image:url('../img/yt1280x720_hoch.png'), url('https://i.ytimg.com/vi/3bOTK0NlkR0/maxresdefault.jpg'), url('https://i.ytimg.com/vi/3bOTK0NlkR0/hqdefault.jpg');
  background-size:cover;background-position:center;background-repeat:no-repeat;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.video-iframe{
  position:absolute;inset:0;
  width:100%;height:100%;
  border:0;
}
.video-header{
  position:absolute;top:1.2rem;left:1.2rem;
  display:flex;align-items:center;gap:.6rem;
  color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.4);
}
.video-avatar{
  width:32px;height:32px;border-radius:50%;
  background:#fff;
  display:block;
}
.video-header strong{display:block;font-size: 1.525rem;}
.video-header small{opacity:.8;font-size:0.925rem;}
.video-play{
  width:66px;height:66px;border-radius:50%;
  background:rgba(255,45,45,.92);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  z-index:2;
}
.video-play:hover{transform:scale(1.06);}
.video-link{
  position:absolute;right:1.2rem;bottom:1.1rem;
  color:#fff;font-size:.82rem;font-weight:600;
  background:rgba(10,25,42,.45);
  padding:.4rem .8rem;border-radius:999px;
  display:flex;align-items:center;gap:.4rem;
}
.video-icons{
  position:absolute;left:1.2rem;bottom:1.1rem;
  display:flex;gap:.6rem;
}
.video-icons button{
  width:34px;height:34px;border-radius:50%;
  background:rgba(10,25,42,.45);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.video-icons button:hover{background:rgba(10,25,42,.7);}
.video-toast{
  position:absolute;
  left:0;bottom:calc(100% + 10px);
  background:rgba(10,25,42,.9);
  color:#fff;
  font-size:.76rem;
  padding:.45rem .8rem;
  border-radius:6px;
  white-space:nowrap;
  opacity:0;
  transform:translateY(4px);
  transition:opacity .2s ease, transform .2s ease;
  pointer-events:none;
}
.video-toast.is-visible{opacity:1;transform:translateY(0);}

/* ============ NEWS ============ */
.news{background:#f8f8f8;margin-top:5rem;padding:4.5rem 0 5rem;}
.news-inner{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.news-head{position:relative;text-align:center;margin-bottom:2.2rem;}
.news-head .section-eyebrow{margin-bottom:0;}
.news-head .btn{position:absolute;top:50%;right:0;transform:translateY(-50%);}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.8rem;}
.news-card{
  border-radius:var(--radius);
  position:relative;
  padding-left:1px;
}
.news-card::before{
  content:"";
  position:absolute;
  left:0;top:2px;bottom:-8px;
  width:1px;
  background:var(--line);
}
.news-photo{
  aspect-ratio:16/10;
  margin-bottom:1rem;
  background:linear-gradient(140deg,#9fc0d8,#204a6e) center/cover no-repeat;
}
.news-photo-1{background-image:url('../img/news/new02_01.jpg');}
.news-photo-2{background-image:url('../img/news/new03_01.jpg');}
.news-photo-3{background-image:url('../img/news/new04_01.jpg');}
.news-card p{
  font-size:1.125rem;color:var(--ink);
  padding-left:20px;
  padding-top: 30px;
  display:inline-block;width:calc(100% - 46px);
  line-height:1.4;
  vertical-align:middle;
}
.news-arrow{
  display:inline-flex;
  width:34px;height:34px;border-radius:50%;
  background:var(--blue);
  border:1px solid var(--blue);
  align-items:center;justify-content:center;
  font-size:1.1rem;color:#fff;
  vertical-align:middle;
  transition:background .2s ease, color .2s ease;
  margin-top: 30px;
  box-sizing:border-box;
}
.news-arrow:hover{background:#f8f8f8;color:var(--blue);}
/* 點擊照片也會前往詳細頁 */
.news-photo-link{display:block;overflow:hidden;margin-bottom:1rem;}
.news-photo-link .news-photo{margin-bottom:0;transition:transform .5s ease;}
.news-photo-link:hover .news-photo{transform:scale(1.04);}

/* ============ FOOTER ============ */
.site-footer{background:#fff;color:var(--ink);padding:3rem 24px 1.6rem;border-top:1px solid var(--line);}
.footer-inner{
  max-width:var(--maxw);margin:0 auto;
  display:flex;flex-wrap:wrap;
  align-items:center;justify-content:space-between;
  gap:1.6rem;
  padding-bottom:1.8rem;
  border-bottom:1px solid var(--line);
}
.footer-logo .logo-img{height:54px;width:auto;}
.footer-brand{display:flex;flex-direction:column;gap:.7rem;}
.footer-contact p{font-size:1rem;margin:.2rem 0;color:var(--gray-deep);letter-spacing:0.05rem;}
.footer-tel-gap{margin-left:2rem;}
.footer-actions{display:flex;align-items:center;gap:1.4rem;}
.social-row{display:flex;gap:.6rem;}
.social-row a{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #999;
    border:1px solid #999;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.social-row a:hover{background:#fff;color:var(--blue);border-color:var(--blue);}
.family-site-wrap{position:relative;}
.family-site-btn{
  border:3px solid var(--gray-deep);
  color:var(--ink);
  border-radius:999px;
  padding:10px 40px 10px 40px;
  font-size:1rem;
  display:flex;
  align-items:center;
  gap:.3rem;
  font-weight: bold;
  background:#fff;
  cursor:pointer;
}
.family-site-btn span{transition:transform .2s ease;}
.family-site-wrap.is-open .family-site-btn span{transform:rotate(180deg);}
.family-site-menu{
  position:absolute;
  bottom:calc(100% + 10px);
  right:0;
  min-width:180px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  padding:.5rem;
  display:none;
  flex-direction:column;
  gap:.2rem;
  z-index:20;
}
.family-site-wrap.is-open .family-site-menu{display:flex;}
.family-site-menu a{
  padding:.6rem .8rem;
  border-radius:8px;
  font-size:.88rem;
  color:var(--ink);
}
.family-site-menu a:hover{background:var(--blue-light);color:var(--blue);}
.copyright{
  max-width:var(--maxw);margin:1.4rem auto 0;
  font-size:.925rem;color:var(--gray);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px){
  .about-inner{grid-template-columns:1fr;gap:2rem;}
  .project-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(3,160px);}
  .proj-tall{grid-row:auto;grid-column:1 / span 2;height:220px;}
  .projects-band{top:55px;}
  .projects-inner{padding-left:24px;padding-right:24px;}
  .news-grid{grid-template-columns:1fr;gap:4rem;}
}
/* 漢堡選單區間：1199px 以下（iPad 橫/直、行動版）。1200px 以上的筆電使用 PC 選單 */
@media (max-width: 1199px){
  :root{--header-h:56px;}

  /* 若保留桌面版 width:calc(100% - 160px) + margin:0 auto
     畫面越窄，頁首方框越往中間縮的錯誤.
     margin/width明確重設，使寬度只依 left/right 12px 決定 */
  .site-header{
    top:12px;left:12px;right:12px;
    width:auto;margin:0;max-width:none;
  }

  /* 改用 flex 取代格線（250px/1fr/150px） —
     Logo 在左側只佔自身大小，Language 按鈕與漢堡按鈕則
     在右端彼此相鄰排列（Language 在左，漢堡按鈕在最右） */
  .header-inner{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:14px;
    padding:0 20px;
  }
  .logo{margin-right:auto;flex-shrink:0;}
  .language-wrap{
    order:1;
    flex-shrink:0;
    width:auto;
    height:auto;
    align-self:center;
    font-size:14px;   /* 平板・手機統一 14px */
  }
  .language-menu a{font-size:14px;}   /* 子選單也統一 14px */
  .nav-toggle{
    order:2;
    flex-shrink:0;
    display:flex;flex-direction:column;justify-content:center;gap:5px;
    width:34px;height:34px;
  }
  .nav-toggle span{
    display:block;width:100%;height:2px;background:var(--navy);border-radius:2px;
    transition:transform .2s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
  .nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .main-nav{
    position:fixed;
    top:78px;
    right:-100%;
    width:min(320px,86vw);
    height:calc(100vh - 78px);
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:.5rem 0 2rem;
    overflow-y:auto;
    transition:right .25s ease;
    z-index:95;
    box-shadow:-8px 0 24px rgba(0,0,0,.08);
  }
  .main-nav.is-open{right:0;}
  .nav-list{flex-direction:column;align-items:stretch;gap:0;}
  .nav-item{border-bottom:1px solid var(--line);}
  .nav-link{width:100%;text-align:left;padding:1rem 1.4rem;}
  .nav-link::after{display:none;}

  /* nav-item只在此區間再次作為定位基準（桌面版
     nav-item為 static，因此 .mega-panel 以 main-nav 整體而非 nav-item 為基準
     為基準定位而被擠出畫面外的問題已修正) */
  .nav-item{ position:relative !important; }

  .mega-panel,
  .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  transform:none;               /* 抵銷桌面版 translateX(-50%) */

  /* ★ 主要修正：以父層寬度為基準對齊頁首左右兩端 */
  left: 0;
  width: 100%;
  max-width:none;               /* 抵銷桌面版 max-width:1840px */
  box-sizing: border-box;

  min-height: 336px;
  background: #fff;
  padding: 40px 60px 48px;
  z-index: 100;
  
  /* ★ 配合頁首方框下方圓角做圓角處理 */
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .07);
  border-top: 1px solid #f0f2f5;
  }
  .nav-item.open .mega-panel,
  .nav-item:hover .mega-panel,
  .nav-item.open .sub-menu,
  .nav-item:hover .sub-menu { max-height:600px; }

  /* 沒有子選單連結的大選單，在行動版不開啟空白面板 */
  .mega-panel:not(:has(.mega-links a)){ display:none !important; }
  
  .mega-inner,
  .sub-menu-inner { display:block; gap:0; padding:0; }
  .mega-info,
  .mega-photo { display:none; }
  .mega-links { padding:.2rem 1.4rem .8rem; }
  .mega-links a { display:block; background:none !important; padding:.55rem 0; border-bottom:1px solid var(--line); font-size:.85rem; color:var(--gray); font-weight:400; }


}

/* 筆電・平板共用版面（1560px 以下) */
@media (max-width: 1560px){
  /* 背景照片以下緣為基準（bottom-anchored），若方框相對寬度太高
     只會露出照片上方大片天空，看起來像「空白」 —
     平板區間維持與桌面版相近的比例（約寬度的 56%） */
  .hero-stage{height:56vw;min-height:600px;max-height:800px;}

  .hero-overlay{
    width:100%;
    left:0;
    transform:none;
    top:100px;
    padding:0 24px;
  }
  .hero-tag{display:none;}
  .hero-controls{left:16px;bottom:16px;}

  /* 桌面版固定尺寸（284x382）在較窄的平板可能超出
     依寬度等比縮小，但以桌面版尺寸為上限 */
  .hero-plants{left:60px;bottom:60px;gap:20px;}
  .hero-plant-item{
    width:20vw;
    height:27vw;
    max-width:284px;
    max-height:382px;
  }

  .about{margin-top:3.5rem;}
  .about-text h2{font-size:1.5rem;}
  .about-carousel{max-width:100%;margin-left:0;}

  .awards{margin-top:3.5rem;padding:3rem 0;}

  .projects{margin-top:3.5rem;}
  /* 欄寬維持與桌面版相同的 3 欄，但列高（280px）為固定值
     窄平板上卡片看起來太細長 — 只降低平板區間 */
  .project-grid{grid-template-rows:repeat(2,200px);}

  .video-feature{margin-top:3.5rem;}

  .news{margin-top:3.5rem;padding-bottom:3.5rem;}

}

/* 供料實績(project-grid)在平板（iPad 等）上也與桌面版相同
   3沿用欄格線，只有在真正窄的手機（≤800px）才
   1另外分開為單欄堆疊 */
@media (max-width: 800px){
  /* .site-header 自身的桌面版左右 40~60px padding 與 .header-inner 的
     與自身 padding 重複，導致行動版內容區過窄 —
     行動版移除 site-header 的內距，只使用 header-inner 的內距 */
  .site-header{padding:0;}
  .site-header.is-scrolled{padding:0;}

  /* 窄畫面不使用單欄全寬卡片，而是像參考網站（Kyeryong Construction）一樣
     最上方 1 張大代表圖＋下方 2 欄格線排列 */
  .project-grid{
    grid-template-columns:repeat(2,1fr);
    grid-template-rows:none;
    grid-auto-flow:row;
    gap:14px;
  }
  .project-cell{height:170px;}
  .proj-tall{
    order:-1;
    grid-column:1 / -1;
    grid-row:auto;
  }
  .proj-tall.project-cell{height:520px;}
  .projects-band{top:60px;}
/*  .projects-inner{padding-left:16px;padding-right:16px;}*/

  /* 直向 4:5 比例只套用在窄手機（≤600px） —
     像 iPad mini 這種 768px 左右的窄「直式平板」，由下方另外的規則處理 */
  .video-frame{aspect-ratio:16/10;}

  /* Hero同樣 — 僅在真正的手機上維持直向比例（寬度的 82% */
  /* 調整高度・背景位置，使外觀與參考圖（ex.jpg）相同 —
     要同時看見卡車＋建築＋筒倉，直向比例不能過長 */
  .hero-stage{height:128vw;min-height:680px;max-height:720px;}

  /* 文字・縮圖 3 張只在真正窄的行動版縮小 —
     iPad 等平板（801px~）維持與桌面版相同尺寸 */
  .hero-overlay{top:132px;}
  .hero-eyebrow{font-size:1.25rem;}
  .hero-overlay h1{
    font-size:clamp(1.8rem, 2.5vw, 2.8rem);
    letter-spacing:0.04em;
    color:#ffffff;
    line-height:1.3;
    white-space:normal;
    max-width:100%;
    margin-bottom:1.2rem;
    text-shadow:0 2px 10px rgba(0,0,0,.2);
  }
  .hero-divider{
    width:3px;
    height:48px;
    background-color:#ffffff;
    opacity:0.85;
    border-radius:1px;
    margin-left:calc(2em + (0.08em * 2));
  }
  .hero-plants{left:10px;bottom:40px;gap:8px;}
  .hero-plant-item{
    width:30vw;
    height:40vw;
    max-width:170px;
    max-height:230px;
  }
  .hero-plant-label{font-size:.85rem;padding:8px 8px 6px;}

  .hero-slide::before{background-size:auto 100%;background-position:96% 100%;}
  .hero-slide:nth-of-type(2)::before{background-size:auto 115%;background-position:50% 60%;}
  .hero-slide:nth-of-type(3)::before{background-size:auto 150%;background-position:42% 55%;}
  .hero-plants-controls{left:16px;bottom:4px;gap:8px;}
  .hpc-track{width:110px;}
}

/* 只在真正窄的手機（≤600px）將影片改為直向 4:5 卡片 */
@media (max-width: 600px){
  .video-frame{aspect-ratio:4/5;}

  /* 了解更多 按鈕與 footer 也只在真正窄的手機上才直向堆疊,
     iPad 等平板在 768px 也與桌面版相同
     維持靠右/橫向排列（一行） */
  .news-head .btn{position:static;margin-top:3rem;}
  .footer-inner{flex-direction:column;align-items:flex-start;}
  .footer-actions{align-self:center;width:100%;justify-content:center;margin-left:0;flex-direction:row;gap:3.6rem;}
}

@media (max-width: 420px){
  .header-inner{height: 60px; padding:0 12px;gap:6px;}
  .logo{min-width:0;}
  .logo-img{height:42px;width:auto;}
  .language-wrap{padding:6px 16px;font-size:14px;}
  .nav-toggle{width:30px;height:30px;}
/*  .about-inner,.projects,.video-feature,.news-inner{padding-left:16px;padding-right:16px;}*/
  .awards-history-inner{padding-left:16px;padding-right:16px;}
}

@media (max-width: 340px){
  .header-inner{padding:0 10px;gap:4px;}
  .logo-img{height:28px;}
  .language-wrap{padding:5px 10px;font-size:14px;}
  .nav-toggle{width:26px;height:26px;}
}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important;}
}
/* ==========================================================
   ABOUT PAGE (about.html) — 公司簡介子頁面
   ========================================================== */

/* ---------- 子視覺（麵包屑＋標題＋照片，藍/白左右分割) ---------- */
.sub-visual{
  position:relative;
  width:100%;
  height:480px;
  /* overflow:visible — 不裁切，讓照片突出到藍色方框下方 */
  overflow:visible;
  /* about.png 直接從參考稿取色的固定藍 — 整個區塊的基底色 */
  background:#0077d1;
}
.sub-visual-photo{
  /* 注意：因為是 position:absolute，必須放在 .sub-visual（position:relative）「內」
     必須如此。若移到 section 外，座標會以視窗為基準
     蓋住下方頁面分頁/內文的錯誤. */
  position:absolute;
  top:72px;
  left:50%;
  transform:translateX(-50%);
  width:calc(100% - 160px);  /* 與頁首同寬 — 與上方選單左右兩端完全對齊 */
  max-width:1840px;
  /* 高度不用固定值，而依照片原始比例（about_visual.jpg = 1782×806）計算 —
     因此寬度與頁首相同，照片也不會被裁切而完整顯示 */
  aspect-ratio:1782 / 806;
  height:auto;
  background-repeat:no-repeat;
  background-size:contain;
  background-position:center center;
  z-index:1;
}
.sub-visual-inner{
  position:relative;
  z-index:2;
  width:calc(100% - 160px);
  max-width:1840px;
  margin:0 auto;
  padding:200px 92px 0;
  box-sizing:border-box;
}
.breadcrumb{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:36px;
  padding-top: 36px;
  color:#3a3f46;
  font-size:.95rem;
}
.breadcrumb .crumb-home{
  display:flex;
  align-items:center;
  color:var(--blue);
}
.breadcrumb .crumb-sep{color:#c7ccd2;}
.crumb-link{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#3a3f46;
  transition:color .2s ease;
}
.crumb-link:hover{color:var(--blue);}
.crumb-link.is-current{color:var(--ink);font-weight:600;}
.crumb-caret{opacity:.6;}
.sub-visual-title{
  font-size:2.6rem;
  font-weight:700;
  color:var(--gray-deep);
  margin-bottom:8px;
  letter-spacing:.01em;
}
.sub-visual-desc{
  font-size:1.05rem;
  line-height:2;
  color:#1e1e1e;
}

/* ---------- 頁面分頁（公司簡介／發展沿革／經營團隊) ---------- */
.page-tabs{
  --tab-side:6rem;           /* 底線長度調整：文字左右延伸的長度 */
  display:flex;
  justify-content:center;
  gap:0;
  width: calc(100% - 160px);
  max-width:1840px;
  margin:0 auto;
  margin-top:280px;
  padding:1.2rem 40px;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:2;
  background:#fff;
}
.page-tabs a{
  position:relative;
  font-size:1.125rem;
  color:var(--gray-deep);
  font-weight:500;
  padding:.4rem var(--tab-side);
  transition:color .2s ease;
}
/* 藍色底線 — 緊貼分頁列下方灰線上方 */
.page-tabs a::after{
  content:"";
  position:absolute;
  /* 以分頁全寬（文字＋左右留白）繪製
     與相鄰分頁的底線無縫相連 */
  left:0;
  right:0;
  bottom:-1.25rem;            /* .page-tabs 與直向 padding 相同 */
  height:2px;
  background:var(--blue);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s ease;
}
.page-tabs a:hover,
.page-tabs a.is-active{
  color:var(--blue);
  font-weight:700;
}
.page-tabs a:hover::after,
.page-tabs a.is-active::after{
  transform:scaleX(1);
}
/* ---------- 共用：藍色小標題 ---------- */
.blue-heading{
  font-size: 1.7rem;
    color: var(--blue);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.6rem;
    position: relative;
}

.blue-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 500px;
    max-width: 100%;
}

.blue-heading.small{font-size:1.5rem;border-bottom:none;padding-bottom:0;margin-bottom:1.2rem;}

/* 桌面版將底線長度配合標題（第一句）文字長度 */
@media (min-width:901px){
  .blue-heading{display:inline-block;}
  .blue-heading::after{width:100%;}
}

/* ---------- 發展沿革／得獎歷程時間軸（年代橫幅式) ---------- */
.history-section{padding:0 0 5rem;}
.history-inner{max-width:1400px;margin:0 auto;padding:0 24px 60px;}

.history-decade{position:relative;margin-bottom:0;}

/* 年代代表橫幅圖片 */
.history-decade-banner{
  position:relative;
  height:220px;
  width:calc(100% - 160px);   /* 與上方子視覺照片同寬（與頁首寬度一致) */
  max-width:1840px;
  margin:0 auto;
  background-size:cover;
  background-position:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  padding:0 24px;
  box-sizing:border-box;
}
.history-decade-banner::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,30,60,.35), rgba(0,30,60,.6));
}
.history-decade-label{
  position:relative;z-index:1;
  font-size:2.2rem;
  font-weight:700;
  letter-spacing:.03em;
  margin-bottom:.7rem;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}
.history-decade-sub{
  position:relative;z-index:1;
  font-size:.9rem;
  line-height:1.8;
  max-width:520px;
  text-shadow:0 1px 6px rgba(0,0,0,.35);
}

/* 橫幅下方、直線貫穿的時間軸 */
.history-timeline-wrap{position:relative;padding:2.6rem 0 1rem;}
.history-timeline-wrap::before{
  content:"";
  position:absolute;
  left:50%;top:0;bottom:0;
  width:1px;
  background:rgba(0,105,183,.25);
  transform:translateX(-50%);
}

/* 標示年代起點的大型年份浮水印 */
.history-anchor{position:relative;text-align:center;margin-bottom:2.2rem;}
.history-anchor-year{
  font-size:3.2rem;
  font-weight:700;
  color:rgba(0,105,183,.1);
  line-height:1;
}

/* 左/右兩欄排列（例: 民國93年 / 其他重要紀事) */
.history-entry-row{
  display:flex;
  gap:6rem;
  max-width:1400px;
  margin:0 auto 2.8rem;
  padding:0 16px;
  align-items:flex-start;
  box-sizing:border-box;
}
.history-entry-row:last-child{margin-bottom:0;}
.history-entry-col{flex:1;min-width:0;text-align:left;}
.history-entry-row .history-entry-year{
  font-size:24px;
  color:#1e1e1e;
  text-align:left;
  margin-bottom:.8rem;
}
.history-entry-row .history-entry-list{display:block;text-align:left;}

/* 左/右兩欄排列 — 年份（藍色標題）項目兩個並排（例: 101年度 / 103年度) */
.history-entry-pair{
  display:flex;
  gap:6rem;
  max-width:1000px;
  margin:0 auto 2.8rem;
  padding:0 16px;
  align-items:flex-start;
  box-sizing:border-box;
}
.history-entry-pair:last-child{margin-bottom:0;}
.history-entry-pair .history-entry{flex:1;min-width:0;max-width:none;margin:0;padding:0;}

/* 鋸齒排列 — 項目以直線為中心左右交錯排列（例：101/103/105/107 年度) */
.history-zigzag{position:relative;}
.history-zigzag .history-entry{
  width:50%;
  max-width:620px;
  margin:0 0 4rem;
}
.history-zigzag .history-entry:last-child{margin-bottom:0;}
.history-zigzag .history-entry:nth-child(odd){margin-right:auto;}
.history-zigzag .history-entry:nth-child(even){margin-left:auto;}

/* 個別年份項目 */
.history-entry{
  position:relative;
  max-width:560px;
  margin:0 auto 2.8rem;
  padding:0 16px;
}
.history-entry:last-child{margin-bottom:0;}
.history-entry-year{
  font-size:24px;
  font-weight:700;
  color:var(--blue);
  margin-bottom:.8rem;
}
.history-entry-list{
  margin:0;padding:0;list-style:none;
  display:inline-block;
  text-align:left;
}
.history-entry-list li{
  position:relative;
  padding-left:1.1rem;
  font-size:1rem;
  line-height:1.9;
  color:var(--gray-deep);
  margin-bottom:.45rem;
}
.history-entry-list li:last-child{margin-bottom:0;}
.history-entry-list li::before{
  content:"·";
  position:absolute;left:0;top:0;
  color:var(--blue);
  font-weight:700;
}

@media (max-width:900px){
  .history-decade-banner{width:100%;max-width:none;}
}

@media (max-width:600px){
  .history-decade-banner{height:150px;padding:0 16px;}
  .history-decade-label{font-size:1.6rem;}
  .history-decade-sub{font-size:.8rem;}
  .history-anchor-year{font-size:2.4rem;}
  .history-entry-year{font-size:1.05rem;}
  .history-entry-list li{font-size:.88rem;}
  .history-entry-row{flex-direction:column;gap:1.6rem;}
  .history-entry-pair{flex-direction:column;gap:2rem;}
  .history-zigzag .history-entry{width:100%;max-width:none;margin-left:0 !important;margin-right:0 !important;}
}

/* ---------- 工廠位置區塊 ---------- */
.plant-section{
  padding:4.5rem 0 5rem;
}
.plant-section-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 40px;
}
.plant-intro{
  font-size:1rem;
  color:var(--gray-deep);
  line-height:1.9;
  margin-bottom:2.6rem;
}
.plant-grid{
  display:grid;
  grid-template-columns:1fr 1.35fr 1fr;
  grid-template-rows:repeat(2,420px);
  grid-auto-flow:column;
  row-gap:24px;
  column-gap:60px;
}
.plant-cell{
  display:flex;
  flex-direction:column;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  position:relative;
  isolation:isolate;
}
.plant-cell-img{
  flex:1;
  margin:20px 20px 0;
  overflow:hidden;
}
.plant-cell-img img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.plant-cell:hover .plant-cell-img img{transform:scale(1.08);}
.plant-cell-body{
  padding:14px 44px 14px 20px;
  background:#fff;
}
.plant-cell-body h3{
  font-size:1.125rem;
  font-weight:700;
  color:var(--gray-deep);
  margin-bottom:4px;
}
.plant-cell-body p{
  font-size:1rem;
  color:var(--gray-deep);
  line-height:1.5;
  letter-spacing: 0.04rem;
}
.plant-phone{white-space:nowrap;}  /* 電話號碼不換行，整個移到下一行 */
.plant-arrow{
  position:absolute;
  right:14px;
  bottom:14px;
  width:34px;height:34px;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  transition:background .2s ease;
}
.plant-arrow svg{width:16px;height:16px;}
.plant-cell:hover .plant-arrow{background:var(--navy);}

.plant-cell-tall{grid-row:1 / span 2; border-radius:20px;}
.plant-cell-overlay{position:relative; border:none;}
.plant-cell-overlay .plant-cell-img{
  position:absolute;inset:0;
  margin:0;
  border-radius:0;
}
.plant-cell-overlay .plant-cell-img img{
  object-position:bottom center;
}
.plant-cell-overlay::after{
  content:"";
  position:absolute;inset:0;
/*  background:linear-gradient(180deg, rgba(9,28,48,.15) 0%, rgba(9,28,48,.05) 35%, rgba(9,28,48,.65) 100%);*/
  z-index:1;
  pointer-events:none;
}
.plant-overlay-info{
  position:relative;
  z-index:2;
  margin:20px;
  padding:16px 20px;
  backdrop-filter:blur(2px);
  border-radius:10px;
  color:#fff;
  max-width:240px;
}
.plant-overlay-info h3{
  font-size:1.125rem;
  font-weight:700;
  margin-bottom:8px;
}
.plant-overlay-info p{
  font-size:1rem;
  line-height:1.6;
  color:rgba(255,255,255,.9);
  border-top: 1px solid rgba(241, 241, 241, 0.3);
  padding-top:8px;
}
.plant-arrow-overlay{z-index:2;}

/* ---------- 公司資訊表 ---------- */
.company-info{
  background:#fafbfc;
  padding:3rem 0;
}
.company-info-inner{
  max-width:920px;
  margin:0 auto;
  padding:0 24px;
}
.company-info-icon{
  width:64px;height:78px;
  margin:0 auto 3rem;
  background-image:url('../img/logo.svg');
  background-size:316px 78px;
  background-position:0 0;
  background-repeat:no-repeat;
}
.info-table{
  border-top:1px solid var(--line);
}
.info-row{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:2rem;
  padding:1.3rem 1rem;
  border-bottom:1px solid var(--line);
  font-size:1rem;
}
.info-key{
  color:var(--gray-deep);
  font-weight:600;
  letter-spacing:.05em;
  white-space:nowrap;
}
.info-val{
  color:var(--gray-deep);
  line-height:1.8;
}
.info-link{color:var(--blue);text-decoration:underline;}

/* ---------- 左右分割區塊（圖片＋文字) ---------- */
.split-feature{padding:4rem 0 3rem;}
.split-feature-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 40px;
}
.split-feature-box{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  align-items:stretch;
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
}
.split-feature.reverse .split-feature-box{grid-template-columns:1.2fr 1fr;}
.split-feature.reverse .split-feature-text{order:1;}
.split-feature.reverse .split-feature-media{order:2;}
.split-feature-media{
  width:100%;
  height:100%;
  min-height:480px;
  background-size:cover;
  background-position:center;
  background-color:#dfe9f2;
}
.split-feature-media-eco{
  background-image:linear-gradient(150deg,#dff2e4,#8fcf9e 55%,#4c9a63);
}
.split-feature-media-city{background-size:cover;background-position:center;}
.split-feature-text{padding:5rem 6rem 3rem;}
.eco-list{
  margin:0 0 1.4rem;
  padding:0;
  list-style:none;
}
.eco-list li{
  position:relative;
  padding-left:1.2rem;
  font-size:1rem;
  color:var(--gray-deep);
  line-height:1.9;
}
.eco-list li::before{
  content:"·";
  position:absolute;left:0;top:0;
  color:var(--blue);
  font-weight:700;
}
.eco-note{font-size:1rem;color:var(--gray);line-height:1.9;}
.split-feature-text p{font-size:1rem;color:var(--gray-deep);line-height:1.9;margin-bottom:1.2rem;}
.split-feature-text p:last-child{margin-bottom:0;}

@media (max-width:900px){
  .sub-visual{height:100vw;min-height:600px;max-height:680px;}
  .sub-visual-photo{
    top:0;
    width:100%;
    max-width:none;
    height:100%;
    aspect-ratio:auto;
    background-size:cover;
    background-position:center center;
  }
  .sub-visual-inner{width:calc(100% - 40px);max-width:100%;padding:120px 8px 0;}
  .breadcrumb{color:rgba(0,0,0,.92);text-shadow:none;}
  .breadcrumb .crumb-home{color:#000;}
  .breadcrumb .crumb-sep{color:rgba(0,0,0,.6);}
  .crumb-link{color:rgba(0,0,0,.92);}
  .crumb-link.is-current{color:#000;}
  .sub-visual-title{font-size:1.9rem;color:#000;text-shadow:none;}
  .sub-visual-desc{color:rgba(0,0,0,.95);text-shadow:none;font-size:.9rem;}
  .page-tabs{--tab-side:1.4rem;justify-content:flex-start;padding:1.2rem 14px;overflow-x:auto;margin-top:0;}
  .page-tabs a{white-space:nowrap;}
  .plant-section-inner{padding:0 28px;}
  .plant-grid{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row;}
  .plant-cell-tall{grid-row:auto;}
  /* 內湖廠 覆蓋式卡片在行動版也與其他卡片相同樣式（白底＋灰框+
     內距照片＋下方一般文字）重設覆蓋專用樣式 */
  .plant-cell-overlay{border:1px solid var(--line);}
  .plant-cell-overlay .plant-cell-img{
    position:static;
    inset:auto;
    margin:12px 12px 0;
    border-radius:10px;
  }
  .plant-overlay-info{
    position:static;
    z-index:auto;
    margin:0;
    padding:14px 44px 14px 12px;
    background:none;
    backdrop-filter:none;
    border-radius:0;
    color:var(--gray-deep);
    max-width:none;
  }
  .plant-overlay-info h3{color:var(--gray-deep);font-size:1.125rem;font-weight:700;margin-bottom:4px;}
  .plant-overlay-info p{color:var(--gray-deep);font-size:1rem;line-height:1.5;letter-spacing:.04rem;}
  .company-info-inner{padding:0 20px;}
  .info-row{grid-template-columns:1fr;gap:.4rem;}
  .split-feature-inner{padding:0 20px;}
  /* .split-feature.reverse .split-feature-box在桌面版擁有較高的優先權（specificity）
     所以若不以與此行動版規則相同的選擇器明確指定，國際化區塊就只會
     1無法換成單欄，持續以兩欄重疊顯示的錯誤 */
  .split-feature-box,
  .split-feature.reverse .split-feature-box{grid-template-columns:1fr;}
  .split-feature-text{padding:1.6rem;}
  .split-feature.reverse .split-feature-text{order:2;}
  .split-feature.reverse .split-feature-media{order:1;}
}

/* ==========================================================
   GROUP PAGE (group.html) — 經營團隊 / 組織架構
   (皇昌營造 組織圖樣式：填色方框＋細灰色連接線＋直書下層單位)
   ========================================================== */
.group-section{
  --org-main:#0b4a8f;        /* 上方流程方框（深藍色) */
  --org-dept:#6ab04c;        /* 部門方框（綠色) */
  --org-unit:#9aa0a6;        /* 下層單位方框（灰色) */
  --org-side-bg:#fdf3df;     /* 稽核室 方框背景（米色) */
  --org-side-line:#f0dcb0;
  --org-side-text:#6b5a2e;
  --org-line:#c9ced4;        /* 連接線 */
  padding:4.5rem 0 6rem;
}
.group-inner{
  max-width:1040px;
  margin:60px auto;
  padding:0 24px;
}
.org-title{
  text-align:center;
  font-size:1.5rem;
  font-weight:700;
  color:var(--gray-deep);
  margin-bottom:2.6rem;
}
/* ---- 組織圖（依 2026-11 新組織圖，沿用舊組織圖的配色與間距） ---- */
.oc{--oc-line:#c9ced4;--oc-main:#033c95;--oc-side:#03a9cd;--oc-dept:#81bd2c;--oc-ink:#333;
  --oc-gap:48px;--oc-side-gap:92px;--oc-col-gap:34px;
  max-width:none;margin:0 -40px;}
@media (min-width:1200px){.oc{--oc-col-gap:40px;margin:0 -60px;}}
.oc-box{display:flex;align-items:center;justify-content:center;font-size:1.05rem;font-weight:600;letter-spacing:.08em;color:#fff;line-height:1.4;text-align:center;border-radius:3px;position:relative;z-index:1;}
.oc-box small{font-size:.85em;font-weight:500;letter-spacing:0;margin-left:2px;}

/* 上方直向流程 */
.oc-top{display:flex;flex-direction:column;align-items:center;}
.oc-top > .oc-box{width:220px;height:62px;}
.oc-c1,.oc-c2,.oc-c3,.oc-c4{background:var(--oc-main);}
.oc-gap{position:relative;width:100%;height:var(--oc-gap);}
.oc-gap::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--oc-line);}
.oc-has-side{height:var(--oc-side-gap);}
.oc-has-side::after{content:"";position:absolute;left:50%;top:50%;width:calc(60px + var(--oc-col-gap) * 2.5);height:1px;background:var(--oc-line);}
.oc-has-side .oc-side{position:absolute;left:calc(50% + 60px + var(--oc-col-gap) * 2.5 + 1px);top:50%;transform:translateY(-50%);width:200px;height:62px;background:var(--oc-side);font-weight:500;}

/* 下方部門 */
.oc-depts{position:relative;display:grid;grid-template-columns:56px 56px repeat(3,136px) minmax(0,1fr);column-gap:var(--oc-col-gap);padding-top:var(--oc-gap);}
.oc-depts::before{content:"";position:absolute;top:0;height:1px;background:var(--oc-line);left:28px;right:calc((100% - 520px - var(--oc-col-gap) * 5) / 2);}
.oc-dept{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;}
.oc-dept::before{content:"";position:absolute;top:calc(var(--oc-gap) * -1);left:50%;width:1px;height:var(--oc-gap);background:var(--oc-line);}
.oc-vbox{width:56px;height:170px;background:var(--oc-dept);padding:0 17px;line-height:1.7;word-break:break-all;}
.oc-dbox{width:100%;max-width:240px;height:62px;background:var(--oc-dept);white-space:nowrap;padding:0 6px;}

/* 下層單位：直式白框（與舊組織圖相同） */
.oc-units{--gap:32px;--w:52px;position:relative;display:flex;justify-content:center;gap:var(--gap);width:max-content;margin:0 auto;padding:72px 0 0;list-style:none;}
.oc-units::before{content:"";position:absolute;top:0;left:50%;width:1px;height:36px;background:var(--oc-line);}
.oc-units li{position:relative;}
.oc-units li::before{content:"";position:absolute;top:-36px;left:50%;width:1px;height:36px;background:var(--oc-line);}
.oc-units li::after{content:"";position:absolute;top:-36px;left:calc(var(--gap) / -2);right:calc(var(--gap) / -2);height:1px;background:var(--oc-line);}
.oc-units li:first-child::after{left:50%;}
.oc-units li:last-child::after{right:50%;}
.oc-units li:only-child::after{display:none;}
.oc-unit{display:block;position:relative;width:var(--w);min-height:136px;padding:22px 0;box-sizing:border-box;border:1px solid #e2e2e2;border-radius:3px;background:#fff;color:var(--oc-ink);font-size:1rem;font-weight:500;line-height:1.9;text-align:center;word-break:break-all;padding-left:calc((var(--w) - 1em - 2px) / 2);padding-right:calc((var(--w) - 1em - 2px) / 2);}
.oc-units-tight{--gap:14px;}
.oc-plants .oc-unit{color:var(--oc-main);border-color:#c5d3ea;font-weight:600;}
/* 橫式白框（廠務課・運輸課・製品課・業務課） */
.oc-units-h{--gap:12px;}
.oc-units-h .oc-unit{width:auto;min-height:0;padding:11px 16px;line-height:1.4;white-space:nowrap;word-break:normal;letter-spacing:.04em;background: #f6f6f6;}
/* 各廠 → 下方各課 的連接線 */
.oc-merge{margin-bottom:18px;}
.oc-merge::after{content:"";position:absolute;bottom:-18px;left:calc(var(--w) / 2);right:calc(var(--w) / 2);height:1px;background:var(--oc-line);}
.oc-merge .oc-unit::after{content:"";position:absolute;left:50%;bottom:-19px;width:1px;height:18px;background:var(--oc-line);}

/* 平板：部門換成 2 列，隱藏橫向連接線，廠務部獨占一列 */
@media (max-width:1100px){
  .oc{--oc-gap:36px;--oc-side-gap:80px;margin:0 auto;}
  .oc-top > .oc-box{width:190px;height:54px;}
  .oc-has-side::after{width:125px;}
  .oc-has-side .oc-side{left:calc(50% + 125px);width:auto;min-width:96px;padding:0 16px;height:50px;}
  .oc-depts{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:2.6rem;column-gap:18px;}
  .oc-depts::before,.oc-dept::before{display:none;}
  .oc-dept-wide{grid-column:1 / -1;}
  .oc-vbox{width:100%;height:54px;padding:0;}
  .oc-dbox{max-width:none;height:54px;}
  .oc-units-h{--gap:14px;}
  .oc-units-h .oc-unit{padding:11px 22px;}
}
@media (max-width:600px){
  .oc{--oc-gap:28px;--oc-side-gap:68px;}
  .oc-box{font-size:.95rem;letter-spacing:.04em;}
  .oc-top > .oc-box{width:150px;height:46px;}
  .oc-has-side::after{width:87px;}
  .oc-has-side .oc-side{left:calc(50% + 87px);min-width:0;padding:0 10px;height:42px;}
  .oc-dbox{height:48px;}
  .oc-units{--gap:14px;--w:40px;padding-top:56px;}
  .oc-units::before,.oc-units li::before{height:28px;}
  .oc-units li::before,.oc-units li::after{top:-28px;}
  .oc-units-tight{--gap:10px;}
  .oc-unit{min-height:116px;padding-top:16px;padding-bottom:16px;font-size:.92rem;line-height:1.8;}
  .oc-units-h{--gap:8px;}
  .oc-units-h .oc-unit{min-height:0;padding:9px 12px;line-height:1.4;letter-spacing:.02em;}
}

/* ---- 各部門所屬業務表（組織圖下方) ---- */
.dept-table-wrap{
  /* 比組織圖區域（1040px）更寬 — 最大 1400px，窄畫面時依畫面寬度 */
  position:relative;
  left:50%;
  transform:translateX(-50%);
  width:min(1400px, calc(100vw - 64px));
  margin-top:8rem;
}
.dept-table{
  width:100%;
  border-collapse:collapse;
  font-size:1rem;
  color:var(--gray-deep);
}
.dept-table thead th{
  background:#e2e2e2;
  color:#333;
  font-weight:600;
  padding:16px 20px;
  text-align:center;
}
.dept-table tbody th,
.dept-table tbody td{
  padding:14px 20px;
  border-bottom:1px solid var(--line);
  line-height:1.75;
  vertical-align:middle;
}
.dept-table tbody th{
  width:20%;
  font-weight:500;
  text-align:center;
  white-space:nowrap;
}
.dept-table tbody td{text-align:left;}

/* 行動版：部門名稱在上，業務說明疊在下方 */
@media (max-width:600px){
  .dept-table-wrap{margin-top:3.5rem;width:100%;}
  .dept-table thead{display:none;}
  .dept-table,
  .dept-table tbody,
  .dept-table tr,
  .dept-table tbody th,
  .dept-table tbody td{display:block;width:100%;}
  .dept-table tr{border-bottom:1px solid var(--line);padding:14px 4px;}
  .dept-table tbody th,
  .dept-table tbody td{border:0;padding:0;text-align:left;}
  .dept-table tbody th{color:#4f8a35;font-weight:600;margin-bottom:6px;}
  .dept-table tbody td{font-size:.95rem;}
}

/* ==========================================================
   TECH FACTORY PAGE (tech_factory.html) — 各廠配置 Tabs
   ========================================================== */
/* ===== 和昌 廠區介紹 (scoped: .hc-factory) ===== */
.hc-factory{
  --hc-green:var(--blue,#0069b7);
  --hc-green-dark:var(--navy,#0f2f52);
  --hc-green-soft:var(--blue-light,#eaf3fb);
  --hc-text:#2b2b2b;
  --hc-sub:#6b6b6b;
  --hc-line:var(--line,#e3e8ee);
  --hc-radius:14px;
  color:var(--hc-text);
  background:linear-gradient(to bottom,#fff 0,#fff 120px,#f5f7fa 120px,#f5f7fa calc(100% - 60px),#fff calc(100% - 60px));
  padding:8rem 0 5rem;
}
.hc-factory *{box-sizing:border-box}
.hc-factory__inner{width:calc(100% - 160px);max-width:1400px;margin:60px auto} /* 與上方主視覺・頁面分頁同寬 */

.hc-factory__head{text-align:center;margin-bottom:24px}
.hc-factory__head h2{font-size:26px;margin:0 0 6px;letter-spacing:.05em}
.hc-factory__head p{margin:0;color:var(--hc-sub);font-size:14px}

/* --- Tabs: 卡片式，顯示廠名＋區域 --- */
.hc-tabs{
  display:grid;grid-template-columns:repeat(4,1fr);gap:30px;
  margin-bottom:40px;
}
.hc-tab{
  appearance:none;border:1px solid var(--hc-line);background:#fff;
  padding: 14px 14px 16px 24px;text-align:left;cursor:pointer;
  display:flex;align-items:center;gap:18px;
  transition:border-color .2s,box-shadow .2s,transform .2s;
  font:inherit;color:inherit;
}
.hc-tab:hover{border-color:var(--hc-green);transform:translateY(-2px)}
.hc-tab:focus-visible{outline:3px solid rgba(0,105,183,.35);outline-offset:2px}
.hc-tab__no{
  flex:none;width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;font-weight:700;font-size:14px;
  background:var(--hc-green-soft);color:var(--hc-green);
}
.hc-tab__name{display:block;font-weight:700;font-size:28px; letter-spacing: 8px;}
.hc-tab__area{display:block;font-size:16px;color:var(--hc-sub);letter-spacing: 1px;}
/* 各廠頁面連結式分頁：目前頁面 = aria-current="page"（與原 aria-selected 外觀相同) */
.hc-tab[aria-selected="true"],
.hc-tab[aria-current="page"]{
  background:var(--hc-green);border-color:var(--hc-green);color:#fff;
  box-shadow:none;
}
.hc-tab[aria-selected="true"] .hc-tab__no,
.hc-tab[aria-current="page"] .hc-tab__no{background:#fff;color:var(--hc-green)}
.hc-tab[aria-selected="true"] .hc-tab__area,
.hc-tab[aria-current="page"] .hc-tab__area{color:rgba(255,255,255,.85)}

/* --- Panel --- */
.hc-panel{
  background:#fff;border-radius:var(--hc-radius);overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  display:grid;grid-template-columns:1.1fr 1fr;
  animation:hcFade .35s ease;
}
.hc-panel[hidden]{display:none}
@keyframes hcFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.hc-panel__media{position:relative;min-height:340px;background:#dfe9f2}
.hc-panel__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hc-panel__badge{
  position:absolute;left:16px;bottom:16px;
  background:rgba(255,255,255,.92);border-radius:999px;
  padding:6px 14px;font-size:13px;font-weight:600;color:var(--hc-green-dark);
}

.hc-panel__body{padding:28px 32px;display:flex;flex-direction:column;gap:20px}
.hc-panel__title{margin:0;font-size:22px}
.hc-panel__title small{display:block;font-size:16px;color:#333;font-weight:400}

/* 重點數字 */
.hc-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.hc-stat{background:var(--hc-green-soft);border-radius:10px;padding:12px;text-align:center}
.hc-stat b{display:block;font-size:32px;color:var(--hc-green-dark)}
.hc-stat b small{font-size:12px;font-weight:600;margin-left:2px}
.hc-stat span{font-size:14px;color:var(--hc-sub)}

/* 設備清單 */
.hc-label{font-size:18px;font-weight:700;color:var(--hc-green);margin:0 0 8px;letter-spacing:.05em}
.hc-specs{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.hc-specs li{position:relative;padding-left:20px;font-size:16px;line-height:1.6}
.hc-specs li::before{
  content:"";position:absolute;left:2px;top:.67em;width:4px;height:4px;
  border-radius:3px;background:var(--hc-green);opacity:.75;
}
.hc-certs{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0px 6px;}
.hc-cert{font-size:12px;border:1px solid var(--hc-green);color:var(--hc-green);border-radius:999px;padding: 4px 16px 2px}

/* 聯絡資訊 */
.hc-info{border-top:1px solid var(--hc-line);padding-top:16px;display:grid;gap:6px;font-size:16px}
.hc-info dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 12px}
.hc-info dt{color:#333}
.hc-info dd{margin:0}
.hc-actions{display:inline-grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px} /* 兩個按鈕同寬 */
.hc-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;
  padding: 9px 40px 8px 36px;font-size:18px;font-weight:600;
  border:1px solid var(--hc-green);color:var(--hc-green);background:#fff;
  transition:background .2s,color .2s;
}
.hc-btn:hover{background:#0069b7; color:#fff}
.hc-btn--solid{background:var(--hc-green);color:#fff}
.hc-btn--solid:hover{background:#fff; color:#0069b7}
.hc-btn svg{width:20px;height:20px}

/* --- Responsive --- */
@media (max-width:1024px){
  .hc-panel{grid-template-columns:1fr}
  .hc-panel__media{min-height:280px}
}
@media (max-width:768px){
  .hc-factory{padding:28px 0 40px}
  .hc-factory__head{padding:0 16px}
  /* 手機：橫向滑動標籤 */
  .hc-tabs{
    display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
    padding:4px 16px 8px;margin-bottom:12px;scrollbar-width:none;
  }
  .hc-tabs::-webkit-scrollbar{display:none}
  .hc-tab{flex:0 0 auto;scroll-snap-align:start;padding:10px 14px}
  .hc-panels{padding:0 16px}
  .hc-panel__media{min-height:220px}
  .hc-panel__body{padding:20px}
  .hc-stat b{font-size:17px}
  .hc-actions{display:grid;width:100%}
  .hc-btn{padding-left:12px;padding-right:12px}
}
@media (prefers-reduced-motion:reduce){
  .hc-panel,.hc-tab{animation:none;transition:none}
}

/* ==========================================================
   TECH FACTORY PAGE — 自動化設備 (6項設備說明)
   ========================================================== */
.hc-equip{
  --hc-green:var(--blue,#0069b7);
  --hc-green-dark:var(--navy,#0f2f52);
  --hc-green-soft:var(--blue-light,#eaf3fb);
  --hc-sub:#6b6b6b;
  --hc-line:var(--line,#e3e8ee);
  padding:5rem 0 6rem;
  color:#2b2b2b;
}
.hc-equip *{box-sizing:border-box}
.hc-equip__inner{width:calc(100% - 160px);max-width:1400px;margin:0 auto} /* 與上方主視覺・頁面分頁同寬 */
.hc-equip .hc-factory__head{text-align:center;margin-bottom:28px}
.hc-equip .hc-factory__head h2{font-size:32px;margin:0 0 6px;letter-spacing:.05em}
.hc-equip .hc-factory__head p{margin:0;color:var(--hc-sub);font-size:16px}

/* 快速導覽 */
.hc-equip__nav{
  display:flex;flex-wrap:wrap;justify-content:center;gap:42px;
  margin-bottom:36px;
}
.hc-equip__nav a{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 20px 8px 12px;border-radius:999px;
  border:3px solid var(--hc-line);background:#fff;
  font-size:18px;font-weight:500;color:#1e1e1e;
  transition:border-color .2s,color .2s,background .2s;
}
.hc-equip__nav a span{
  width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;font-size:12px;font-weight:700;
  background:var(--hc-green-soft);color:var(--hc-green);
}
.hc-equip__nav a:hover{border-color:var(--hc-green);color:var(--hc-green)}

/* 卡片 Grid */
.hc-equip__grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:24px;
}
.hc-eq{
  background:#fff;border:1px solid var(--hc-line);border-radius:14px;
  padding:28px 30px;display:flex;flex-direction:column;gap:18px;
  scroll-margin-top:110px; /* 避免被固定頁首遮住 */
  transition:box-shadow .25s,border-color .25s;
}
.hc-eq:hover{box-shadow:0 10px 28px rgba(0,0,0,.06)}
.hc-eq:target{border-color:var(--hc-green);box-shadow:0 0 0 3px rgba(0,105,183,.15)}

.hc-eq__head{display:flex;align-items:center;gap:14px}
.hc-eq__no{
  flex:none;width:44px;height:44px;border-radius:12px;
  display:grid;place-items:center;font-weight:700;font-size:16px;
  background:var(--hc-green);color:#fff;
}
.hc-eq__head h3{margin:0;font-size:24px;font-weight:700;color:#1e1e1e}

/* 重點標籤 */
.hc-eq__keys{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.hc-eq__keys li{
  font-size:13px;font-weight:500;color:var(--hc-green);
  background:var(--hc-green-soft);border-radius:999px;padding: 5px 12px 3px;
}

/* 數字 */
.hc-eq__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.hc-eq__stats--2{grid-template-columns:repeat(2,1fr)}
.hc-eq__stats > div{background:var(--hc-green-soft);border-radius:10px;padding:12px;text-align:center}
.hc-eq__stats b{display:block;font-size:24px;color:var(--hc-green-dark);line-height:1.3}
.hc-eq__stats b small{font-size:12px;font-weight:600;margin-left:3px}
.hc-eq__stats span{font-size:14px;color:#666}

.hc-eq__body{display:flex;flex-direction:column;gap:14px}
.hc-eq p{font-size:16px;line-height:1.85;color:#333;margin:0}

/* 流程 */
.hc-eq__flow{list-style:none;margin:0;padding:0;counter-reset:flow;display:grid;gap:0}
.hc-eq__flow li{
  counter-increment:flow;position:relative;
  padding:6px 0 6px 38px;font-size:14px;color:#333;
}
.hc-eq__flow li::before{
  content:counter(flow);position:absolute;left:0;top:6px;
  width:24px;height:24px;border-radius:50%;
  border:1.5px solid var(--hc-green);color:var(--hc-green);
  display:grid;place-items:center;font-size:12px;font-weight:700;background:#fff;
}
.hc-eq__flow li:not(:last-child)::after{
  content:"";position:absolute;left:11.5px;top:30px;bottom:-6px;width:1px;
  background:var(--hc-line);
}

/* 表格 */
.hc-eq__table{width:100%;border-collapse:collapse;font-size:15px}
.hc-eq__table caption{text-align:left;font-size:18px;font-weight:700;color:var(--hc-green);margin-bottom:8px}
.hc-eq__table th,.hc-eq__table td{padding:9px 6px;border-bottom:1px solid var(--hc-line);text-align:left}
.hc-eq__table thead th{font-size:16px;color:#333;font-weight:500}
.hc-eq__table tbody th{font-weight:600;white-space:nowrap}
.hc-eq__table td:last-child{width:55%;white-space:nowrap}
.hc-bar{
  display:inline-block;vertical-align:middle;height:6px;border-radius:3px;
  width:calc(var(--w) * .55);background:var(--hc-green);margin-right:10px;
}

/* 路線 */
.hc-eq__route{margin:0;display:grid;gap:8px}
.hc-eq__route > div{display:grid;grid-template-columns:84px 1fr;gap:10px;font-size:15px}
.hc-eq__route dt{font-weight:600;color:var(--hc-green-dark)}
.hc-eq__route dd{margin:0;color:#333}

/* 2分割 (05) */
.hc-eq__split{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hc-eq__sub{border-top:2px solid var(--hc-green);padding-top:12px;display:flex;flex-direction:column;gap:8px}
.hc-eq__sub h4{margin:0;font-size:18px;color:#1e1e1e}
.hc-eq__big{font-weight:700;color:var(--hc-green-dark)!important;font-size:15px!important}

/* 展開 */
.hc-eq__more{border-top:1px solid var(--hc-line);padding-top:10px}
.hc-eq__more summary{
  cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px;
  font-size:14px;font-weight:600;color:var(--hc-green);
}
.hc-eq__more summary::-webkit-details-marker{display:none}
.hc-eq__more summary::after{
  content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform .2s;
}
.hc-eq__more[open] summary::after{transform:rotate(225deg) translateY(-1px)}
.hc-eq__more p{margin-top:10px;color:#333}

/* Responsive */
@media (max-width:1024px){
  .hc-equip__grid{grid-template-columns:1fr}
}
@media (max-width:768px){
  .hc-equip{padding:3.5rem 16px 4rem}
  .hc-equip__nav{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin:0 -16px 24px;padding:0 16px 4px;scrollbar-width:none}
  .hc-equip__nav::-webkit-scrollbar{display:none}
  .hc-equip__nav a{flex:none}
  .hc-eq{padding:20px}
  .hc-eq__head h3{font-size:18px}
  .hc-eq__stats{grid-template-columns:repeat(3,1fr)}
  .hc-eq__stats b{font-size:17px}
  .hc-eq__split{grid-template-columns:1fr}
  .hc-eq__table td:last-child{width:auto}
  .hc-bar{display:none}
}
@media (max-width:420px){
  .hc-eq__stats{grid-template-columns:1fr 1fr}
}

/* 各廠配置 區塊寬度 — 平板/行動版依畫面寬度 */
@media (max-width:900px){
  .hc-factory__inner,
  .hc-equip__inner{width:100%;}
  .hc-equip{padding-left:16px;padding-right:16px;}
}
@media (min-width:769px) and (max-width:900px){
  .hc-factory{padding-left:16px;padding-right:16px;}
}

/* ==========================================================
   PROJECT LIST PAGE (project_list.html) — 供料實績 卡片列表
   (參考：toptk.co.kr 新聞列表 — 照片＋分類標籤＋標題＋說明)
   ========================================================== */
.proj-list-section{padding:4.5rem 0 6rem;}
.proj-list-inner{
  width:calc(100% - 160px);     /* 與上方主視覺・頁面分頁同寬 */
  max-width:1440px;
  margin:0 auto;
}
.proj-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  column-gap:24px;
  row-gap:40px;
  margin:0;padding:0;list-style:none;
}
.proj-card{
  display:flex;
  flex-direction:column;
  height:100%;
  background:#fff;
  border:1px solid #e2e2e2;
  border-radius:16px;
  overflow:hidden;
  /* hover 時即使框線變粗也不會推動版面，改用 box-shadow 處理 */
  transition:border-color .25s ease, box-shadow .25s ease;
}
.proj-card:hover,
.proj-card:focus-visible{
  border-color:var(--blue);
  box-shadow:0 0 0 1px var(--blue), 0 10px 24px rgba(0,0,0,.08);
}
.proj-card-img{
  aspect-ratio:462 / 310;   /* 加高照片（原本 462/240) */
  overflow:hidden;
  background:#dfe9f2;
}
.proj-card-img img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.proj-card:hover .proj-card-img img{transform:scale(1.06);}

.proj-card-body{
  flex:1;
  padding:28px 48px 44px;
  min-height:230px;
  box-sizing:border-box;
}
.proj-badge{
  display:inline-block;
  padding:5px 16px 3px;
  border-radius:6px;
  background:var(--blue);
  color:#fff;
  font-size:1rem;
  font-weight:600;
  letter-spacing:.04em;
  margin-bottom:22px;
}
.proj-card-title{
  font-size:1.25rem;
  font-weight:700;
  color:var(--gray-deep);
  line-height:1.5;
  margin-bottom:16px;
  /* 標題單行省略 */
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:color .2s ease;
}
.proj-card:hover .proj-card-title{color:var(--blue);}
.proj-card-desc{
  font-size:1.05rem;
  color:#666;
  line-height:1.75;
  /* 說明最多兩行 */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* 分頁 */
.proj-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:4rem;
}
.proj-pagination a{
  min-width:40px;height:40px;
  padding:0 6px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1rem;
  color:var(--gray-deep);
  transition:background .2s ease, color .2s ease;
}
.proj-pagination a:hover{color:var(--blue);}
.proj-pagination a.is-active{background:var(--blue);color:#fff;font-weight:600;}
.proj-pagination .pg-arrow svg{width:18px;height:18px;}

@media (max-width:1200px){
  .proj-card-body{padding:24px 28px 32px;min-height:200px;}
}
@media (max-width:1024px){
  .proj-list{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:900px){
  .proj-list-inner{width:calc(100% - 56px);}
  .proj-list-section{padding:3rem 0 4rem;}
}
@media (max-width:600px){
  .proj-list{grid-template-columns:1fr;row-gap:24px;}
  .proj-list-inner{width:calc(100% - 32px);}
  .proj-card-body{padding:20px 22px 26px;min-height:0;}
  .proj-badge{font-size:.9rem;margin-bottom:14px;}
  .proj-card-title{font-size:1.1rem;}
  .proj-card-desc{font-size:.95rem;}
}


/* ==========================================================
   AWARDS PAGE (awards.html) — 歷年得獎事蹟
   版面：上方摘要數字＋分類篩選／左側年份固定導覽＋右側橫式列表
   (style.css 直接貼在最下方)
   ========================================================== */
.award-section{padding:8rem 0 6rem;}
.award-inner{
  width:calc(100% - 160px);     /* 與上方主視覺・頁面分頁同寬 */
  max-width:1440px;
  margin:0 auto;
}

/* ---------- 內文：年份導覽＋列表 ---------- */
.award-layout{
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:72px;
  align-items:start;
}

/* 左側年份導覽 — 隨捲動固定（頁首 108px 下方) */
.award-years{
  position:sticky;
  top:140px;
  display:flex;
  flex-direction:column;
  border-left:2px solid var(--line);
}
.award-years a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-left:-2px;
  padding:10px 0 10px 22px;
  border-left:2px solid transparent;
  font-size:1.25rem;
  font-weight:600;
  color:#b5b9bf;
  transition:color .2s ease, border-color .2s ease;
}
.award-years a em{
  font-style:normal;
  font-size:.8rem;
  min-width:24px;
  padding:2px 8px 1px;
  border-radius:999px;
  background:#f2f3f5;
  color:var(--gray);
  text-align:center;
}
.award-years a:hover{color:var(--gray-deep);}
.award-years a.is-active{color:var(--blue);border-left-color:var(--blue);}
.award-years a.is-active em{background:var(--blue-light);color:var(--blue);}

/* 年份群組 */
.award-group{scroll-margin-top:130px;padding-bottom:56px;}
.award-group + .award-group{padding-top:8px;}
.award-group-head{
  display:flex;
  align-items:baseline;
  gap:14px;
  margin-bottom:24px;
}
.award-group-year{
  font-size:3rem;
  font-weight:700;
  color:#0c9939;
  line-height:1;
}
.award-group-roc{font-size:1rem;color:var(--gray);}

/* 得獎項目（橫式卡片) */
.award-list{display:grid;gap:16px;margin:0;padding:0;list-style:none;}
.award-item{
  display:grid;
  grid-template-columns:220px minmax(0,1fr) auto;
  align-items:center;
  gap:36px;
  padding:20px 32px 20px 20px;
  background:#fff;
  border:1px solid #e2e2e2;
}
/* 無滑過效果（僅保留「查看獎狀」按鈕的滑過效果) */
.award-thumb{
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:#f5f6f8;
}
.award-thumb img{
  width:100%;height:100%;
  object-fit:cover;
}

.award-badge{
  display:inline-block;
  padding:4px 14px 2px;
  border-radius:4px;
  background:var(--blue);
  color:#fff;
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.04em;
  margin-bottom:14px;
}
.award-badge.is-gold{background:#0c9939;}
.award-badge.is-gray{background:#8a929c;}
/* 國際獎項: 高雅的香檳金 */
.award-badge.is-premium{
  background:linear-gradient(135deg, #a9822f 0%, #c9a557 45%, #8f6a1f 100%);
  color:#fff;
  text-shadow:0 1px 1px rgba(90,62,10,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(120,86,20,.25);
}

.award-title{
  font-size:1.5rem;
  font-weight:600;
  color:var(--gray-deep);
  line-height:1.5;
  margin-bottom:12px;
  transition:color .2s ease;
}
/*.award-item:hover .award-title{color:var(--blue);}*/

.award-meta{margin:0;display:grid;gap:4px;}
.award-meta > div{display:flex;gap:16px;font-size:1rem;line-height:1.7;}
.award-meta dt{flex:none;color:#666;}
.award-meta dd{margin:0;color:#333;}

.award-view{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 48px 12px;
  border:1.5px solid var(--blue);
  border-radius:999px;
  color:var(--blue);
  font-size:1rem;
  font-weight:600;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease;
}
.award-view svg{width:20px;height:20px;}
.award-view:hover{background:var(--blue);color:#fff;}

.award-empty{
  padding:80px 0;
  text-align:center;
  color:var(--gray);
  font-size:1.05rem;
}

/* 分頁 — 因最後一個年份群組下方有留白（56px），縮小上方間距 */
.award-pagination{margin-top:1rem;}

/* 以篩選隱藏 */
.award-item.is-hidden,
.award-group.is-hidden,
.award-years a.is-hidden{display:none;}

/* ---------- 獎狀 燈箱 ---------- */
.award-lightbox{
  max-width:min(880px, 92vw);
  max-height:90vh;
  padding:20px 20px 16px;
  border:0;
  border-radius:12px;
  background:#fff;
  overflow:visible;
}
.award-lightbox::backdrop{background:rgba(10,32,56,.7);}
.award-lightbox img{
  display:block;
  max-width:100%;
  max-height:calc(90vh - 90px);
  margin:0 auto;
  object-fit:contain;
}
.award-lightbox-caption{
  margin-top:12px;
  text-align:center;
  font-size:1rem;
  font-weight:600;
  color:var(--gray-deep);
}
.award-lightbox-close{
  position:absolute;
  top:-16px;right:-16px;
  width:40px;height:40px;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}
.award-lightbox-close svg{width:18px;height:18px;}

/* ---------- Responsive ---------- */
@media (max-width:1200px){
  .award-layout{grid-template-columns:140px minmax(0,1fr);gap:48px;}
  .award-item{grid-template-columns:180px minmax(0,1fr);gap:28px;}
  /* 按鈕移到內文下方 */
  .award-view{grid-column:2;justify-self:start;}
}

/* 平板・行動版：年份導覽改為上方橫向捲動列並固定 */
@media (max-width:900px){
  .award-inner{width:calc(100% - 56px);}
  .award-section{padding:3rem 0 4rem;}

  .award-layout{grid-template-columns:1fr;gap:28px;}
  .award-years{
    top:68px;                 /* 行動版頁首（top 12px + 56px）正下方 */
    z-index:50;
    flex-direction:row;
    overflow-x:auto;
    scrollbar-width:none;
    gap:6px;
    margin:0 -28px;
    padding:10px 28px;
    border-left:0;
    border-bottom:1px solid var(--line);
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(6px);
  }
  .award-years::-webkit-scrollbar{display:none;}
  .award-years a{
    flex:none;
    margin:0;
    padding:7px 14px 5px;
    border:1.5px solid #e2e2e2;
    border-radius:999px;
    font-size:1rem;
  }
  .award-years a.is-active{border-color:var(--blue);background:var(--blue);color:#fff;}
  .award-years a.is-active em{background:#fff;color:var(--blue);}
  .award-group{scroll-margin-top:140px;}
  .award-group-year{font-size:2.4rem;}
}

@media (max-width:600px){
  .award-inner{width:calc(100% - 32px);}
  .award-years{margin:0 -16px;padding:10px 16px;}

  .award-item{grid-template-columns:1fr;gap:16px;padding:14px 14px 20px;}
  .award-view{grid-column:auto;justify-self:stretch;justify-content:center;}
  .award-badge{font-size:.85rem;margin-bottom:10px;}
  .award-title{font-size:1.1rem;}
  .award-meta > div{font-size:.92rem;gap:12px;}
  .award-lightbox-close{top:8px;right:8px;}
}

/* ==========================================================
   RATING PAGE (cert.html) — 公司認證及評等
   (awards.html沿用 .award-section / .award-badge / .award-view / 燈箱)
   ========================================================== */
.cert-group{padding-bottom:72px;}
.cert-group:last-child{padding-bottom:0;}
.cert-group .award-group-head{
  padding-bottom:18px;
  margin-bottom:32px;
  border-bottom:1px solid var(--line);
}
.cert-group-title{
  font-size:2rem;
  font-weight:700;
  color:var(--gray-deep);
  line-height:1.2;
}

.cert-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px 28px;
  margin:0;padding:0;list-style:none;
}
.cert-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e2e2e2;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.cert-card:hover{
  border-color:var(--blue);
  box-shadow:0 0 0 1px var(--blue), 0 10px 24px rgba(0,0,0,.06);
}
/* 證書多為直式，為避免被裁切使用 contain＋淺灰底 */
.cert-thumb{
  aspect-ratio:4 / 3;
  background:#f5f6f8;
  padding:24px;
  overflow:hidden;
}
.cert-thumb img{
  width:100%;height:100%;
  object-fit:contain;
  transition:transform .5s ease;
}
.cert-card:hover .cert-thumb img{transform:scale(1.04);}

.cert-body{flex:1;padding:28px 32px 8px;}
.cert-title{
  font-size:1.25rem;
  font-weight:700;
  color:var(--gray-deep);
  line-height:1.5;
  margin-bottom:14px;
  transition:color .2s ease;
}
.cert-card:hover .cert-title{color:var(--blue);}
.cert-meta{margin:0;display:grid;gap:4px;}
.cert-meta > div{display:flex;gap:16px;font-size:1rem;line-height:1.7;}
.cert-meta dt{flex:none;color:#666;}
.cert-meta dd{margin:0;color:#333;}

.cert-view{align-self:center;margin:20px 32px 32px;} /* 卡片置中 */

@media (max-width:1200px){
  .cert-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:900px){
  .cert-group-title{font-size:1.6rem;}
  .cert-body{padding:22px 24px 6px;}
  .cert-view{margin:16px 24px 24px;}
}
@media (max-width:600px){
  .cert-grid{grid-template-columns:1fr;gap:20px;}
  .cert-group{padding-bottom:48px;}
  .cert-title{font-size:1.1rem;}
  .cert-meta > div{font-size:.92rem;gap:12px;}
  .cert-view{align-self:stretch;justify-content:center;}
}

/* ==========================================================
   NEWS PAGE (news.html) — 最新消息
   (參考：HD現代 Media Hub — 3 欄卡片，有框照片＋標題＋日期＋主題標籤)
   ========================================================== */
.nl-section{padding:6rem 0 6rem;}
.nl-inner{
  width:calc(100% - 160px);     /* 與上方主視覺同寬 */
  max-width:1440px;
  margin:0 auto;
}
.nl-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  column-gap:40px;
  row-gap:64px;
  margin:0;padding:0;list-style:none;
}
.nl-link{display:block;}

.nl-thumb{
  aspect-ratio:16 / 10;
  border:1px solid #e2e2e2;
  border-radius:12px;
  overflow:hidden;
  background:#f5f6f8;
}
.nl-thumb img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.nl-link:hover .nl-thumb img{transform:scale(1.05);}

.nl-title{
  margin-top:24px;
  font-size:1.25rem;
  font-weight:600;
  line-height:1.5;
  color:var(--gray-deep);
  /* 標題最多兩行 */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:color .2s ease;
}
.nl-link:hover .nl-title{color:var(--blue);}
/* NEWS | 日期 */
.nl-meta{
  display:flex;
  align-items:center;
  margin-top:12px;
  font-size:1rem;
  line-height:1.4;
  letter-spacing:.02em;
}
.nl-cat{
  color:#0c9939;               /* 參考圖中的淺金色 */
  font-weight:600;
}
.nl-cat::after{                 /* 中間直線 bar */
  content:"";
  display:inline-block;
  width:1px;
  height:14px;
  margin:0 12px;
  background:#d5d8dc;
  vertical-align:-2px;
}
.nl-date{color:#888;}

.nl-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;}
.nl-tags span{
  padding:6px 16px 4px;
  border:1px solid #dcdfe3;
  border-radius:999px;
  font-size:.875rem;
  color:#666;
  line-height:1.4;
}

.nl-section .proj-pagination{margin-top:5rem;}

@media (max-width:1200px){
  .nl-grid{column-gap:28px;row-gap:52px;}
  .nl-title{font-size:1.15rem;}
}
@media (max-width:1024px){
  .nl-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:900px){
  .nl-inner{width:calc(100% - 56px);}
  .nl-section{padding:3rem 0 4rem;}
  .nl-title{margin-top:18px;}
}
@media (max-width:600px){
  .nl-inner{width:calc(100% - 32px);}
  .nl-grid{grid-template-columns:1fr;row-gap:40px;}
  .nl-title{font-size:1.1rem;}
  .nl-meta{margin-top:10px;font-size:.92rem;}
  .nl-tags{margin-top:16px;}
  .nl-tags span{font-size:.8rem;padding:5px 12px 3px;}
}

/* ==========================================================
   PROMO PAGE (promo.html) — 宣傳資料 (各年度型錄)
   (news.html沿用 .nl-section / .nl-inner / .nl-title / .nl-meta)
   ========================================================== */
.pr-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  column-gap:40px;
  row-gap:64px;
  margin:0;padding:0;list-style:none;
}

/* 型錄封面 — A4 直式比例，完整顯示不裁切 */
.pr-cover{
  aspect-ratio:210 / 297;
  border:1px solid #e2e2e2;
  border-radius:12px;
  overflow:hidden;
  background:#f5f6f8;
  box-shadow:0 6px 18px rgba(10,32,56,.06);
  transition:box-shadow .3s ease, transform .3s ease;
}
.pr-cover img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.pr-item .nl-link:hover .pr-cover{
  transform:translateY(-6px);
  box-shadow:0 14px 30px rgba(10,32,56,.12);
}
.pr-item .nl-link:hover .pr-cover img{transform:scale(1.03);}

/* 即使標題換成 2 行，也讓每張卡片的按鈕列位於相同高度：按鈕移到卡片最下方 */
.pr-item{display:flex;flex-direction:column;}
.pr-item > .nl-link{flex:1 1 auto;}

/* 按鈕 2 個 — 同寬 */
.pr-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:20px;
}
.pr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 8px 8px;
  border:1px solid var(--blue);
  color:var(--blue);
  background:#fff;
  font-size:.95rem;
  font-weight:600;
  white-space:nowrap;
  transition:background .2s ease, color .2s ease;
}
.pr-btn svg{width:18px;height:18px;flex-shrink:0;}
.pr-btn:hover{background:var(--blue);color:#fff;}
.pr-btn--solid{background:var(--blue);color:#fff;}
.pr-btn--solid:hover{background:#fff;color:var(--blue);}

@media (max-width:1200px){
  .pr-grid{grid-template-columns:repeat(3,1fr);column-gap:28px;row-gap:52px;}
}
@media (max-width:900px){
  .pr-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:480px){
  .pr-grid{grid-template-columns:1fr;row-gap:40px;}
}

/* ==========================================================
   CONTACT PAGE (contact.html) — 聯絡我們
   (左側：總公司・各廠聯絡資訊／右側：詢問表單)
   ========================================================== */
/* 因沒有頁面分頁，子視覺照片往下突出的量（與 .page-tabs 相同的 280px）往下移 */
.sub-visual + .ct-section{margin-top:280px;}
.ct-section{padding:5rem 0 7rem;}
.ct-inner{
  width:calc(100% - 160px);
  max-width:1440px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:80px;
  align-items:start;
}

.ct-eyebrow{
  font-size:.875rem;
  font-weight:600;
  letter-spacing:.14em;
  color:#b39a6e;
  margin-bottom:10px;
}
.ct-sub{
  font-size:1.75rem;
  font-weight:700;
  color:var(--gray-deep);
  line-height:1.3;
  margin-bottom:28px;
}

/* --- 總公司 --- */
.ct-hq{
  background:var(--blue);
  color:#fff;
  padding:40px 44px;
  border-radius:12px;
  margin-bottom:56px;
}
.ct-hq .ct-eyebrow{color:rgba(255,255,255,.75);}
.ct-hq__name{font-size:1.75rem;font-weight:700;line-height:1.35;margin-bottom:24px;}
.ct-hq__list{display:grid;gap:12px;}
.ct-hq__list li{display:flex;align-items:center;gap:12px;font-size:1.0625rem;letter-spacing:.03em;}
.ct-hq__list svg{width:20px;height:20px;flex-shrink:0;opacity:.85;}
.ct-hq__list a:hover{text-decoration:underline;}

/* --- 各廠（上：廠名・地址／分隔線／下：電話｜地圖) --- */
.ct-plant-list{display:grid;grid-template-columns:repeat(2,1fr);gap:32px 24px;} /* 列間距 32px／欄間距 24px */
.ct-plant{
  display:flex;
  flex-direction:column;
  border:1px solid #e2e2e2;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease;
}
.ct-plant:hover{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue);}
.ct-plant__head{display:flex;align-items:center;gap:12px;padding:24px 24px 0;}
.ct-plant__no{
  width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--blue-light);color:var(--blue);
  font-size:.8rem;font-weight:700;
}
.ct-plant__head h3{font-size:1.25rem;font-weight:700;color:var(--gray-deep);letter-spacing:.1em;}
.ct-plant__addr{
  flex:1;
  padding:14px 24px 26px;
  font-size:.95rem;color:#444;line-height:1.85;
}
.ct-plant__links{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-top:1px solid #e8eaed;
}
.ct-plant__links a{
  position:relative;
  display:flex;align-items:center;justify-content:center;
  padding:16px 10px;
  font-size:1rem;font-weight:500;color:var(--blue);
  white-space:nowrap;
  transition:background .2s ease;
}
.ct-plant__links a + a::before{   /* 中間直線 bar */
  content:"";
  position:absolute;
  left:0;top:50%;
  width:1px;height:14px;
  background:#e2e2e2;
  transform:translateY(-50%);
}
.ct-plant__links a:hover{background:var(--blue-light);}
.ct-plant__links svg{width:17px;height:17px;flex-shrink:0;}

/* --- 詢問表單 --- */
.ct-form-wrap{
  background:#f8f9fb;
  border-radius:12px;
  padding:48px 52px 52px;
}
.ct-form-wrap .ct-sub{margin-bottom:8px;}
.ct-form-note{font-size:.9rem;color:#888;margin-bottom:28px;}
.ct-req{color:#d0342c;}
.ct-form{display:grid;gap:20px;}
.ct-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.ct-field{display:flex;flex-direction:column;gap:8px;}
.ct-field label{font-size:1rem;font-weight:600;color:var(--gray-deep);}
.ct-field input,
.ct-field select,
.ct-field textarea{
  width:100%;
  font:inherit;
  font-size:1rem;
  color:var(--gray-deep);
  background:#fff;
  border:1px solid #d9dde2;
  border-radius:6px;
  padding:12px 14px;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.ct-field textarea{resize:vertical;min-height:160px;line-height:1.7;}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(0,105,183,.12);
}
.ct-form .is-invalid{border-color:#d0342c;}
.ct-agree{display:flex;align-items:flex-start;gap:10px;font-size:.95rem;color:#555;line-height:1.6;cursor:pointer;}
.ct-agree input{width:18px;height:18px;margin-top:3px;flex-shrink:0;accent-color:var(--blue);}
.ct-agree input.is-invalid{outline:2px solid #d0342c;outline-offset:1px;}
.ct-error{font-size:.95rem;color:#d0342c;}
.ct-submit{
  justify-self:center;
  display:inline-flex;align-items:center;gap:10px;
  margin-top:8px;
  padding:14px 56px 12px;
  border:1px solid var(--blue);
  border-radius:999px;
  background:var(--blue);
  color:#fff;
  font-size:1.125rem;font-weight:600;
  transition:background .2s ease, color .2s ease;
}
.ct-submit svg{width:20px;height:20px;transition:transform .2s ease;}
.ct-submit:hover{background:#fff;color:var(--blue);}
.ct-submit:hover svg{transform:translateX(4px);}

@media (max-width:1200px){
  .ct-inner{grid-template-columns:1fr;gap:56px;}
}
@media (max-width:900px){
  .sub-visual + .ct-section{margin-top:0;}
  .ct-section{padding:3rem 0 4rem;}
  .ct-inner{width:calc(100% - 56px);}
  .ct-hq{padding:32px 28px;margin-bottom:40px;}
  .ct-hq__name{font-size:1.4rem;}
  .ct-sub{font-size:1.45rem;}
  .ct-form-wrap{padding:36px 28px 40px;}
}
@media (max-width:600px){
  .ct-inner{width:calc(100% - 32px);}
  .ct-plant-list{grid-template-columns:1fr;gap:20px;}
  .ct-row{grid-template-columns:1fr;}
  .ct-form-wrap{padding:28px 20px 32px;}
  .ct-submit{justify-self:stretch;justify-content:center;}
}

/* ==========================================================
   QUALITY PAGE (tech_quality.html) — 技術服務 > 品質製程管控
   ========================================================== */
.qc-inner{width:calc(100% - 160px);max-width:1440px;margin:0 auto;}
.qc-sec{padding:6rem 0;scroll-margin-top:150px;}
.qc-sec--tint{background:#f5f7fa;}
.qc-sec--sky{background:linear-gradient(180deg,#eef6fc 0%,#f7fbfe 100%);}

/* --- 區塊捷徑：圖示方塊選單 --- */
.qc-nav{margin-top:5rem;}
.qc-nav__inner{
  width:calc(100% - 160px);max-width:1400px;margin:0 auto;
  display:grid;grid-template-columns:repeat(6,1fr);
  border-top:1px solid #e2e2e2;border-left:1px solid #e2e2e2;
}
.qc-nav a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;
  min-height:154px;
  padding:20px 10px;
  border-right:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;
  background:#fff;
  color:#555;
  text-align:center;
  transition:background .25s ease, color .25s ease;
}
/* 圖示：深藍色線條＋藍色重點（雙色) */
.qc-nav__ico{display:inline-flex;color:#2c3440;transition:color .25s ease, transform .25s ease;}
.qc-nav__ico svg{width:56px;height:56px;}
.qc-nav__ico .ac{stroke:var(--blue);}
.qc-nav__ico .acf{fill:var(--blue);stroke:none;}
.qc-nav__ico .bgf{fill:#fff;}
.qc-nav__label{font-size:1.0625rem;font-weight:500;line-height:1.4;}
.qc-nav a:hover .qc-nav__ico{transform:translateY(-3px);}
.qc-nav a:hover{color:var(--blue);}
.qc-nav a.is-active{background:var(--blue);color:#fff;}
/* 選取的區塊：圖示全部改為白色，重疊遮擋面改為藍色背景色 */
.qc-nav a.is-active .qc-nav__ico{color:#fff;}
.qc-nav a.is-active .qc-nav__ico .ac{stroke:#fff;}
.qc-nav a.is-active .qc-nav__ico .acf{fill:#fff;}
.qc-nav a.is-active .qc-nav__ico .bgf{fill:var(--blue);}
.qc-nav a.is-active .qc-nav__label{font-weight:700;}

.qc-flow,.qc-steps{list-style:none;margin-left:0;padding:0;}   /* ol 移除預設編號・縮排 */

/* --- 共用標題 --- */
.qc-head{margin-bottom:32px;}
.qc-head--center{text-align:center;}
.qc-eyebrow{font-size:.875rem;font-weight:600;letter-spacing:.16em;color:#b39a6e;margin-bottom:10px;}
.qc-head h2,.qc-block h2{font-size:2rem;font-weight:700;color:var(--gray-deep);line-height:1.35;}
.qc-lead{margin-top:20px;font-size:1.0625rem;line-height:2;color:#444;}
.qc-text{font-size:1.0625rem;line-height:1.95;color:#333;}
.qc-text + .qc-text{margin-top:14px;}

/* --- 01 產品種類 --- */
.qc-strength{
  display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:6px 14px;
  margin:8px auto 48px;
  padding:22px 32px;
  max-width:720px;
  border-radius:12px;
  background:var(--blue-light);
}
.qc-strength b{font-size:3rem;font-weight:700;color:var(--blue);line-height:1;}
.qc-strength b small{font-size:.6em;margin:0 4px;}
.qc-strength__unit{font-size:1.125rem;font-weight:600;color:var(--blue);}
.qc-strength__label{font-size:1.0625rem;color:#444;}

.qc-types{margin-bottom:48px;}
.qc-types__title{font-size:1.25rem;font-weight:700;color:var(--gray-deep);margin-bottom:16px;text-align:center;}
.qc-types__title em{font-style:normal;font-size:.875rem;font-weight:500;color:var(--gray);margin-left:6px;}
.qc-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;}
.qc-chips li{
  padding:9px 20px 7px;
  border:1px solid #dcdfe3;border-radius:999px;background:#fff;
  font-size:1rem;color:#333;
}

.qc-prods{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;}
.qc-zoom{display:block;width:100%;text-align:inherit;cursor:zoom-in;}
.qc-prod__img{display:block;aspect-ratio:1/1;overflow:hidden;background:#eef0f2;}
.qc-prod__img img,.qc-step__img img,.qc-case__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.qc-zoom:hover img{transform:scale(1.05);}
.qc-prod__name{display:block;margin-top:16px;text-align:center;font-size:1.125rem;font-weight:600;color:var(--gray-deep);}

/* --- 左右分割共用 --- */
.qc-split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:72px;align-items:center;}
.qc-split--rev{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);}
.qc-split__media{overflow:hidden;background:#e5ebf0;aspect-ratio:5/4;}
.qc-split__media img{width:100%;height:100%;object-fit:cover;}
/* 照片高度與旁邊的卡片群相同（上下邊線對齊) */
.qc-split--fill{align-items:stretch;}
.qc-split--fill .qc-split__media{aspect-ratio:auto;height:100%;min-height:320px;}

/* --- 02 生產原料 --- */
.qc-mats{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;}
.qc-mat{background:#fff;border:1px solid #e2e2e2;border-radius:12px;padding:22px 24px;}
.qc-mat__no{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:.8rem;font-weight:700;line-height:1;color:var(--blue);background:var(--blue-light);margin-bottom:12px;} /* 正圓形編號 */
.qc-mat h3{font-size:1.25rem;font-weight:700;color:var(--gray-deep);letter-spacing:.1em;margin-bottom:8px;}
.qc-mat p{font-size:1rem;line-height:1.85;color:#444;}
.qc-more{margin-top:10px;border-top:1px solid var(--line);padding-top:10px;}
.qc-more summary{
  cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px;
  font-size:.9rem;font-weight:600;color:var(--blue);
}
.qc-more summary::-webkit-details-marker{display:none;}
.qc-more summary::after{
  content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform .2s;
}
.qc-more[open] summary::after{transform:rotate(225deg) translateY(-1px);}
.qc-more p{margin-top:8px;}

/* --- 03 生產管制 --- */
/* 3步驟管理：圓形編號＋連接線時間軸 */
.qc-flow{display:grid;grid-template-columns:repeat(3,1fr);margin:32px 0;}
.qc-flow li{
  position:relative;
  display:flex;flex-direction:column;align-items:center;gap:12px;
  text-align:center;font-size:1.0625rem;font-weight:600;color:var(--gray-deep);
}
.qc-flow li::before{               /* 步驟之間的連接線 */
  content:"";
  position:absolute;top:26px;left:50%;
  width:100%;height:2px;
  background:#b9d3ea;
  z-index:0;
}
.qc-flow li:last-child::before{display:none;}
.qc-flow b{
  position:relative;z-index:1;
  width:54px;height:54px;border-radius:50%;
  display:grid;place-items:center;
  background:#fff;border:2px solid var(--blue);
  color:var(--blue);font-size:1rem;font-weight:700;letter-spacing:.04em;
}
.qc-flow li:first-child b{background:var(--blue);color:#fff;}

.qc-lab{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:stretch;}
.qc-lab__stat{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  padding:16px 22px;border-radius:12px;background:var(--blue-light);text-align:center;
}
.qc-lab__stat b{font-size:2.25rem;color:var(--navy);line-height:1.2;}
.qc-lab__stat b small{font-size:.9rem;margin-left:2px;}
.qc-lab__stat span{font-size:.9rem;color:#555;}
.qc-eqs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;}
.qc-eqs li{
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:16px 6px;border:1px solid #e2e2e2;border-radius:12px;
  font-size:.95rem;color:#333;text-align:center;line-height:1.4;
}
.qc-eqi{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--blue-light);color:var(--blue);}
.qc-eqi svg{width:24px;height:24px;}

/* --- 04 實務研討 --- */
/* 案例卡片：將編號・標題・說明・分類標籤組成標題列，清楚區分兩個案例 */
.qc-case-block{
  background:#fff;
  border:1px solid #dbe6f0;
  border-radius:16px;
  padding:40px 44px 44px;
  box-shadow:0 8px 24px rgba(10,32,56,.05);
}
.qc-case-block + .qc-case-block{margin-top:32px;}
.qc-case-head{
  display:flex;align-items:center;gap:22px;
  padding-bottom:24px;margin-bottom:32px;
  border-bottom:1px solid var(--line);
}
.qc-case-no{
  flex:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:72px;height:72px;border-radius:14px;
  background:var(--blue);color:#fff;
  font-size:.7rem;font-weight:600;letter-spacing:.14em;line-height:1;
}
.qc-case-no b{font-size:1.6rem;letter-spacing:0;margin-top:6px;}
.qc-case-head__text{flex:1;min-width:0;}
.qc-case-title{font-size:1.5rem;font-weight:700;color:var(--gray-deep);line-height:1.4;}
.qc-case-sub{margin-top:6px;font-size:1rem;color:#666;line-height:1.6;}
.qc-case-tag{
  flex:none;
  padding:8px 16px 6px;border-radius:999px;
  background:var(--blue-light);color:var(--blue);
  font-size:.9rem;font-weight:600;white-space:nowrap;
}
.qc-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;position:relative;}
.qc-step{position:relative;}
.qc-step:not(:last-child)::after{       /* 步驟之間的箭頭 */
  content:"";
  position:absolute;top:calc(37.5% - 8px);right:-20px;
  width:12px;height:12px;
  border-top:2px solid var(--blue);border-right:2px solid var(--blue);
  transform:rotate(45deg);
}
.qc-step__img{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:10px;background:#dfe9f2;}
.qc-step__name{margin-top:14px;text-align:center;font-size:1.0625rem;font-weight:600;color:var(--gray-deep);}
.qc-step__name b{display:block;font-size:.8rem;letter-spacing:.12em;color:var(--blue);margin-bottom:2px;}

.qc-cases{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.qc-case__img{display:block;aspect-ratio:5/6;overflow:hidden;background:#dfe9f2;}
.qc-case__name{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:14px;font-size:1.0625rem;font-weight:600;color:var(--gray-deep);}
/* 放大鏡：淺灰圓形線框內放圖示 */
.qc-case__name i{
  display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;margin-left:4px;border-radius:50%;
  border:1px solid #e8e8e9;background:#fff;color:var(--blue);
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.qc-case__name svg{width:14px;height:14px;}
.qc-case:hover .qc-case__name i,
.qc-case:focus-visible .qc-case__name i{border-color:var(--blue);background:var(--blue);color:#fff;}

/* --- 05 技術交流 / 教育訓練 --- */
.qc-block + .qc-block{margin-top:48px;padding-top:48px;border-top:1px solid var(--line);}
.qc-block h2{margin-bottom:16px;}
.qc-collage{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:6px;background:none;aspect-ratio:1/0.8;}
.qc-collage img{border-radius:8px;background:#e5ebf0;}

/* --- 06 勞安觀點 --- */
.qc-quote{
  margin:0 0 24px;
  padding:16px 22px;
  border-left:4px solid var(--blue);
  background:var(--blue-light);
  font-size:1.125rem;font-weight:600;color:var(--navy);line-height:1.7;
}

/* --- Responsive --- */
@media (max-width:1200px){
  .qc-split,.qc-split--rev{gap:48px;}
  .qc-eqs{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:1024px){
  .qc-split,.qc-split--rev{grid-template-columns:1fr;}
  .qc-split--rev .qc-split__media{order:2;}
  .qc-split__media{aspect-ratio:16/9;}
  .qc-split--fill .qc-split__media{aspect-ratio:16/9;height:auto;min-height:0;}
  .qc-collage{aspect-ratio:16/10;}
  .qc-prods{grid-template-columns:repeat(2,1fr);}
  .qc-steps{grid-template-columns:repeat(2,1fr);}
  .qc-step:nth-child(2)::after{display:none;}
}
@media (max-width:900px){
  .qc-inner,.qc-nav__inner{width:calc(100% - 56px);}
  .qc-nav{margin-top:2.5rem;}
  .qc-nav__inner{grid-template-columns:repeat(3,1fr);}
  .qc-nav a{min-height:120px;gap:12px;}
  .qc-nav__ico svg{width:46px;height:46px;}
  .qc-sec{padding:4rem 0;scroll-margin-top:130px;}
  .qc-head h2,.qc-block h2{font-size:1.6rem;}
  .qc-case-block{padding:32px 28px 36px;}
  .qc-case-tag{display:none;}
  .qc-lead br{display:none;}
  .qc-strength b{font-size:2.4rem;}
}
@media (max-width:600px){
  .qc-inner,.qc-nav__inner{width:calc(100% - 32px);}
  .qc-sec{padding:3rem 0;}
  .qc-nav a{min-height:104px;padding:14px 6px;gap:10px;}
  .qc-nav__ico svg{width:38px;height:38px;}
  .qc-nav__label{font-size:.9rem;}
  .qc-mats{grid-template-columns:1fr;}
  .qc-flow li{font-size:.95rem;}
  .qc-flow b{width:46px;height:46px;font-size:.9rem;}
  .qc-flow li::before{top:22px;}
  .qc-lab{grid-template-columns:1fr;}
  .qc-prods,.qc-steps{gap:16px;}
  .qc-step::after{display:none !important;}
  .qc-cases{grid-template-columns:1fr;gap:20px;}
  .qc-case-block{padding:24px 20px 28px;}
  .qc-case-head{flex-wrap:wrap;gap:14px;}
  .qc-case-no{width:56px;height:56px;}
  .qc-case-no b{font-size:1.25rem;}
  .qc-case-title{font-size:1.2rem;}
  .qc-case-tag{order:3;}
  .qc-case__img{aspect-ratio:4/3;}
}

/* ==========================================================
   TRANSPORT PAGE (tech_transport.html) — 技術服務 > 運輸管理
   (tech_quality.html 沿用 .qc-sec / .qc-head / 雙色圖示樣式)
   ========================================================== */
.tp-intro{padding-top:7rem;}

/* 車隊 數字 3 個 */
.tp-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:none;margin:16px 0 0;}
.tp-stat{
  display:flex;flex-direction:column;align-items:center;gap:6px;
  padding:36px 20px 32px;
  border:1px solid #e2e2e2;border-radius:16px;background:#fff;text-align:center;
}
.tp-stat__ico svg{width:56px;height:56px;}
.tp-stat b{margin-top:10px;font-size:2.75rem;font-weight:700;color:var(--blue);line-height:1.1;}
.tp-stat b small{font-size:1rem;font-weight:600;margin-left:4px;color:var(--navy);}
.tp-stat > span:last-child{font-size:1.0625rem;color:#444;}

/* 影片 */
.tp-video{position:relative;max-width:none;margin:0;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:transparent;}
.tp-video__cover{position:absolute;inset:0;width:100%;height:100%;cursor:pointer;padding:0;margin:0;border:0;background:none;display:block;}
.tp-video__cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.tp-video__cover:hover img{transform:scale(1.03);}
.tp-video__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:76px;transition:transform .2s ease;}
.tp-video__cover:hover .tp-video__play{transform:translate(-50%,-50%) scale(1.08);}
.tp-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}

@media (max-width:900px){
  .tp-intro{padding-top:4rem;}
  .tp-stats{grid-template-columns:1fr;gap:16px;}
  .tp-stat{flex-direction:row;flex-wrap:wrap;justify-content:center;padding:24px 20px;}
  .tp-stat b{margin-top:0;}
}
@media (max-width:600px){
  .tp-stat b{font-size:2.2rem;}
  .tp-video__play{width:60px;}
}

/* 供料實績 — 給沒有照片的專案使用的 Logo 佔位卡片 */
.proj-card-img--logo{display:flex;align-items:center;justify-content:center;background:#f2f2f2;}
.proj-card-img--logo img{width:50%;height:auto;object-fit:contain;opacity:.5;transition:opacity .3s ease;}
.proj-card:hover .proj-card-img--logo img{opacity:.6;}  /* 滑鼠移入時稍微加深 */
.proj-card:hover .proj-card-img--logo img{transform:none;}
/* 長的工程名稱因 nowrap 撐開格線欄寬的問題 → 固定欄寬＋標題兩行省略 */
.proj-list > li{min-width:0;}
.proj-card-title{
  white-space:normal;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

/* 得獎事蹟 — 配合橫式獎項照片（1600×1033，獎狀＋獎盃）放大圖片區域 */
.awards-trophy{width:100%;max-width:340px;height:auto;aspect-ratio:1600 / 1033;}
.awards-trophy img{width:100%;height:100%;max-width:none;object-fit:contain;border-radius:10px;}
.awards-desc{max-width:320px;}
.awards-desc small{display:block;margin-top:.35rem;font-size:.9rem;color:#777;line-height:1.5;}
/* 讓點永遠位於橫線正中央：線不畫在固定位置（top:240px），而是與點同一行 */
.awards-item::before{display:none;}
.awards-dot{
  align-self:stretch;width:auto;height:10px;
  margin:1.6rem -28px 1.1rem;            /* 加寬項目左右 padding 的距離，使其與相鄰項目的線相連 */
  border-radius:0;background:none;
}
.awards-dot::before{                       /* 橫線 */
  content:"";position:absolute;left:0;right:0;top:50%;
  height:1px;margin-top:-.5px;background:var(--gold);opacity:.45;
}
.awards-dot::after{                        /* 點 */
  content:"";position:absolute;left:50%;top:0;
  width:10px;height:10px;margin-left:-5px;border-radius:50%;background:var(--gold);
}
@media (max-width:900px){
  .awards-dot{margin-left:-8px;margin-right:-8px;}
}


/* ==========================================================
   供料實績 詳細頁 (project_detail.html)
   ========================================================== */
.pd-inner{width:calc(100% - 160px);max-width:1440px;margin:0 auto;}

/* --- 上方：資訊＋照片檢視器 --- */
.pd-hero{
  padding:168px 0 88px;
  background:#f2f6fa;
}
.pd-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  grid-template-areas:"head viewer" "body viewer";
  grid-template-rows:auto 1fr;
  column-gap:64px;
  align-items:start;
}
.pd-head{grid-area:head;}
.pd-body{grid-area:body;}
.pd-viewer{grid-area:viewer;}

.pd-breadcrumb{padding-top:0;margin-bottom:32px;flex-wrap:wrap;}
.pd-badge{margin-bottom:18px;}
.pd-title{
  font-size:clamp(1.7rem, 2.4vw, 2.5rem);
  font-weight:700;
  line-height:1.4;
  color:var(--gray-deep);
  letter-spacing:.01em;
  margin:0;
  word-break:break-word;
}
.pd-company{
  display:flex;align-items:center;gap:12px;
  margin:16px 0 0;
  font-size:1.1rem;color:var(--gray);
}
.pd-company::before{content:"";width:28px;height:2px;background:var(--gold);flex:none;}
.pd-company a{color:var(--blue);text-decoration:underline;}

/* 規格表 */
.pd-specs{margin:40px 0 0;border-top:2px solid var(--gray-deep);}
.pd-spec{
  display:grid;grid-template-columns:150px 1fr;gap:16px;
  padding:18px 0;border-bottom:1px solid #dfe5ec;
  align-items:baseline;
}
.pd-spec dt{font-size:1rem;font-weight:600;color:var(--gray-deep);}
.pd-spec dt span{display:block;margin-top:2px;font-size:.72rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:#9aa3ad;}
.pd-spec dd{margin:0;font-size:1.05rem;line-height:1.6;color:var(--ink);word-break:break-word;}
.pd-spec.is-key dd{font-size:2.1rem;font-weight:700;color:var(--gold);line-height:1.2;letter-spacing:.01em;}
.pd-spec.is-key dd em{font-style:normal;font-size:1rem;font-weight:600;margin-left:6px;color:var(--gray);}

/* 按鈕・分享 */
.pd-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-top:40px;}
.pd-back{font-size:1.05rem;padding:11px 30px 9px 22px;background:#fff;}
.pd-back:hover span{transform:translateX(-3px);}
.pd-share{position:relative;display:flex;align-items:center;gap:10px;}
.pd-share-label{font-size:.95rem;color:var(--gray);margin-right:4px;}
.pd-share-btn{
  width:40px;height:40px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid #d9e0e8;color:var(--gray-deep);
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.pd-share-btn:hover{background:var(--blue);border-color:var(--blue);color:#fff;}
.pd-toast{
  position:absolute;right:0;top:calc(100% + 10px);
  padding:7px 14px;border-radius:8px;background:var(--gray-deep);color:#fff;
  font-size:.85rem;white-space:nowrap;
  opacity:0;transform:translateY(-4px);pointer-events:none;transition:opacity .2s ease,transform .2s ease;
}
.pd-toast.is-visible{opacity:1;transform:none;}

/* 照片檢視器 */
.pd-stage{
  position:relative;border-radius:20px;overflow:hidden;
  aspect-ratio:3 / 2;background:#e6ecf2;
  box-shadow:0 24px 48px -24px rgba(10,32,56,.35);
}
.pd-stage-open{display:block;width:100%;height:100%;padding:0;cursor:zoom-in;}
.pd-stage-open img{width:100%;height:100%;object-fit:cover;display:block;}
.pd-stage-open img.is-in{animation:pdFade .45s ease;}
@keyframes pdFade{from{opacity:.25;transform:scale(1.015);}to{opacity:1;transform:none;}}
.pd-zoom-hint{
  position:absolute;left:18px;bottom:18px;
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 14px 6px;border-radius:999px;
  background:rgba(10,20,32,.6);color:#fff;font-size:.85rem;
  opacity:0;transition:opacity .25s ease;
}
.pd-stage:hover .pd-zoom-hint,
.pd-stage-open:focus-visible .pd-zoom-hint{opacity:1;}
.pd-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:48px;height:48px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.92);color:var(--gray-deep);
  box-shadow:0 6px 18px rgba(0,0,0,.15);
  opacity:0;transition:opacity .25s ease,background .2s ease,color .2s ease;
}
.pd-nav svg{width:22px;height:22px;}
.pd-nav:hover{background:var(--blue);color:#fff;}
.pd-nav-prev{left:18px;}
.pd-nav-next{right:18px;}
.pd-stage:hover .pd-nav,.pd-nav:focus-visible{opacity:1;}
.pd-counter{
  position:absolute;right:18px;bottom:18px;
  padding:6px 14px 5px;border-radius:999px;
  background:rgba(255,255,255,.92);color:var(--gray);font-size:.85rem;letter-spacing:.06em;
  pointer-events:none;
}
.pd-counter b{color:var(--gray-deep);}
.pd-thumbs{
  display:flex;gap:12px;margin:16px 0 0;padding:0 0 4px;list-style:none;
  overflow-x:auto;scrollbar-width:thin;scroll-behavior:smooth;
}
.pd-thumbs li{flex:0 0 calc((100% - 48px) / 5);}
.pd-thumbs button{
  display:block;width:100%;aspect-ratio:3 / 2;padding:0;
  border-radius:10px;overflow:hidden;
  outline:2px solid transparent;outline-offset:-2px;
  opacity:.5;transition:opacity .2s ease,outline-color .2s ease;
}
.pd-thumbs button:hover{opacity:.85;}
.pd-thumbs button.is-active{opacity:1;outline-color:var(--blue);}
.pd-thumbs img{width:100%;height:100%;object-fit:cover;display:block;}
.pd-viewer.is-single .pd-nav,
.pd-viewer.is-single .pd-thumbs{display:none;}
.pd-viewer.is-empty .pd-stage{background:#f2f2f2;box-shadow:none;}
.pd-viewer.is-empty .pd-stage-open{cursor:default;display:flex;align-items:center;justify-content:center;}
.pd-viewer.is-empty .pd-stage-open img{width:52%;height:auto;object-fit:contain;opacity:.35;}
.pd-viewer.is-empty .pd-nav,
.pd-viewer.is-empty .pd-thumbs,
.pd-viewer.is-empty .pd-counter,
.pd-viewer.is-empty .pd-zoom-hint{display:none;}

/* --- 上一個／下一個專案 --- */
.pd-pager{background:#fff;border-bottom:1px solid var(--line);}
.pd-pager-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:32px;}
.pd-pager-item{display:flex;align-items:center;gap:20px;padding:28px 0;min-width:0;}
.pd-pager-item.is-next{justify-content:flex-end;text-align:right;}
.pd-pager-thumb{flex:none;width:120px;aspect-ratio:3 / 2;border-radius:10px;overflow:hidden;background:#f2f2f2;}
.pd-pager-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease;}
.pd-pager-item.is-logo .pd-pager-thumb img{object-fit:contain;padding:12px;opacity:.4;box-sizing:border-box;}
.pd-pager-text{min-width:0;}
.pd-pager-text small{display:block;font-size:.85rem;color:#9aa3ad;letter-spacing:.06em;margin-bottom:6px;}
.pd-pager-text strong{
  font-size:1.08rem;font-weight:600;color:var(--gray-deep);line-height:1.5;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  transition:color .2s ease;
}
.pd-pager-item:hover strong{color:var(--blue);}
.pd-pager-item:hover .pd-pager-thumb img{transform:scale(1.06);}
.pd-pager-all{
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#9aa3ad;border:1px solid var(--line);
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.pd-pager-all:hover{background:var(--blue);border-color:var(--blue);color:#fff;}

/* --- 相關實績 --- */
.pd-related{padding:88px 0 120px;}
.pd-related-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:36px;}
.pd-section-title{margin:0;font-size:1.9rem;font-weight:700;color:var(--gray-deep);}
.pd-section-title span{margin-left:12px;font-size:1rem;font-weight:400;color:#9aa3ad;letter-spacing:.04em;}
.pd-related-more{display:inline-flex;align-items:center;gap:4px;color:var(--blue);font-weight:600;white-space:nowrap;}
.pd-related-more:hover svg{transform:translateX(3px);}
.pd-related-more svg{transition:transform .2s ease;}

/* --- 燈箱 --- */
.pd-lightbox{
  position:fixed;inset:0;z-index:1000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(8,14,22,.94);
  opacity:0;transition:opacity .25s ease;
}
.pd-lightbox[hidden]{display:none;}
.pd-lightbox.is-open{opacity:1;}
body.pd-lb-lock{overflow:hidden;}
.pd-lb-figure{margin:0;max-width:86vw;}
.pd-lb-figure img{display:block;max-width:86vw;max-height:80vh;width:auto;height:auto;margin:0 auto;border-radius:6px;object-fit:contain;}
.pd-lb-figure figcaption{display:flex;justify-content:space-between;gap:24px;margin-top:16px;color:#c9d2dc;font-size:.95rem;}
.pd-lb-close{position:absolute;top:24px;right:24px;width:48px;height:48px;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .2s ease;}
.pd-lb-close:hover{background:rgba(255,255,255,.12);}
.pd-lb-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.08);color:#fff;transition:background .2s ease;
}
.pd-lb-nav svg{width:26px;height:26px;}
.pd-lb-nav:hover{background:var(--blue);}
.pd-lb-prev{left:28px;}
.pd-lb-next{right:28px;}

/* --- 響應式 --- */
@media (hover:none){
  .pd-nav{opacity:1;}
  .pd-zoom-hint{opacity:1;}
}
@media (max-width:1560px){
  .pd-hero{padding-top:136px;}
}
@media (max-width:1200px){
  .pd-hero-grid{column-gap:40px;}
  .pd-spec{grid-template-columns:120px 1fr;}
}
@media (max-width:1024px){
  .pd-hero{padding-bottom:64px;}
  .pd-hero-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "viewer" "body";}
  .pd-viewer{margin-top:32px;}
  .pd-specs{margin-top:36px;}
}
@media (max-width:900px){
  .pd-inner{width:calc(100% - 56px);}
  .pd-related{padding:64px 0 88px;}
}
@media (max-width:600px){
  .pd-inner{width:calc(100% - 32px);}
  .pd-hero{padding-top:112px;padding-bottom:48px;}
  .pd-breadcrumb{margin-bottom:22px;}
  .pd-company{font-size:1rem;}
  .pd-stage{border-radius:14px;}
  .pd-nav{width:40px;height:40px;}
  .pd-nav-prev{left:10px;}
  .pd-nav-next{right:10px;}
  .pd-counter{right:10px;bottom:10px;}
  .pd-zoom-hint{left:10px;bottom:10px;}
  .pd-thumbs{gap:8px;}
  .pd-thumbs li{flex-basis:calc((100% - 24px) / 4);}
  .pd-spec{grid-template-columns:100px 1fr;gap:12px;padding:15px 0;}
  .pd-spec.is-key dd{font-size:1.7rem;}
  .pd-actions{flex-direction:column-reverse;align-items:stretch;}
  .pd-back{justify-content:center;}
  .pd-share{justify-content:center;}
  .pd-toast{right:50%;transform:translate(50%,-4px);}
  .pd-toast.is-visible{transform:translate(50%,0);}
  .pd-pager-grid{gap:12px;}
  .pd-pager-thumb{display:none;}
  .pd-pager-item{padding:20px 0;}
  .pd-pager-text strong{font-size:.95rem;}
  .pd-pager-all{width:44px;height:44px;}
  .pd-section-title{font-size:1.45rem;}
  .pd-section-title span{display:block;margin:4px 0 0;font-size:.85rem;}
  .pd-lb-nav{top:auto;bottom:24px;transform:none;width:48px;height:48px;}
  .pd-lb-prev{left:calc(50% - 60px);}
  .pd-lb-next{right:calc(50% - 60px);}
  .pd-lb-figure img{max-width:94vw;max-height:70vh;}
  .pd-lb-figure{max-width:94vw;}
  .pd-lb-figure figcaption{font-size:.85rem;}
}

/* 生產管制: 照片 2 張上下排列 (控制室 + 養生池) */
.qc-stack{display:grid;grid-template-rows:3fr 2fr;gap:6px;background:none;aspect-ratio:4/5;}
.qc-stack img{min-height:0;background:#e5ebf0;}
@media (max-width:900px){
  .qc-stack{aspect-ratio:auto;grid-template-rows:none;grid-template-columns:1fr 1fr;}
  .qc-stack img{aspect-ratio:4/3;height:auto;}
}

/* ==========================================================
   最新消息 詳細頁 (news_view.html)
   直接沿用列表（news.html）的 .nl-meta / .nl-cat / .nl-tags 樣式
   ========================================================== */
.nv-inner{width:calc(100% - 160px);max-width:1440px;margin:0 auto;}

/* --- 標題區域 --- */
.nv-head{padding:168px 0 48px;background:#f0faff;}
.nv-breadcrumb{padding-top:0;margin-bottom:36px;flex-wrap:wrap;}
.nv-meta{margin-top:0;}
.nv-title{
  margin:16px 0 0;
  font-size:clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight:700;line-height:1.45;letter-spacing:.01em;
  color:var(--gray-deep);word-break:break-word;
}
.nv-tags{margin-top:24px;}
.nv-tags span{background:#fff;}

/* --- 內文 --- */
.nv-body-wrap{padding:56px 0 80px;}
.nv-hero{margin:0 0 48px;}
.nv-zoom{display:block;width:100%;padding:0;cursor:zoom-in;overflow:hidden;border-radius:12px;background:#f5f6f8;}
.nv-zoom img{width:100%;height:auto;display:block;}   /* 滑鼠移入時圖片不放大（固定不動） */
.nv-hero .nv-zoom img{max-height:640px;object-fit:contain;margin:0 auto;}

.nv-body{max-width:none;margin:0;font-size:1.1rem;line-height:2;color:var(--ink);}
.nv-body p{margin:0 0 1.2em;}
.nv-body a{color:var(--blue);text-decoration:underline;}
.nv-list{margin:0 0 1.2em;padding:24px 28px;list-style:none;background:#f0faff;border-left:3px solid var(--blue);}
.nv-list li{position:relative;padding-left:20px;font-weight:600;color:var(--gray-deep);}
.nv-list li::before{content:"";position:absolute;left:0;top:.9em;width:7px;height:7px;border-radius:50%;background:var(--blue);}

/* 相簿 */
.nv-gallery{margin-top:56px;padding-top:48px;border-top:1px solid var(--line);}
.nv-gallery-title{margin:0 0 24px;font-size:1.4rem;font-weight:700;color:var(--gray-deep);}
.nv-gallery-title span{margin-left:10px;font-size:.95rem;font-weight:400;color:#9aa3ad;letter-spacing:.04em;}
.nv-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0;padding:0;list-style:none;}
.nv-gallery-grid .nv-zoom{aspect-ratio:3 / 2;border:1px solid #e2e2e2;}
.nv-gallery-grid .nv-zoom img{height:100%;object-fit:cover;}

/* 分享 */
.nv-foot{display:flex;justify-content:flex-end;margin-top:48px;padding-top:24px;border-top:1px solid var(--line);}
.nv-share{position:relative;display:flex;align-items:center;gap:10px;color:var(--gray);font-size:.95rem;}
.nv-share-btn{
  width:40px;height:40px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid #d9e0e8;color:var(--gray-deep);
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.nv-share-btn:hover{background:var(--blue);border-color:var(--blue);color:#fff;}
.nv-toast{
  position:absolute;right:0;top:calc(100% + 10px);
  padding:7px 14px;border-radius:8px;background:var(--gray-deep);color:#fff;font-size:.85rem;white-space:nowrap;
  opacity:0;transform:translateY(-4px);pointer-events:none;transition:opacity .2s ease,transform .2s ease;
}
.nv-toast.is-visible{opacity:1;transform:none;}

/* --- 上一個／下一個 --- */
.nv-pager{background:#f6f6f6;padding:40px 0 88px;}
.nv-pager-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:32px;}
.nv-pager-item{display:block;min-width:0;padding:20px 0;}
.nv-pager-item.is-next{text-align:right;}
.nv-pager-item small{display:block;margin-bottom:6px;font-size:.85rem;color:#9aa3ad;letter-spacing:.06em;}
.nv-pager-item strong{
  font-size:1.05rem;font-weight:600;line-height:1.5;color:var(--gray-deep);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .2s ease;
}
.nv-pager-item:hover strong{color:var(--blue);}
.nv-pager-item.is-empty{pointer-events:none;}
.nv-pager-item.is-empty strong{color:#b8bec5;font-weight:400;}
.nv-list-btn{font-size:1.05rem;padding:11px 32px 9px;background:#fff;}

/* --- 燈箱 --- */
.nv-lightbox{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;background:rgba(8,14,22,.94);opacity:0;transition:opacity .25s ease;}
.nv-lightbox[hidden]{display:none;}
.nv-lightbox.is-open{opacity:1;}
body.nv-lb-lock{overflow:hidden;}
.nv-lb-figure{margin:0;max-width:86vw;text-align:center;}
.nv-lb-figure img{display:block;max-width:86vw;max-height:82vh;width:auto;height:auto;margin:0 auto;border-radius:6px;}
.nv-lb-figure figcaption{margin-top:14px;color:#c9d2dc;font-size:.95rem;}
.nv-lb-close{position:absolute;top:24px;right:24px;width:48px;height:48px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;}
.nv-lb-close:hover{background:rgba(255,255,255,.12);}
.nv-lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);color:#fff;transition:background .2s ease;}
.nv-lb-nav svg{width:26px;height:26px;}
.nv-lb-nav:hover{background:var(--blue);}
.nv-lb-prev{left:28px;}
.nv-lb-next{right:28px;}
.nv-lightbox.is-single .nv-lb-nav{display:none;}

/* --- 響應式 --- */
@media (max-width:1560px){ .nv-head{padding-top:136px;} }
@media (max-width:900px){
  .nv-inner{width:calc(100% - 56px);}
  .nv-gallery-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .nv-inner{width:calc(100% - 32px);}
  .nv-head{padding:112px 0 36px;}
  .nv-breadcrumb{margin-bottom:24px;}
  .nv-body-wrap{padding:32px 0 56px;}
  .nv-hero{margin-bottom:32px;}
  .nv-body{font-size:1rem;line-height:1.9;}
  .nv-gallery-grid{gap:10px;}
  .nv-foot{justify-content:center;}
  .nv-toast{right:50%;transform:translate(50%,-4px);}
  .nv-toast.is-visible{transform:translate(50%,0);}
  .nv-pager{padding:24px 0 56px;}
  .nv-pager-grid{grid-template-columns:1fr 1fr;gap:12px 20px;}
  .nv-list-btn{grid-column:1 / -1;grid-row:2;justify-self:center;}
  .nv-pager-item strong{font-size:.95rem;}
  .nv-lb-nav{top:auto;bottom:24px;transform:none;width:48px;height:48px;}
  .nv-lb-prev{left:calc(50% - 60px);}
  .nv-lb-next{right:calc(50% - 60px);}
  .nv-lb-figure img{max-width:94vw;max-height:70vh;}
}

/* --- 內文小標題・內文照片（含照片的文章) --- */
.nv-sub{
  margin:2.4em 0 .9em;padding-left:14px;
  border-left:4px solid var(--blue);
  font-size:1.35rem;font-weight:700;line-height:1.5;color:var(--gray-deep);
}
.nv-figure{margin:2em 0;}
.nv-figure .nv-zoom img{width:100%;height:auto;}
.nv-figure figcaption{margin-top:10px;font-size:.92rem;color:var(--gray);}
@media (max-width:600px){
  .nv-sub{font-size:1.15rem;}
  .nv-figure{margin:1.5em 0;}
}

/* --- 最新消息內文 YouTube 影片 --- */
.nv-video{margin:2.4em 0 1em;}
.nv-video-play,
.nv-video iframe{display:block;width:100%;aspect-ratio:16 / 9;border:0;border-radius:12px;overflow:hidden;background:#000;}
.nv-video-play{position:relative;padding:0;cursor:pointer;}
.nv-video-play img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease,opacity .3s ease;}
.nv-video-play:hover img{opacity:.9;}   /* 影片縮圖也不放大 */
.nv-video-btn{position:absolute;left:50%;top:50%;width:76px;height:54px;transform:translate(-50%,-50%);transition:transform .2s ease;}
.nv-video-btn svg{width:100%;height:100%;display:block;}
.nv-video-play:hover .nv-video-btn{transform:translate(-50%,-50%) scale(1.08);}
.nv-video figcaption{margin-top:10px;font-size:.92rem;color:var(--gray);}
@media (max-width:600px){ .nv-video-btn{width:60px;height:42px;} }

/* 技術服務 頁面上方：深色照片上的文字改為白色 (HTML <section class="sub-visual sub-visual--light">) */
.sub-visual--light .breadcrumb,
.sub-visual--light .breadcrumb .crumb-home,
.sub-visual--light .crumb-link,
.sub-visual--light .crumb-link.is-current,
.sub-visual--light .sub-visual-title,
.sub-visual--light .sub-visual-desc{color:#fff;}
.sub-visual--light .breadcrumb .crumb-sep{color:rgba(255,255,255,.6);}
.sub-visual--light .crumb-link:hover{color:rgba(255,255,255,.75);}
.sub-visual--light .breadcrumb,
.sub-visual--light .sub-visual-title,
.sub-visual--light .sub-visual-desc{text-shadow:0 2px 12px rgba(0,0,0,.45);}

/* 只在文字後方以橢圓形稍微壓暗 → 確保白字對比（其餘照片維持原亮度) */
.sub-visual--light .sub-visual-photo::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 30% 42% at 18% 38%,
    rgba(10,32,56,.38) 0%,
    rgba(10,32,56,.24) 45%,
    rgba(10,32,56,0) 100%);
}
.sub-visual--light .sub-visual-title{font-weight:700;letter-spacing:.02em;}
.sub-visual--light .sub-visual-desc{color:rgba(255,255,255,.92);}
@media (max-width:900px){
  /* 行動版：文字疊在整張照片上，因此整體均勻壓暗 */
  .sub-visual--light .sub-visual-photo::after{
    background:radial-gradient(ellipse 75% 32% at 35% 30%,rgba(10,32,56,.38) 0%,rgba(10,32,56,.22) 50%,rgba(10,32,56,0) 100%);
  }
}

/* 供料實績 列表頁（全部/土木工程/建築工程）上方說明改為 2 行：只隱藏第二個 <br> */
.page-main:has(.proj-list-section) .sub-visual-desc br:nth-of-type(2){display:none;}

/* PC 上方選單：修正選單文字與子選單間 8px 空隙，導致滑鼠往下移時子選單消失的問題
   → 僅將選單連結的滑鼠感應區往下延伸 12px，與子選單相連（顯示位置・底線位置不變) */
@media (min-width:1200px){
  .nav-item.has-mega > .nav-link{padding-bottom:calc(1.05rem + 12px);margin-bottom:-12px;}
  .nav-item.has-mega > .nav-link::before{bottom:1px;}
}

/* 點擊/聚焦 Logo 時隱藏藍色外框（outline） */
.logo:focus,.logo:focus-visible{outline:none;}

/* 所有子頁面上方圖片內的小字（路徑・說明文字）字重統一為 500 → 在照片上更清楚 */
.sub-visual .breadcrumb,
.sub-visual .breadcrumb a,
.sub-visual .crumb-link,
.sub-visual .crumb-link.is-current,
.sub-visual .sub-visual-desc{font-weight:500 !important;}

/* 宣傳資料 — 沒有封面圖片的型錄使用 Logo 佔位（與供料實績 .proj-card-img--logo 相同樣式) */
.pr-cover--logo{display:flex;align-items:center;justify-content:center;background:#f2f2f2;}
.pr-cover--logo img{width:60%;height:auto;object-fit:contain;opacity:.5;transition:opacity .3s ease;}
.pr-item .nl-link:hover .pr-cover--logo img{opacity:.6;transform:none;}
/* 沒有封面的型錄（.nl-link.is-static）：無點擊・滑鼠效果 */
.nl-link.is-static{cursor:default;}
.pr-item .nl-link.is-static:hover .pr-cover{transform:none;box-shadow:0 6px 18px rgba(10,32,56,.06);}
.pr-item .nl-link.is-static:hover .pr-cover img{opacity:.5;transform:none;}
.nl-link.is-static:hover .nl-title{color:var(--gray-deep);}
/* 準備中型錄（.pr-item.is-soon）的按鈕：淡化＋無法點擊 */
.pr-item.is-soon .pr-btn{
  opacity:.4;cursor:not-allowed;pointer-events:none;
  background:#fff;color:var(--gray);border-color:#cfd5dc;
}
.pr-item.is-soon .pr-btn--solid{background:#cfd5dc;color:#fff;border-color:#cfd5dc;}

/* ==========================================================
   宣傳資料 — 線上瀏覽 視窗（型錄細節圖片檢視器）・由 js/promo.js 建立
   ========================================================== */
.pr-view{cursor:pointer;}
body.pr-viewer-lock{overflow:hidden;}
.pr-viewer{
  position:fixed;inset:0;z-index:1000;
  display:flex;flex-direction:column;
  background:rgba(8,14,22,.94);
  color:#fff;
  opacity:0;transition:opacity .25s ease;
}
.pr-viewer[hidden]{display:none;}
.pr-viewer.is-open{opacity:1;}

/* 上方列：標題・頁數・下載 PDF・關閉 */
.pr-viewer__bar{
  flex:none;display:flex;align-items:center;gap:20px;
  padding:16px 24px;border-bottom:1px solid rgba(255,255,255,.1);
  background:#0b121b;              /* 不透明，避免後方頁首透出 */
}
.pr-viewer__title{flex:1;min-width:0;margin:0;font-size:1.125rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pr-viewer__count{font-size:.95rem;color:#c9d2dc;letter-spacing:.06em;white-space:nowrap;}
.pr-viewer__dl{
  display:inline-flex;align-items:center;gap:6px;
  padding:9px 20px 7px;border:1px solid var(--blue);background:var(--blue);color:#fff;
  font-size:.95rem;font-weight:600;white-space:nowrap;
  transition:background .2s ease,color .2s ease;
}
.pr-viewer__dl[hidden]{display:none;}
.pr-viewer__dl svg{width:18px;height:18px;}
.pr-viewer__dl:hover{background:#fff;color:var(--blue);}
.pr-viewer__close{
  flex:none;width:44px;height:44px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#fff;
  transition:background .2s ease;
}
.pr-viewer__close svg{width:24px;height:24px;}
.pr-viewer__close:hover{background:rgba(255,255,255,.12);}

/* 中間：細節圖片＋左右箭頭 */
.pr-viewer__stage{
  position:relative;flex:1;min-height:0;
  display:flex;align-items:center;justify-content:center;
  padding:24px 96px;
}
.pr-viewer__img{
  display:block;max-width:100%;max-height:100%;width:auto;height:auto;
  object-fit:contain;background:#fff;
  box-shadow:0 20px 50px rgba(0,0,0,.45);
}
.pr-viewer__img.is-in{animation:prvFade .35s ease;}
@keyframes prvFade{from{opacity:.2;}to{opacity:1;}}
.pr-viewer__nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:56px;height:56px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.1);color:#fff;
  transition:background .2s ease;
}
.pr-viewer__nav svg{width:26px;height:26px;}
.pr-viewer__nav:hover{background:var(--blue);}
.pr-viewer__nav.is-prev{left:24px;}
.pr-viewer__nav.is-next{right:24px;}

/* 下方：頁面縮圖 */
.pr-viewer__thumbs{
  flex:none;display:flex;gap:10px;margin:0;padding:14px 24px 18px;list-style:none;
  overflow-x:auto;scrollbar-width:thin;
}
.pr-viewer__thumbs li{flex:none;}
.pr-viewer__thumbs li:first-child{margin-left:auto;}   /* 放得下就置中，放不下則從左側開始捲動 */
.pr-viewer__thumbs li:last-child{margin-right:auto;}
.pr-viewer__thumbs button{
  display:block;width:56px;aspect-ratio:210 / 297;padding:0;overflow:hidden;
  opacity:.45;outline:2px solid transparent;outline-offset:2px;
  transition:opacity .2s ease,outline-color .2s ease;
}
.pr-viewer__thumbs button:hover{opacity:.8;}
.pr-viewer__thumbs button.is-active{opacity:1;outline-color:#fff;}
.pr-viewer__thumbs img{width:100%;height:100%;object-fit:cover;}

/* 只有一張時隱藏箭頭・縮圖 */
.pr-viewer.is-single .pr-viewer__nav,
.pr-viewer.is-single .pr-viewer__thumbs{display:none;}

@media (max-width:600px){
  .pr-viewer__bar{gap:10px;padding:10px 12px;}
  .pr-viewer__title{font-size:.95rem;}
  .pr-viewer__count{font-size:.85rem;}
  .pr-viewer__dl{padding:8px 12px 6px;}
  .pr-viewer__dl span{display:none;}                 /* 窄畫面：只顯示圖示 */
  .pr-viewer__stage{padding:12px 12px 72px;}
  .pr-viewer__nav{top:auto;bottom:12px;transform:none;width:48px;height:48px;}
  .pr-viewer__nav.is-prev{left:calc(50% - 60px);}
  .pr-viewer__nav.is-next{right:calc(50% - 60px);}
  .pr-viewer__thumbs{padding:8px 12px 12px;gap:8px;}
  .pr-viewer__thumbs button{width:44px;}
}
