/* =====================================================================
   台拓官網 — 全站共用 Header / Footer 樣式
   由 _Layout 全域載入；服務 _TecHeader.cshtml 與 _TecFooter.cshtml。
   ===================================================================== */

/* footer 依賴的設計變數（專案 main.css 未全域定義，於此補上全域 fallback）。
   數值與 works.css / industrial-plants-bim.css 的頁面級 :root 一致。 */
:root {
  --ink: #0E0F11;
  --red: #E0121A;
  /* 紙色與圓角：原僅定義於頁面級 :root（works.css / industrial-plants-bim.css）。
     首頁 CTA 卡片（與往後多頁共用的 CTA 區塊）需要，故提升為全站變數。 */
  --paper: #F1F1F4;
  --paper-2: #FAFAFB;
  --radius: 14px;
  --radius-lg: 22px;
  /* 行動版 Header／抽屜需要；數值與各頁面級 :root（works.css / industrial-plants-bim.css /
     electricity-water-skills-quality.css）完全一致，故提升為全站變數不會造成頁面差異。 */
  --red-dark: #B30E14;
  --white: #FFFFFF;
  --muted: #6B7280;
  --border: #E5E7EB;
  /* 行動抽屜選單圖示點綴色，取自 TEC logo 字樣藍（2026-07-29 交辦包）。 */
  --tec-blue: #291FAA;
}

/* =====================================================================
   HEADER — Top Bar 社群圖示 hover 顯示品牌色
   （沿用 Voltz .header-links 結構，僅新增 transition 與品牌色 hover）
   ===================================================================== */
/* 用 !important 勝過 Voltz main.css 的高權重 .homepage4-body … .header-links li a:hover；
   FA icon 以 color 著色，故 <a> 與其內 <i> 一併設定。 */
