﻿/* ══════════════════════════════════════════════════════════
   泰元盛科技 TYS Technology — Corporate Website Stylesheet
   ─ Design Tokens ─ 風格：科技風 · 明亮 · 簡潔
   Brand Red  : #d6000f (取自 tys Tech 標誌)
   Ink/Dark   : #16181d · #1d2027（僅用於表格標頭與強調文字）
   Neutrals   : #f7f9fc / #e8ecf2 / #6b7280
   Radius     : card 16px · small 10px · pill 999px
   Spacing    : 8px base grid
   Motion     : cubic-bezier(.22,.61,.36,1), 240–600ms
   ══════════════════════════════════════════════════════════ */

:root {
  --brand: #d6000f;
  --brand-dark: #a40009;
  --brand-soft: #fdeeee;
  --ink: #16181d;
  --ink-2: #1d2027;
  --text: #23262d;
  --muted: #6b7280;
  --line: #e8ecf2;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --shadow-1: 0 1px 2px rgba(30, 41, 59, .04), 0 2px 10px rgba(30, 41, 59, .04);
  --shadow-2: 0 6px 16px rgba(30, 41, 59, .07), 0 14px 34px rgba(30, 41, 59, .08);
  --r-card: 16px;
  --r-small: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Yu Gothic UI", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ── Topbar ─────────────────────────────── */
.topbar {
  background: var(--bg-alt);
  color: #5b6472;
  font-size: .8rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar .divider { margin: 0 10px; opacity: .4; }
.topbar a:hover { color: var(--brand); }

/* 語言切換器 */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow-1);
}
.lang-switch button {
  font-family: inherit;
  font-size: .72rem; font-weight: 600; line-height: 1.6;
  color: #5b6472;
  background: none; border: 0; cursor: pointer;
  padding: 2px 11px;
  border-radius: 999px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.lang-switch button:hover { color: var(--brand); }
.lang-switch button.is-active { background: var(--brand); color: #fff; }
.lang-switch a.lang-link {
  font-family: inherit;
  font-size: .72rem; font-weight: 600; line-height: 1.6;
  color: #5b6472; padding: 4px 9px; border-radius: 6px;
  text-decoration: none; transition: color .2s, background .2s;
}
.lang-switch a.lang-link:hover { color: var(--brand); }
.lang-switch a.lang-link.is-active { background: var(--brand); color: #fff; }


/* ── i18n 語系適配 ──────────────────────── */
html[lang="en"] body { font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
html[lang="th"] body { font-family: "Leelawadee UI", "Noto Sans Thai", "Sukhumvit Set", Tahoma, system-ui, sans-serif; line-height: 1.9; }
html[lang="th"] h1 { line-height: 1.5; }
html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4 { line-height: 1.55; }
html[lang="th"] * { letter-spacing: normal !important; }
/* EN 語系：主標題已為英文，隱藏重複的靜態英文小標籤
   （.hero-en / .vq-en 於 EN 版改帶公司資訊，故保留） */
html[lang="en"] .section-en,
html[lang="en"] .sub-en,
html[lang="en"] .adv-en,
html[lang="en"] .rnd-en,
html[lang="en"] .spec-en,
html[lang="en"] .cert-en,
html[lang="en"] .fig-en,
html[lang="en"] .vw-en { display: none; }

/* ── Navigation ─────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-1); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; }
.brand-text { line-height: 1.25; }
.brand-text strong { display: block; font-size: 1.06rem; letter-spacing: .06em; color: var(--ink); }
.brand-text em { display: block; font-style: normal; font-size: .68rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 500; }
.nav-links a { position: relative; padding: 6px 0; color: var(--text); transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--brand); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 9px 20px !important; border-radius: 999px;
  transition: background .2s, transform .2s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s var(--ease); }

/* ── Hero（明亮科技風）───────────────────── */
.hero {
  position: relative;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 30%, transparent 78%);
  opacity: .55;
}
.hero-bg::before {
  content: ""; position: absolute; top: -160px; left: 50%;
  width: 720px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(214, 0, 15, .09), transparent);
}
.hero-bg::after {
  content: ""; position: absolute; right: -140px; bottom: -180px;
  width: 520px; height: 420px;
  background: radial-gradient(closest-side, rgba(214, 0, 15, .05), transparent);
}
.hero-inner { position: relative; padding: clamp(96px, 14vh, 150px) 0 clamp(90px, 12vh, 130px); text-align: center; }
.hero-kicker {
  display: inline-block;
  font-size: .82rem; letter-spacing: .14em;
  color: var(--brand-dark);
  border: 1px solid rgba(214, 0, 15, .22);
  border-radius: 999px;
  padding: 7px 20px;
  margin-bottom: 26px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
  color: var(--ink);
}
.hero-dot { color: var(--brand); margin: 0 .18em; }
.hero-sub { margin-top: 18px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: .28em; color: #39414e; }
.hero-en { margin-top: 6px; font-size: .88rem; color: #8a93a3; letter-spacing: .05em; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { margin-top: 40px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-badges li {
  font-size: .78rem; letter-spacing: .08em;
  padding: 6px 16px; border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #4c5563;
  box-shadow: var(--shadow-1);
}

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(214, 0, 15, .35); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(214, 0, 15, .42); }
.btn-ghost { border: 1px solid #c9d2df; color: var(--ink); background: #fff; box-shadow: var(--shadow-1); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ── Stats ──────────────────────────────── */
.stats { background: var(--bg); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 42px 0; }
.stat { text-align: center; padding: 8px 12px; }
.stat-num {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-label { font-size: .85rem; color: var(--muted); letter-spacing: .04em; }

/* ── Sections ───────────────────────────── */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-index {
  font-size: 2.6rem; font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
  opacity: .85;
}
.section-index.light { -webkit-text-stroke-color: rgba(214, 0, 15, .45); }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--ink); letter-spacing: .06em; }
.section-en { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sub-title { font-size: 1.25rem; color: var(--ink); margin: clamp(40px, 6vw, 64px) 0 22px; }
.sub-title:first-of-type { margin-top: 0; }
.sub-title .sub-en { font-weight: 400; font-size: .82rem; color: var(--muted); margin-left: 10px; letter-spacing: .1em; }

/* ── About ──────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.about-copy p { margin-bottom: 16px; color: #3a3f49; }
.about-copy strong { color: var(--brand); font-weight: 700; }
.about-sites { display: grid; gap: 16px; }
.site-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.site-flag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.site-card h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 6px; }
.site-card p { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* 認證牆 */
.cert-block {
  margin-top: clamp(44px, 6vw, 64px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-1);
}
.cert-title { font-size: 1.15rem; color: var(--ink); margin-bottom: 22px; }
.cert-title span { font-weight: 400; font-size: .8rem; color: var(--muted); margin-left: 10px; letter-spacing: .1em; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  padding: 14px;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cert-card img { width: 100%; height: 210px; object-fit: contain; background: #fff; border-radius: 6px; }
.cert-card figcaption { margin-top: 10px; font-size: .88rem; font-weight: 700; color: var(--ink); }
.cert-card figcaption span { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }

/* ── Timeline ───────────────────────────── */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.timeline::before {
  content: "";
  position: absolute; top: 9px; left: 2%; right: 2%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), #f0b7ba);
  border-radius: 2px;
}
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--brand);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.tl-date { font-weight: 800; color: var(--brand); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1rem; color: var(--ink); margin: 6px 0 8px; }
.timeline p { font-size: .84rem; color: var(--muted); line-height: 1.7; }

/* ── Advantages ─────────────────────────── */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(214,0,15,.25); }
.adv-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.adv-icon svg { width: 26px; height: 26px; }
.adv-card h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 10px; }
.adv-card h3 span { display: block; font-size: .74rem; font-weight: 500; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.adv-card p { font-size: .88rem; color: #4b5563; }

/* ── Applications ───────────────────────── */
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.app-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.app-card img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: contain; background: #fff; padding: 12px; }
.app-card figcaption {
  padding: 12px 14px;
  font-size: .88rem; font-weight: 700; color: var(--ink);
  border-top: 1px solid var(--line);
  background: #fff;
}
.app-card figcaption span { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); letter-spacing: .06em; }

/* ── Tabs ───────────────────────────────── */
.tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); overflow: hidden; }
.tab-bar { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.tab-btn {
  flex: 1 1 auto;
  padding: 16px 18px;
  font-size: .95rem; font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--brand); }
