/* ==========================================================================
   永盛徵信社 — 前台設計系統
   無建置流程、單一檔案，優先考量 Core Web Vitals 與可讀性
   ========================================================================== */

:root {
  /* 主色：深藏青，傳達沉穩可信 */
  --navy-900: #0d1b2a;
  --navy-800: #12263a;
  --navy-700: #1b3a53;
  --navy-600: #24506f;
  --navy-100: #e8eef4;

  /* 輔色：金銅，用於強調與 CTA */
  --gold-600: #a8802c;
  --gold-500: #c9a227;
  --gold-400: #e0bf5a;
  --gold-100: #faf3de;

  --ink: #1c1f23;
  --ink-soft: #4a5158;
  --ink-mute: #767f88;
  --line: #e3e7eb;
  --paper: #ffffff;
  --paper-2: #f7f9fb;
  --paper-3: #eef2f6;

  --danger: #c0392b;
  --ok: #2e7d5b;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 1px 3px rgba(13, 27, 42, .04);
  --shadow: 0 4px 12px rgba(13, 27, 42, .08), 0 2px 4px rgba(13, 27, 42, .04);
  --shadow-lg: 0 18px 40px rgba(13, 27, 42, .14);

  --container: 1200px;
  --header-h: 76px;

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ───────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* 行動版側邊選單以 translateX(100%) 收在畫面外，不夾住的話整份文件會被撐寬 */
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 中英數混排時避免長字串撐破容器 */
  overflow-wrap: break-word;
  word-break: break-word;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy-900);
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--navy-900); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ── Layout ──────────────────────────────────────────────────────── */

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 40px, 860px); margin-inline: auto; }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--navy-900); color: #cfd8e3; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* 區塊標題 */
.sec-head { margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head--center { text-align: center; }

.sec-eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.section--dark .sec-eyebrow { color: var(--gold-400); }

.sec-title {
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  margin-bottom: 14px;
}
.sec-title::after {
  content: "";
  display: block;
  width: 52px; height: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 2px;
}
.sec-head--center .sec-title::after { margin-inline: auto; }

.sec-lead {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}
.sec-head--center .sec-lead { margin-inline: auto; }
.section--dark .sec-lead { color: #a9b7c6; }

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9688rem;
  letter-spacing: .02em;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-400); box-shadow: var(--shadow); }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }

.btn-outline { border-color: currentColor; color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-900); }

.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b34c; }

.btn-lg { padding: 16px 34px; font-size: 1.0313rem; }
.btn-block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--navy-700);
}
.link-more::after { content: "→"; transition: transform .2s var(--ease); }
.link-more:hover { color: var(--gold-600); }
.link-more:hover::after { transform: translateX(4px); }

/* ── Header ──────────────────────────────────────────────────────── */

.topbar {
  background: var(--navy-900);
  color: #b8c5d3;
  font-size: .8125rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 16px; min-height: 38px; flex-wrap: wrap;
}
/* 觸控可點範圍至少 32px 高 */
.topbar a {
  color: #d7e0ea;
  display: inline-block;
  padding: 7px 0;
  line-height: 1.4;
}
.topbar a:hover { color: var(--gold-400); }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact strong { color: var(--gold-400); font-weight: 700; }
.topbar-social { display: flex; gap: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: auto; height: 52px; }
.brand-text { display: none; }

.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block;
  padding: 10px 13px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.main-nav a:hover { background: var(--navy-100); color: var(--navy-900); }
.main-nav a[aria-current="page"] { color: var(--gold-600); font-weight: 700; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 520px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s var(--ease);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { font-size: .875rem; padding: 8px 10px; white-space: nowrap; }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--navy-800); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 20px; height: 2px; background: var(--navy-800);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ── Hero ────────────────────────────────────────────────────────── */

.hero { position: relative; background: var(--navy-900); overflow: hidden; }

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(13, 27, 42, .93) 0%,
    rgba(13, 27, 42, .82) 42%,
    rgba(13, 27, 42, .45) 100%);
}

.hero-body {
  position: relative; z-index: 2;
  display: grid;
  align-items: center;
  min-height: clamp(480px, 74vh, 660px);
  padding: 72px 0;
}
.hero-content { max-width: 660px; color: #fff; }

.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(224, 191, 90, .5);
  border-radius: 100px;
  background: rgba(201, 162, 39, .12);
  color: var(--gold-400);
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.28;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--gold-400); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: #c9d5e2;
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: .9063rem; color: #b9c7d6;
}
.hero-trust svg { flex-shrink: 0; color: var(--gold-400); }

