/* ------ Design tokens (per delivery doc v1.0) ------ */
:root {
  /* Brand greens */
  --brand: #006633;
  --brand-dark: #004D26;
  --brand-darker: #003319;
  --green-50: #E6F2EB;
  --green-100: #B3D9C2;
  --green-200: #80BF99;
  --green-400: #4D9970;
  --green-600: #006633;
  --green-800: #004D26;
  --green-900: #003319;

  /* Neutral & accent */
  --bg: #FAFAF7;
  --bg-alt: #F1EFE8;
  --text: #2C2C2A;
  --text-mid: #6B7280;
  --text-on-dark-soft: rgba(255,255,255,0.78);
  --footer-bg: #EFEBE0;
  --footer-text: #5F6B5A;
  --footer-strong: #003319;
  --footer-divider: rgba(0,51,25,0.12);
  --footer-muted: #8A8475;
  --accent-gold: #BA7517;
  --line: #E8E6DF;

  /* Type scale */
  --fs-h1: 40px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-caption: 12px;
  --fs-eyebrow: 11px;

  /* Spacing */
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 48px;
  --sp-section: 80px;

  /* Radius */
  --r-btn: 4px;
  --r-card: 8px;
  --r-hero-card: 12px;

  /* Shadows */
  --shadow-card-hover: 0 8px 24px rgba(0,51,25,0.08);

  /* Layout */
  --container: 1200px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans TC', 'PingFang TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.95;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.03em;
}
/* 避免段落末行只剩 1 個字的孤字現象（CJK + 半形空格混排常見） */
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
a {
  color: var(--brand);
  text-decoration: none;
}
a.underlined {
  border-bottom: 1px solid var(--brand);
  padding-bottom: 1px;
  transition: padding-bottom .15s;
}
a.underlined:hover { padding-bottom: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 500; color: var(--text); margin: 0; }
h1 { font-size: var(--fs-h1); line-height: 1.5; letter-spacing: 0.04em; }
h2 { font-size: var(--fs-h2); line-height: 1.4; letter-spacing: 0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.4; letter-spacing: 0.02em; }

.eyebrow {
  display: inline-block; font-size: var(--fs-eyebrow); font-weight: 500;
  color: var(--brand); letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 14px;
}
.lead {
  font-size: 15px; color: var(--text-mid); max-width: 640px;
}

/* ------ Reveal / line-draw utilities ------ */
/*
 * .reveal-up — fade + translateY on .in-view trigger
 * .draw-underline — animated centered underline, customisable via CSS vars:
 *   --ul-bottom (offset, default -12px)
 *   --ul-height (default 2px)
 *   --ul-color (default --accent-gold)
 *   --ul-width (final width on in-view, default 60%)
 *   --ul-hover (width on hover, default 100%)
 * Both classes work via the same .in-view trigger that the IntersectionObserver
 * in careers.html toggles. Apply either or both to any element.
 */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
/* about.html 核心業務範圍 — 卡片式 B（白卡＋頂部綠條）＋ 進場交錯淡入（V1）。
   reveal-up 由 main.js observer 加 .in-view；卡片 hover 浮起加陰影。 */
.product-category:has(.biz-cards) { padding: clamp(64px, 9vw, 108px) 0; }
.product-list.biz-cards { gap: 24px; }
.product-list.biz-cards .product-item {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand);
  border-radius: var(--r-card); padding: 30px 28px;
  transition: opacity .6s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.product-list.biz-cards .product-item:nth-child(3n+1) { border-left: 1px solid var(--line); padding-left: 28px; }
.product-list.biz-cards .product-item:nth-child(3n) { padding-right: 28px; }
/* 進場：起始隱藏 + 交錯 delay（只在轉入 .in-view 時作用）*/
.product-list.biz-cards .product-item.reveal-up { opacity: 0; transform: translateY(26px); }
.product-list.biz-cards .product-item.reveal-up.in-view { opacity: 1; transform: none; }
.product-list.biz-cards .product-item.reveal-up.in-view:nth-child(2) { transition-delay: .12s; }
.product-list.biz-cards .product-item.reveal-up.in-view:nth-child(3) { transition-delay: .24s; }
/* hover：浮起加陰影（重設 delay 避免被 stagger 影響）*/
.product-list.biz-cards .product-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); transition-delay: 0s; }
.draw-underline { position: relative; }
.draw-underline::after {
  content: ''; position: absolute;
  left: 50%; bottom: var(--ul-bottom, -12px);
  width: 0; height: var(--ul-height, 2px);
  background: var(--ul-color, var(--accent-gold));
  transform: translateX(-50%);
  transition: width .8s ease .25s, background .4s ease;
}
.draw-underline.in-view::after { width: var(--ul-width, 60%); }
.draw-underline:hover::after { width: var(--ul-hover, 100%); }

/* ------ Buttons ------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 500; letter-spacing: 0.05em;
  transition: all .18s; border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline {
  background: #fff; color: var(--brand); border-color: var(--brand);
}
.btn-outline:hover { background: var(--green-50); }
.btn-on-dark {
  background: #fff; color: var(--brand-darker);
}
.btn-on-dark:hover { background: var(--green-50); }
.btn-ghost-on-dark {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.4);
}
.btn-ghost-on-dark:hover { background: rgba(255,255,255,0.1); }

/* ------ Top utility bar ------ */
.topbar {
  background: var(--brand-darker); color: rgba(255,255,255,0.8);
  font-size: 12px; padding: 8px 0; letter-spacing: 0.05em;
}
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; align-items: center; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }

/* ------ Nav ------ */
nav.main {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.95);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.main .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.logo { display: flex; align-items: center; }
.logo img.logo-img {
  height: 56px; width: auto; display: block;
}
.footer-brand .logo img.logo-img {
  height: 56px;
  width: auto;
  max-width: none;
}

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a.nav-item {
  display: block; padding: 10px 16px; color: var(--text);
  font-size: 14px; font-weight: 400; letter-spacing: 0.06em;
  transition: color .15s;
}
.nav-links a.nav-item:hover,
.nav-links a.nav-item.active { color: var(--brand); }
.nav-links .has-sub > a::after {
  content: '⌄'; margin-left: 6px; font-size: 11px; opacity: 0.55; vertical-align: 2px;
}
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card-hover); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, visibility .18s, transform .18s;
  list-style: none; margin: 0;
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: 9px 14px; border-radius: 4px;
  color: var(--text); font-size: 13px; letter-spacing: 0.04em;
}
.submenu a:hover { background: var(--green-50); color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 10px 22px; border-radius: var(--r-btn); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em;
  transition: background .15s; margin-left: 8px;
}
.nav-cta:hover { background: var(--brand-dark); }
.lang-switch {
  display: flex; gap: 6px; margin-left: 16px; font-size: 12px;
  color: var(--text-mid); letter-spacing: 0.08em;
}
.lang-switch a.active { color: var(--brand); font-weight: 500; }
.lang-switch span { opacity: 0.4; }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: transparent; border: none; padding: 0;
  cursor: pointer; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: 12px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 24px; height: 2px;
  background: var(--brand-darker);
  transition: transform .25s ease, background-color .15s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }
.nav-toggle.is-open span { background-color: transparent; }
.nav-toggle.is-open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span::after  { transform: translateY(-8px) rotate(-45deg); }
body.nav-locked { overflow: hidden; }

