/* ===========================================================
   Pro-Pure 淳靖股份有限公司 企業官網核心樣式表
   配色系統：企業深藍 + 工業橘
   =========================================================== */

:root {
  --navy: #0F2A4A;
  --navy-2: #16365C;
  --navy-3: #1E4877;
  --accent: #E8722A;
  --accent-2: #C85F1F;
  --accent-soft: #FCEBDD;
  --on-accent: #FFFFFF;

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E2E8F0;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.18);

  --maxw: 1240px;
  --font-body: "Noto Sans TC", system-ui, -apple-system, sans-serif;
}

html[lang="zh-Hant-TW"] {
  --font-body: "Noto Sans TC", system-ui, -apple-system, sans-serif;
}
html[lang="zh-Hans-CN"] {
  --font-body: "Noto Sans SC", system-ui, -apple-system, sans-serif;
}
html[lang="en"] {
  --font-body: "Open Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
  width: 100%;
}

picture img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-family: "Poppins", var(--font-body);
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 鍵盤無障礙快速跳越 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 20px;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease-in-out;
}
.skip-link:focus {
  top: 20px;
}

/* ---------- 容器與版面 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(60px, 8vw, 96px) 0;
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.bg-surface { background: var(--surface); }
.bg-soft { background: var(--surface-2); }
.bg-navy { background: var(--navy); color: #fff; }

/* ---------- 標題與標籤 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B34E12;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--navy);
  font-weight: 800;
}
.bg-navy .section-title {
  color: #fff;
}

.section-sub {
  color: var(--muted);
  margin-top: 14px;
  font-size: 17px;
  max-width: 720px;
}
.bg-navy .section-sub {
  color: #cbd5e1;
}

.section-head {
  margin-bottom: 48px;
}
.section-head--center {
  text-align: center;
}
.section-head--center .eyebrow {
  justify-content: center;
}
.section-head--center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 按鈕元件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn-accent {
  background: #BF5515;
  color: var(--on-accent);
}
.btn-accent:hover {
  background: #A64810;
  box-shadow: 0 4px 14px rgba(191, 85, 21, 0.35);
}
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover {
  background: var(--navy-2);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--surface-2);
}
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- 頂部 Topbar ---------- */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}
.topbar a {
  color: #e2e8f0;
  transition: color 0.2s;
}
.topbar a:hover {
  color: #fff;
}
.topbar .tb-group {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar .tb-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

/* ---------- 導覽列 Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  height: 44px;
  width: auto;
  display: block;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-name span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-2);
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu > a {
  position: relative;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.menu > a:hover,
.menu > a[aria-current="page"] {
  color: var(--accent-2);
  background: var(--surface-2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 語系切換器 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.lang-switch {
  flex-shrink: 0;
}
.lang-switch a {
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}
.lang-switch a:hover {
  color: var(--navy);
}
.lang-switch a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--navy);
}

/* 手機版選單抽屜 */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: block;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mobile-menu a {
  display: block;
  padding: 14px 24px;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--border);
}
.mobile-menu a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--accent-2);
}

