/* ============================================================
   力毅國際有限公司 (ETRONIC TEAM CO., LTD.) 2026 官網改版樣式表
   基於 Bootstrap 5.3，根字級 62.5% (1rem = 10px) 與 1.25 Typographic Scale
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
  --etc-black: #000000;
  --etc-dark: #050814;
  --etc-primary: #004098;
  --etc-primary-hover: #003175;
  --etc-red: #e62e22;
  --etc-gray-bar: #8c8c8c;
  --etc-gray-timeline: #8b959e;
  --etc-border: #e2e8f0;
  --etc-card-bottom: #e6e7e9;
  --etc-text-dark: #1f2937;
  --etc-text-muted: #4b5563;
  --etc-font-family: 'Poppins', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* 1.25 Typographic Scale（基準 body = 1.8rem = 18px，1rem = 10px） */
  --type-2xs: 1.15rem;
  --type-xs: 1.44rem;
  --type-sm: 1.6rem;
  --type-base: 1.8rem;
  --type-lg: 2.25rem;
  --type-xl: 2.81rem;
  --type-2xl: 3.52rem;
  --type-3xl: 4.4rem;
  --type-4xl: 5.49rem;
  --type-5xl: 6.4rem;

  /* 同步覆寫 Bootstrap 預設內文字級避免縮小 */
  --bs-body-font-size: var(--type-base);
}