.tab-btn.is-active { color: var(--brand); border-bottom-color: var(--brand); background: #fff; }
.tab-panel { display: none; padding: clamp(22px, 3.5vw, 36px); }
.tab-panel.is-active { display: block; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-desc { color: #3a3f49; margin-bottom: 24px; max-width: 60em; }
.tab-desc .en { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* 產品卡格 */
.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.prod-card img { width: 100%; aspect-ratio: 1 / .92; object-fit: contain; padding: 10px; }
.prod-card figcaption {
  padding: 10px 12px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* 耐高壓/發泡版面 */
.hv-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(22px, 3vw, 36px); align-items: start; }
.hv-gallery { display: grid; gap: 16px; }
.hv-photo {
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  overflow: hidden;
  background: #fff;
}
.hv-photo img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; }
.hv-photo figcaption { padding: 10px 14px; font-size: .84rem; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); }
.hv-spec h4 { font-size: 1.02rem; color: var(--ink); margin-bottom: 12px; }
.hv-spec h4 span { font-weight: 400; font-size: .78rem; color: var(--muted); margin-left: 8px; }
.hv-apps { margin-top: 26px; }
.app-list { display: grid; gap: 10px; }
.app-list li {
  position: relative;
  padding: 10px 14px 10px 16px;
  background: var(--bg-alt);
  border-radius: var(--r-small);
  font-size: .88rem;
  color: #3a3f49;
}
.app-list li::before {
  content: "";
  position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 4px; border-radius: 4px;
  background: var(--brand);
}
.app-list strong { color: var(--ink); }

/* ── Tables ─────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-small); background: #fff; }
.spec-table, .equip-table, .contact-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.spec-table th, .spec-table td,
.equip-table th, .equip-table td,
.contact-table th, .contact-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th, .equip-table thead th, .contact-table thead th {
  background: var(--ink-2);
  color: #fff;
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .05em;
  white-space: nowrap;
}
.spec-table tbody tr:nth-child(even), .equip-table tbody tr:nth-child(even), .contact-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.spec-table .hl td { background: var(--brand-soft); font-weight: 700; color: var(--brand-dark); }
.spec-table td:last-child { font-weight: 700; color: var(--ink); }
.equip-table .en { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; }
.equip-table td:last-child { color: #3a3f49; }

/* ── Logo wall ──────────────────────────── */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow-1);
}
.logo-wall img {
  height: 52px; width: 100%;
  object-fit: contain;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  background: #fff;
  filter: grayscale(12%);
  transition: filter .25s, transform .25s var(--ease), box-shadow .25s;
}
.logo-wall img:hover { filter: none; transform: translateY(-3px); box-shadow: var(--shadow-1); }

