/* ========================================================
   風格 B: 鋼鐵重裝金屬風 (Heavy-Duty Dark Slate & Bronze)
   共用產品頁與全站頁首/頁尾/A4 型錄/即時通訊彈窗樣式
   ======================================================== */
:root {
  --bg-page: #0b0f17;
  --bg-surface: #151c28;
  --bg-surface-alt: #1e293b;
  --bg-header: #111827;
  --bg-topbar: #030712;
  --text-main: #e2e8f0;
  --text-strong: #ffffff;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --primary: #f59e0b;
  --primary-dark: #b45309;
  --primary-hover: #d97706;
  --accent: #fbbf24;
  --line-green: #048b3b;
  --whatsapp-green: #15803d;
  --wechat-green: #059648;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.25);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-sans: "Inter", "Noto Sans TC", system-ui, sans-serif;
  --font-display: "Barlow", "Inter", "Noto Sans TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.heavy-metric strong,
.product-title,
.product-category-tag {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* 頂部聯絡、A4型錄切換與語系切換列 */
.top-bar {
  background: var(--bg-topbar);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px solid #1e293b;
}
.top-bar-contact { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.top-bar-contact a, .top-bar-contact button.topbar-msg-btn {
  color: #cbd5e1; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: none; font: inherit; padding: 0; cursor: pointer;
}
.top-bar-contact a:hover, .top-bar-contact button.topbar-msg-btn:hover { color: #ffffff; }
.top-bar-contact button.topbar-msg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.top-bar-tools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.a4-toggle-btn {
  background: #1e293b;
  color: #fbbf24;
  border: 1px solid #f59e0b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}
.a4-toggle-btn:hover, .a4-toggle-btn.active {
  background: #f59e0b;
  color: #111827;
}

/* 主導航 Header (單一語意樹 + 原生 Popover 漢堡選單) */
header.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header.is-measuring * { transition: none !important; }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.nav-container > * { flex-shrink: 0; white-space: nowrap; }
.brand-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text-strong); min-width: 0; }
.brand-mark-wrap { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark {
  width: 46px; height: 46px; object-fit: contain; display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.brand-sub { font-size: 0.72rem; color: var(--text-muted); }

/* 窄版漢堡選單按鈕與 Popover 面板 */
.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--bg-surface-alt); color: var(--text-strong);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.menu-button:hover, .menu-button:focus-visible { border-color: var(--primary); color: var(--primary); outline: none; }

.site-menu {
  list-style: none;
  position: fixed; inset: auto;
  inset-block-start: 4.75rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(80dvw, 18rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin-block-start: 0.5rem;
  padding: 0.5rem;
  overflow: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  gap: 0.25rem;
}
.site-menu::backdrop { background: rgba(0, 0, 0, 0.45); }
.site-menu[popover]:is(:popover-open, .\:popover-open) { display: grid; }
.site-menu a {
  display: block; color: var(--text-main); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; padding: 0.6rem 0.85rem; border-radius: var(--radius-md);
}
.site-menu a:hover { color: var(--primary); background: var(--bg-surface-alt); }
.site-menu a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.site-menu a[aria-current="page"] {
  color: var(--accent); background: var(--bg-surface-alt);
  border-inline-start: 3px solid var(--primary); font-weight: 800;
}

/* 寬版 inline 導覽列 */
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: 0.75rem;
  inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none;
  overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { padding: 0.4rem 0.7rem; }
.site-header.is-wide .site-menu a[aria-current="page"] {
  border-inline-start: 0; border-bottom: 2px solid var(--primary); border-radius: var(--radius-md) var(--radius-md) 0 0;
}

@media (max-width: 480px) {
  .nav-container { padding: 0.65rem 1rem; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-sub { display: none; }
  .brand-title { font-size: 1.05rem; }
}

/* 麵包屑 */
.breadcrumb-nav { max-width: 1200px; margin: 1rem auto 0; padding: 0 1.5rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb-nav a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--text-main); text-decoration: underline; }
.breadcrumb-nav span { margin: 0 0.4rem; }

/* 主容器 */
.main-container { max-width: 1200px; margin: 1.5rem auto 3rem; padding: 0 1.5rem; }

/* A4 專屬頁首與頁尾（平常隱藏） */
.a4-print-header, .a4-print-footer { display: none; }

/* 風格 B 頂部鋼鐵重裝關鍵規格條 */
.heavy-hero-banner {
  background: linear-gradient(135deg, #18181b 0%, #27272a 70%, #78350f 100%);
  border: 1px solid #b45309; border-radius: var(--radius-xl); padding: 1.35rem 1.8rem; margin-bottom: 1.8rem;
}
.heavy-metric-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.05fr 0.91fr 0.96fr;
  gap: 1rem 1.25rem;
  align-items: start;
}
body.page-pump .heavy-metric-grid {
  grid-template-columns: 1.2fr 0.95fr 1.15fr 0.95fr;
}
@media (min-width: 961px) {
  .heavy-metric + .heavy-metric {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(251, 191, 36, 0.22);
  }
}
.heavy-metric strong { display: block; font-size: 1.28rem; font-weight: 900; color: #fbbf24; line-height: 1.15; letter-spacing: 0.025em; margin-bottom: 0.2rem; }
body.page-pump .heavy-metric strong { letter-spacing: 0.01em; }
.heavy-metric .dia-sym { margin-right: 0.08em; }
.heavy-metric > span { display: block; font-size: 0.75rem; color: #cbd5e1; line-height: 1.38; letter-spacing: 0.2px; }

/* 產品 Hero 區塊 */
.product-hero {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
}

.product-gallery { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
body.page-pump .product-gallery { gap: 0.9rem; }
.main-image-wrap {
  background: #ffffff; border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 0.9rem; height: 325px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.main-image-wrap img { width: auto; height: auto; max-width: 100%; max-height: 300px; object-fit: contain; }
body.page-pump .main-image-wrap { padding: 1rem; height: 350px; }
body.page-pump .main-image-wrap img { max-height: 325px; }

/* 參考卡（打孔機 A–F 機構詳圖卡 & 大油箱泵浦 4:3 選配局部特寫） */
.ref-card-stack { display: flex; flex-direction: column; gap: 0.6rem; }
.option-callout-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
}
body.page-pump .option-callout-box {
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.85rem;
}
.option-callout-thumb { display: block; flex-shrink: 0; }
.option-callout-thumb img {
  width: 128px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: block;
}
.option-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 0.25rem;
}

.diagram-thumb-wrap {
  --dim-color: #fbbf24;
  --hatch-color: rgba(148, 163, 184, 0.42);
  flex-shrink: 0;
  width: 256px;
  height: 176px;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram-thumb-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.diagram-hatch-fill { fill: url(#iso-hatch); }
.diagram-body { stroke: #e2e8f0; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.diagram-thin { stroke: #cbd5e1; stroke-width: 0.85; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.diagram-centerline { stroke: #94a3b8; stroke-width: 0.8; stroke-dasharray: 12 2.5 2 2.5; fill: none; }
.diagram-dim { stroke: var(--dim-color); stroke-width: 0.9; stroke-linecap: round; fill: none; }
.diagram-label { fill: var(--dim-color); font-family: var(--font-display); font-size: 11.5px; font-weight: 800; }

.option-callout-body { min-width: 0; flex: 1; }
.option-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 0.45rem;
}
body.page-pump .option-title {
  font-size: 0.88rem;
  color: var(--text-strong);
  margin-bottom: 0.2rem;
}
.option-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
body.page-pump .option-note {
  font-size: 0.78rem;
  line-height: 1.48;
}

.product-details { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.product-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.product-category-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.badge-origin {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.product-title { font-size: 2.35rem; font-weight: 900; color: var(--text-strong); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.product-subtitle { font-size: 1.08rem; color: #cbd5e1; font-weight: 600; margin-bottom: 1.05rem; }

.duty-callout {
  background: var(--bg-surface-alt); border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: auto; margin-bottom: 1rem; font-size: 0.87rem; color: var(--text-main);
}
.duty-callout strong { color: var(--text-strong); }

.feature-list { list-style: none; margin-bottom: 1.15rem; display: flex; flex-direction: column; gap: 0.62rem; }
.feature-item { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.91rem; color: var(--text-main); }
.feature-icon { color: var(--accent); font-weight: bold; flex-shrink: 0; }

.cta-action-group { display: flex; flex-wrap: wrap; gap: 0.7rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.btn-msg {
  color: #ffffff; border: none; border-radius: var(--radius-md);
  padding: 0.8rem 1.15rem; font-size: 0.95rem; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  cursor: pointer; font-family: inherit; transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-msg:hover { filter: brightness(1.08); }
.btn-msg:active { transform: translateY(1px); }
.btn-msg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-line { background: var(--line-green); }
.btn-whatsapp { background: var(--whatsapp-green); }
.btn-wechat { background: var(--wechat-green); }

.footer-msg-btn {
  background: none; border: none; padding: 0; font: inherit; text-align: left;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; flex-wrap: nowrap;
}
.footer-msg-btn .msg-title-text { white-space: nowrap; }
.footer-msg-btn:hover .msg-title-text { text-decoration: underline; }
.footer-msg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.qr-pill-badge {
  display: inline-block; font-size: 0.72rem; padding: 1px 6px; border-radius: 4px;
  background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3);
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
}
.footer-msg-btn:hover .qr-pill-badge { background: rgba(34, 197, 94, 0.28); }
.messaging-pair { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.messaging-pair > span + span::before { content: " | "; white-space: pre; opacity: 0.7; }

/* 響應式規格表 (modern-web-guidance: responsive-table) */
.specs-section {
  background: var(--bg-surface); border-radius: var(--radius-xl); border: 1px solid var(--border-color);
  padding: 2rem; margin-bottom: 2.2rem;
}
.section-header { margin-bottom: 1.3rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.7rem; }
.section-title { font-size: 1.4rem; font-weight: 800; color: var(--text-strong); display: flex; align-items: center; gap: 0.5rem; }
.section-title::before { content: ""; display: inline-block; width: 4px; height: 1.3rem; background: var(--primary); border-radius: 2px; }

.table-wrapper { overflow-x: auto; max-inline-size: 100%; container-type: inline-size; border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.91rem; text-align: left; }
.spec-table thead { position: sticky; inset-block-start: 0; z-index: 2; }
.spec-table thead th { background: var(--bg-surface-alt); color: var(--text-strong); font-weight: 700; padding: 0.85rem 1.1rem; border-bottom: 2px solid var(--border-color); border-right: 1px solid var(--border-color); }
.spec-table thead th:nth-child(1) { width: 18%; }
.spec-table thead th:nth-child(2) { width: 33%; min-width: 295px; }
.spec-table thead th:nth-child(3) { width: 49%; }
:is(html[data-script="latin"], html[lang="en"]) .spec-table thead th:nth-child(1) { width: 19%; }
:is(html[data-script="latin"], html[lang="en"]) .spec-table thead th:nth-child(2) { width: 29%; min-width: 260px; }
:is(html[data-script="latin"], html[lang="en"]) .spec-table thead th:nth-child(3) { width: 52%; }

body.page-pump .spec-table thead th:nth-child(1) { width: 18%; }
body.page-pump .spec-table thead th:nth-child(2) { width: 26%; min-width: 240px; }
body.page-pump .spec-table thead th:nth-child(3) { width: 56%; }

.spec-table thead th:last-child { border-right: none; }
.spec-table tbody th { position: sticky; inset-inline-start: 0; background: var(--bg-surface); color: var(--text-strong); font-weight: 700; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border-color); border-right: 1px solid var(--border-color); white-space: nowrap; vertical-align: top; }
.spec-table tbody td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border-color); border-right: 1px solid var(--border-color); color: var(--text-main); vertical-align: top; }
.spec-table .th-sub { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.spec-table tbody td:last-child { border-right: none; }
.spec-highlight { color: var(--accent); font-variant-numeric: tabular-nums; }
.spec-disclaimer {
  margin-top: 0; margin-bottom: 2.2rem; padding: 0.9rem 1.25rem; border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.55); border: 1px solid var(--border-color);
  font-size: 0.8rem; line-height: 1.55; color: var(--text-muted);
}
.spec-disclaimer strong { color: var(--text-main); }

/* 選配項目獨立區塊 */
.options-section {
  background: var(--bg-surface); border-radius: var(--radius-xl); border: 1px solid var(--border-color);
  padding: 1.65rem 2rem; margin-bottom: 1.25rem;
}
.options-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.4rem 1rem; margin-bottom: 1rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.65rem;
}
.options-sub { font-size: 0.84rem; font-weight: 600; color: var(--accent); }
.options-list {
  margin: 0; padding-left: 1.35rem; display: flex; flex-direction: column; gap: 0.55rem;
  font-size: 0.91rem; color: var(--text-main); line-height: 1.55;
}
.options-list strong { color: var(--text-strong); }

@container (width < 600px) {
  .spec-table, .spec-table thead, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: auto !important; min-width: 0 !important; }
  .spec-table thead { display: none; }
  .spec-table tr { margin-bottom: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
  .spec-table tbody th { position: sticky; inset-block-start: 0; background: var(--bg-surface-alt); border-right: none; }
  .spec-table tbody td { border-right: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }
  .spec-table tbody td::before { content: attr(data-label); font-weight: 700; color: var(--text-muted); font-size: 0.82rem; }
}

footer.site-footer { background: #030712; color: #cbd5e1; padding: 2.5rem 1.5rem 1.5rem; border-top: 3px solid var(--primary); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1.1fr 1.15fr; gap: 2rem; }
.footer-col h4 { color: #f8fafc; margin-bottom: 0.8rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.015em; }
.footer-brand-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.55rem; }
.footer-brand-head h4 { margin-bottom: 0; font-size: 1.08rem; line-height: 1.3; }
.footer-brand-logo { width: 44px; height: 44px; object-fit: contain; display: block; flex-shrink: 0; }
.a4-print-brand { display: flex; align-items: center; gap: 10px; }
.a4-print-logo { width: 44px; height: 44px; object-fit: contain; display: block; flex-shrink: 0; }
.footer-col p { font-size: 0.86rem; color: #94a3b8; line-height: 1.65; margin-bottom: 0.4rem; text-wrap: pretty; }
.footer-col-cont { padding-top: 2.3rem; }
.footer-email-row { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.88rem; color: #94a3b8; margin-bottom: 0.4rem; }
.footer-email-label { flex-shrink: 0; }
.footer-email-list { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-email-list a { color: #cbd5e1; text-decoration: none; }
.footer-email-list a:hover { color: #ffffff; text-decoration: underline; }
.backup-tag { color: #64748b; font-size: 0.78rem; margin-left: 0.2rem; }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid #1e293b; font-size: 0.82rem; color: #64748b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }

@media (max-width: 960px) {
  .heavy-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .heavy-hero-banner { padding: 1.2rem 1.3rem; }
  .heavy-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
  .heavy-metric strong { font-size: 1.15rem; }
  .product-hero, .footer-container { grid-template-columns: 1fr; gap: 1.2rem; }
  .main-image-wrap { height: 270px; }
  .main-image-wrap img { max-height: 244px; }
  .diagram-thumb-wrap { width: 210px; height: 144px; padding: 6px; }
  .option-callout-thumb img { width: 96px; height: 72px; }
  .footer-col-cont { padding-top: 0; margin-top: -0.6rem; }
}
@media (max-width: 500px) {
  .page-puncher .option-callout-box { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .diagram-thumb-wrap { width: 100%; height: 195px; padding: 8px; }
}

/* ========================================================
   網頁即型錄：A4 統一排版樣式 (螢幕 A4 預覽模式 + 實體列印 @media print)
   ======================================================== */
body.a4-preview-mode {
  background: #475569;
  padding-bottom: 3rem;
}
body.a4-preview-mode .a4-viewport-wrap { overflow: hidden; }
body.a4-preview-mode .a4-sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 1.5rem auto;
  background: #ffffff;
  color: #0f172a;
  padding: 12mm 14mm;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  border-radius: 2px;
}

body.a4-preview-mode .site-header,
body.a4-preview-mode .breadcrumb-nav,
body.a4-preview-mode .heavy-hero-banner,
body.a4-preview-mode .cta-action-group,
body.a4-preview-mode .site-footer {
  display: none !important;
}

body.a4-preview-mode .a4-print-header {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
body.a4-preview-mode .a4-print-footer {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 14px;
  border-top: 1px solid #94a3b8;
  padding-top: 8px;
  margin-top: 14px;
  font-size: 10.5px;
  line-height: 1.42;
  color: #334155;
}
body.a4-preview-mode .a4-print-timestamp {
  flex: 1 0 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px dotted #cbd5e1;
  padding-top: 4px;
  font-size: 9px;
  line-height: 1.25;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
body.a4-preview-mode .product-hero {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  padding: 12px;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
  margin-bottom: 12px;
}
body.a4-preview-mode.page-pump .product-hero {
  padding: 14px;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  margin-bottom: 14px;
}
body.a4-preview-mode .product-gallery { gap: 8px; }
body.a4-preview-mode .main-image-wrap { min-height: 185px; height: auto; border: 1px solid #e2e8f0; padding: 6px; }
body.a4-preview-mode .main-image-wrap img { max-height: 175px; }
body.a4-preview-mode.page-pump .main-image-wrap { min-height: 205px; padding: 8px; }
body.a4-preview-mode.page-pump .main-image-wrap img { max-height: 190px; }
body.a4-preview-mode .ref-card-stack { gap: 6px; }
body.a4-preview-mode .option-callout-box {
  flex-direction: row;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #b45309;
  border-radius: 0;
  padding: 6px 8px;
  gap: 10px;
}
body.a4-preview-mode.page-pump .option-callout-box {
  align-items: center;
  padding: 6px 10px;
}
body.a4-preview-mode .option-callout-thumb { display: block; }
body.a4-preview-mode .option-callout-thumb img {
  width: 84px;
  height: 63px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid #cbd5e1;
  display: block;
}
body.a4-preview-mode .option-tag {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
  font-size: 9.5px;
  padding: 1px 5px;
  margin-bottom: 2px;
}
body.a4-preview-mode .diagram-thumb-wrap {
  --dim-color: #b45309;
  --hatch-color: #cbd5e1;
  width: 168px;
  height: 116px;
  background: #ffffff;
  border-color: #cbd5e1;
  border-radius: 0;
  padding: 4px;
}
body.a4-preview-mode .diagram-body { stroke: #0f172a; }
body.a4-preview-mode .diagram-thin { stroke: #475569; }
body.a4-preview-mode .diagram-centerline { stroke: #64748b; }
body.a4-preview-mode .diagram-label { fill: #92400e; }

body.a4-preview-mode .option-title { color: #0f172a; font-size: 12px; margin-bottom: 4px; }
body.a4-preview-mode .option-note { color: #334155; font-size: 10.5px; line-height: 1.48; }
body.a4-preview-mode.page-pump .option-title { font-size: 11px; margin-bottom: 2px; }
body.a4-preview-mode.page-pump .option-note { font-size: 10px; line-height: 1.35; }

body.a4-preview-mode .product-title { color: #0f172a; font-size: 24px; }
body.a4-preview-mode .product-subtitle { color: #334155; font-size: 13.5px; margin-bottom: 9px; }
body.a4-preview-mode .product-eyebrow-row { gap: 5px; margin-bottom: 5px; }
body.a4-preview-mode .product-category-tag { background: #fef3c7; color: #92400e; border-color: #f59e0b; padding: 2px 7px; font-size: 10px; }
body.a4-preview-mode .badge-origin { background: #f1f5f9; color: #334155; border-color: #cbd5e1; padding: 2px 7px; font-size: 10px; }
body.a4-preview-mode .duty-callout { background: #f8fafc; border-left: 3px solid #0f172a; padding: 6px 9px; color: #334155; font-size: 11px; margin-top: auto; margin-bottom: 0; }
body.a4-preview-mode .duty-callout strong { color: #0f172a; }
body.a4-preview-mode .feature-list { gap: 0.45rem; }
body.a4-preview-mode .feature-item { color: #1e293b; font-size: 11.5px; }
body.a4-preview-mode .feature-icon { color: #b45309; }
body.a4-preview-mode .specs-section {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  padding: 12px;
  margin-bottom: 10px;
}
body.a4-preview-mode .section-header { border-bottom-color: #cbd5e1; margin-bottom: 9px; }
body.a4-preview-mode .section-title { color: #0f172a; font-size: 15.5px; }
body.a4-preview-mode .section-title::before { background: #0f172a; }
body.a4-preview-mode .table-wrapper { border-color: #94a3b8; border-radius: 0; }
body.a4-preview-mode .spec-table { font-size: 11.5px; }
body.a4-preview-mode .spec-table thead th { background: #e2e8f0; color: #0f172a; border-color: #94a3b8; padding: 5px 8px; }
body.a4-preview-mode .spec-table thead th:nth-child(1) { width: 19%; }
body.a4-preview-mode .spec-table thead th:nth-child(2) { width: 34%; min-width: 235px; }
body.a4-preview-mode .spec-table thead th:nth-child(3) { width: 47%; }
:is(html[data-script="latin"], html[lang="en"]) body.a4-preview-mode .spec-table thead th:nth-child(1) { width: 20%; }
:is(html[data-script="latin"], html[lang="en"]) body.a4-preview-mode .spec-table thead th:nth-child(2) { width: 30%; min-width: 205px; }
:is(html[data-script="latin"], html[lang="en"]) body.a4-preview-mode .spec-table thead th:nth-child(3) { width: 50%; }
body.a4-preview-mode.page-pump .spec-table thead th:nth-child(1) { width: 19%; }
body.a4-preview-mode.page-pump .spec-table thead th:nth-child(2) { width: 26%; min-width: 175px; }
body.a4-preview-mode.page-pump .spec-table thead th:nth-child(3) { width: 55%; }
body.a4-preview-mode .spec-table tbody th { background: #ffffff; color: #0f172a; border-color: #cbd5e1; padding: 5px 8px; }
body.a4-preview-mode .spec-table .th-sub { color: #475569; font-size: 10px; }
body.a4-preview-mode .spec-table tbody td { color: #1e293b; border-color: #cbd5e1; padding: 5px 8px; }
body.a4-preview-mode .spec-highlight { color: #0f172a; }
body.a4-preview-mode .spec-disclaimer {
  margin-top: 0; margin-bottom: 0; padding: 6px 10px; background: #f8fafc;
  border: 1px solid #cbd5e1; color: #475569; font-size: 9.5px; line-height: 1.36; border-radius: 0;
}
body.a4-preview-mode .spec-disclaimer strong { color: #0f172a; }
body.a4-preview-mode .options-section {
  background: #ffffff; border: 1px solid #cbd5e1; border-radius: 0;
  padding: 11px 14px; margin-bottom: 8px;
}
body.a4-preview-mode .options-header { border-bottom-color: #cbd5e1; margin-bottom: 7px; padding-bottom: 4px; }
body.a4-preview-mode .options-sub { color: #92400e; font-size: 10.5px; }
body.a4-preview-mode .options-list { font-size: 11.2px; color: #1e293b; gap: 3px; line-height: 1.42; }
body.a4-preview-mode .options-list strong { color: #0f172a; }

/* 實體列印 / 匯出 PDF (@media print — 維持單頁 1/1) */
@page {
  size: A4 portrait;
  margin: 10mm 13mm;
}
@media print {
  body { background: #ffffff !important; color: #0f172a !important; padding: 0 !important; }
  .top-bar, .site-header, .breadcrumb-nav, .heavy-hero-banner,
  .cta-action-group, .site-footer {
    display: none !important;
  }
  .a4-viewport-wrap { width: auto !important; height: auto !important; margin: 0 !important; overflow: visible !important; }
  .a4-sheet { width: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; transform: none !important; }
  .a4-print-header {
    display: flex !important; justify-content: space-between; align-items: flex-end;
    border-bottom: 2px solid #0f172a; padding-bottom: 4px; margin-bottom: 6px;
  }
  .a4-print-footer {
    display: flex !important; flex-wrap: wrap !important; justify-content: space-between; align-items: center; gap: 3px 12px;
    border-top: 1px solid #94a3b8; padding-top: 4px; margin-top: 4px; font-size: 9.8px; line-height: 1.35; color: #334155;
    break-inside: avoid;
  }
  .a4-print-timestamp {
    flex: 1 0 100%;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px dotted #cbd5e1;
    padding-top: 2px;
    font-size: 8px;
    line-height: 1.2;
    color: #64748b;
    font-variant-numeric: tabular-nums;
  }
  .product-hero, .specs-section {
    background: #ffffff !important; border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important; padding: 8px 11px !important; break-inside: avoid;
  }
  .product-hero { grid-template-columns: 0.92fr 1.08fr !important; gap: 12px !important; margin-bottom: 6px !important; }
  body.page-pump .product-hero { grid-template-columns: 0.9fr 1.1fr !important; gap: 14px !important; margin-bottom: 6px !important; padding: 8px 11px !important; }
  .product-gallery { gap: 6px !important; }
  .main-image-wrap { min-height: 188px !important; height: auto !important; border-color: #cbd5e1 !important; padding: 5px !important; }
  .main-image-wrap img { max-height: 178px !important; }
  body.page-pump .main-image-wrap { min-height: 176px !important; }
  body.page-pump .main-image-wrap img { max-height: 168px !important; }
  .ref-card-stack { gap: 5px !important; }
  .option-callout-box {
    flex-direction: row !important;
    align-items: flex-start !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 3px solid #b45309 !important;
    border-radius: 0 !important;
    padding: 6px 8px !important;
    gap: 9px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.page-pump .option-callout-box {
    align-items: center !important;
    padding: 4px 8px !important;
  }
  .option-callout-thumb { display: block !important; }
  .option-callout-thumb img {
    width: 72px !important;
    height: 54px !important;
    object-fit: cover;
    border-radius: 0 !important;
    border: 1px solid #cbd5e1;
    display: block;
  }
  .option-tag {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #f59e0b !important;
    font-size: 8.5px !important;
    padding: 1px 5px !important;
    margin-bottom: 2px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .diagram-thumb-wrap {
    --dim-color: #b45309 !important;
    --hatch-color: #cbd5e1 !important;
    width: 164px !important;
    height: 113px !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    border-radius: 0 !important;
    padding: 4px !important;
  }
  .diagram-body { stroke: #0f172a !important; }
  .diagram-thin { stroke: #475569 !important; }
  .diagram-centerline { stroke: #64748b !important; }
  .diagram-label { fill: #92400e !important; }

  .option-title { color: #0f172a !important; font-size: 11.5px !important; margin-bottom: 4px !important; }
  .option-note { color: #334155 !important; font-size: 10px !important; line-height: 1.46 !important; }
  body.page-pump .option-title { font-size: 10.5px !important; margin-bottom: 1px !important; }
  body.page-pump .option-note { font-size: 9.2px !important; line-height: 1.3 !important; }

  .product-details { justify-content: flex-start !important; }
  .product-title { color: #0f172a !important; font-size: 20.5px !important; }
  .product-subtitle { color: #334155 !important; font-size: 12px !important; margin-bottom: 6px !important; }
  .product-eyebrow-row { gap: 5px !important; margin-bottom: 4px !important; }
  .product-category-tag {
    background: #fef3c7 !important; color: #92400e !important; border-color: #f59e0b !important;
    padding: 1.5px 6px !important; font-size: 9.2px !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .badge-origin {
    background: #f1f5f9 !important; color: #334155 !important; border-color: #cbd5e1 !important;
    padding: 1.5px 6px !important; font-size: 9.2px !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .duty-callout { background: #f8fafc !important; border-left: 3px solid #0f172a !important; padding: 4px 8px !important; color: #334155 !important; font-size: 10.2px !important; margin-top: auto !important; margin-bottom: 0 !important; }
  .duty-callout strong { color: #0f172a !important; }
  .feature-list { margin-bottom: 6px !important; gap: 0.36rem !important; }
  .feature-item { color: #1e293b !important; font-size: 10.6px !important; line-height: 1.4 !important; }
  .feature-icon { color: #b45309 !important; }
  .section-header { margin-bottom: 6px !important; padding-bottom: 4px !important; }
  .section-title { color: #0f172a !important; font-size: 14px !important; }
  .section-title::before { background: #0f172a !important; }
  .table-wrapper { border-color: #94a3b8 !important; border-radius: 0 !important; overflow: visible !important; }
  .spec-table { font-size: 10.2px !important; line-height: 1.32 !important; }
  .spec-table thead th { background: #e2e8f0 !important; color: #0f172a !important; border-color: #94a3b8 !important; padding: 3px 7px !important; }
  .spec-table thead th:nth-child(1) { width: 19% !important; }
  .spec-table thead th:nth-child(2) { width: 34% !important; min-width: 230px !important; }
  .spec-table thead th:nth-child(3) { width: 47% !important; }
  :is(html[data-script="latin"], html[lang="en"]) .spec-table thead th:nth-child(1) { width: 19% !important; }
  :is(html[data-script="latin"], html[lang="en"]) .spec-table thead th:nth-child(2) { width: 32% !important; min-width: 210px !important; }
  :is(html[data-script="latin"], html[lang="en"]) .spec-table thead th:nth-child(3) { width: 49% !important; }
  :is(html[data-script="latin"], html[lang="en"]) body.page-puncher .feature-item { font-size: 10.2px !important; line-height: 1.34 !important; }
  :is(html[data-script="latin"], html[lang="en"]) body.page-puncher .spec-table { font-size: 9.8px !important; line-height: 1.26 !important; }
  :is(html[data-script="latin"], html[lang="en"]) body.page-puncher .spec-table tbody th,
  :is(html[data-script="latin"], html[lang="en"]) body.page-puncher .spec-table tbody td { padding: 2.5px 6.5px !important; }
  :is(html[data-script="latin"], html[lang="en"]) body.page-puncher .options-list { font-size: 9.6px !important; line-height: 1.3 !important; }
  :is(html[data-script="latin"], html[lang="en"]) body.page-puncher .spec-disclaimer { font-size: 8.4px !important; line-height: 1.24 !important; padding: 3.5px 8px !important; }
  body.page-pump .spec-table { font-size: 10.4px !important; line-height: 1.35 !important; }
  body.page-pump .spec-table thead th:nth-child(1) { width: 19% !important; }
  body.page-pump .spec-table thead th:nth-child(2) { width: 26% !important; min-width: 170px !important; }
  body.page-pump .spec-table thead th:nth-child(3) { width: 55% !important; }
  .spec-table tbody th, .spec-table tbody td { background: #ffffff !important; color: #0f172a !important; border-color: #cbd5e1 !important; padding: 3px 7px !important; }
  .spec-table .th-sub { color: #475569 !important; font-size: 9px !important; }
  .spec-highlight { color: #0f172a !important; }
  .spec-disclaimer {
    margin-top: 0 !important; margin-bottom: 0 !important; padding: 4px 9px !important; background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important; color: #475569 !important; font-size: 8.8px !important; line-height: 1.28 !important; border-radius: 0 !important; break-inside: avoid;
  }
  .spec-disclaimer strong { color: #0f172a !important; }
  .specs-section { margin-bottom: 5px !important; }
  .options-section {
    background: #ffffff !important; border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important; padding: 5px 11px !important; margin-bottom: 5px !important; break-inside: avoid;
  }
  .options-header { border-bottom-color: #cbd5e1 !important; margin-bottom: 4px !important; padding-bottom: 3px !important; }
  .options-sub { color: #92400e !important; font-size: 9.2px !important; }
  .options-list { font-size: 10px !important; line-height: 1.36 !important; color: #0f172a !important; gap: 2px !important; }
  .options-list strong { color: #0f172a !important; }
}

/* 統一即時通訊彈窗 */
.wechat-dialog {
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  max-width: 390px;
  width: 90vw;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.6);
  position: fixed;
  inset: 0;
  margin: auto;
}
.wechat-dialog:modal { overscroll-behavior: contain; }
.wechat-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.wechat-dialog-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #334155; padding-bottom: 0.75rem; margin-bottom: 1rem;
}
.wechat-dialog-title {
  font-size: 1.1rem; font-weight: 800; color: #ffffff;
  display: flex; align-items: center; gap: 0.5rem; margin: 0;
}
.wechat-dialog-close {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  font-size: 1.25rem; line-height: 1; padding: 0.25rem 0.5rem; border-radius: var(--radius-md);
}
.wechat-dialog-close:hover { color: #ffffff; background: #1e293b; }
.wechat-dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wechat-qr-card {
  background: #ffffff; border-radius: var(--radius-lg); padding: 0.9rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-bottom: 1rem; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2);
}
.wechat-qr-img { width: 220px; height: 220px; object-fit: contain; display: block; }
.wechat-qr-caption { font-size: 0.84rem; font-weight: 700; color: #0f172a; margin-top: 0.55rem; text-align: center; }
.contact-copy-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.35rem; }
.contact-copy-row[hidden] { display: none; }
.contact-id-chip {
  font-family: monospace; font-size: 0.82rem; font-weight: 700; color: #0f172a;
  background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 7px;
}
.contact-copy-btn {
  font-size: 0.76rem; font-weight: 700; color: #047857; background: #ecfdf5;
  border: 1px solid #a7f3d0; border-radius: 4px; padding: 2px 8px; cursor: pointer; font-family: inherit;
}
.contact-copy-btn:hover { background: #d1fae5; }
.wechat-dialog-tips {
  list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.84rem; color: #cbd5e1; line-height: 1.45;
}
.wechat-dialog-tips li { display: flex; align-items: flex-start; gap: 0.45rem; }
.wechat-tips-bullet { color: #22c55e; font-weight: 800; flex-shrink: 0; }
.wechat-dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.wechat-save-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: #4ade80; font-size: 0.85rem; font-weight: 600; text-decoration: none;
  padding: 0.45rem 0.85rem; border-radius: var(--radius-md); border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.1);
}
.wechat-save-link:hover { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.wechat-dialog-btn-done {
  background: #1e293b; color: #ffffff; border: 1px solid #475569;
  border-radius: var(--radius-md); padding: 0.5rem 1.2rem; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.wechat-dialog-btn-done:hover { background: #334155; }
.wechat-dialog-btn-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.a4-footer-left { min-width: 0; }
.a4-footer-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-align: right; flex-shrink: 0; }
.a4-qr-pair { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.a4-qr-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7.5px; font-weight: 700; color: #334155; line-height: 1; }
.a4-wechat-qr { width: 38px; height: 38px; background: #ffffff; padding: 2px; border: 1px solid #cbd5e1; flex-shrink: 0; display: block; }