/* 英文版改用 Poppins 並清除全站字距 */
html[lang="en"] {
  --etc-font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[lang="en"],
html[lang="en"] * {
  letter-spacing: normal !important;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--etc-font-family);
  font-size: var(--type-base);
  line-height: 1.67;
  color: var(--etc-text-dark);
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: var(--etc-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.inner-page {
  background-color: #f8f9fa;
}

/* Bootstrap 元件於 62.5% 根字級下之相容補償 */
.alert {
  font-size: var(--type-sm);
  padding: 1.6rem 2rem;
}

.small,
small {
  font-size: var(--type-xs);
}

/* ------------------------------------------------------------
   共用導覽列 (Navbar)
   ------------------------------------------------------------ */
.etc-navbar {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 0;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1050;
}

.etc-navbar.scrolled {
  padding: 1.05rem 0;
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom-color: #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.etc-navbar.scrolled .etc-nav-link {
  color: #1f2937 !important;
}

.etc-navbar.scrolled .etc-nav-link:hover,
.etc-navbar.scrolled .etc-nav-link.active {
  color: var(--etc-primary) !important;
}

.etc-navbar .navbar-toggler i {
  font-size: 3.2rem !important;
  line-height: 1;
}

.etc-navbar.scrolled .navbar-toggler i {
  color: #111827 !important;
}

.etc-navbar.scrolled .btn-etc-search {
  background-color: #eef4ff;
  color: var(--etc-primary);
  border: 1px solid #c7dbf7;
  box-shadow: none;
}

.etc-navbar.scrolled .btn-etc-search:hover,
.etc-navbar.scrolled .btn-etc-search.active {
  background-color: var(--etc-primary);
  color: #ffffff;
  border-color: var(--etc-primary);
}

.etc-navbar.scrolled .etc-lang-select {
  border: 1px solid #cbd5e1;
  box-shadow: none;
}

.etc-navbar .navbar-brand {
  margin: 0;
  padding: 0;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  margin: 0;
  padding: 0;
  display: block;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease, filter 0.3s ease;
}

.etc-navbar.scrolled .navbar-brand img {
  filter: none;
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

.etc-nav-link {
  color: #ffffff !important;
  font-size: var(--type-sm);
  font-weight: 500;
  padding: 0.8rem 1.85rem !important;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.25s ease;
}

.etc-nav-link:hover,
.etc-nav-link.active {
  color: #60a5fa !important;
}

.etc-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.etc-nav-link:hover::after,
.etc-nav-link.active::after {
  width: 60%;
}

/* 搜尋膠囊連結 (對應 /search.php) */
.btn-etc-search {
  background-color: #e8f1ff;
  color: #111827;
  border-radius: 50rem;
  padding: 0.58rem 1.75rem;
  font-size: var(--type-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-etc-search:hover,
.btn-etc-search.active {
  background-color: #ffffff;
  color: var(--etc-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* 語系選擇器 (保留既有 PHP jumpMenu select 架構) */
.etc-lang-form {
  margin: 0;
}

.etc-lang-select {
  background-color: #ffffff;
  color: #111827;
  border: none;
  border-radius: 4px;
  padding: 0.58rem 3.2rem 0.58rem 1.2rem;
  font-size: var(--type-xs);
  font-weight: 500;
  cursor: pointer;
  min-width: 112px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background-position: right 0.96rem center;
  background-size: 12px 10px;
}

.etc-lang-select:focus {
  box-shadow: 0 0 0 0.32rem rgba(96, 165, 250, 0.35);
}

/* ------------------------------------------------------------
   首頁 - 主視覺 KV 區塊 (Index.jpg)
   ------------------------------------------------------------ */
.index-hero-section {
  position: relative;
  background-color: #000000;
  flex: 1 0 auto;
  padding-top: 0;
  padding-bottom: 84px;
  color: #ffffff;
  isolation: isolate;
  overflow-x: clip;
}

.index-kv-bg-track {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: clip;
}

.index-kv-bg-img {
  position: sticky;
  top: var(--kv-bg-sticky-top, min(0px, calc(100vh - 112.5vw)));
  display: block;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  object-fit: cover;
  object-position: center top;
  user-select: none;
}

.hero-slogan-screen {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 96px;
  padding-bottom: 48px;
}

/* 首頁主視覺文字進場動態：主標與詩句逐行柔和淡入 */
@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.hero-main-title {
  font-size: var(--type-5xl);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  margin-bottom: 3.2rem;
  animation: heroTextReveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-poem {
  font-size: var(--type-lg);
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: #f8fafc;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  margin-bottom: 0;
}

.hero-poem-line {
  display: block;
  animation: heroTextReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) calc(0.65s + var(--line-index, 0) * 0.42s) both;
}

.hero-expert-title {
  font-size: var(--type-2xl);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  margin-top: 2.4rem;
  margin-bottom: 8rem;
}

/* 首頁最新產品卡片 - 視差滑入動畫 */
.parallax-card-col {
  opacity: 0;
  transform: translate3d(0, 72px, 0) scale(0.96);
  will-change: transform, opacity;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.parallax-card-col:nth-child(4n + 1) { transition-delay: 0ms; }
.parallax-card-col:nth-child(4n + 2) { transition-delay: 120ms; }
.parallax-card-col:nth-child(4n + 3) { transition-delay: 240ms; }
.parallax-card-col:nth-child(4n + 4) { transition-delay: 360ms; }

.parallax-card-col.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-main-title,
  .hero-poem-line {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .parallax-card-col {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------
   共用 - 產品特選卡片 (Index.jpg & New Products.jpg)
   ------------------------------------------------------------ */
.product-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.index-hero-section .product-card {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(0, 64, 152, 0.28);
  border-color: rgba(59, 130, 246, 0.45);
}

.product-card-img-wrap {
  background-color: #ffffff;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 4 / 3;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.06);
}

.product-card-bottom {
  background-color: var(--etc-card-bottom);
  padding: 1.85rem 2rem 2.15rem 2rem;
  flex: 1 1 auto;
  border-top: 1px solid #d5d7db;
}

.product-card-bottom .badge-new {
  color: var(--etc-red);
  font-weight: 800;
  font-size: var(--type-sm);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.product-card-bottom .card-desc {
  color: #111827;
  font-size: var(--type-sm);
  font-weight: 700;
  line-height: 1.48;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   首頁 - 企業文化與願景 (Index.jpg 下半部)
   ------------------------------------------------------------ */
.index-about-section {
  padding: 8.8rem 0 3.2rem 0;
}

.about-title-main {
  font-size: var(--type-2xl);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  margin-bottom: 1.2rem;
}

.about-title-sub {
  font-size: var(--type-xl);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
  margin-bottom: 2.95rem;
}

.about-paragraph {
  color: #e2e8f0;
  font-size: var(--type-base);
  line-height: 1.85;
  letter-spacing: 0.03em;
  margin-bottom: 1.6rem;
  text-align: justify;
}

@keyframes etcGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 首頁右方配圖：直角無陰影＋左上／右下長短不一之 L 型企業藍流動漸層外框 */
.about-img-wrap {
  position: relative;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  aspect-ratio: 1 / 1;
  max-width: min(340px, calc(100% - 28px));
  margin: 14px 14px 14px auto;
}

.about-img-wrap::before,
.about-img-wrap::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(120deg, #00235c 0%, #004098 25%, #00a3ff 50%, #38bdf8 65%, #004098 85%, #00235c 100%);
  background-size: 260% 260%;
  animation: etcGradientFlow 5s ease-in-out infinite;
}

/* 左上角 L 型外框（橫長豎短） */
.about-img-wrap::before {
  top: -12px;
  left: -12px;
  width: 58%;
  height: 34%;
  clip-path: polygon(0 0, 100% 0, 100% 4px, 4px 4px, 4px 100%, 0 100%);
}

/* 右下角 L 型外框（豎長橫短） */
.about-img-wrap::after {
  right: -12px;
  bottom: -12px;
  width: 38%;
  height: 62%;
  clip-path: polygon(calc(100% - 4px) 0, 100% 0, 100% 100%, 0 100%, 0 calc(100% - 4px), calc(100% - 4px) calc(100% - 4px));
  animation-delay: -2.5s;
}

@media (prefers-reduced-motion: reduce) {
  .about-img-wrap::before,
  .about-img-wrap::after {
    animation: none;
  }
}

.about-img-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.about-img-wrap:hover img {
  transform: scale(1.04);
}

/* 首頁企業文化區塊：標題 / 內文 / 圖像 捲動依序進場 */
.index-about-section .about-title-main,
.index-about-section .about-title-sub,
.index-about-section .about-paragraph {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  will-change: transform, opacity;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.index-about-section .about-title-main { transition-delay: 0ms; }
.index-about-section .about-title-sub { transition-delay: 140ms; }
.index-about-section .about-paragraph:nth-of-type(1) { transition-delay: 260ms; }
.index-about-section .about-paragraph:nth-of-type(2) { transition-delay: 380ms; }
.index-about-section .about-paragraph:nth-of-type(3) { transition-delay: 500ms; }

.index-about-section .about-img-wrap {
  opacity: 0;
  transform: translate3d(32px, 0, 0) scale(0.96);
  will-change: transform, opacity;
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1) 280ms,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 280ms;
}

@media (max-width: 991.98px) {
  .index-about-section .about-img-wrap {
    transform: translate3d(0, 28px, 0) scale(0.96);
  }
}

.index-about-section.is-visible .about-title-main,
.index-about-section.is-visible .about-title-sub,
.index-about-section.is-visible .about-paragraph,
.index-about-section.is-visible .about-img-wrap {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .index-about-section .about-title-main,
  .index-about-section .about-title-sub,
  .index-about-section .about-paragraph,
  .index-about-section .about-img-wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------
   內頁共用 - KV 橫幅、麵包屑、底圖與標題條
   ------------------------------------------------------------ */
.page-banner-section {
  background-color: #061435;
  height: 460px;
  padding-top: 96px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-banner-section::before {
  content: '';
  position: absolute;
  inset: -18% 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, var(--banner-parallax-y, 0px), 0);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-banner-section::before {
    transform: none;
  }
}

.page-banner-about::before       { background-image: url('../images/about_kv.png'); }
.page-banner-newproducts::before { background-image: url('../images/newproducts_kv.png'); }
.page-banner-products::before    { background-image: url('../images/products_kv.png'); }
.page-banner-benefits::before    { background-image: url('../images/benefits_kv.png'); }
.page-banner-contact::before     { background-image: url('../images/contact_kv.png'); }
.page-banner-search::before      { background-image: url('../images/search_kv.png'); }

.page-banner-title {
  font-size: var(--type-3xl);
  font-weight: 500;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  margin: 0;
}

.page-content-wrapper {
  background-image: url('../images/page_bg.png');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-color: #f7f8fa;
  flex: 1 0 auto;
  padding: 2.4rem 0 8.8rem 0;
}

/* 麵包屑 (對齊所有內頁設計稿右上角) */
.etc-breadcrumb-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2.8rem;
}

.etc-breadcrumb {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: var(--type-xs);
  color: #4b5563;
}

.etc-breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.etc-breadcrumb .breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.etc-breadcrumb .breadcrumb-item a .bi {
  font-size: 1.6rem;
  line-height: 1;
}

.etc-breadcrumb .breadcrumb-item a:hover {
  color: var(--etc-primary);
}

.etc-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  float: none;
  content: "\203A";
  color: #6b7280;
  font-weight: 700;
  line-height: 1;
  padding-right: 0.72rem;
}

.etc-breadcrumb .breadcrumb-item.active {
  color: #4b5563;
}

/* 垂直指示條標題 (| 標題) */
.section-indicator-title {
  display: flex;
  align-items: center;
  margin-bottom: 3.2rem;
}

.section-indicator-title .indicator-bar {
  width: 6px;
  height: 34px;
  background-color: #1f2937;
  margin-right: 1.44rem;
  flex-shrink: 0;
}

.section-indicator-title h2 {
  font-size: var(--type-2xl);
  font-weight: 800;
  line-height: 1.3;
  color: #1f2937;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ------------------------------------------------------------
   關於力毅 (About.jpg / introduction.html)
   ------------------------------------------------------------ */
.about-block {
  margin-bottom: 7.2rem;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-heading {
  font-size: var(--type-xl);
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 1.85rem;
}

.about-lead-quote {
  font-size: var(--type-lg);
  font-weight: 500;
  color: #1f2937;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-body-text {
  font-size: var(--type-base);
  line-height: 1.85;
  color: #374151;
  text-align: justify;
}

.about-intro-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 公司政策卡片 (品質政策 / 衝突礦產政策) */
.policy-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 3.2rem 3.6rem;
  height: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.policy-card-title {
  font-size: var(--type-xl);
  font-weight: 600;
  color: #111827;
  text-align: center;
  padding-bottom: 1.6rem;
  margin-bottom: 2.15rem;
  border-bottom: 1px solid #e5e7eb;
}

.policy-card-body {
  font-size: var(--type-base);
  line-height: 1.85;
  color: #374151;
}

/* 得獎與認證 */
.award-cert-img {
  max-width: 270px;
  width: 100%;
  height: auto;
  display: block;
}

.award-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.05rem;
  font-size: var(--type-base);
  line-height: 1.75;
  color: #374151;
}

.award-year {
  font-weight: 700;
  color: #111827;
  min-width: 56px;
  flex-shrink: 0;
}

/* 公司沿革雙排時間軸 (History Timeline) */
.history-timeline-row {
  margin-bottom: 4rem;
  row-gap: 3.2rem;
}

.history-timeline-row > .col {
  padding: 0;
}

.history-timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-item {
  position: relative;
  padding: 0;
}

.timeline-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1.6rem;
}

.timeline-bar::after {
  content: '';
  flex: 1;
  height: 4px;
  background-color: var(--etc-gray-timeline);
}

.timeline-item.timeline-blue .timeline-bar::after {
  background-color: var(--etc-primary);
}

.timeline-year-badge {
  display: inline-block;
  background-color: var(--etc-gray-timeline);
  color: #ffffff;
  font-weight: 700;
  font-size: var(--type-xs);
  padding: 0.4rem 1.44rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.timeline-item.timeline-blue .timeline-year-badge {
  background-color: var(--etc-primary);
}

.timeline-events {
  list-style: none;
  padding: 0 2rem 0 0;
  margin: 0;
  font-size: var(--type-sm);
  line-height: 1.7;
  color: #374151;
}

@media (max-width: 767.98px) {
  .history-timeline-row {
    margin-bottom: 2.8rem;
    row-gap: 2.8rem;
  }
  .timeline-events {
    padding-right: 0;
  }
}

.timeline-events li {
  position: relative;
  padding-left: 1.44rem;
  margin-bottom: 0.56rem;
}

.timeline-events li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  color: #4b5563;
}

/* ------------------------------------------------------------
   產品資訊頁 - 手風琴分類清單 (Products.jpg / products.html)
   ------------------------------------------------------------ */
.products-accordion-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--type-sm);
  color: var(--etc-text-muted);
  margin: -1.6rem 0 2.4rem 0;
}

.products-accordion-hint .bi {
  color: var(--etc-primary);
  font-size: 1.55rem;
  line-height: 1;
}

.etc-products-accordion {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.etc-products-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.etc-products-accordion .accordion-item:last-child {
  border-bottom: none;
}

.etc-products-accordion .accordion-button {
  background-color: #ffffff;
  color: #111827;
  padding: 1.85rem 3.2rem 1.85rem 2.15rem;
  box-shadow: none !important;
  gap: 2.8rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.etc-products-accordion .accordion-button:hover {
  background-color: #f8fafc;
}

/* 展開時對齊設計稿深藍色背景 + 白字 + 白底圖框 */
.etc-products-accordion .accordion-button:not(.collapsed) {
  background-color: var(--etc-primary);
  color: #ffffff;
}

.etc-products-accordion .accordion-button::after {
  width: 2.15rem;
  height: 2.15rem;
  background-size: 2rem;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.etc-products-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.etc-cat-thumb {
  width: 120px;
  height: 90px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 2px;
}

.etc-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.etc-cat-name {
  font-size: var(--type-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 無子分類之外連項目 (如 Antenna) */
.etc-cat-direct-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.85rem 3.2rem 1.85rem 2.15rem;
  color: #111827;
  text-decoration: none;
  background-color: #ffffff;
  transition: background-color 0.2s ease;
}

.etc-cat-direct-link .bi {
  font-size: 2rem !important;
}

.etc-cat-direct-link:hover {
  background-color: #f8fafc;
  color: var(--etc-primary);
}

/* 展開後子分類按鈕區 (Products.jpg 4欄白色膠囊) */
.etc-products-accordion .accordion-collapse.show,
.etc-products-accordion .accordion-collapse.collapsing {
  background-color: #f4f7fb;
  border: 1px solid #9dbbe0;
  border-top: none;
}

.etc-products-accordion .accordion-body {
  padding: 2.4rem 2.8rem;
}

.etc-subcat-pill {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  color: #1f2937;
  font-size: var(--type-sm);
  font-weight: 700;
  padding: 1.25rem 2rem;
  border-radius: 50rem;
  text-decoration: none;
  border: 1px solid rgba(0, 64, 152, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.22s ease;
}

.etc-subcat-pill:hover {
  background-color: var(--etc-primary);
  color: #ffffff;
  border-color: var(--etc-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 64, 152, 0.2);
}

/* 三層產品分類子群組標題 */
.etc-subcat-group-title {
  font-size: var(--type-base);
  font-weight: 700;
  color: var(--etc-primary);
  padding-bottom: 0.72rem;
  margin-bottom: 1.36rem;
  border-bottom: 1px dashed #cbd5e1;
}

/* ------------------------------------------------------------
   產品料號規格頁 (Product ltem.jpg / products_detail.html & search_result.html)
   ------------------------------------------------------------ */
.pd-category-bar {
  background-color: var(--etc-gray-bar);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  min-height: 54px;
  margin-bottom: 3.2rem;
  position: relative;
}

.pd-parent-dropdown {
  display: flex;
  align-items: center;
}

.pd-parent-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: var(--type-sm);
  font-weight: 700;
  padding: 1.2rem 2.8rem;
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  white-space: nowrap;
}

.pd-parent-btn:hover,
.pd-parent-btn:focus,
.pd-parent-btn.show {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.12);
}

.pd-parent-dropdown .dropdown-menu {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  padding: 0.8rem 0;
  min-width: 240px;
}

.pd-parent-dropdown .dropdown-item {
  font-size: var(--type-sm);
  padding: 0.88rem 2rem;
  font-weight: 500;
}

.pd-parent-dropdown .dropdown-item:hover {
  background-color: #eff6ff;
  color: var(--etc-primary);
}

/* 紅色斜角分頁籤 (還原 Product ltem.jpg) */
.pd-active-tab {
  background-color: var(--etc-red);
  color: #ffffff;
  font-size: var(--type-sm);
  font-weight: 600;
  padding: 1.2rem 3.6rem;
  display: inline-flex;
  align-items: center;
  position: relative;
  border-top-right-radius: 22px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0% 100%);
  padding-right: 4.4rem;
}

/* 產品規格表格 (支援既有 PHP rowspan 結構，統一格線並移除 hover 換色) */
.pd-table-wrap {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.pd-detail-table {
  margin-bottom: 0;
  font-size: var(--type-sm);
  color: #1f2937;
  border-collapse: collapse;
  border-style: hidden;
  --bs-table-hover-bg: transparent;
}

.pd-detail-table thead th {
  background-color: #ffffff;
  color: #111827;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  padding: 1.6rem 1.2rem;
  border-top: 1px solid #cbd5e1;
  border-bottom: 2px solid #94a3b8;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
}

.pd-detail-table tbody tr {
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.pd-detail-table tbody td {
  vertical-align: middle;
  text-align: center;
  padding: 1.5rem 1.2rem;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.pd-detail-table tbody td.td-desc {
  text-align: left;
  line-height: 1.55;
}

.pd-detail-thumb {
  width: 100px;
  height: 75px;
  object-fit: cover;
  display: inline-block;
}

.pd-new-pill {
  display: inline-block;
  background-color: var(--etc-red);
  color: #ffffff;
  font-size: var(--type-2xs);
  font-weight: 800;
  padding: 0.16rem 0.72rem;
  border-radius: 3px;
  margin-bottom: 0.56rem;
  letter-spacing: 0.04em;
}

.pd-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-size: 2.3rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pd-pdf-link:hover {
  color: var(--etc-red);
  transform: scale(1.12);
}

/* ------------------------------------------------------------
   員工福利頁 (Benefits.jpg / welfare.html)
   ------------------------------------------------------------ */
.benefits-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 3.2rem 4rem;
  margin-bottom: 4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.benefits-card-title {
  font-size: var(--type-xl);
  font-weight: 600;
  color: #111827;
  text-align: center;
  padding-bottom: 1.6rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid #e5e7eb;
}

.benefits-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: var(--type-base);
  line-height: 1.75;
  color: #1f2937;
  margin-bottom: 0.9rem;
}

.benefits-star {
  color: #111827;
  font-size: var(--type-xs);
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.benefits-gallery-item {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.benefits-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.benefits-gallery-item:hover img {
  transform: scale(1.05);
}

/* ------------------------------------------------------------
   聯絡我們 & 產品搜尋表單卡片 (Contact.jpg & Search.jpg)
   ------------------------------------------------------------ */
.etc-form-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 3.6rem 4rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.etc-form-card .form-label {
  font-weight: 600;
  font-size: var(--type-sm);
  color: #1f2937;
}

.etc-form-card .form-control,
.etc-form-card .form-select {
  border-radius: 8px;
  border-color: #cbd5e1;
  padding: 1rem 1.44rem;
  font-size: var(--type-sm);
}

.etc-form-card .form-control:focus,
.etc-form-card .form-select:focus {
  border-color: var(--etc-primary);
  box-shadow: 0 0 0 0.32rem rgba(0, 64, 152, 0.15);
}

/* 統一站內按鈕基礎樣式（尺寸、圓角、垂直水平置中一致，僅以修飾類區隔顏色） */
.btn-etc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  padding: 0.96rem 2.96rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: var(--type-sm);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-etc-sm {
  padding: 0.56rem 1.6rem;
  font-size: var(--type-xs);
  border-radius: 6px;
}

/* 顏色變體：主色（實心藍） */
.btn-etc-primary {
  background-color: var(--etc-primary);
  border-color: var(--etc-primary);
  color: #ffffff;
}

.btn-etc-primary:hover,
.btn-etc-primary:focus-visible {
  background-color: var(--etc-primary-hover);
  border-color: var(--etc-primary-hover);
  color: #ffffff;
}

/* 顏色變體：次要（灰外框） */
.btn-etc-secondary {
  background-color: transparent;
  border-color: #6c757d;
  color: #4b5563;
}

.btn-etc-secondary:hover,
.btn-etc-secondary:focus-visible {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

/* 顏色變體：主色外框（藍外框） */
.btn-etc-outline-primary {
  background-color: transparent;
  border-color: var(--etc-primary);
  color: var(--etc-primary);
}

.btn-etc-outline-primary:hover,
.btn-etc-outline-primary:focus-visible {
  background-color: var(--etc-primary);
  border-color: var(--etc-primary);
  color: #ffffff;
}

.etc-search-divider {
  border-top: 1px dashed #cbd5e1;
  margin: 3.2rem 0;
}

/* 最新產品詳情 (newproducts_inf.html) */
.newprod-detail-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 4rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.newprod-detail-card .h5 {
  font-size: var(--type-lg);
}

/* ------------------------------------------------------------
   共用頁尾 (Footer)
   ------------------------------------------------------------ */
.etc-footer {
  position: relative;
  z-index: 2;
  background-color: var(--etc-black);
  color: #ffffff;
  padding: 2.95rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.44rem 2.8rem;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.64rem 1.44rem;
}

.footer-address-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem 2.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-info-item {
  color: #e5e7eb;
  font-size: var(--type-xs);
  letter-spacing: 0.03em;
}

.footer-map-link {
  color: #60a5fa;
  font-size: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-map-link:hover,
.footer-map-link:focus-visible {
  color: #93c5fd;
  transform: translateY(-1px);
}

.footer-contact-link,
.footer-contact-text {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: #60a5fa;
}

.footer-contact-icon {
  color: #93c5fd;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.footer-copyright {
  text-align: center;
  color: #9ca3af;
  font-size: var(--type-xs);
  line-height: 1.65;
  letter-spacing: 0.03em;
  margin-top: 1.85rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* 右下方 Go Top 正圓形按鈕 */
.btn-etc-gotop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(0, 64, 152, 0.92);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.btn-etc-gotop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-etc-gotop:hover,
.btn-etc-gotop:focus-visible {
  background-color: var(--etc-primary-hover);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   響應式斷點調校 (Responsive)
   ------------------------------------------------------------ */
@media (max-width: 1199.98px) {
  /* RWD：Header 皆以漢堡選單呈現、Logo 高度固定為 40px */
  .etc-navbar .navbar-brand img {
    height: 40px;
  }
  .navbar-collapse {
    background-color: rgba(6, 10, 24, 0.96);
    border-radius: 12px;
    padding: 2rem 2.4rem;
    margin-top: 1.36rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .etc-navbar.scrolled .navbar-collapse {
    background-color: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }
  .etc-navbar.scrolled .navbar-action-group {
    border-top-color: #e5e7eb;
  }
  .etc-nav-link {
    padding: 1.05rem 0 !important;
  }
  .etc-nav-link::after {
    display: none;
  }
  .navbar-action-group {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  /* RWD：首頁主視覺標語高度不滿版 */
  .hero-slogan-screen {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .hero-main-title { font-size: var(--type-4xl); }
  .hero-poem { font-size: 2rem; }
  .hero-expert-title { font-size: 3rem; }
}

@media (max-width: 991.98px) {
  .hero-main-title { font-size: var(--type-3xl); }
  .hero-poem { font-size: var(--type-base); line-height: 2; }
  .about-img-wrap { margin: 4rem auto 14px auto; }
  .page-banner-section { height: 300px; }
  .page-banner-title { font-size: var(--type-2xl); }
  .etc-cat-thumb { width: 92px; height: 68px; }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .footer-left,
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.72rem;
  }
}

@media (max-width: 575.98px) {
  .hero-slogan-screen { padding-top: 104px; padding-bottom: 40px; }
  .hero-main-title { font-size: var(--type-2xl); letter-spacing: 0.08em; }
  .hero-poem { font-size: var(--type-sm); line-height: 1.85; }
  .hero-expert-title { font-size: var(--type-lg); letter-spacing: 0.05em; line-height: 1.55; margin-bottom: 5.6rem; }
  /* 手機版最新產品圖卡改為左圖右文橫式排版 */
  .product-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: 14px;
  }
  .product-card-img-wrap {
    flex: 0 0 42%;
    width: 42%;
    max-width: 150px;
    aspect-ratio: 4 / 3;
    align-self: stretch;
  }
  .product-card-bottom {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    border-top: none;
    border-left: 1px solid #d5d7db;
    padding: 1.44rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }
  .product-card-bottom .badge-new {
    font-size: var(--type-xs);
    margin-bottom: 0.4rem;
  }
  .product-card-bottom .card-desc {
    font-size: var(--type-xs);
    line-height: 1.45;
    overflow-wrap: break-word;
  }
  .about-title-main { font-size: var(--type-xl); }
  .about-title-sub { font-size: var(--type-lg); }
  .section-indicator-title h2 { font-size: var(--type-xl); }
  .etc-products-accordion .accordion-button { padding: 1.6rem; gap: 1.6rem; }
  .etc-cat-thumb { width: 72px; height: 54px; }
  .etc-cat-name { font-size: var(--type-sm); }
  .etc-form-card, .benefits-card, .policy-card { padding: 2.4rem 2rem; }
  .newprod-detail-card { padding: 2.4rem 2rem; }
  .pd-active-tab { clip-path: none; border-radius: 0; width: 100%; padding: 1.05rem 2rem; }
  .pd-parent-btn { padding: 1.05rem 2rem; }
  .btn-etc-gotop { right: 16px; bottom: 18px; width: 44px; height: 44px; }
}