/* ---------- 首頁 Hero ---------- */
.hero-home {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 42, 74, 0.94) 0%, rgba(22, 54, 92, 0.90) 50%, rgba(30, 72, 119, 0.88) 100%),
              url('/assets/img/prod-air-compressor.webp') center/cover no-repeat;
  color: #fff;
  padding: clamp(64px, 9vw, 110px) 0;
  overflow: hidden;
}
.hero-home .hero-content {
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 114, 42, 0.3);
}
.hero-home h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-home h1 .hl {
  color: var(--accent);
}
.hero-home .hero-lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: #e2e8f0;
  margin-top: 18px;
  line-height: 1.6;
}
.hero-home .hero-desc {
  font-size: 16px;
  color: #cbd5e1;
  margin-top: 14px;
  max-width: 700px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* 首頁核心數據卡 (4 cards) */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.hero-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-stat-card .num {
  font-family: "Poppins", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-stat-card .num span {
  color: var(--accent);
}
.hero-stat-card .title {
  font-weight: 700;
  font-size: 15px;
  color: #e2e8f0;
  margin-top: 8px;
}
.hero-stat-card .desc {
  font-size: 13.5px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------- 內頁 Page Head ---------- */
.page-head {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  padding: clamp(48px, 6vw, 68px) 0;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.page-head .container {
  position: relative;
  z-index: 1;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 14px;
}
.crumb a {
  color: #cbd5e1;
  transition: color 0.2s;
}
.crumb a:hover {
  color: #fff;
}
.crumb svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}
.page-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}
.page-head p {
  color: #cbd5e1;
  margin-top: 12px;
  max-width: 680px;
  font-size: 16.5px;
}

/* ---------- 關於頁面圖文區塊 ---------- */
.split-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.split-row--reverse {
  grid-template-columns: 0.85fr 1.15fr;
}
.split-row--reverse > :first-child {
  order: 2;
}
.split-row--reverse > :last-child {
  order: 1;
}

.text-block p {
  font-size: 16px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 18px;
}
.text-block p:last-child {
  margin-bottom: 0;
}

.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---------- 合作夥伴區塊 ---------- */
.partner-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

/* ---------- 三大優勢卡片 ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.advantage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.advantage-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.advantage-card .num-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.advantage-card h3 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 12px;
}
.advantage-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 願景與使命兩欄 ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.vm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.vm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
}
.vm-card h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vm-card h3 svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.vm-card p {
  font-size: 16px;
  color: #334155;
  line-height: 1.8;
}

/* ---------- 產品頁面專用樣式 ---------- */
/* 錨點快捷選單 */
.prod-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.prod-nav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.prod-nav-card svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.prod-nav-card:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.prod-nav-card:hover svg {
  color: var(--accent);
}

/* 產品區塊條列 */
.prod-block {
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.prod-block:last-of-type {
  border-bottom: none;
}
.prod-header {
  margin-bottom: 20px;
}
.prod-header .en-title {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.prod-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
}

/* ---------- 品質管理頁面專用樣式 ---------- */
.quality-lead-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}
.quality-lead-card h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--navy);
  margin-bottom: 16px;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.lab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.lab-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.lab-card .ic svg {
  width: 24px;
  height: 24px;
}
.lab-card h4,
.lab-card h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}
.lab-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* 六國專利證書與徽章 */
.patents-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.country-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
}
.country-badge .flag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- 聯絡我們頁面專用樣式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.contact-card-box h2 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 24px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-item .icon-box svg {
  width: 22px;
  height: 22px;
}
.contact-item .item-content {
  flex: 1;
}
.contact-item .label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}
.contact-item a.value:hover {
  color: var(--accent);
  text-decoration: underline;
}
.contact-item .sub-value {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}

.map-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.map-frame {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
}
.map-footer {
  padding: 16px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- 404 頁面專用樣式 ---------- */
.error-hero {
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
}
.error-code {
  font-family: "Poppins", sans-serif;
  font-size: clamp(72px, 12vw, 130px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
}
.error-code span {
  color: var(--accent);
}
.error-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--navy);
  margin: 16px 0 12px;
}
.error-desc {
  color: var(--muted);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 32px;
}
.lang-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 底部 CTA 橫幅 ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 12px;
}
.cta-banner p {
  color: #cbd5e1;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 28px;
}
.cta-banner .actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 頁尾 Footer ---------- */
.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4,
.footer-col .footer-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.footer-col a {
  color: #cbd5e1;
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-brand {
  margin-bottom: 16px;
}
.footer-brand .brand-name {
  color: #fff;
}
.footer-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 320px;
  margin-top: 14px;
}
.footer-contact-li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 14px;
}
.footer-contact-li svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #94a3b8;
}

/* ---------- 動態淡入 (Reveal) ---------- */
/* ponytail: 內容預設「一定看得見」。淡入只在 :not(.reveal-in) 時隱藏，
   JS 加上 reveal-in 後選擇器就不再匹配 → 恢復可見；無 JS 也天生可見。
   絕不再用高優先級規則把內容壓成透明（2026-09-12 空白頁事故根因）。 */
.reveal {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal:not(.reveal-in) {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js .reveal:not(.reveal-in) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- RWD 響應式佈局 ---------- */
@media (max-width: 1080px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  .lab-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .prod-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .split-row,
  .split-row--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-row--reverse > :first-child {
    order: 1;
  }
  .split-row--reverse > :last-child {
    order: 2;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .vm-grid {
    grid-template-columns: 1fr;
  }
  .map-frame {
    height: 350px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 50px 0;
  }
  .menu {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .brand-name {
    display: none;
  }
  .hide-sm {
    display: none !important;
  }
  .topbar .container {
    justify-content: center;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .lab-grid {
    grid-template-columns: 1fr 1fr;
  }
  .prod-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .prod-nav-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
}