/* ------ Hero (full-width video bg) ------ */
.hero {
  position: relative; width: 100%; height: 39vw; max-height: 720px; min-height: 0;
  background: var(--brand-darker);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.hero-video {
  /* 2026-07-29 影片：無固定 letterbox（最亮畫格可填滿 720），但多數畫格上下約 94–99px 為偏暗場景邊緣（看起來像黑邊）。
     依業主要求裁掉暗邊，用 object-fit:cover 對稱裁切（上下暗邊對稱）：.hero 高度 39vw 使 cover 於上下各裁約 110px，
     涵蓋 ~99px 暗邊仍留餘裕，且不受捲軸寬度顯著影響。代價：最亮的少數畫格上下會被裁掉約 110px 內容。換影片改 .hero 高度即可。 */
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
/* Placeholder visual when no video — radial pattern */
.hero-placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(43,168,95,0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(0,102,51,0.55) 0%, transparent 60%),
    linear-gradient(135deg, #003319 0%, #00261A 50%, #002414 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 880px;
}
.hero-content h1 {
  color: #fff; font-size: clamp(26px, 3.6vw, 44px); font-weight: 400;
  line-height: 1.5; letter-spacing: 0.18em; margin: 0;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta .btn-primary { background: #fff; color: var(--brand-darker); }
.hero-cta .btn-primary:hover { background: var(--green-50); }
.hero-cta .btn-outline {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.5);
}
.hero-cta .btn-outline:hover { background: rgba(255,255,255,0.1); }
/* Carousel progress dots */
.hero-progress {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-progress span {
  width: 36px; height: 2px; background: rgba(255,255,255,0.3); border-radius: 2px;
  overflow: hidden;
}
.hero-progress span.active { background: rgba(255,255,255,0.9); }
/* SCROLL prompt */
.scroll-cue {
  position: absolute; right: 32px; bottom: 24px; z-index: 3;
  color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.4em;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue::before {
  content: ''; width: 1px; height: 30px; background: rgba(255,255,255,0.5);
}

/* ------ Slogan section ------ */
.slogan {
  padding: var(--sp-section) 0; text-align: center;
  background: var(--bg);
}
.slogan h2 {
  font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px;
  color: var(--brand-darker); font-weight: 500; letter-spacing: 0.18em;
}
.slogan p.lead { margin: 0 auto 32px; line-height: 2.0; }
.slogan-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ------ About + 四共 ------ */
.about { padding: var(--sp-section) 0; background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--text-mid); line-height: 1.95; margin: 0 0 20px; }
.four-co {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.co-card {
  background: #fff; padding: 22px; border-radius: var(--r-card);
  border: 1px solid var(--line); transition: transform .18s, box-shadow .18s;
}
.co-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.co-card .num {
  font-size: var(--fs-eyebrow); color: var(--brand); letter-spacing: 0.2em; font-weight: 500;
  display: block; margin-bottom: 10px;
}
.co-card h3 {
  font-size: 18px; margin-bottom: 4px; color: var(--brand-darker);
}
.co-card .en {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.12em; margin-bottom: 8px; display: block;
}
.co-card p { font-size: var(--fs-small); color: var(--text-mid); margin: 0; line-height: 1.8; }

/* ESG 三大主軸 — Layout B dropcap 整合 */
.esg-pillar {
  display: flex; align-items: baseline; gap: 0;
  justify-content: center;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.esg-pillar .letter {
  color: var(--accent-gold);
  font-size: 28px; font-weight: 700; line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
}
.esg-pillar .rest {
  color: var(--accent-gold);
  font-weight: 500; letter-spacing: 0.1em;
  font-size: 15px;
}

/* ------ Products ------ */
.products { padding: var(--sp-section) 0; }
.products-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: 48px;
}
.product-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 32px; transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.cat-card .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-card);
  background: var(--green-50); color: var(--brand);
  font-size: 22px; font-weight: 500; margin-bottom: 20px;
}
.cat-card h3 { font-size: 20px; margin-bottom: 6px; color: var(--brand-darker); }
.cat-card .en {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.14em; margin-bottom: 16px; display: block;
}
.cat-card p {
  font-size: var(--fs-small); color: var(--text-mid); line-height: 1.85;
  margin: 0 0 20px;
  min-height: 3.7em;
}
.cat-card ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  font-size: var(--fs-small); color: var(--text);
}
.cat-card ul li {
  padding: 10px 0; border-top: 1px solid var(--line);
  line-height: 1.55;
}
.cat-card ul li:last-child { border-bottom: 1px solid var(--line); }
.cat-card ul li span { color: var(--text-mid); font-size: var(--fs-caption); letter-spacing: 0.08em; }
.cat-card ul li a { color: var(--brand); font-size: var(--fs-caption); letter-spacing: 0.08em; font-weight: 500; white-space: nowrap; }
.cat-card ul li a:hover { color: var(--brand-darker); }
.cat-card .more {
  font-size: var(--fs-small); color: var(--brand); font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: auto;
}
.cat-card .more::after { content: ' →'; transition: margin-left .15s; }
.cat-card:hover .more::after { margin-left: 4px; }

/* ------ Certification (dark green block) ------ */
.cert {
  padding: var(--sp-section) 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(43,168,95,0.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 100%);
  color: #fff;
}
.cert .eyebrow { color: var(--green-200); }
.cert h2 { color: #fff; margin-bottom: 12px; }
.cert .lead { color: var(--text-on-dark-soft); margin: 0 auto 48px; max-width: 640px; }
.cert-head { text-align: center; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-card); padding: 28px 24px;
  transition: background .18s, border-color .18s;
}
.cert-card:hover { background: rgba(255,255,255,0.1); border-color: var(--green-200); }
.cert-card .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-200); color: var(--brand-darker);
  display: grid; place-items: center; font-weight: 600; font-size: 14px;
  margin-bottom: 18px;
}
.cert-card h4 {
  font-size: 16px; color: #fff; margin: 0 0 6px; font-weight: 500;
  letter-spacing: 0.04em;
}
.cert-card .en {
  font-size: var(--fs-caption); color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em; margin-bottom: 12px; display: block;
}
.cert-card p {
  font-size: var(--fs-small); color: rgba(255,255,255,0.75);
  line-height: 1.85; margin: 0;
}

/* ------ Partnership ------ */
.partnership { padding: var(--sp-section) 0; background: var(--bg); text-align: center; }
.partner-marquee {
  margin-top: 56px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.partner-marquee .track {
  display: inline-block;
  animation: partner-scroll 36s linear infinite;
  padding-right: 60px;
}
.partner-marquee:hover .track { animation-play-state: paused; }
.partner-marquee .item {
  display: inline-block;
  padding: 0 36px;
  vertical-align: middle;
  text-align: center;
}
.partner-marquee .sep {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: middle;
  opacity: 0.4;
}
.partner-marquee .item .name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--accent-gold); letter-spacing: 0.02em;
  line-height: 1;
}
.partner-marquee .item .country {
  display: block;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 10px; letter-spacing: 0.32em;
  color: var(--brand); text-transform: uppercase;
  margin-top: 6px;
}
@keyframes partner-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-marquee .track { animation: none; }
}

/* ------ News ------ */
.news { padding: var(--sp-section) 0; background: var(--bg-alt); }
.news-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: 40px;
}
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; transition: transform .18s, box-shadow .18s;
  display: block;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.news-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  overflow: hidden;
}
.news-card .thumb img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.news-card .body { padding: 22px; }
.news-card .meta {
  display: flex; gap: 12px; align-items: center; margin-bottom: 10px;
  font-size: var(--fs-caption); color: var(--text-mid); letter-spacing: 0.08em;
}
.news-card .tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-btn);
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
}
.tag-news { background: var(--green-50); color: var(--brand); }
.tag-product { background: rgba(186,117,23,0.12); color: var(--accent-gold); }
.tag-event { background: rgba(0,102,51,0.06); color: var(--brand-dark); }
.news-card h3 {
  font-size: 16px; color: var(--text); line-height: 1.6; margin: 0;
}
.news-card:hover h3 { color: var(--brand); }

/* ------ Download list ------ */
.downloads-section { padding: var(--sp-section) 0; background: var(--bg); }
.download-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 40px; justify-content: center;
}
.download-tabs button {
  background: transparent; border: 1px solid var(--line);
  padding: 9px 22px; border-radius: var(--r-btn);
  font-size: 13px; color: var(--text-mid);
  letter-spacing: 0.1em; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.download-tabs button:hover { color: var(--brand); border-color: var(--brand); }
.download-tabs button.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.download-list { max-width: 880px; margin: 0 auto; }
.download-item {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 16px;
  border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.download-item:last-child { border-bottom: 1px solid var(--line); }
.download-item:hover { background: var(--bg-alt); }
.download-item .file-type {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--green-50); color: var(--brand-darker);
  border-radius: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  display: flex; align-items: center; justify-content: center;
}
.download-item .info { flex: 1; min-width: 0; }
.download-item .info h3 {
  font-size: 15px; color: var(--text);
  margin: 0 0 4px; font-weight: 500;
  letter-spacing: 0.04em;
}
.download-item:hover .info h3 { color: var(--brand); }
.download-item .info .meta {
  font-size: 12px; color: var(--text-mid);
  letter-spacing: 0.1em;
}
.download-item .download-btn {
  font-size: 13px; color: var(--brand);
  letter-spacing: 0.06em; flex-shrink: 0;
}
.download-item .download-btn::after { content: ' ↓'; }

/* ------ Partners (合作品牌) ------ */
.partners-section { padding: var(--sp-section) 0; background: var(--bg-alt); }
.partners-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px; margin: 0 auto;
}
.partner-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand);
}
.partner-card .logo-area {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 30px; color: var(--brand-darker);
  letter-spacing: 0.02em;
}
.partner-card .body {
  padding: 24px;
  flex: 1; display: flex; flex-direction: column;
}
.partner-card h3 {
  font-size: 18px; color: var(--brand-darker);
  margin: 0 0 4px; letter-spacing: 0.04em; font-weight: 500;
}
.partner-card .meta {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.12em; margin-bottom: 14px;
}
.partner-card p {
  font-size: 13px; color: var(--text);
  line-height: 1.85; margin: 0 0 16px;
}
.partner-card .product-list-mini {
  list-style: none; padding: 0; margin: 0 0 20px;
  font-size: 12px; color: var(--text-mid);
  line-height: 1.85;
}
.partner-card .product-list-mini li {
  position: relative; padding-left: 14px;
}
.partner-card .product-list-mini li::before {
  content: '·';
  color: var(--brand);
  position: absolute; left: 0; top: -3px;
  font-size: 18px; font-weight: 700;
}
.partner-card .more {
  margin-top: auto;
  font-size: 13px; color: var(--brand);
  letter-spacing: 0.06em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
}
.partner-card .more::after { content: ' →'; }

