/* =========================================================
   台光保險經紀人 — 官網樣式
   Palette: 深海軍藍（信任）× 暖金（光）
   ========================================================= */

:root {
  --navy-900: #0b2239;
  --navy-800: #102e4e;
  --navy-700: #164066;
  --navy-600: #1d5180;
  --navy-100: #dce8f3;
  --gold-500: #d99b2b;
  --gold-400: #e8b54a;
  --gold-700: #8a6215;
  --gold-100: #fbf0d9;
  --ink: #21323f;
  --ink-soft: #52667a;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --line: #e3eaf1;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(16, 46, 78, 0.07);
  --shadow-md: 0 10px 30px rgba(16, 46, 78, 0.12);
  --container: 1120px;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

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

:focus-visible {
  outline: 2.5px solid var(--navy-600);
  outline-offset: 2px;
  border-radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

/* ---------- 頂部聯絡列 ---------- */
.topbar {
  background: var(--navy-900);
  color: #c8d6e4;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding-block: 6px;
}
.topbar a:hover { color: #fff; }

/* ---------- 導覽列 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: 1360px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand svg, .brand img { height: 40px; width: auto; flex: none; }
.brand-name { line-height: 1.25; }
.brand-name .zh {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.brand-name .en {
  font-size: 10.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.main-nav ul {
  display: flex;
  gap: 6px;
}
.main-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--navy-700); background: var(--bg-soft); }
.main-nav a.active { color: var(--navy-700); font-weight: 700; }
.main-nav a.active::after {
  content: "";
  display: block;
  margin-top: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-400);
}
.nav-cta {
  background: var(--navy-700);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 22px !important;
}
.nav-cta:hover { background: var(--navy-600) !important; }
.nav-staff {
  border: 1.5px solid var(--navy-100);
  color: var(--navy-700) !important;
  border-radius: 999px;
  padding: 8.5px 20px !important;
}
.nav-staff:hover { border-color: var(--navy-700); background: var(--bg-soft); }
.nav-staff.active { font-weight: 700; border-color: var(--navy-700); }
.nav-staff.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-800);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(232, 181, 74, 0.28), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(29, 81, 128, 0.55), transparent 65%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 90% at 60% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-block: 108px 128px;
  max-width: 880px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--gold-400);
  border: 1px solid rgba(232, 181, 74, 0.45);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 18px;
}
.hero h1 .light { color: var(--gold-400); }
.hero .lede {
  font-size: clamp(15px, 2vw, 17.5px);
  color: #c9d8e7;
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(232, 181, 74, 0.35);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }

/* Hero 數據帶 */
.hero-stats {
  position: relative;
  margin-top: -64px;
  z-index: 5;
}
.hero-stats .grid {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat {
  padding: 26px 18px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy-700);
}
.stat .num .hl { color: var(--gold-700); }
.stat .label { font-size: 14px; color: var(--ink-soft); }

/* ---------- 區塊通用 ---------- */
.section { padding-block: 84px; }
.section.alt { background: var(--bg-soft); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head .en {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-700);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--navy-800);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3.5px;
  border-radius: 2px;
  background: var(--gold-400);
  margin: 14px auto 0;
}
.section-head p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-100), #eef4fa);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 30px; height: 30px; stroke: var(--navy-700); }
.card h3 {
  font-size: 19px;
  color: var(--navy-800);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 商品專區 ---------- */
.product-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.product-panel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.product-panel .panel-head {
  padding: 26px 30px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-panel.property .panel-head {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
}
.product-panel.life .panel-head {
  background: linear-gradient(120deg, #6b4c0f, #96701f);
}
.panel-head h3 { font-size: 21px; letter-spacing: 0.1em; }
.panel-head .en { font-size: 12px; letter-spacing: 0.18em; }
.product-panel .panel-body { padding: 26px 30px 30px; flex: 1; }
.product-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.product-list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.product-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
}
.product-panel .panel-foot { padding: 0 30px 28px; }
.text-link {
  font-weight: 700;
  color: var(--navy-700);
  font-size: 15px;
}
.text-link::after { content: " →"; }
.text-link:hover { color: var(--gold-700); }

/* ---------- 簽約保險公司 ---------- */
.partner-group { margin-bottom: 40px; }
.partner-group:last-child { margin-bottom: 0; }
.partner-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--navy-800);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.partner-group h3 .tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-700);
  background: var(--gold-100);
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.12em;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-100);
}
.partner-card .short {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.06em;
}
.partner-card .full {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* logo 牆 */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.logo-card {
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  min-height: 108px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-100);
}
.logo-card img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.logo-card .fallback {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.06em;
  text-align: center;
}
.logo-wall.life {
  grid-template-columns: repeat(4, 1fr);
  max-width: 828px;
}

