/* ============================================================
   宣威企業社 官網 — 企業形象風（白底 / 主紅 #CF142B）
   設計語言參考：kaochun.com.tw（白底、直角、大字標題、深色帶、紅色 CTA）
   ============================================================ */

:root {
  /* 主色 */
  --red: #cf142b;
  --red-dark: #a80000;
  --red-soft: #ff6b7d;
  --red-tint: rgba(207, 20, 43, 0.08);

  /* 中性色 */
  --ink: #333333;
  --ink-deep: #2c2d33;
  --muted: #666666;
  --muted-2: #848484;
  --line: #e6e6e6;
  --line-soft: #eeeeee;
  --light: #f7f7f7;
  --light-2: #f1f1f1;
  --white: #ffffff;

  --radius: 8px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.09);

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;

  /* 版面 */
  --header-h: 76px;

  /* 舊變數保留（相容快取或外部引用） */
  --accent: var(--red);
  --glow: rgba(207, 20, 43, 0.25);
}

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

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

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

a { color: var(--red); text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 頂部資訊列 ===== */
.topbar {
  background: var(--ink-deep);
  color: #b9b9bd;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar-note { letter-spacing: 1px; }

.topbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  white-space: nowrap;
}

.topbar-label {
  color: #8e8e95;
  margin-right: 8px;
  font-size: 12px;
  letter-spacing: 1px;
}

.topbar-links a {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1px;
}

.topbar-links a:hover { color: var(--red-soft); }

/* ===== 導覽列 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  height: 36px;
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted-2);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--red); }

.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  flex-shrink: 0;
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px 26px;
  border-radius: 0;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(207, 20, 43, 0.26);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--red); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--red); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 115;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #1b1c20;
  padding: 88px 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 620px at 84% 6%, rgba(207, 20, 43, 0.36), transparent 62%),
    radial-gradient(820px 520px at 4% 96%, rgba(0, 122, 153, 0.22), transparent 60%),
    linear-gradient(135deg, #202226 0%, #2b2d33 46%, #17181b 100%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 28px
  );
  mask-image: radial-gradient(ellipse at 70% 20%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, black 20%, transparent 78%);
}

.hero-glow {
  position: absolute;
  right: -140px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(207, 20, 43, 0.5);
  filter: blur(110px);
  opacity: 0.55;
}

.hero-inner { position: relative; z-index: 1; }

.hero-panel {
  max-width: 780px;
  padding: 48px 44px;
  background: rgba(10, 10, 12, 0.55);
  border-left: 4px solid var(--red);
  backdrop-filter: blur(2px);
}

.hero-eyebrow {
  color: var(--red-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero-title {
  color: var(--white);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.hero-title .accent { color: var(--red-soft); font-weight: 700; }

.hero-desc {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.9;
  max-width: 620px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
}

.hero-stats li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 0 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats li:first-child { padding-left: 0; border-left: none; }

.hero-stats .stat-num {
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}

.hero-stats .stat-unit {
  color: var(--red-soft);
  font-size: 15px;
  font-weight: 700;
  margin-left: 4px;
}

.hero-stats .stat-label {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ===== 按鈕 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(207, 20, 43, 0.26);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--red);
}

.btn-white:hover {
  background: var(--ink-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--red);
}

.btn-block { display: flex; width: 100%; margin-top: 26px; }

/* ===== 通用 Section ===== */
.section { padding: 96px 0; }

.section-alt {
  background: var(--light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--ink-deep);
  color: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--red);
  margin: 22px auto 0;
}

.section-eyebrow {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.4;
  color: var(--ink);
}

.section-head h2 em { font-style: normal; color: var(--red); }

.section-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin-top: 16px;
}

.section-dark .section-head h2 { color: var(--white); }
.section-dark .section-eyebrow { color: var(--red-soft); }
.section-dark .section-desc { color: rgba(255, 255, 255, 0.7); }

.section-actions {
  text-align: center;
  margin-top: 56px;
}

/* ===== 服務卡片 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(207, 20, 43, 0.35);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  margin-bottom: 22px;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ===== 關於我們 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 18px;
}

.about-text b { color: var(--ink); }

.about-points {
  list-style: none;
  margin: 26px 0 34px;
}

.about-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ink);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 0;
}

.panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.panel-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-tint);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed #ececec;
  font-size: 15px;
}

.panel-row span { color: var(--muted); flex-shrink: 0; }
.panel-row b { color: var(--ink); font-weight: 700; text-align: right; }

.panel-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(207, 20, 43, 0.35);
  padding-bottom: 2px;
}

/* ===== 設備產品 ===== */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.product:hover {
  transform: translateY(-5px);
  border-color: rgba(207, 20, 43, 0.35);
  box-shadow: var(--shadow-md);
}