.hero-dots {
  position: absolute; z-index: 3;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 28px; height: 4px; padding: 0;
  border: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .3);
  transition: background-color .25s var(--ease);
}
.hero-dots button[aria-current="true"] { background: var(--gold-500); }

/* ── 信任指標 ─────────────────────────────────────────────────────── */

.trust-strip {
  background: var(--navy-800);
  color: #fff;
  border-top: 3px solid var(--gold-500);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
}
.trust-item {
  background: var(--navy-800);
  padding: 26px 20px;
  text-align: center;
}
.trust-num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.trust-label { font-size: .875rem; color: #a9b8c8; margin-top: 4px; }

/* ── Cards ───────────────────────────────────────────────────────── */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 20px 22px 24px; }
.card-title { font-size: 1.0625rem; margin-bottom: 8px; }
.card-text { font-size: .9063rem; color: var(--ink-soft); line-height: 1.7; }

/* 服務卡片 */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .card-body { display: flex; flex-direction: column; flex: 1; }
.service-card .card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.service-card .card-title::after {
  content: "→";
  color: var(--gold-600);
  transition: transform .2s var(--ease);
}
.service-card:hover .card-title::after { transform: translateX(4px); }

/* ── 關於我們 ─────────────────────────────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-figure::before {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
  z-index: -1;
}
.about-points { display: grid; gap: 14px; margin: 26px 0 30px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.about-points svg { flex-shrink: 0; margin-top: 4px; color: var(--gold-600); }
.about-points strong { display: block; color: var(--navy-900); }
.about-points span { font-size: .9375rem; color: var(--ink-soft); }

/* ── 委託流程 ─────────────────────────────────────────────────────── */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 28px 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 1.75rem; font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.step h3 { font-size: 1.0313rem; margin-bottom: 8px; }
.step p { font-size: .875rem; color: var(--ink-soft); line-height: 1.7; }

/* ── 收費表 ──────────────────────────────────────────────────────── */

.table-wrap {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scrollbar-width: thin;
  /* 右緣漸層：暗示表格還有內容可以往右滑，捲到底時自動消失 */
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(13, 27, 42, .14), transparent) left center / 14px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(13, 27, 42, .14), transparent) right center / 14px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}