/* ------ Stats grid (about / quality) ------ */
.stats-section { padding: var(--sp-section) 0; background: var(--bg-alt); }
.stats-grid .stat-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.22, 1, 0.36, 1);
}
.stats-grid .stat-card.in-view {
  opacity: 1; transform: translateY(0);
}
.stats-grid .stat-card:nth-child(1).in-view { transition-delay: 0s; }
.stats-grid .stat-card:nth-child(2).in-view { transition-delay: .12s; }
.stats-grid .stat-card:nth-child(3).in-view { transition-delay: .24s; }
.stats-grid .stat-card:nth-child(4).in-view { transition-delay: .36s; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1100px; margin: 0 auto;
}
.stat-card {
  text-align: center; padding: 16px 24px;
  border-left: 1px solid var(--line);
}
.stat-card:first-child { border-left: none; }
.stat-card .num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 56px; color: var(--brand-darker);
  letter-spacing: 0.02em; line-height: 1;
  margin-bottom: 14px;
}
.stat-card .num .unit {
  font-size: 22px; font-style: normal;
  color: var(--accent-gold);
  letter-spacing: 0.04em; margin-left: 4px;
}
.stat-card .label {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.22em; text-transform: uppercase;
  display: block;
}
.stat-card .label-zh {
  display: block; margin-top: 6px;
  font-size: 14px; color: var(--text);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ------ Team grid ------ */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px; margin: 0 auto;
}
.team-card {
  background: transparent;
  text-align: left;
}
.team-card .portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.team-card h3 {
  font-size: 19px; color: var(--brand-darker);
  margin: 0 0 4px; letter-spacing: 0.04em; font-weight: 500;
}
.team-card .title {
  display: block; font-size: var(--fs-caption);
  color: var(--text-mid); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 14px;
}
.team-card p {
  font-size: 13px; color: var(--text);
  line-height: 1.85; margin: 0;
}

/* ------ Global markets page ------ */
.global-intro {
  padding: var(--sp-section) 0; background: var(--bg);
  text-align: center;
}
.global-intro .container { max-width: 880px; }
.global-intro h2 { color: var(--brand-darker); margin-bottom: 18px; }
.global-intro p {
  color: var(--text); line-height: 1.95;
  text-align: center; max-width: 820px; margin: 0 auto 16px;
}

.global-map-section { padding: var(--sp-section) 0; background: var(--bg-alt); }
.global-map-wrapper {
  background: transparent;
  border: none; border-radius: 0;
  padding: 0;
  position: relative;
  max-width: 1100px; margin: 0 auto;
}
.map-canvas {
  position: relative;
  width: 100%;
}
.map-bg {
  display: block;
  width: 100%; height: auto;
  border-radius: 6px;
}
.map-markers {
  position: absolute; inset: 0;
  pointer-events: none;
}
.map-marker {
  position: absolute;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  background: transparent; border: none; padding: 0;
  transition: opacity .2s;
}
.map-marker .dot,
.map-marker .pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  display: block;
}
.map-marker .dot {
  background: var(--brand);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  z-index: 2;
  transition: transform .2s;
}
.map-marker.partner .dot,
.map-marker.import .dot { background: var(--accent-gold); }
.map-marker.bd .dot {
  background: #fff;
  border: 2px solid var(--text-mid);
}
.map-marker .pulse {
  background: var(--brand);
  opacity: 0.45;
  z-index: 1;
  animation: marker-pulse 2.6s ease-out infinite;
}
.map-marker.partner .pulse,
.map-marker.import .pulse { background: var(--accent-gold); }
.map-marker.bd .pulse {
  background: var(--text-mid);
  opacity: 0.25;
}
@keyframes marker-pulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  80%  { transform: scale(3); opacity: 0; }
  100% { transform: scale(3); opacity: 0; }
}
.map-marker:hover .dot,
.map-marker.active .dot { transform: scale(1.35); }
.map-marker:hover { z-index: 100; }
.map-marker.dim { opacity: 0.3; }

.map-tooltip {
  position: absolute; pointer-events: none;
  background: var(--brand-darker); color: #fff;
  padding: 7px 14px; border-radius: var(--r-btn);
  font-size: 12px; letter-spacing: 0.1em;
  transform: translate(-50%, calc(-100% - 12px));
  opacity: 0; transition: opacity .15s;
  white-space: nowrap; z-index: 5;
}
.map-tooltip.show { opacity: 1; }
.map-tooltip::after {
  content: ''; position: absolute;
  bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--brand-darker);
}

.map-legend {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 28px; justify-content: center;
  font-size: 12px; color: var(--text-mid);
  letter-spacing: 0.1em;
}
.map-legend .item { display: flex; align-items: center; gap: 8px; }
.map-legend .swatch {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.map-legend .swatch.brand { background: var(--brand); }
.map-legend .swatch.gold { background: var(--accent-gold); }
.map-legend .swatch.bd {
  background: #fff;
  border: 1.5px solid var(--text-mid);
  width: 11px; height: 11px;
  box-sizing: border-box;
}

.regions-section { padding: var(--sp-section) 0; background: var(--bg); }
.region-block { margin-bottom: 64px; }
.region-block:last-child { margin-bottom: 0; }
.region-block .head {
  text-align: center; margin-bottom: 32px;
}
.region-block .head .eyebrow { display: block; margin-bottom: 6px; }
.region-block .head h2 {
  color: var(--brand-darker); font-size: 22px;
  letter-spacing: 0.06em; margin: 0;
}
.country-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.country-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  cursor: pointer;
}
.country-card:hover,
.country-card.active {
  border-color: var(--brand);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.country-card .iso {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.18em;
  font-weight: 500;
  padding: 3px 9px; border-radius: 3px;
  background: var(--green-50); color: var(--brand);
  margin-bottom: 14px;
}
.country-card.partner .iso,
.country-card.import .iso {
  background: rgba(186,117,23,0.12); color: var(--accent-gold);
}
.country-card.bd .iso {
  background: rgba(102,102,102,0.10); color: var(--text-mid);
}
.country-card.bd {
  border-style: dashed;
}
.country-card.bd:hover {
  border-style: solid;
}
.country-card h3 {
  font-size: 18px; color: var(--brand-darker);
  margin: 0 0 4px; letter-spacing: 0.04em; font-weight: 500;
}
.country-card .meta {
  font-size: 12px; color: var(--text-mid);
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.country-card p {
  font-size: 13px; color: var(--text);
  line-height: 1.75; margin: 0;
}

/* ------ Products list page ------ */
.products-overview {
  padding: var(--sp-section) 0; background: var(--bg);
  text-align: center;
}
.products-overview .container { max-width: 880px; }
.products-overview h2 { color: var(--brand-darker); margin-bottom: 18px; }
.products-overview p {
  color: var(--text); line-height: 1.95;
  text-align: center; max-width: 820px; margin: 0 auto 16px;
}

.product-category { padding: var(--sp-section) 0; background: var(--bg); }
.product-category.cat-alt { background: var(--bg-alt); }
.cat-header {
  max-width: 760px; margin: 0 auto 56px;
  text-align: center;
}
.cat-header .badge {
  display: inline-block;
  background: var(--brand); color: #fff;
  font-size: 11px; letter-spacing: 0.22em;
  padding: 6px 16px; border-radius: var(--r-btn);
  margin-bottom: 18px;
}
.cat-header .cat-logo {
  display: block; margin: 0 auto 20px;
  width: 44px; height: 44px;
  color: var(--brand);
}
.cat-header .cat-logo rect { fill: currentColor; }
.cat-header .eyebrow { display: block; margin-bottom: 8px; }
.cat-header h2 { color: var(--brand-darker); margin-bottom: 14px; }
.cat-header p.lead { margin: 0 auto; color: var(--text-mid); }

.product-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1100px; margin: 0 auto;
  row-gap: 56px;
}
.product-item {
  background: transparent; border-left: 1px solid var(--line);
  padding: 8px 32px; text-align: left;
}
.product-item:nth-child(3n+1) { border-left: none; padding-left: 0; }
.product-item:nth-child(3n) { padding-right: 0; }
.product-item h3 {
  font-size: 19px; color: var(--brand-darker);
  margin: 0 0 4px; letter-spacing: 0.04em;
  font-weight: 500;
}
.product-item .en {
  display: block; font-size: var(--fs-caption);
  color: var(--text-mid); letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.product-item .en.en-titlecase { text-transform: none; }
.product-item .scope-list {
  list-style: none; padding: 0; margin: 0 0 22px;
}
.product-item .scope-list li {
  padding: 12px 0;
  border-top: 1px dashed var(--line);
}
.product-item .scope-list li:first-child { border-top: none; padding-top: 0; }
.product-item .scope-list li:last-child { padding-bottom: 0; }
.product-item .scope-list .zh {
  display: block; font-size: var(--fs-small);
  color: var(--text); line-height: 1.6;
}
.product-item .scope-list .en-name {
  display: block; font-size: 11px;
  color: var(--text-mid); letter-spacing: 0.1em;
  margin-top: 4px; line-height: 1.5;
}
.product-item p {
  font-size: var(--fs-small); color: var(--text);
  line-height: 1.85; margin: 0 0 18px;
}
.product-item .tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.product-item .tags span {
  padding: 3px 10px; border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font-size: 11px; color: var(--text-mid);
  letter-spacing: 0.1em;
}
.product-item .more {
  font-size: 13px; color: var(--brand);
  letter-spacing: 0.06em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .15s;
}
.product-item .more::after { content: ' →'; }
.product-item .more:hover { color: var(--brand-darker); }

/* ------ Product detail page ------ */
.product-detail { padding: var(--sp-section) 0; background: var(--bg); }
.product-detail .container { max-width: 1100px; }
.product-detail-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 64px;
  align-items: start;
}
.product-image {
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 1/1; border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); font-size: var(--fs-caption); letter-spacing: 0.12em;
  overflow: hidden;
  position: relative;
}
.product-image.has-image {
  padding: 28px;
  cursor: zoom-in;
}
.product-image.product-image-logo {
  background: var(--bg-alt);
  padding: 18%;
}
.product-image.product-image-logo img {
  width: 100%; height: auto; opacity: 0.9;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 60px 80px;
  cursor: zoom-out;
  animation: lightbox-fade .2s ease;
}
.lightbox.open { display: flex; }
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  user-select: none;
  cursor: default;
  background: #fff;
  border-radius: 6px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff; border: none;
  cursor: pointer;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  font-family: inherit;
  padding: 0;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox-close { top: 24px; right: 24px; font-size: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

body.lightbox-open { overflow: hidden; }

@media (max-width: 540px) {
  .lightbox { padding: 60px 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 16px; right: 16px; }
}
.product-image.has-image img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block;
}