.product-visual {
  height: 160px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #f8f8f8 0%, #efeff1 100%);
  border-bottom: 1px solid var(--line);
  color: rgba(207, 20, 43, 0.85);
}

.product-visual svg {
  width: 84px;
  height: 64px;
}

.product h3 {
  margin: 22px 24px 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}

.product p {
  margin: 0 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.product-tag {
  align-self: flex-start;
  margin: 16px 24px 24px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 3px;
}

/* ===== 服務流程 ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  counter-reset: step;
}

.process-step {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 28px;
  position: relative;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 44px;
  height: 3px;
  background: var(--red);
}

.process-num {
  display: block;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--red);
  opacity: 0.9;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 10px;
}

.process-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ===== 為什麼選擇 ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.why-item:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 20, 43, 0.35);
  box-shadow: var(--shadow-md);
}

.why-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
}

.why-icon svg { width: 26px; height: 26px; }

.why-item h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 8px;
}

.why-item p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ===== 數據帶 ===== */
.stats-band {
  background: var(--light-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 60px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-item .stat-num {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--red);
}

.stats-item .stat-unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  margin-left: 4px;
}

.stats-item p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ===== 紅色 CTA ===== */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-text h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
  color: var(--white);
}

.cta-text p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

/* ===== 聯絡我們 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  padding-left: 16px;
  margin-bottom: 22px;
}

.contact-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 5px;
  height: 1.05em;
  background: var(--red);
}

.contact-list { margin: 0; }

.contact-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed #ececec;
  font-size: 15px;
}

.contact-row:last-child { border-bottom: none; }

.contact-row dt {
  color: var(--muted);
  letter-spacing: 1px;
}

.contact-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.contact-row dd a {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.contact-row dd a:hover {
  color: var(--red);
  border-color: rgba(207, 20, 43, 0.4);
}

.contact-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 26px;
}

.qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.qr-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.qr-item img {
  width: 100%;
  max-width: 168px;
  margin: 0 auto;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qr-item p {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ===== Footer ===== */
.footer {
  background: var(--ink-deep);
  color: #b9b9bd;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.3fr;
  gap: 40px;
  padding-bottom: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand .brand-mark { height: 34px; }

.footer-brand span {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-tag {
  flex-basis: 100%;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #8e8e95;
  letter-spacing: 1px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 18px;
}

.footer ul { list-style: none; }

.footer li {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 10px;
}

.footer a { color: #d9d9dd; }

.footer a:hover { color: var(--red-soft); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8e8e95;
}

.footer-top { letter-spacing: 1px; }

/* ===== 進場動畫 ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .dot { animation: none; }
}

/* ===== 響應式 ===== */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 14.5px; }
  .hero-panel { padding: 40px 34px; }
}

@media (max-width: 980px) {
  .cards, .products { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-links { gap: 18px; }
  .hero-stats li { padding: 0 22px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }
  .nav-cta { font-size: 13.5px; padding: 10px 16px; letter-spacing: 1px; }
  .brand-text { font-size: 16px; }
  .brand-mark { height: 30px; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(300px, 84vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 84px 26px 32px;
    box-shadow: -10px 0 34px rgba(0, 0, 0, 0.16);
    transform: translateX(102%);
    transition: transform 0.32s ease;
    z-index: 120;
    overflow-y: auto;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a::after { display: none; }
  .nav-links a.is-active { padding-left: 12px; }

  body.nav-open { overflow: hidden; }

  /* 選單展開時，把 header 抬到遮罩與抽屜之上，讓漢堡/關閉鈕仍可點 */
  body.nav-open .site-header { z-index: 125; }

  .hero { padding: 56px 0 64px; }
  .hero-panel { padding: 32px 24px; border-left-width: 3px; }
  .hero-desc { font-size: 15px; }
  .hero-actions { margin-bottom: 32px; }
  .hero-stats { gap: 18px 0; padding-top: 20px; }
  .hero-stats li { flex: 1 1 40%; padding: 0 18px; }
  .hero-stats li:first-child { padding-left: 0; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head::after { margin-top: 18px; }

  .cta-band { padding: 56px 0; }
  .cta-actions .btn { width: 100%; }

  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px) {
  .cards, .products, .process, .stats-inner { grid-template-columns: 1fr; }
  .topbar { font-size: 12px; }
  .topbar-label { display: none; }
  .btn { padding: 15px 26px; font-size: 15px; width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
  .contact-card { padding: 26px 22px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .product-visual { height: 140px; }
}