/* ---------- 服務流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -16px;
  left: 22px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 4px 14px;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(217, 155, 43, 0.35);
}
.step h3 { font-size: 17px; color: var(--navy-800); margin: 6px 0 8px; letter-spacing: 0.06em; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- CTA 帶 ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(232, 181, 74, 0.25), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: 0.1em; margin-bottom: 8px; }
.cta-band p { color: #c9d8e7; font-size: 15px; }

/* ---------- 頁首橫幅（內頁） ---------- */
.page-hero {
  background:
    radial-gradient(800px 360px at 85% -20%, rgba(232, 181, 74, 0.22), transparent 60%),
    linear-gradient(130deg, var(--navy-900), var(--navy-700));
  color: #fff;
  text-align: center;
  padding-block: 72px;
}
.page-hero .en {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-400);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: 0.14em; }
.breadcrumb {
  margin-top: 14px;
  font-size: 13.5px;
  color: #a9bccf;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin-inline: 8px; opacity: 0.5; }

/* ---------- 關於我們 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid .visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(420px 280px at 82% 12%, rgba(232, 181, 74, 0.18), transparent 60%),
    linear-gradient(150deg, #ffffff, var(--navy-100));
  display: grid;
  place-items: center;
}
.about-grid .visual img { width: 52%; height: auto; }
.about-copy h2 {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--navy-800);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.about-copy h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3.5px;
  border-radius: 2px;
  background: var(--gold-400);
  margin-top: 14px;
}
.about-copy p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; }
.checklist { margin-top: 20px; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}
.checklist .tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-500);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- 里程碑 / 時間軸 ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--navy-100);
}
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px var(--gold-100);
}
.timeline .when {
  font-weight: 700;
  color: var(--navy-700);
  font-size: 15.5px;
  letter-spacing: 0.04em;
}
.timeline .what { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 產品分類頁 ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy-100), #eef4fa);
}
.category-card .icon svg { width: 28px; height: 28px; stroke: var(--navy-700); }
.category-card.gold .icon { background: linear-gradient(135deg, var(--gold-100), #fdf7e9); }
.category-card.gold .icon svg { stroke: var(--gold-500); }
.category-card h3 { font-size: 18px; color: var(--navy-800); letter-spacing: 0.05em; margin-bottom: 8px; }
.category-card p { font-size: 14px; color: var(--ink-soft); }
.category-card .items { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.category-card .items span {
  font-size: 12.5px;
  color: var(--navy-700);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
}

/* ---------- 聯絡我們 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info .item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .item:first-child { padding-top: 0; }
.contact-info .icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-100), #eef4fa);
  display: grid;
  place-items: center;
}
.contact-info .icon svg { width: 24px; height: 24px; stroke: var(--navy-700); }
.contact-info h3 { font-size: 15.5px; color: var(--navy-800); letter-spacing: 0.05em; }
.contact-info p { font-size: 14.5px; color: var(--ink-soft); }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 19px; color: var(--navy-800); letter-spacing: 0.06em; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  background: #fff;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2.5px solid var(--navy-600);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- 頁尾 ---------- */
.site-footer {
  background: var(--navy-900);
  color: #b9c8d8;
  margin-top: 84px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-block: 56px 40px;
}
.footer-brand .brand img {
  background: #fff;
  border-radius: 9px;
  padding: 5px 8px;
  height: 42px;
}
.footer-brand .brand-name .zh { color: #fff; }
.footer-brand .brand-name .en { color: #8fa5ba; }
.footer-brand p { font-size: 13.5px; margin-top: 14px; color: #8fa5ba; }
.site-footer h3 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.site-footer h3::after {
  content: "";
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gold-400);
  border-radius: 2px;
  margin-top: 8px;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 14px; color: #b9c8d8; }
.footer-links a:hover { color: var(--gold-400); }
.footer-contact li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 10px;
}
.footer-contact svg { width: 17px; height: 17px; stroke: var(--gold-400); flex: none; margin-top: 4px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  font-size: 12.5px;
  color: #7e94aa;
  text-align: center;
  line-height: 1.9;
}

/* ---------- 動畫（僅在 JS 可用時啟用，避免無 JS 環境內容隱形） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- RWD ---------- */
@media (max-width: 960px) {
  .card-grid, .category-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-wall, .logo-wall.life { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .product-cols, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero-stats .grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: 0; }
}

/* 導覽列在中等寬度即收合，避免品牌與選單擠壓重疊（9 個項目需較早收合） */
@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    z-index: 99;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .main-nav a { padding: 13px 10px; font-size: 16px; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

@media (max-width: 720px) {
  .topbar { display: none; }
  .card-grid, .category-grid, .partner-grid, .steps { grid-template-columns: 1fr; }
  .logo-wall, .logo-wall.life { grid-template-columns: repeat(2, 1fr); }
  .product-list { grid-template-columns: 1fr; }
  .hero .container { padding-block: 76px 108px; }
  .cta-band { padding: 40px 28px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}