.product-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 12px;
}
.product-thumb {
  aspect-ratio: 1/1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, box-shadow .15s;
}
.product-thumb img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; display: block;
}
.product-thumb:hover { border-color: var(--brand); }
.product-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.product-gallery {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  max-width: 640px; margin: 24px 0 0;
}
.product-gallery figure {
  margin: 0; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; text-align: center;
}
.product-gallery figure img {
  max-width: 100%; height: auto;
  display: block; margin: 0 auto;
}
.product-gallery figcaption {
  margin-top: 16px;
  font-size: 12px; color: var(--text-mid);
  letter-spacing: 0.12em;
}
.product-info h1 {
  color: var(--brand-darker);
  font-size: 26px; letter-spacing: 0.04em;
  font-weight: 500;
  margin: 0 0 8px;
}
.product-info .en {
  display: block; font-size: 14px;
  color: var(--text-mid); letter-spacing: 0.16em;
  margin-bottom: 28px;
}
.product-info .desc {
  color: var(--text); line-height: 1.95;
  margin: 0 0 28px;
}
.product-spec {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.product-spec dl {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 14px 24px; margin: 0;
}
.product-spec dt {
  color: var(--text-mid); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
}
.product-spec dd {
  margin: 0; color: var(--text); font-size: 14px;
  line-height: 1.85;
}
.product-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px;
}

.product-section {
  padding: var(--sp-section) 0; background: var(--bg-alt);
}
.product-section .container { max-width: 880px; }
.product-section + .product-section { padding-top: 0; }
.product-section h2 {
  color: var(--brand-darker);
  font-size: 20px; letter-spacing: 0.06em;
  margin: 0 0 18px;
}
.product-section p {
  color: var(--text); line-height: 1.95; margin: 0 0 16px;
}
.product-section ul {
  color: var(--text); line-height: 1.9;
  padding-left: 22px; margin: 0 0 18px;
}
.product-section ul li { margin-bottom: 6px; }

.spec-table-wrap { overflow-x: auto; margin: 20px 0 8px; }
.spec-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--fs-small); color: var(--text);
  border-top: 2px solid var(--brand-darker);
}
.spec-table th, .spec-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.spec-table thead th {
  color: var(--brand-darker); font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  white-space: nowrap;
}
.spec-table tbody td:first-child {
  font-weight: 500; color: var(--brand-darker);
  font-family: 'Inter', sans-serif;
}
.efficacy-list {
  list-style: none; padding: 0; margin: 8px 0 0;
}
.efficacy-list li {
  padding: 14px 0; border-top: 1px solid var(--line);
  line-height: 1.7; color: var(--text);
}
.efficacy-list li:last-child { border-bottom: 1px solid var(--line); }
.efficacy-list li strong {
  color: var(--brand-darker); font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  margin-right: 4px;
}

.product-related { padding: var(--sp-section) 0; background: var(--bg); }
.product-related .head {
  text-align: center; margin-bottom: 40px;
}
.product-related .head h2 {
  color: var(--brand-darker); margin-bottom: 8px;
}
.product-related .related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1100px; margin: 0 auto;
}
.related-card {
  background: transparent; border-left: 1px solid var(--line);
  padding: 8px 32px;
}
.related-card:nth-child(3n+1) { border-left: none; padding-left: 0; }
.related-card:nth-child(3n) { padding-right: 0; }
.related-card h3 {
  font-size: 16px; color: var(--brand-darker);
  margin: 0 0 6px; font-weight: 500;
}
.related-card p {
  font-size: var(--fs-small); color: var(--text-mid);
  line-height: 1.75; margin: 0 0 14px;
}
.related-card .more {
  font-size: 12px; color: var(--brand); letter-spacing: 0.06em;
}
.related-card .more::after { content: ' →'; }

/* ------ News list page ------ */
.news-list-section { padding: var(--sp-section) 0; background: var(--bg); }
.news-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 48px; justify-content: center;
}
.news-filter button {
  background: transparent; border: 1px solid var(--line);
  padding: 9px 22px; border-radius: var(--r-btn);
  font-size: 13px; color: var(--text-mid);
  letter-spacing: 0.1em; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.news-filter button:hover { color: var(--brand); border-color: var(--brand); }
.news-filter button.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.news-list-section .news-grid { margin-bottom: 56px; }
.news-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 64px 0;
  color: var(--text-mid); font-size: 14px;
  display: none;
}
.news-empty.show { display: block; }
.load-more {
  text-align: center;
  padding-top: 8px;
}