/* 手機才顯示的文字提示 */
.table-hint {
  display: none;
  margin: 10px 2px 0;
  font-size: .8125rem;
  color: var(--ink-mute);
}
.table-hint::before { content: "↔ "; color: var(--gold-600); }
.price-table { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
.price-table th, .price-table td {
  padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.price-table thead th {
  background: var(--navy-800); color: #fff;
  font-weight: 600; font-size: .875rem;
  letter-spacing: .04em; white-space: nowrap;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: var(--paper-2); }
.price-table .price-name { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.price-table .price-amount { color: var(--gold-600); font-weight: 700; white-space: nowrap; }

/* ── 案例 / 新聞列表 ──────────────────────────────────────────────── */

.post-list { display: grid; gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.post-row {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 20px; align-items: center;
  padding: 20px 24px;
  background: #fff;
  transition: background-color .18s var(--ease);
}
.post-row:hover { background: var(--paper-2); }
.post-date {
  font-size: .8125rem; color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.post-title { font-size: 1rem; font-weight: 600; color: var(--navy-900); }
.post-row:hover .post-title { color: var(--gold-600); }
.post-tag {
  font-size: .75rem; padding: 3px 10px; border-radius: 100px;
  background: var(--navy-100); color: var(--navy-700); white-space: nowrap;
}

.case-card .card-body { padding: 22px 24px 26px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.case-chip {
  font-size: .75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: var(--gold-100); color: var(--gold-600);
}
.case-chip--region { background: var(--navy-100); color: var(--navy-700); }

/* ── 團隊 ────────────────────────────────────────────────────────── */

.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.team-item { text-align: center; }
.team-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.team-name { display: block; margin-top: 12px; font-weight: 700; font-size: .9375rem; }
.team-role { font-size: .8125rem; color: var(--ink-mute); }

/* ── FAQ（AEO 核心區塊） ──────────────────────────────────────────── */

.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq-item[open] { border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-weight: 700; font-size: 1.0313rem; color: var(--navy-900);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem; font-weight: 400; line-height: 1;
  color: var(--gold-600);
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-soft); font-size: .9688rem; line-height: 1.85;
  border-top: 1px solid var(--paper-3);
  padding-top: 16px;
  margin: 0 22px 20px;
}
.faq-answer :is(p, ul, ol) { margin-bottom: .8em; }
.faq-answer :last-child { margin-bottom: 0; }

/* ── 服務地區（GEO 核心區塊） ─────────────────────────────────────── */

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.area-link {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  font-size: .9375rem; color: #d5dfe9;
  transition: all .18s var(--ease);
}
.area-link:hover {
  background: rgba(201, 162, 39, .14);
  border-color: var(--gold-500);
  color: #fff;
}
.area-link svg { flex-shrink: 0; color: var(--gold-400); }

/* ── 合作單位 ─────────────────────────────────────────────────────── */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.partner-item {
  display: flex; align-items: center; justify-content: center;
  height: 84px; padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all .2s var(--ease);
}
/* 各家 logo 原圖尺寸不一，用固定盒子 + contain 統一視覺高度 */
.partner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.partner-item:hover { border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.partner-item:hover img { filter: none; opacity: 1; }

/* ── CTA ─────────────────────────────────────────────────────────── */

.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, .22), transparent 55%);
}
.cta-band > .container { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.15rem); margin-bottom: 14px; }
.cta-band p { color: #c2cedb; max-width: 60ch; margin-inline: auto; margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────── */

.site-footer { background: var(--navy-900); color: #93a3b4; font-size: .9063rem; }
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) 0 44px;
}
.footer-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .875rem; line-height: 1.8; }
.footer-title {
  color: #fff; font-size: 1rem; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: relative;
}
.footer-title::after {
  content: ""; position: absolute; bottom: -1px; left: 0;
  width: 36px; height: 2px; background: var(--gold-500);
}
.footer-menu li { margin-bottom: 9px; }
.footer-menu a:hover { color: var(--gold-400); }

.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 5px; color: var(--gold-500); }
.footer-contact a:hover { color: var(--gold-400); }
.footer-contact strong { color: #fff; display: block; font-size: 1.0625rem; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }

.footer-areas {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem; line-height: 2;
}
.footer-areas a { color: #7f8ea0; }
.footer-areas a:hover { color: var(--gold-400); }

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  font-size: .8125rem; color: #6f7f92;
}
.footer-bottom a:hover { color: var(--gold-400); }

/* ── 行動版浮動聯絡列 ─────────────────────────────────────────────── */

.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
}
.mobile-bar ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px;
  font-size: .6875rem; color: #cbd6e2;
}
.mobile-bar a svg { color: var(--gold-400); }
.mobile-bar a.is-primary { background: var(--gold-500); color: var(--navy-900); }
.mobile-bar a.is-primary svg { color: var(--navy-900); }

/* ── RWD ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 主選單 9 個項目 + CTA 按鈕，寬度低於 1150px 就換成側邊抽屜，
   否則文字會被擠成兩行 */
@media (max-width: 1150px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 auto;
    width: min(320px, 84vw);
    background: #fff;
    border-left: 1px solid var(--line);
    padding: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .28s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { display: block; }
  .main-nav a { padding: 13px 12px; border-bottom: 1px solid var(--paper-3); border-radius: 0; }
  .dropdown {
    position: static; min-width: 0; grid-template-columns: repeat(2, 1fr);
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0;
    padding: 4px 0 8px 12px;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .has-dropdown.is-open .dropdown { max-height: 640px; }
}

@media (max-width: 860px) {
  .header-cta .btn { display: none; }
}

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; }
  .about-figure::before { display: none; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row .post-tag { justify-self: start; }
}

@media (max-width: 860px) {
  .table-hint { display: block; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; padding-bottom: 58px; }
  .container, .container-narrow { width: calc(100% - 32px); }
  .topbar-contact { gap: 12px; font-size: .75rem; }
  .topbar-social { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .hero-body { min-height: 0; padding: 56px 0 64px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .mobile-bar { display: block; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-slide { transition: none; }
}

@media print {
  .topbar, .site-header, .mobile-bar, .cta-band, .hero-dots { display: none; }
  body { color: #000; }
}