.header-top-area .header-links a,
.header-top-area .header-links a i { transition: color .15s; }
.header-top-area .header-links a.hsoc-fb:hover,
.header-top-area .header-links a.hsoc-fb:hover i { color: #1877F2 !important; }
.header-top-area .header-links a.hsoc-yt:hover,
.header-top-area .header-links a.hsoc-yt:hover i { color: #FF0000 !important; }
/* LinkedIn 圖示已於 2026-07-28 自 _TecHeader.cshtml 移除（帳號尚未就緒），
   本組 hover 樣式刻意保留，日後把 <li> 補回即可直接生效。 */
.header-top-area .header-links a.hsoc-li:hover,
.header-top-area .header-links a.hsoc-li:hover i { color: #0A66C2 !important; }

/* =====================================================================
   HEADER — Top Bar 精神標語（六詞）
   桌機／行動皆顯示。header-top-main 為 justify-content:space-between，
   本元素是第一個子元素故靠左；右側為社群/電話（行動版由 CSS 隱藏）。
   topbar 底色為 Voltz --ztc-bg-bg-2 (#0F0D0D)，故用淺灰字。
   ===================================================================== */
.tec-topbar-tagline {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #C7C9CD;
}

/* 捲動時不要讓 Header 變 fixed 跟著頁面往下移動；維持基態定位、隨頁面自然捲離。
   各頁 JS 的 sticky 切換已移除（不再加 .sticky / .header-sticky）；此處為保險安全網，
   即使有殘留 JS 加上 class，也覆寫掉 Voltz / about-history.css 的 position:fixed。
   用 #id+class 提高優先序勝過 .homepageN-body / .ah-inner-header 的 (0,2,0)。 */
#vl-header-sticky.header-sticky,
#vl-header-sticky.sticky {
  position: relative !important;
  animation: none !important;
}

/* =====================================================================
   HEADER — 品牌區（雙 logo + 灰分隔點兩行公司名，2026-08-06 交辦包移除精神標語列）
   依設計稿置入 Voltz 原 vl-logo-area 位置；命名 tec- 前綴避免與主題衝突。
   ===================================================================== */
.tec-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.tec-brand-mark {
  width: 96px; height: 54px;
  flex: none;
  display: block;
  position: relative;
}
.tec-brand-mark-2 { width: 48px; height: 54px; }
.tec-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* 覆寫 Voltz main.css 全域 img max-width/max-height:100%，避免 logo 被卡尺寸 */
  max-width: none;
  max-height: none;
}
.tec-brand-co {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}
.tec-brand-co .tec-bc-row { display: flex; align-items: center; white-space: nowrap; }
.tec-brand-co i { color: #9aa0a6; font-style: normal; margin: 0 9px; }

/* 較窄視窗整體壓縮：Voltz 桌機選單於 1200–1280px 仍顯示，避免加寬後的品牌區擠壓右側選單。
   選單／CTA 沿用 Voltz 選擇器同特異度覆寫（tec-shared.css 在 main.css 之後載入，source order 勝出）。 */
@media (max-width: 1280px) {
  .tec-brand { gap: 10px; }
  .tec-brand-mark { width: 82px; height: 46px; }
  .tec-brand-mark-2 { width: 41px; height: 46px; }
  .tec-brand-co { font-size: 14px; }
  .homepage4-body .vl-main-menu ul > li > a { padding: 0 9px; font-size: 15px; }
  .homepage4-body .vl-hero-btn .vl-btn1 { padding: 14px 16px; font-size: 15px; }
}

/* =====================================================================
   HEADER — 桌機主選單 active 高亮（依目前路由，見 _TecHeader.cshtml 的
   topActive / isSub 判斷）。
   Voltz main.css 內建的 active 樣式是 `a.nav-link.active`，但這裡的 active
   class 是加在 <li>（.has-dropdown.active／子選單 li.active）上，兩者選擇器
   對不上、從未真正生效過，故補上對應規則。選擇器特異度已高於 main.css 同類
   規則，且 tec-shared.css 於 main.css 之後載入，故毋須 !important。
   僅套用於桌機主選單；行動抽屜依設計稿刻意同色不做高亮，不受影響。
   ===================================================================== */
.vl-main-menu ul > li.has-dropdown.active > a {
  color: var(--red);
}
.vl-main-menu ul > li .sub-menu li.active > a {
  color: var(--red);
}

/* =====================================================================
   HEADER — 行動裝置（窄屏／直立式，< 1200px）
   依 design_handoff_responsive_header 設計稿實作。設計稿原斷點為 900px，
   本站因品牌區較寬、桌機選單於 1200px 以下已由 Bootstrap 收起（d-xl-*），
   故行動樣式一律對齊 Bootstrap xl 斷點 1199.98px，避免 900–1200 出現破口。
   命名一律 tec- 前綴：設計稿原型用 .header/.brand/.nav 等通用名，會與 Voltz main.css 互撞。
   ===================================================================== */
.tec-brand-co-mobile { display: none; }

@media (max-width: 1199.98px) {
  /* Top Bar：主題在 ≤991px 將整條 header-top-area 設為 display:none，
     但設計稿手機版保留一條標語列，故以同等特異度覆寫顯示回來。
     若日後決定手機不要這條列，刪除下方 .header-top-area 這組規則即可。 */
  .homepage4-body .vl-transparent-header .header-top-area { display: block; }
  /* 主題以 .homepage4-body .vl-transparent-header .header-top-area .header-top-main .hsocial-phn-area
     設定 display（特異度 0,5,0），此處需同等特異度才蓋得過，不能只寫 .header-top-area .hsocial-phn-area。 */
  .homepage4-body .vl-transparent-header .header-top-area .header-top-main .hsocial-phn-area { display: none; }
  /* 標語樣式已提升為全站基礎樣式（見上方 Top Bar 精神標語段），此處不再重複定義。
     原本用於隱藏佔位空 ul.header-list 的規則亦已移除——該元素已從 _TecHeader.cshtml 刪除。 */

  /* 品牌區：桌機兩行版公司名隱藏，改用上2下2 堆疊版。
     桌機 DOM 順序為 TEC → 兩行公司名 → 雄展屋型（見 _TecHeader.cshtml），.tec-brand-co 以
     display:none 移出 flex 排版後，行動版剩餘可見元素自然順序已是 TEC → 雄展屋型 → 兩行公司名，
     此處仍明訂 order 以維持與設計稿一致、避免日後改用 visibility/opacity 隱藏時順序跑掉。 */
  .tec-brand-co { display: none; }
  .tec-brand-mark { order: 1; }
  .tec-brand-mark-2 { order: 2; }
  .tec-brand-co-mobile { order: 3; }
  .tec-brand { gap: 9px; margin-right: 14px; }
  .tec-brand-mark { width: 62px; height: 36px; }
  .tec-brand-mark-2 { width: 32px; height: 36px; }
  /* Voltz main.css 對全域 img 套 max-width/max-height:100%，行動尺寸同樣需覆寫 */
  .tec-brand-mark img { max-width: none; max-height: none; }

  .tec-brand-co-mobile {
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    color: #9aa0a6;
    white-space: nowrap;
  }
  .tec-brand-co-mobile .tec-bcm-row { display: inline-flex; align-items: center; }
  /* flex:0 0 auto — 否則被壓縮成橢圓／空心環 */
  .tec-brand-co-mobile .tec-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #9aa0a6; flex: 0 0 auto; margin: 0 6px;
  }

  /* Bootstrap 三欄格線（col-xl-auto col-md-6 col-6）在行動版會把品牌區壓到半寬，
     放不下「雙 logo + 2×2 公司名」，故於此改為單列 flex 由內容決定寬度。 */
  .vl-header-area .container-xxl > .row { flex-wrap: nowrap; align-items: center; }
  .vl-header-area .container-xxl > .row > [class*="col-"] {
    width: auto; max-width: none; flex: 0 0 auto;
  }
  .vl-header-area .container-xxl > .row > [class*="col-"]:last-child {
    margin-left: auto;
  }

  /* 右側行動操作：索取報價 + 漢堡 */
  .tec-m-actions { align-items: center; gap: 10px; margin-right: 6px; }
  .tec-m-quote {
    background: var(--red);
    color: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1;
    padding: 9px 12px;
    border-radius: 7px;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s;
  }
  .tec-m-quote:hover { background: var(--red-dark); color: #fff; }
  .tec-m-burger {
    width: 38px; height: 38px;
    background: #3a3d42;
    border: 0; padding: 0;
    border-radius: 7px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 4px; flex: 0 0 auto;
    transition: background .15s;
  }
  .tec-m-burger:hover { background: #2a2c30; }
  .tec-m-burger span {
    display: block; width: 19px; height: 2.5px;
    background: #fff; border-radius: 2px;
  }
}

/* 極窄屏：整體再降一階，避免右緣被切 */
@media (max-width: 380px) {
  .tec-brand-mark { width: 54px; height: 32px; }
  .tec-brand-mark-2 { width: 28px; height: 32px; }
  .tec-brand-co-mobile { font-size: 11.5px; }
  .tec-m-quote { padding: 8px 10px; font-size: 12.5px; }
  .tec-m-burger { width: 34px; height: 34px; }
  .tec-m-burger span { width: 17px; }
  .tec-m-actions { gap: 8px; }
}

/* =====================================================================
   HEADER — 行動抽屜選單（取代舊版 Voltz .vl-offcanvas）
   z-index 200 高於主題 offcanvas(99) / overlay(50)。
   ===================================================================== */
.tec-mobile-drawer { display: none; }

@media (max-width: 1199.98px) {
  .tec-mobile-drawer {
    display: block;
    position: fixed; inset: 0; z-index: 200;
    background: rgba(14,15,17,.5);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease;
  }
}
.tec-mobile-drawer.open { opacity: 1; visibility: visible; }
.tec-mobile-drawer .tec-md-backdrop { position: absolute; inset: 0; }
.tec-mobile-drawer .tec-md-panel {
  position: absolute; top: 0; right: 0;
  width: min(340px, 86vw); height: 100%;
  background: var(--white);
  box-shadow: -12px 0 40px rgba(14,15,17,.18);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  padding: 14px 0 40px;
}
.tec-mobile-drawer.open .tec-md-panel { transform: translateX(0); }
.tec-mobile-drawer .tec-md-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 20px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.tec-mobile-drawer .tec-md-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 800; font-size: 17px;
  color: var(--ink); text-decoration: none;
}
.tec-mobile-drawer .tec-md-close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; padding: 0;
  border-radius: 8px;
  color: var(--ink); background: var(--paper);
}
.tec-mobile-drawer .tec-md-close svg { width: 20px; height: 20px; }

/* 選單圖示（含標題「首頁」與主選單五項）：單色 WEBP 當 mask，實際顯示色由
   background-color 控制，靜態藍／hover-展開紅共用同一張圖（2026-07-29 交辦包）。 */
.tec-mobile-drawer .tec-md-nav-icon {
  width: 24px; height: 24px; flex: none; display: block;
  background-color: var(--tec-blue);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  transition: background-color .15s;
}
.tec-mobile-drawer .tec-md-nav-icon--home { -webkit-mask-image: url('/img/header/menu-icon-home.webp'); mask-image: url('/img/header/menu-icon-home.webp'); }
.tec-mobile-drawer .tec-md-nav-icon--group { -webkit-mask-image: url('/img/header/menu-icon-group.webp'); mask-image: url('/img/header/menu-icon-group.webp'); }
.tec-mobile-drawer .tec-md-nav-icon--plant { -webkit-mask-image: url('/img/header/menu-icon-plant.webp'); mask-image: url('/img/header/menu-icon-plant.webp'); }
.tec-mobile-drawer .tec-md-nav-icon--mep { -webkit-mask-image: url('/img/header/menu-icon-mep.webp'); mask-image: url('/img/header/menu-icon-mep.webp'); }
.tec-mobile-drawer .tec-md-nav-icon--green { -webkit-mask-image: url('/img/header/menu-icon-green.webp'); mask-image: url('/img/header/menu-icon-green.webp'); }
.tec-mobile-drawer .tec-md-nav-icon--contact { -webkit-mask-image: url('/img/header/menu-icon-contact.webp'); mask-image: url('/img/header/menu-icon-contact.webp'); }

.tec-mobile-drawer .tec-md-group > summary {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700; font-size: 16px;
  color: var(--ink);
  cursor: pointer; list-style: none; position: relative;
}
.tec-mobile-drawer .tec-md-group > summary::-webkit-details-marker { display: none; }
/* 分隔線 1–5：從選項文字左緣（20px）劃到抽屜右緣 */
.tec-mobile-drawer .tec-md-group > summary::before {
  content: ""; position: absolute;
  left: 20px; right: 0; bottom: 0;
  height: 1px; background: var(--border);
}
/* 分隔線 6：主選單下邊緣，抽屜左緣到右緣（滿版）；最後一組不再重複劃分隔線 1–5，避免與此線重疊 */
.tec-mobile-drawer .tec-md-group:last-of-type {
  border-bottom: 1px solid var(--border);
}
.tec-mobile-drawer .tec-md-group:last-of-type > summary::before { display: none; }
/* 展開箭頭：紅色向下三角，靠 icon+文字後方 gap 推到最右，[open] 時翻轉 */
.tec-mobile-drawer .tec-md-group > summary::after {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--red);
  transition: transform .2s;
  margin-left: auto; margin-right: 6px;
}
.tec-mobile-drawer .tec-md-group[open] > summary::after { transform: rotate(180deg); }
.tec-mobile-drawer .tec-md-group[open] > summary .tec-md-nav-icon {
  background-color: var(--red);
}
/* hover 顏色僅套用在真正有滑鼠/軌跡板的裝置；觸控裝置點擊後沒有滑鼠移開事件可清除
   :hover，會讓圖示卡在紅色不會恢復藍色（2026-07-29 交辦包驗收發現），故排除觸控裝置。 */