/* ------ Article detail ------ */
.article {
  padding: var(--sp-section) 0; background: var(--bg);
}
.article .container { max-width: 760px; }
.article-meta {
  display: flex; gap: 14px; align-items: center;
  margin-top: 18px; justify-content: flex-start;
  font-size: var(--fs-caption); color: var(--text-on-dark-soft);
  letter-spacing: 0.08em;
}
/* 內頁分類標籤：page-header 為深綠底，膠囊改淺色半透明＋白字，避免深字沉沒 */
.article-meta .tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-btn);
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  background: rgba(255,255,255,0.16); color: #fff;
}
.article-body { padding-top: 8px; }
.article-body p {
  color: var(--text); line-height: 1.95;
  margin: 0 0 18px;
}
.article-body h2 {
  margin: 36px 0 14px;
  color: var(--brand-darker);
  font-size: 22px; letter-spacing: 0.06em;
}
.article-body ul, .article-body ol {
  margin: 0 0 22px; padding-left: 22px;
  line-height: 1.9; color: var(--text);
}
.article-body li { margin-bottom: 6px; }
.article-figure {
  margin: 32px 0;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  aspect-ratio: 16/9; border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); font-size: var(--fs-caption);
  letter-spacing: 0.12em;
}
.article-figure.has-image {
  background: none; aspect-ratio: auto;
  display: block; padding: 0; letter-spacing: 0;
}
.article-figure.has-image img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-card);
}
.article-figure.has-image figcaption {
  margin-top: 14px; padding: 0 8px;
  color: var(--text-mid); font-size: var(--fs-caption);
  line-height: 1.75; text-align: center;
}
.article-note {
  margin-top: 32px; padding: 18px 22px;
  background: var(--bg-alt); border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
  font-size: 13px; color: var(--text-mid); line-height: 1.85;
}
.article-nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 32px 0 0; margin-top: 56px;
  gap: 16px; font-size: 13px;
}
.article-nav a { color: var(--text); transition: color .15s; }
.article-nav a:hover { color: var(--brand); }
.article-nav .label {
  display: block; font-size: 11px; color: var(--text-mid);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 4px;
}
.article-nav .prev { text-align: left; }
.article-nav .next { text-align: right; }
.article-nav .back {
  text-align: center; color: var(--text-mid);
  letter-spacing: 0.08em;
}
.article-nav .back:hover { color: var(--brand); }

/* ------ ESG + Careers dual block ------ */
.dual { padding: var(--sp-section) 0; background: var(--bg); }
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dual-card {
  padding: 56px 48px; border-radius: var(--r-hero-card);
  color: #fff; position: relative; overflow: hidden;
  min-height: 320px; display: flex; flex-direction: column; justify-content: space-between;
}
.dual-card.esg {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-darker) 100%);
}
.dual-card.careers {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #8E5713 100%);
}
.dual-card::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.dual-card .eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.dual-card h2 {
  color: #fff; font-size: 26px; line-height: 1.5; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.dual-card p {
  color: rgba(255,255,255,0.78); font-size: var(--fs-small);
  line-height: 1.9; margin: 0 0 28px; max-width: 380px;
  position: relative; z-index: 1;
}
.dual-card .more {
  color: #fff; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 4px;
  align-self: flex-start; position: relative; z-index: 1;
  transition: border-color .15s;
}
.dual-card .more:hover { border-color: #fff; }

/* ------ Footer ------ */
footer.site {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 64px 0 28px; font-size: var(--fs-small); letter-spacing: 0.04em;
}
.footer-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr 0.9fr 2.1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text .zh { color: var(--footer-strong); }
.footer-brand .logo-text .en { color: var(--footer-muted); }
.footer-brand p { margin: 18px 0 0; line-height: 1.85; max-width: 280px; }
footer h5 {
  color: var(--footer-strong); font-size: 13px; font-weight: 500; margin: 0 0 16px;
  letter-spacing: 0.1em;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer ul li { margin-bottom: 10px; line-height: 1.7; }
footer ul a { color: var(--footer-text); }
footer ul a:hover { color: var(--footer-strong); }
.footer-info li { color: var(--footer-text); white-space: nowrap; }
.footer-info a { color: var(--footer-text); }
.footer-info a:hover { color: var(--footer-strong); }
/* 英文 footer：長地址（footer-info 第一項）改為可斷行；選單欄連結（過長標籤）維持一行不斷 */
html[lang="en"] .footer-info li:first-child { white-space: normal; }
html[lang="en"] .footer-grid ul:not(.footer-info) li { white-space: nowrap; }
.footer-bottom {
  border-top: 1px solid var(--footer-divider); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: var(--fs-caption); color: var(--footer-muted);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--footer-strong); }

/* ------ Page header (sub-pages, no video) ------ */
.page-header {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(43,168,95,0.25) 0%, transparent 60%),
    linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 100%);
  color: #fff; padding: 88px 0 72px;
  position: relative; overflow: hidden;
}
.page-header.has-banner {
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    var(--banner-img) center/cover no-repeat,
    var(--brand-darker);
  padding: 120px 0 96px;
}
.page-header > .container { position: relative; z-index: 1; }
.page-header .crumb {
  font-size: var(--fs-caption); color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em; margin-bottom: 18px;
}
.page-header .crumb a { color: inherit; }
.page-header .crumb a:hover { color: #fff; }
.page-header .crumb span.sep { margin: 0 8px; opacity: 0.5; }
.page-header .eyebrow { color: var(--green-200); }
.page-header h1 {
  color: #fff; font-size: clamp(28px, 3.6vw, 44px); font-weight: 500;
  letter-spacing: 0.1em; margin: 0 0 16px;
}
.page-header p.lead {
  color: rgba(255,255,255,0.75); margin: 0; max-width: 640px;
}

/* ------ Contact info + map ------ */
.contact-info {
  padding: var(--sp-section) 0; background: var(--bg);
}
.contact-info-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: stretch;
}
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 40px 36px;
}
.info-card h2 {
  font-size: 22px; color: var(--brand-darker); margin: 0 0 24px;
  letter-spacing: 0.06em;
}
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: var(--fs-small); line-height: 1.85;
}
.info-list li:first-child { border-top: none; padding-top: 0; }
.info-list li .label {
  color: var(--text-mid); font-size: var(--fs-caption);
  letter-spacing: 0.16em; text-transform: uppercase;
  padding-top: 2px;
}
.info-list li .value { color: var(--text); }
.info-list li .value a { color: var(--brand); }
.info-list li .value a:hover { text-decoration: underline; }

.map-frame {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  min-height: 380px; position: relative;
  display: grid; place-items: center;
  color: var(--text-mid); font-size: var(--fs-small);
  letter-spacing: 0.08em;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------ Department contact cards ------ */
.contact-depts { padding: var(--sp-section) 0; background: var(--bg-alt); }
.contact-depts .head { text-align: center; margin-bottom: 48px; }
.contact-depts h2 { color: var(--brand-darker); margin-bottom: 12px; }
.contact-depts p.lead { margin: 0 auto; }
.dept-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.dept-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 24px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.dept-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-card-hover);
  border-color: var(--green-200);
}
.dept-card .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-50); color: var(--brand);
  display: grid; place-items: center; font-size: 18px;
  margin-bottom: 18px;
}
.dept-card h4 {
  font-size: 16px; color: var(--brand-darker); margin: 0 0 4px;
  font-weight: 500; letter-spacing: 0.04em;
}
.dept-card .en {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.14em; margin-bottom: 14px; display: block;
}
.dept-card p {
  font-size: var(--fs-small); color: var(--text-mid);
  line-height: 1.85; margin: 0 0 16px;
}
.dept-card a.dept-mail {
  font-size: var(--fs-small); color: var(--brand); font-weight: 500;
  letter-spacing: 0.04em; word-break: break-all;
}
.dept-card a.dept-mail:hover { text-decoration: underline; }

/* ------ Inquiry form ------ */
.contact-form-section { padding: var(--sp-section) 0; background: var(--bg); }
.contact-form-section .head { text-align: center; margin-bottom: 48px; }
.contact-form-section h2 { color: var(--brand-darker); margin-bottom: 12px; }
.contact-form-section .head p.lead { margin: 0 auto; }
.contact-form {
  max-width: 820px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 48px;
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
}
.form-grid .span-2 { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.form-field label .req { color: var(--accent-gold); margin-left: 4px; }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit; font-size: var(--fs-body); color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-btn); background: var(--bg);
  letter-spacing: 0.03em;
  transition: border-color .15s, background .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; margin-top: 28px;
}
.form-foot .note {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.04em; flex: 1; margin: 0;
  white-space: nowrap;
}
.form-foot .note a { color: var(--brand); }

/* ------ Philosophy quote ------ */
.philosophy {
  padding: var(--sp-section) 0;
  background: var(--bg-alt);
  text-align: center;
}
.philosophy .container { max-width: 780px; }
.philosophy q {
  display: block;
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--brand-darker);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.1em;
  quotes: '「' '」';
}
.philosophy .author {
  display: block;
  margin-top: 28px;
  font-size: var(--fs-small);
  color: var(--text-mid);
  letter-spacing: 0.14em;
}

/* ------ Timeline ------ */
.timeline-section { padding: var(--sp-section) 0; background: var(--bg); }
.timeline-section .head { text-align: center; margin-bottom: 64px; }
.timeline-section .head h2 { color: var(--brand-darker); margin-bottom: 12px; }
.timeline-section .head p.lead { margin: 0 auto; }

.timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 32px;
  bottom: 8px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--green-100), var(--green-100) 96%, transparent);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  padding-bottom: 40px;
  align-items: start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.timeline-item.in-view {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--green-200);
  z-index: 1;
  transition: transform .25s ease, box-shadow .25s ease;
}
.timeline-item:hover::before {
  transform: translateX(-50%) scale(1.25);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px var(--brand);
}
.timeline-item:hover .year {
  color: var(--brand-darker);
  letter-spacing: 0.12em;
}
.timeline-item .content { padding-top: 0; }
.timeline-item:nth-child(odd) .content {
  grid-column: 1; text-align: right; padding-right: 24px;
}
.timeline-item:nth-child(even) .content {
  grid-column: 2; padding-left: 24px;
}
.timeline-item .year {
  display: inline-block;
  font-size: 22px;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  transition: color .25s ease, letter-spacing .25s ease;
}
.timeline-item p {
  color: var(--text);
  line-height: 1.85;
  margin: 0 0 6px;
  font-size: 14.5px;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.timeline-item p:last-child { margin-bottom: 0; }

/* ------ History era blocks (Quiet Break — 細線分隔、無色塊) ------ */
.era-block { margin: 0; padding: 0; }

.era-head {
  position: relative;
  text-align: center;
  padding: 96px 0 0;
  margin: 0 auto;
  max-width: 640px;
}
/* First era-head: 整體頁面起點，縮短上方留白 */
.era-block:first-of-type > .era-head { padding-top: 32px; }
.era-head .ch-no {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 20px;
}
.era-head .era-range {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--brand-darker);
  line-height: 1; margin-bottom: 14px;
}
.era-head h3 {
  font-size: 20px; color: var(--brand-darker);
  margin: 0 0 18px; letter-spacing: 0.06em;
  font-weight: 500;
}
.era-head p {
  color: var(--text); line-height: 1.95;
  margin: 0 0 10px; font-size: 14px;
}
.era-head p:last-child { margin-bottom: 0; }
.era-head .highlights {
  display: inline-block; text-align: left;
  margin: 8px 0 12px; padding: 10px 24px 10px 28px;
  border-left: 2px solid var(--green-200);
}
.era-head .highlights li {
  color: var(--text-mid); line-height: 1.85;
  font-size: 13px;
}

/* Per-era timeline：上下都多 padding 讓 spine 在第一／最後一個圓點外延伸，
   並在 .timeline::before 設置 top/bottom 留出可見斷點 */
.era-block .timeline {
  margin-top: 0;
  padding-top: 56px;
  padding-bottom: 22px;
}

/* 事件下方的小相簿（逐一事件對應、縮圖） */
.timeline-item .item-gallery {
  margin: 12px 0 2px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(202px, 1fr));
  gap: 8px;
  max-width: 432px;
}
/* 奇數列事件靠右對齊文字側 */
/* 相簿與各自對齊的文字同側：左側事件靠右、右側事件靠左 */
.timeline-item.tl-left  .item-gallery { margin-left: auto; margin-right: 0; }
.timeline-item.tl-right .item-gallery { margin-right: auto; margin-left: 0; }
/* 單張照片：縮成一張寬，靠側對齊才看得出來（左側單張→靠右） */
.timeline-item .item-gallery:has(.gallery-item:only-child) { grid-template-columns: 1fr; max-width: 331px; }
.item-gallery .gallery-item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-alt);
  transition: opacity .25s;
}
.item-gallery .gallery-item:hover { opacity: 0.92; }
.item-gallery .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}
.item-gallery .gallery-item:hover img { transform: scale(1.04); }
.item-gallery .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 8px 6px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.0) 100%);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  opacity: 0;
  transition: opacity .25s ease;
}
.item-gallery .gallery-item:hover .caption { opacity: 1; }
@media (max-width: 720px) {
  /* 時間軸手機版：收成單欄、中央線與節點移到最左，內容全部靠左 */
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; column-gap: 0; }
  .timeline-item::before { left: 7px; }
  .timeline-item:nth-child(odd) .content,
  .timeline-item:nth-child(even) .content { grid-column: 1; text-align: left; padding-left: 30px; padding-right: 0; }
  .timeline-item .item-gallery { grid-template-columns: repeat(2, 1fr); margin-left: 0 !important; margin-right: auto !important; max-width: 100%; }
  .timeline-item .item-gallery:has(.gallery-item:only-child) { max-width: 240px; }
}
/* four-co-grid 手機版：任何欄數（含 esg inline 3 欄）一律收成單欄堆疊 */
@media (max-width: 640px) {
  .four-co-grid, .four-co-grid.grid-5 { grid-template-columns: 1fr !important; gap: 0 !important; }
  .four-co-grid .co-card { border-left: none !important; padding: 22px 0 !important; border-top: 1px solid var(--line); }
  .four-co-grid .co-card:first-child { border-top: none; }
}
/* 聯絡表單頁尾手機版：說明文字改可換行、與按鈕改直排 */
@media (max-width: 600px) {
  .form-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .form-foot .note { white-space: normal; }
}
/* 首頁滿版區塊手機修正（一次涵蓋 index / en / ja 三首頁，含各自 inline 複本）*/
.fb { overflow: hidden; }   /* 裁掉 fb 進場 translateX(±42px) 造成的手機橫向溢出 */
@media (max-width: 600px) {
  /* 「關於綠十字」5 圖示改 2 欄，覆寫各 inline 的 repeat(5) */
  .pv-about-bg .pv-icorow { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 24px 14px; max-width: 340px; }
  /* 頁尾聯絡資訊手機改可換行：英日文長地址在 nowrap 下會撐爆手機（中文短不受影響）*/
  .footer-info li { white-space: normal; }
}
/* 時間軸手機單欄（用 !important 覆蓋 history/en/ja 各自 inline 的 tl-left/tl-right 交錯排版）*/
@media (max-width: 720px) {
  .timeline-flow .timeline-item.tl-left .content,
  .timeline-flow .timeline-item.tl-right .content { grid-column: 1 !important; text-align: left !important; padding-left: 30px !important; padding-right: 0 !important; }
  .timeline-flow .chapter-mark { text-align: left; max-width: none; padding-left: 30px; padding-right: 16px; }
  /* 段落改可斷行：keep-all 讓日文（無空格）整句不斷 → 撐爆手機 */
  .timeline-item p { word-break: normal !important; overflow-wrap: anywhere !important; }
}
/* 人才招募 traits 手機單欄：英日文特色名較長，2 欄放不下（!important 蓋過後方的 repeat(2) 規則）*/
@media (max-width: 480px) {
  .traits-grid { grid-template-columns: 1fr !important; }
  .trait-card { border-left: none !important; border-top: 1px solid var(--line); padding: 20px 8px; }
  .trait-card:first-child { border-top: none; }
}

.era-future {
  position: relative;
  text-align: center;
  padding: 96px 0 32px;
  margin: 0 auto;
  max-width: 640px;
}
.era-future h3 {
  font-size: 20px; color: var(--brand-darker);
  margin: 0 0 22px; letter-spacing: 0.06em;
  font-weight: 500;
}
.era-future p {
  color: var(--text); line-height: 2;
  margin: 0 auto 14px; max-width: 580px;
  font-size: 15px;
}
.era-future p:last-child { margin-bottom: 0; }

/* ------ Vision / Mission / Values ------ */
.vmv { padding: var(--sp-section) 0; background: var(--bg-alt); }
.vmv .head { text-align: center; margin-bottom: 48px; }
.vmv .head h2 { color: var(--brand-darker); margin-bottom: 12px; }
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vmv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 40px 32px;
  transition: transform .18s, box-shadow .18s;
}
.vmv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.vmv-card .label {
  display: block;
  font-size: var(--fs-eyebrow);
  color: var(--brand);
  letter-spacing: 0.22em;
  font-weight: 500;
  margin-bottom: 14px;
}
.vmv-card h3 {
  font-size: 20px;
  color: var(--brand-darker);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}
.vmv-card p {
  font-size: var(--fs-small);
  color: var(--text-mid);
  line-height: 1.95;
  margin: 0;
}

/* ------ Careers page ------ */
.culture-intro {
  padding: var(--sp-section) 0; background: var(--bg);
  text-align: center;
}
.culture-intro .container { max-width: 980px; }
.culture-intro h2 { color: var(--brand-darker); margin-bottom: 16px; }
.culture-intro .tagline {
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--brand);
  line-height: 1.7; letter-spacing: 0.1em;
  margin: 32px 0 6px;
  font-weight: 500;
}
.culture-intro .tagline-en {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.1;
  color: var(--brand-darker);
  letter-spacing: 0.005em;
  text-transform: none;
  margin: 24px 0 48px;
  cursor: default;
  transition: color .4s ease;
  /* configure draw-underline utility */
  --ul-bottom: -14px;
  --ul-width: 56%;
}
.culture-intro .tagline-en:hover { color: var(--accent-gold); }
.culture-intro p {
  color: var(--text); line-height: 1.95;
  text-align: center; max-width: 920px; margin: 0 auto 16px;
}