/* ── R&D ────────────────────────────────── */
.rnd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rnd-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-1);
}
.rnd-card h4 { font-size: 1.08rem; color: var(--ink); margin-bottom: 16px; }
.rnd-card h4 span { font-weight: 400; font-size: .78rem; color: var(--muted); margin-left: 8px; }
.rnd-card > p { font-size: .88rem; color: #4b5563; margin-top: 16px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li {
  font-size: .78rem; font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 5px 14px;
}
.edme-list { display: grid; gap: 10px; }
.edme-list li {
  background: var(--bg-alt);
  border-radius: var(--r-small);
  padding: 10px 14px;
  font-size: .86rem;
  color: #3a3f49;
}
.edme-list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.lab-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 22px; }
.lab-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.lab-card img { width: 100%; aspect-ratio: 1 / .95; object-fit: contain; padding: 8px; }
.lab-card figcaption { padding: 9px 10px; font-size: .78rem; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); text-align: center; }

/* 產能表格區 */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.cap-title { font-size: .98rem; color: var(--ink); margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--brand); }
.cap-grid .equip-table { min-width: 460px; }

/* 模具帶（明亮版）*/
.mold-band {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  background: linear-gradient(120deg, #ffffff 0%, #fdf1f2 100%);
  border: 1px solid rgba(214, 0, 15, .14);
  border-radius: var(--r-card);
  padding: clamp(22px, 3.5vw, 36px);
  color: #3a3f49;
}
.mold-band h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.mold-band h4 span { font-weight: 400; font-size: .76rem; color: var(--muted); margin-left: 8px; }
.mold-band p { font-size: .88rem; color: #4b5563; }
.mold-band strong { color: var(--brand); }
.mold-band .chip-list li { background: #fff; color: var(--brand-dark); border: 1px solid rgba(214, 0, 15, .16); }

/* 工廠實景 */
.factory-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.fac-card {
  border-radius: var(--r-small);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
}
.fac-card img { width: 100%; aspect-ratio: 4 / 2.9; object-fit: cover; transition: transform .5s var(--ease); }
.fac-card:hover img { transform: scale(1.05); }
.fac-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: .8rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(22,24,29,.78));
}

/* ── Vision（明亮版）────────────────────── */
.vision {
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f3 100%);
  color: var(--ink);
  padding: clamp(70px, 10vw, 110px) 0;
  text-align: center;
}
.vision h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: .3em; margin: 14px 0 38px; color: var(--ink); }
.vision-words { display: flex; justify-content: center; gap: clamp(24px, 6vw, 72px); flex-wrap: wrap; }
.vision-words li { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: .22em; color: var(--brand); }
.vision-words li span { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .28em; color: #a3696e; margin-top: 6px; text-transform: uppercase; }
.vision-quote { margin-top: 44px; font-size: 1.02rem; letter-spacing: .1em; line-height: 2; color: #39414e; }
.vision-quote span { font-size: .82rem; color: #8a93a3; letter-spacing: .06em; }

/* ── Contact ────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 26px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.contact-card h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 10px; position: relative; padding-left: 14px; }
.contact-card h3::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--brand); }
.contact-card p { font-size: .87rem; color: var(--muted); }
.c-tel { margin-top: 10px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.contact-table a { color: var(--brand); font-weight: 600; }
.contact-table a:hover { text-decoration: underline; }
.contact-cta {
  margin-top: 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.contact-cta span { font-size: .9rem; color: var(--muted); }

/* 雙網址卡片 */
.web-urls {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.web-urls a {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 24px;
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.web-urls a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: rgba(214, 0, 15, .3); }
.web-urls svg { width: 30px; height: 30px; color: var(--brand); flex-shrink: 0; }
.web-urls strong { font-size: 1.08rem; color: var(--ink); letter-spacing: .02em; }
.web-urls span { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 768px) {
  .web-urls { grid-template-columns: 1fr; }
}

/* ── Footer（明亮版）────────────────────── */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); color: #5b6472; font-size: .88rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(44px, 6vw, 64px) 0 36px;
}
.footer-logo { height: 52px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 16px; width: auto; }
.footer-brand p { line-height: 1.9; color: #39414e; }
.footer-brand p span { font-size: .88rem; color: #5b6472; }
.footer-col h4 { color: var(--ink); font-size: .95rem; margin-bottom: 14px; letter-spacing: .08em; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0 22px; font-size: .78rem; color: #8a93a3; }

/* ── Back to top ────────────────────────── */
.back-top {
  position: fixed; right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(214,0,15,.4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease);
  z-index: 90;
}
.back-top svg { width: 20px; height: 20px; }
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brand-dark); }

/* ── Reveal animation ───────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ══════════════ Responsive ══════════════ */
@media (max-width: 1024px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .timeline::before { display: none; }
  .timeline li { padding-top: 0; padding-left: 30px; }
  .timeline li::before { top: 4px; }
  .cap-grid { grid-template-columns: 1fr; }
  .lab-strip { grid-template-columns: repeat(3, 1fr); }
  .factory-strip { grid-template-columns: repeat(2, 1fr); }
  .hv-layout { grid-template-columns: 1fr; }
  .rnd-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-url, .topbar-url-divider { display: none; }
  .lang-switch { margin-left: 8px; }
  .lang-switch button { padding: 2px 8px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 32px 40px;
    gap: 8px;
    box-shadow: var(--shadow-2);
    z-index: 99;
    overflow-y: auto;
  }
  .nav-links.is-open { display: flex; animation: drawerIn .32s var(--ease); }
  @keyframes drawerIn {
    from { transform: translateX(30%); opacity: .5; }
    to { transform: none; opacity: 1; }
  }
  .nav-links a { font-size: 1.05rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; }
  .nav-toggle { display: block; position: relative; z-index: 100; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .lab-strip { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .mold-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tab-btn { flex: 1 1 45%; white-space: normal; }
}
@media (max-width: 560px) {
  .adv-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat { padding: 4px 6px; }
  .hero-sub { letter-spacing: .14em; }
}

/* cert-title badge (國家高新技術企業) */
.cert-title { display: flex; align-items: center; gap: 14px; }
.cert-badge { height: 56px; width: auto; margin-left: auto; }

/* ══════════════ 去背圖片渲染美化（透明 PNG 主體陰影）══════════════ */
.app-card img,
.prod-card img,
.lab-card img,
.hv-photo img {
  filter: drop-shadow(0 4px 10px rgba(22, 24, 29, .10));
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.prod-card:hover img,
.app-card:hover img,
.lab-card:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 10px 18px rgba(22, 24, 29, .16));
}
/* hv 相冊：去背主體改為 contain 置中懸浮於淡漸層底 */
.hv-photo img {
  object-fit: contain;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}
/* Logo 與高新徽章：淡陰影提昇立體感 */
.brand-logo, .footer-logo, .cert-badge {
  filter: drop-shadow(0 1px 3px rgba(22, 24, 29, .12));
}
/* 保留攝影棚原圖（不去背）：取消主體陰影，改卡片內陰影 */
.hv-photo img.photo-keep {
  filter: none;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(22, 24, 29, .08);
}
/* 應用場景實照（手機&電腦／家用電器）：cover 填滿卡片比例，不做去背 */
.app-card img.app-photo {
  object-fit: cover;
  padding: 0;
  filter: none;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(22, 24, 29, .08);
}
.app-card:hover img.app-photo { filter: none; }
/* 產品拼貼實照（廚具/生活用品）：白底合成圖，停用主體陰影 */
.prod-card img.prod-photo { filter: none; }

/* ══════════════ 手機版優化（2026-11-09 接管維護）══════════════ */
.hv-photo picture { display: block; width: 100%; }
.hv-photo picture img { width: 100%; display: block; }
img, video { max-width: 100%; }
@media (max-width: 768px) {
  .hv-photo img.photo-keep { aspect-ratio: 4 / 5; object-fit: cover; padding: 0; }
  .hero-inner { padding-top: clamp(80px, 12vh, 120px); padding-bottom: clamp(70px, 10vh, 100px); }
  .tab-panel { padding: 18px; }
}