@media (hover: hover) {
  .tec-mobile-drawer .tec-md-group > summary:hover .tec-md-nav-icon {
    background-color: var(--red);
  }
}
.tec-mobile-drawer .tec-md-group a {
  display: block;
  padding: 12px 20px 12px 34px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 15px; color: var(--muted);
  text-decoration: none;
}
.tec-mobile-drawer .tec-md-group a:hover { color: var(--red); background: var(--paper); }
.tec-mobile-drawer .tec-md-group[open] { background: var(--paper-2); padding-bottom: 6px; }

/* 聯絡資訊區塊（2026-07-29 交辦包新增） */
.tec-mobile-drawer .tec-md-contact {
  padding: 18px 20px 20px;
  display: grid; gap: 14px;
}
.tec-mobile-drawer .tec-md-c-row {
  display: grid; gap: 3px;
  font-family: 'Noto Sans TC', sans-serif;
  color: inherit; text-decoration: none;
}
.tec-mobile-drawer .tec-md-c-label {
  font-size: 12px; letter-spacing: .04em; color: var(--muted);
}
.tec-mobile-drawer .tec-md-c-value {
  font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5;
}
.tec-mobile-drawer a.tec-md-c-row:hover .tec-md-c-value { color: var(--red); }

/* 社群列（2026-07-29 交辦包新增）：與聯絡資訊之間以此列上框線作淺灰分隔 */
.tec-mobile-drawer .tec-md-social {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px 6px;
  border-top: 1px solid var(--border);
}
.tec-mobile-drawer .tec-md-social a {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  transition: background-color .15s, color .15s;
}
.tec-mobile-drawer .tec-md-social a:hover { background: var(--red); color: #fff; }
.tec-mobile-drawer .tec-md-social svg { width: 20px; height: 20px; fill: currentColor; }

/* =====================================================================
   FOOTER — 金屬銘板 + 站內導覽（取自 handoff footer-additions.css）
   ===================================================================== */
/* 註：首頁舊版 Voltz 紅卡（.cta1-aection-area）已換成新版 CTA 區塊（.hcta-section），
   其與金屬銘板頁尾的間距改由 home-cta.css 的 .hcta-section 底部內距自理，此處不再需要修正。 */

.hp-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  min-height: clamp(240px, 18vw, 420px);
}
/* 黑底背景層：上緣下移 28px，對齊銘板頂部鉚釘的水平線，銘板頂部露出在黑邊之上 */
.hp-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 28px;
  bottom: 0;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 1px, transparent 1px 42px);
  z-index: 0;
}
.hp-footer-top {
  position: relative;
  z-index: 1;
  padding-top: 16px;
}
.hp-flogos {
  display: flex;
  align-items: flex-start;
  flex: none;
}
.hp-mplate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 13px 32px 15px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px),
    linear-gradient(180deg,
      #edeff1 0%, #c3c7cc 22%, #d8dbdf 44%,
      #abafb5 62%, #c9ccd1 80%, #989ca3 100%);
  border: 1px solid #6c7075;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.75),
    inset 0 -3px 6px rgba(0,0,0,.30),
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 10px 22px rgba(0,0,0,.5),
    0 3px 7px rgba(0,0,0,.42);
}
.hp-mplate::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  pointer-events: none;
}
.hp-mp-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 50px;
}
.hp-mplate img {
  height: 100%;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  /* 覆寫 Voltz main.css 全域 img max-width/max-height:100%，避免銘板 logo 被卡尺寸 */
  max-width: none;
  max-height: none;
}
.hp-mplate .mdiv {
  width: 1px;
  height: 64%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.28) 30%, rgba(0,0,0,.28) 70%, transparent);
  box-shadow: 1px 0 0 rgba(255,255,255,.55);
  flex: none;
}
.hp-mplate .screw {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f4f5f6 0%, #b9bdc2 50%, #74787d 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.85),
    inset 0 -1px 1px rgba(0,0,0,.5),
    0 1px 1px rgba(0,0,0,.5);
  z-index: 2;
}
.hp-mplate .screw.tl { left: 7px;  top: 7px; }
.hp-mplate .screw.tr { right: 7px; top: 7px; }
.hp-mplate .screw.bl { left: 7px;  bottom: 7px; }
.hp-mplate .screw.br { right: 7px; bottom: 7px; }
.hp-mp-words {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.hp-mp-words p {
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: #696d72;
  text-shadow: 0 1px 0 rgba(255,255,255,0.62);
}
.hp-mp-hr {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.30) 16%, rgba(0,0,0,.30) 84%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.55);
}
.hp-mp-social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hp-mp-social a {
  display: inline-flex;
  color: #696d72;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.6));
  transition: color .15s, filter .15s;
}
.hp-mp-social a:hover { filter: none; }
.hp-mp-social a[aria-label="Facebook"]:hover { color: #1877F2; }
.hp-mp-social a[aria-label="YouTube"]:hover  { color: #FF0000; }
.hp-mp-social a[aria-label="LinkedIn"]:hover { color: #0A66C2; }
.hp-mp-social svg { width: 25px; height: 25px; display: block; }
.hp-mp-copy {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #696d72;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
  white-space: nowrap;
}
.hp-footer-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 64px);
}
.hp-fnav {
  flex: 1;
  display: flex;
  gap: clamp(18px, 2.4vw, 48px);
  padding-top: 40px;
}
.hp-fcol {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hp-fcol .l1 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 800;
  font-size: 16.5px;             /* 第一層：比第二層大一級 */
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  transition: color .15s;
}
.hp-fcol .l1:hover { color: var(--red); }
.hp-fcol .l2 {
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 500;
  font-size: 13.5px;            /* 第二層：小一級 */
  color: #9CA3AF;
  white-space: nowrap;
  transition: color .15s;
}
.hp-fcol .l2:hover { color: #fff; }
.hp-fcol-links .l2 { white-space: normal; max-width: 220px; line-height: 1.5; }

/* --- 響應式 --- */
@media (max-width: 980px) {
  .hp-footer { min-height: 0; margin-top: 0; padding-bottom: 40px; }
  .hp-footer::before { top: 26px; }
  .hp-footer-top { padding-top: 14px; }
  .hp-footer-row { flex-direction: column; gap: 28px; }
  /* 窄屏：金屬銘板相對螢幕水平置中。
     .hp-footer-row 轉為 column 且 align-items:flex-start，會使 .hp-flogos 收縮靠左；
     補上 width:100% 後才能靠 justify-content 置中。桌機版（flex:none）不受影響。 */
  .hp-flogos { width: 100%; justify-content: center; }
  .hp-fnav { flex-wrap: wrap; gap: 22px 40px; padding-top: 0; }
  .hp-mp-logos { height: 44px; }
  .hp-mplate { gap: 8px; padding: 12px 26px 14px; }
  .hp-mp-words p { font-size: 12.5px; letter-spacing: .1em; }
  .hp-mp-social svg { width: 24px; height: 24px; }
}
@media (max-width: 600px) {
  .hp-footer { min-height: 0; margin-top: 0; padding-bottom: 32px; }
  .hp-footer::before { top: 24px; }
  .hp-footer-top { padding-top: 12px; }
  .hp-fnav { gap: 20px 28px; }
  .hp-fcol .l1 { font-size: 15px; }
  .hp-fcol .l2 { font-size: 13px; }
  .hp-mp-logos { height: 38px; gap: 16px; }
  .hp-mplate { gap: 7px; padding: 10px 18px 12px; }
  .hp-mp-words p { font-size: 11.5px; letter-spacing: .06em; }
  .hp-mp-social { gap: 15px; }
  .hp-mp-social svg { width: 22px; height: 22px; }
}