.four-co-section {
  padding: var(--sp-section) 0; background: var(--bg-alt);
}
.four-co-section .head { text-align: center; margin-bottom: 48px; }
.four-co-section .head h2 { color: var(--brand-darker); margin-bottom: 12px; }
.four-co-section .head p.lead { margin: 0 auto; }
/* ESG 三大主軸：灰階直幅底圖。用 ::before 疊圖並 grayscale，只灰化圖層；
   卡片本身白底、head 文字在其上仍清晰。opacity 控制底圖強弱。 */
.four-co-section.has-esg-bg { position: relative; overflow: hidden; }
.four-co-section.has-esg-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url('../assets/esg-portrait.jpg') center / contain no-repeat;
  filter: grayscale(1) contrast(1.03);
  opacity: 0.12; pointer-events: none;
}
.four-co-section.has-esg-bg > .container { position: relative; z-index: 1; }
.four-co-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1100px; margin: 0 auto;
}
.four-co-grid.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
  .four-co-grid.grid-5 { grid-template-columns: repeat(3, 1fr); gap: 32px 0; }
  .four-co-grid.grid-5 .co-card { border-left: none; padding: 0 24px; }
  .four-co-grid.grid-5 .co-card:nth-child(3n+1) { border-left: none; }
  .four-co-grid.grid-5 .co-card:nth-child(3n+2),
  .four-co-grid.grid-5 .co-card:nth-child(3n) { border-left: 1px solid var(--line); }
}
.four-co-grid .co-card {
  padding: 8px 32px;
  text-align: center;
  border-left: 1px solid var(--line);
  background: transparent;
}
.four-co-grid .co-card:first-child { border-left: none; }
.four-co-grid .co-card .num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 32px;
  color: var(--accent-gold);
  letter-spacing: 0.02em; line-height: 1;
  margin-bottom: 20px;
}
.four-co-grid .co-card h3 {
  font-size: 24px; color: var(--brand-darker);
  margin: 0 0 6px; letter-spacing: 0.18em;
}
.four-co-grid .co-card .en {
  display: block;
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 18px;
}
.four-co-grid .co-card p {
  font-size: var(--fs-small); color: var(--text-mid);
  line-height: 1.85; margin: 0;
}

/* ------ Values flip cards (vision.html 核心價值，D5 半切式) ------ */
.values-flip {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.value-flip {
  position: relative; aspect-ratio: 3 / 4; perspective: 1000px;
  cursor: pointer;
}
.value-flip .inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.value-flip:hover .inner,
.value-flip:focus-within .inner,
.value-flip.tapped .inner { transform: rotateY(180deg); }
.value-flip .face {
  position: absolute; inset: 0;
  backface-visibility: hidden; overflow: hidden;
}
.value-flip .face.front {
  background: linear-gradient(to bottom,
    var(--brand-darker) 0%, var(--brand-darker) 50%,
    #fff 50%, #fff 100%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.value-flip .top-half {
  flex: 1; padding: 24px 20px; color: #fff;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between;
}
.value-flip .num {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic;
  font-size: 38px; color: rgba(255, 255, 255, 0.9); line-height: 1;
}
.value-flip .badge-en {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500; font-style: normal;
  color: #fff;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.4;
  text-align: left; max-width: none;
  white-space: normal; word-break: keep-all;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.value-flip .bottom-half {
  flex: 1; padding: 24px 20px;
  display: flex; align-items: flex-end;
}
.value-flip .bottom-half h3 {
  margin: 0; font-size: 18px; color: var(--brand-darker);
  letter-spacing: 0.04em; line-height: 1.5;
}
.value-flip .face.back {
  transform: rotateY(180deg);
  background: var(--brand-darker); color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px; text-align: center;
}
.value-flip .face.back p {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.85; margin: 0; font-size: 14px;
}
@media (max-width: 1024px) {
  .values-flip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .values-flip { grid-template-columns: 1fr; gap: 12px; }
  .value-flip { aspect-ratio: 5 / 2; }
}

.mv-section {
  padding: var(--sp-section) 0; background: var(--bg);
}
.mv-grid {
  max-width: 1100px; margin: 0 auto;
}
.mv-row {
  display: block;
  padding: 72px 0;
  position: relative;
  text-align: left;
}
.mv-row::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 1px; background: var(--line);
  width: 0; transition: width 1.2s ease .15s;
}
.mv-row:last-child::after { display: none; }
.mv-row:first-child { padding-top: 24px; }
.mv-row:last-child { padding-bottom: 24px; }
.mv-row.in-view::after { width: 100%; }

.mv-label {
  display: flex; align-items: baseline;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.mv-label .label-en {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1; color: var(--brand-darker);
  letter-spacing: 0.01em;
  transition: color .4s ease, transform .4s ease;
}
.mv-label .label-zh {
  display: inline-block;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0.24em;
  color: var(--accent-gold); font-weight: 500;
}
.mv-row:hover .mv-label .label-en {
  color: var(--accent-gold);
  transform: translateX(8px);
}

.mv-body h3 {
  font-size: 24px; color: var(--brand-darker);
  margin: 0 0 18px; letter-spacing: 0.06em;
  font-weight: 500;
}
.mv-body p {
  color: var(--text); line-height: 1.95; margin: 0;
  max-width: 820px;
}

.benefits {
  padding: var(--sp-section) 0; background: var(--bg-alt);
}
.benefits .head { text-align: center; margin-bottom: 48px; }
.benefits .head h2 { color: var(--brand-darker); margin-bottom: 12px; }
.benefits .head p.lead { margin: 0 auto; }
.partnership .lead { margin: 18px auto 0; }
.benefit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1100px; margin: 0 auto;
  row-gap: 56px;
}
.benefit-card {
  background: transparent; border: none; border-radius: 0;
  border-left: 1px solid var(--line);
  padding: 8px 32px;
  text-align: left;
  transition: none;
}
.benefit-card:nth-child(3n+1) { border-left: none; padding-left: 0; }
.benefit-card:nth-child(3n) { padding-right: 0; }
.benefit-card:hover { transform: none; box-shadow: none; }
.benefit-card .num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 32px;
  color: var(--accent-gold);
  width: auto; height: auto; background: transparent;
  border-radius: 0; line-height: 1;
  letter-spacing: 0.02em; text-align: left;
  margin-bottom: 14px;
}
.benefit-card h3 {
  font-size: 20px; color: var(--brand-darker);
  margin: 0 0 4px; letter-spacing: 0.16em;
  font-weight: 500;
}
.benefit-card .en {
  display: block; font-size: var(--fs-caption);
  color: var(--text-mid); letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.benefit-card p.desc {
  color: var(--text-mid); font-size: var(--fs-small);
  line-height: 1.8; margin: 0 0 14px;
}
.benefit-card ul {
  list-style: none; padding: 0; margin: 0;
}
.benefit-card ul li {
  position: relative; padding-left: 22px;
  font-size: var(--fs-small);
  color: var(--text); line-height: 1.75;
  margin-bottom: 8px;
}
.benefit-card ul li:last-child { margin-bottom: 0; }
.benefit-card ul li::before {
  content: '·';
  position: absolute; left: 0; top: 0;
  width: 14px; text-align: center;
  font-size: 22px; line-height: 1.1;
  color: var(--brand); font-weight: 700;
}

.jobs {
  padding: var(--sp-section) 0; background: var(--bg);
}
.jobs .head { text-align: center; margin-bottom: 48px; }
.jobs .head h2 { color: var(--brand-darker); margin-bottom: 12px; }
.jobs .head p.lead { margin: 0 auto; }
.jobs h3.sub-head {
  font-size: 20px; color: var(--brand-darker);
  text-align: center; margin: 0 0 40px;
  letter-spacing: 0.06em; font-weight: 500;
}
.traits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1100px; margin: 0 auto 80px;
}
.trait-card {
  background: transparent; border: none; border-radius: 0;
  border-left: 1px solid var(--line);
  padding: 8px 32px;
  text-align: center;
}
.trait-card:first-child { border-left: none; }
.trait-card h4 {
  font-size: 22px; color: var(--brand-darker);
  margin: 0 0 6px; letter-spacing: 0.18em;
  font-weight: 500;
}
.trait-card .en {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 18px; display: block;
}
.trait-card p {
  font-size: var(--fs-small); color: var(--text-mid);
  line-height: 1.85; margin: 0;
}

.jobs-grid {
  display: grid; grid-template-columns: 1fr;
  max-width: 1100px; margin: 0 auto 80px;
}
.job-card {
  background: transparent; border: none; border-radius: 0;
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.job-card:first-child { border-top: none; padding-top: 16px; }
.job-card .title-row {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.job-card .title-row h4 {
  font-size: 20px; color: var(--brand-darker);
  margin: 0; font-weight: 500; letter-spacing: 0.08em;
}
.job-card .title-row .tag {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.job-card dl { margin: 0; }
.job-card dt {
  font-size: var(--fs-caption); color: var(--accent-gold);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 4px;
}
.job-card dd {
  margin: 0 0 14px;
  color: var(--text); font-size: var(--fs-small);
  line-height: 1.85;
}
.job-card dd:last-child { margin-bottom: 0; }
.job-card dd ul { margin: 4px 0 0; padding-left: 18px; }
.job-card dd ul li { margin-bottom: 6px; }
.job-card dd ul li:last-child { margin-bottom: 0; }

.talent-cta {
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 64px 0 24px;
  text-align: center; color: var(--text);
  position: relative; overflow: visible;
  max-width: 720px; margin: 0 auto;
}
.talent-cta::after { display: none; }
.talent-cta .label {
  font-size: var(--fs-eyebrow); letter-spacing: 0.22em;
  color: var(--accent-gold); display: block; margin-bottom: 14px;
  text-transform: uppercase;
}
.talent-cta h3 {
  font-size: 28px; color: var(--brand-darker);
  margin: 0 0 18px; letter-spacing: 0.06em;
  font-weight: 500;
}
.talent-cta p {
  color: var(--text-mid);
  line-height: 1.95;
  margin: 0 auto 12px;
  max-width: 560px;
}
.talent-cta p + p { margin-bottom: 32px; }
.talent-cta .btn {
  background: var(--brand); color: #fff;
}
.talent-cta .btn:hover { background: var(--brand-darker); }

/* ------ Legal / long-form prose pages ------ */
.legal {
  padding: var(--sp-section) 0; background: var(--bg);
}
.legal .container { max-width: 880px; }
.legal .meta {
  font-size: var(--fs-caption); color: var(--text-mid);
  letter-spacing: 0.08em; margin-bottom: 32px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.legal .meta strong { color: var(--text); margin-right: 6px; }
.legal section { margin-bottom: 40px; }
.legal section:last-child { margin-bottom: 0; }
.legal section h2 {
  font-size: 20px; color: var(--brand-darker); font-weight: 500;
  letter-spacing: 0.06em; margin: 0 0 16px;
  padding-left: 14px; border-left: 3px solid var(--brand);
}
.legal section h3 {
  font-size: 15px; color: var(--text); font-weight: 500;
  margin: 24px 0 8px;
}
.legal p {
  color: var(--text); line-height: 1.95; margin: 0 0 12px;
}
.legal ul, .legal ol {
  margin: 0 0 12px; padding-left: 24px;
  color: var(--text); line-height: 1.95;
}
.legal ul li, .legal ol li { margin-bottom: 6px; }
.legal a { color: var(--brand); }
.legal a:hover { text-decoration: underline; }
.legal .notice {
  background: var(--bg-alt); border-left: 3px solid var(--accent-gold);
  padding: 16px 20px; border-radius: 0 var(--r-card) var(--r-card) 0;
  font-size: var(--fs-small); color: var(--text-mid); line-height: 1.85;
  margin-bottom: 32px;
}

/* ------ Responsive ------ */
@media (max-width: 1024px) {
  .nav-links { gap: 0; }
  .nav-links a.nav-item { padding: 10px 12px; font-size: 13px; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --fs-h1: 28px; --fs-h2: 22px; --sp-section: 56px; }
  .topbar { display: none; }

  /* Mobile drawer nav */
  .nav-toggle { display: inline-flex; }
  nav.main .container { position: relative; }
  .nav-links {
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(250,250,247,0.98);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    max-height: calc(100vh - 88px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li {
    width: 100%; position: static;
    border-bottom: 1px solid var(--line);
  }
  .nav-links > li:last-child { border-bottom: none; }
  .nav-links a.nav-item {
    padding: 16px 0; font-size: 15px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .nav-links .has-sub > a::after {
    content: '+'; font-size: 22px; font-weight: 300;
    margin-left: 0; opacity: 1; vertical-align: 0;
    transition: transform .25s ease;
    color: var(--text-mid);
  }
  .nav-links .has-sub.open > a::after { transform: rotate(45deg); }

  .submenu {
    position: static; box-shadow: none; border: none;
    padding: 0 0 14px 14px; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    background: transparent; transition: none;
    display: none;
  }
  .has-sub.open .submenu { display: block; }
  .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: none; }
  .submenu a { padding: 8px 12px; font-size: 13px; }

  .lang-switch {
    margin-left: 0; padding-top: 18px;
    justify-content: center; font-size: 13px;
  }
  .hero { height: 39vw; max-height: none; min-height: 0; }
  .about-grid, .news-head { grid-template-columns: 1fr; }
  .product-cats, .cert-grid, .news-grid, .dual-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dual-card { padding: 40px 32px; min-height: 240px; }
  .scroll-cue, .hero-progress { display: none; }
  .hero-content p br { display: none; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .four-co-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .four-co-grid .co-card { border-left: none; padding: 0 24px; }
  .four-co-grid .co-card:nth-child(even) { border-left: 1px solid var(--line); }
  .mv-row { padding: 48px 0; }
  .mv-label { margin-bottom: 18px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat-card { border-left: none; }
  .stat-card:nth-child(even) { border-left: 1px solid var(--line); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .global-map-wrapper { padding: 20px; }
  .product-list, .product-related .related-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .product-item, .related-card { border-left: none; padding: 0 24px; }
  .product-item:nth-child(odd), .related-card:nth-child(odd) { padding-left: 0; }
  .product-item:nth-child(even), .related-card:nth-child(even) { border-left: 1px solid var(--line); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-image { max-width: 320px; margin: 0 auto; }
  .product-thumbs { max-width: 320px; margin: 12px auto 0; }
  .product-spec dl { grid-template-columns: 100px 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .benefit-card { border-left: none; padding: 0 24px; }
  .benefit-card:nth-child(3n+1) { padding-left: 24px; }
  .benefit-card:nth-child(3n) { padding-right: 24px; }
  .benefit-card:nth-child(odd) { border-left: none; padding-left: 0; }
  .benefit-card:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; padding-right: 0; }
  .traits-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .trait-card { border-left: none; padding: 0 24px; }
  .trait-card:nth-child(even) { border-left: 1px solid var(--line); }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card { border-left: none; padding-left: 0; padding-right: 0; }
  .job-card:nth-child(2) { border-top: 1px solid var(--line); padding-top: 40px; }
  .talent-cta { padding: 48px 24px 16px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .four-co { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .stat-card { border-left: none !important; }
  .team-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: 1fr; }
  .product-list, .product-related .related-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .product-item, .related-card { border-left: none !important; padding: 24px 0 0 !important; border-top: 1px solid var(--line); }
  .product-item:first-child, .related-card:first-child { border-top: none; padding-top: 0 !important; }
  .benefit-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .benefit-card,
  .benefit-card:nth-child(odd),
  .benefit-card:nth-child(even) { border-left: none; padding: 24px 0 0; border-top: 1px solid var(--line); }
  .benefit-card:first-child { border-top: none; padding-top: 0; }
}

/* ===== ESG 承諾：左文右圖（sticky 柔邊圖片欄，esg.html） 2026-07-31 ===== */
.esg-commitments .esg-split { display: grid; grid-template-columns: 1fr 0.82fr; gap: 60px; align-items: start; }
.esg-commitments .esg-copy .blk { margin-bottom: 34px; }
.esg-commitments .esg-copy .blk:last-child { margin-bottom: 0; }
.esg-commitments .esg-visual { position: sticky; top: 24px; }
.esg-commitments .esg-frame { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 26px 60px rgba(0, 51, 25, 0.20); }
.esg-commitments .esg-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.esg-commitments .esg-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(0, 51, 25, 0.55)); }
.esg-commitments .esg-cap { position: absolute; left: 24px; bottom: 22px; z-index: 2; color: #fff; }
.esg-commitments .esg-cap .en { font-family: 'Playfair Display', serif; font-style: italic; font-size: 15px; opacity: 0.9; }
.esg-commitments .esg-cap .zh { display: block; font-size: 18px; margin-top: 2px; letter-spacing: 0.02em; }
@media (max-width: 820px) {
  .esg-commitments .esg-split { grid-template-columns: 1fr; gap: 28px; }
  .esg-commitments .esg-visual { position: static; }
  .esg-commitments .esg-frame { aspect-ratio: 16 / 10; }
}
