/* 聯邦應收帳款部 — 全站殼 + 首頁 (2026-07-28 v3)
   調性：合法催收／企業應收帳款 — 深藍信任 + 琥珀 CTA
   手機優先 RWD + 字級 A+/A-（--fs-scale） */

:root {
  --navy-950: #071422;
  --navy-900: #0b1f3a;
  --navy-800: #123056;
  --navy-700: #1a3f6e;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --amber-400: #f0b429;
  --amber-500: #e89a1a;
  --amber-600: #d4860f;
  --amber-50: #fff8eb;
  --line: #06c755;
  --line-dark: #05a847;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(7, 20, 34, 0.08);
  --shadow-lg: 0 16px 48px rgba(7, 20, 34, 0.16);
  --header-h: 72px;
  --max: 1120px;
  --font: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* 字級縮放：0.9～1.35，由 JS / localStorage 寫入 */
  --fs-scale: 1;
  --touch: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --page-pad-x: 1.15rem;
  --mobile-cta-h: 0px;
}

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

html {
  scroll-behavior: smooth;
  /* 用 rem 全域跟 --fs-scale 走，A+/A- 一次放大整站 */
  font-size: calc(100% * var(--fs-scale));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 避免 iOS 點擊閃灰 */
  -webkit-tap-highlight-color: rgba(232, 154, 26, 0.15);
}

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

a {
  color: var(--navy-800);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--amber-600);
}

p {
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - (var(--page-pad-x) * 2), var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - (var(--page-pad-x) * 2), 1200px);
  margin-inline: auto;
}

/* ========== Reveal animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
  filter: blur(2px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-scale {
  transform: scale(0.96);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }
.reveal-d6 { transition-delay: 0.48s; }
.reveal-d7 { transition-delay: 0.56s; }
.reveal-d8 { transition-delay: 0.64s; }

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--header-h);
  transition: box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(7, 20, 34, 0.35);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  order: 0;
  flex-shrink: 1;
  color: var(--white) !important;
}

.logo:hover {
  color: var(--white) !important;
}

.logo-mark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
}

/* Header tools：字級 + 漢堡 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  order: 3;
}

.font-size-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.fs-btn {
  /* 控制列用 px，避免 A+ 後按鈕自己跟著狂長 */
  min-width: 36px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.fs-btn + .fs-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.fs-btn sup {
  font-size: 0.65em;
  font-weight: 800;
  margin-left: 0.05em;
}

.fs-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #f5c76a;
}

.fs-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.fs-btn.fs-reset {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: var(--touch);
  height: var(--touch);
  min-width: var(--touch);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* 桌面列：Logo | Nav | CTA | 字級 */
.site-header .inner {
  flex-wrap: nowrap;
}

.nav-wrap {
  order: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-cta {
  order: 2;
}

.header-tools {
  order: 3;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
}

.nav > li > a:hover,
.nav > li:hover > a,
.nav > li.active > a {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav .dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s var(--ease);
  border: 1px solid var(--slate-200);
}

.nav > li:hover > .dropdown,
.nav > li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--slate-700);
  border-radius: 6px;
  font-weight: 500;
}

.nav .dropdown a:hover {
  background: var(--slate-50);
  color: var(--navy-900);
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.3rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-500) 50%, var(--amber-600) 100%);
  background-size: 200% 200%;
  color: var(--navy-950) !important;
  box-shadow: 0 6px 20px rgba(232, 154, 26, 0.4);
  animation: cta-glow 3.2s ease-in-out infinite;
}

.btn-amber:hover {
  background-position: 100% 50%;
  color: var(--navy-950) !important;
  box-shadow: 0 10px 28px rgba(232, 154, 26, 0.5);
}

.btn-line {
  background: var(--line);
  color: var(--white) !important;
}

.btn-line:hover {
  background: var(--line-dark);
  color: var(--white) !important;
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white) !important;
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800) !important;
}

.btn-outline-dark:hover {
  background: var(--navy-900);
  color: var(--white) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white) !important;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white) !important;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  animation: none;
}

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.05rem;
}

@keyframes cta-glow {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(232, 154, 26, 0.35);
  }
  50% {
    box-shadow: 0 8px 32px rgba(232, 154, 26, 0.55);
  }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  background: var(--navy-900) url("../images/banner.jpg") center / cover no-repeat;
  color: var(--white);
  min-height: min(82vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 20, 34, 0.95) 0%,
    rgba(11, 31, 58, 0.9) 46%,
    rgba(11, 31, 58, 0.58) 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(232, 154, 26, 0.12), transparent 70%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 3.75rem 0 4.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  background: rgba(232, 154, 26, 0.14);
  border: 1px solid rgba(232, 154, 26, 0.42);
  color: #f5c76a;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  animation: fade-up 0.8s var(--ease-out) both;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5c76a;
  box-shadow: 0 0 0 0 rgba(245, 199, 106, 0.6);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(245, 199, 106, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(245, 199, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 199, 106, 0); }
}

.hero h1 {
  color: var(--white);
  max-width: 16em;
  margin-bottom: 0.85rem;
  animation: fade-up 0.85s 0.08s var(--ease-out) both;
}

.hero h1 .accent {
  color: #f5c76a;
  display: inline;
}

.hero-lead {
  max-width: 38em;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 1.6rem;
  animation: fade-up 0.85s 0.16s var(--ease-out) both;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  animation: fade-up 0.85s 0.2s var(--ease-out) both;
}

.hero-keywords span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  animation: fade-up 0.85s 0.28s var(--ease-out) both;
}

.hero-phone {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: 0.02em;
  animation: fade-up 0.85s 0.36s var(--ease-out) both;
}

.hero-phone:hover {
  color: #f5c76a !important;
}

.hero-phone small {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 540px;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: fade-up 0.85s 0.44s var(--ease-out) both;
}

.hero-stats dt {
  font-size: 1.45rem;
  font-weight: 800;
  color: #f5c76a;
  margin: 0;
}

.hero-stats dd {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== Trust bar ========== */
.trust-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-bar i {
  color: var(--amber-500);
}

/* ========== Sections ========== */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--slate-50);
}

.section-dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 42em;
  margin: 0 auto 2.75rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 1.05rem; /* 區塊小標（為什麼選擇…）略放大，易掃讀 */
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber-600);
  margin-bottom: 0.55rem;
  line-height: 1.4;
}

.section-dark .section-head .eyebrow {
  color: #f5c76a;
}

.section-head p {
  color: var(--slate-600);
  margin: 0.55rem 0 0;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

/* ========== Intro ========== */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.prose {
  font-size: 0.98rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose a {
  color: var(--amber-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .hl,
.prose strong {
  color: var(--navy-900);
  font-weight: 700;
}

.seo-block {
  margin-top: 1.25rem;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border-left: 4px solid var(--amber-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow);
}

.seo-block h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.seo-block p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate-600);
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.card-amber {
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, #163a62 100%);
  border: 1px solid rgba(232, 154, 26, 0.35);
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}

.card-amber::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(232, 154, 26, 0.18), transparent 70%);
  pointer-events: none;
}

.card-amber h3 {
  color: #f5c76a;
  position: relative;
}

.card-amber > * {
  position: relative;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.48rem 0;
  font-size: 0.94rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list i {
  color: var(--amber-500);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.muted {
  font-size: 0.9rem;
  color: var(--slate-500);
}

.card-amber .muted {
  color: rgba(255, 255, 255, 0.68);
}

.card-amber a {
  color: #f5c76a;
  font-weight: 700;
}

/* ========== Process steps ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.3rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 154, 26, 0.45);
}

.process-step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #f5c76a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.25);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-600);
}

/* ========== Compare legal ========== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-card {
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--slate-200);
}

.compare-card.good {
  background: linear-gradient(180deg, #f0fdf4 0%, var(--white) 100%);
  border-color: #86efac;
}

.compare-card.bad {
  background: linear-gradient(180deg, #fef2f2 0%, var(--white) 100%);
  border-color: #fecaca;
}

.compare-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.compare-card.good h3 { color: #166534; }
.compare-card.bad h3 { color: #991b1b; }

.compare-card li {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--slate-700);
}

.compare-card.good li i { color: #16a34a; }
.compare-card.bad li i { color: #dc2626; }

/* ========== Service cards ========== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  border-color: rgba(26, 63, 110, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  color: inherit;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--amber-50);
  color: var(--amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.95rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  background: #ffe8bf;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin: 0;
  flex: 1;
}

.service-card .more {
  margin-top: 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  transition: color 0.2s, transform 0.2s;
}

.service-card:hover .more {
  color: var(--amber-600);
  transform: translateX(3px);
}

/* ========== Link lists ========== */
.link-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  height: 100%;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.link-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.section-dark .link-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.link-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--amber-500);
  display: inline-block;
}

.section-dark .link-card h3 {
  color: #f5c76a;
}

/* 知識庫連結：箭頭列表，不用 ol 編號（避免與文案數字重複） */
.link-card .link-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.link-card .link-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card .link-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--slate-700);
  font-weight: 500;
  line-height: 1.45;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.link-card .link-list a::before {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(232, 154, 26, 0.15);
  transition: transform 0.15s var(--ease), background 0.15s;
}

.link-card .link-list a:hover {
  background: var(--slate-50);
  color: var(--navy-900);
  transform: translateX(2px);
}

.link-card .link-list a:hover::before {
  transform: scale(1.25);
  background: var(--amber-600);
}

/* 相容舊結構（若仍有 ol） */
.link-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.link-card ol a,
.link-card > ul:not(.link-list) a {
  display: block;
  padding: 0.42rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--slate-700);
  font-weight: 500;
}

.section-dark .link-card a {
  color: rgba(255, 255, 255, 0.85);
}

.section-dark .link-card a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.section-dark .link-card .link-list a::before {
  background: #f5c76a;
  box-shadow: 0 0 0 3px rgba(245, 199, 106, 0.15);
}

/* ========== FAQ accordion ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.faq-item.is-open {
  border-color: rgba(232, 154, 26, 0.5);
  box-shadow: var(--shadow);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item button i {
  color: var(--amber-600);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item.is-open button i {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-panel-inner {
  padding: 0 1.2rem 1.15rem;
  font-size: 0.95rem;
  color: var(--slate-600);
}

.faq-panel-inner a {
  color: var(--amber-600);
  font-weight: 600;
}

/* ========== Area chips ========== */
.area-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.chip:hover {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--navy-950) !important;
  transform: translateY(-2px);
}

/* ========== CTA band ========== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, #1e4d82 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 154, 26, 0.2), transparent 70%);
  top: -120px;
  right: 10%;
  animation: hero-glow 6s ease-in-out infinite alternate;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36em;
  margin: 0 auto 1.6rem;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* 區塊內 CTA 列（桌面橫排、手機直排） */
.inline-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  text-align: center;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* 頁尾電話：避免預設藍／深藍，改高對比琥珀金 */
.footer-brand a,
.footer-brand a[href^="tel:"],
a.tel-link,
a[href^="tel:"] {
  color: #ffc94a;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer-brand a:hover,
.footer-brand a[href^="tel:"]:hover,
a.tel-link:hover,
a[href^="tel:"]:hover {
  color: #ffe08a;
  text-decoration: underline;
}

/* 深色區塊內電話再亮一階 */
.site-footer a[href^="tel:"],
.card-amber a[href^="tel:"],
.hero a[href^="tel:"].hero-phone {
  color: #ffc94a;
}

.site-footer a[href^="tel:"]:hover,
.card-amber a[href^="tel:"]:hover {
  color: #ffe08a;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.footer-nav a:hover {
  color: #f5c76a;
}

.footer-seo {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 56em;
  margin-bottom: 1rem;
}

.footer-seo a {
  color: rgba(245, 199, 106, 0.85);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: #f5c76a;
  font-weight: 600;
}

/* ========== Floating contact ========== */
.float-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.float-cta a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s var(--ease);
}

.float-cta a:hover {
  transform: scale(1.1);
}

.float-cta .tel {
  background: var(--amber-500);
  color: var(--navy-950) !important;
  animation: float-soft 2.8s ease-in-out infinite;
}

.float-cta .line {
  background: var(--line);
  animation: float-soft 2.8s 0.4s ease-in-out infinite;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ========== Mobile bottom bar ========== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: rgba(7, 20, 34, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.55rem 0.75rem calc(0.55rem + var(--safe-b));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.25);
}

.mobile-cta-bar .btn {
  flex: 1;
  animation: none;
  min-height: var(--touch);
  padding: 0.7rem 0.6rem;
  font-size: 0.95rem;
  border-radius: 12px;
}

/* ========== Proof strip ========== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.proof-item {
  text-align: center;
  padding: 1.35rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.proof-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.proof-item .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--amber-50);
  color: var(--amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.proof-item strong {
  display: block;
  color: var(--navy-900);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.proof-item span {
  font-size: 0.85rem;
  color: var(--slate-600);
}

/* ========== Tablet / 手機導覽 (≤980) ========== */
@media (max-width: 980px) {
  :root {
    --header-h: 60px;
    --page-pad-x: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* 頂欄精簡：Logo + 字級 + 漢堡；電話改由底欄 */
  .header-cta {
    display: none;
  }

  .site-header .inner {
    gap: 0.5rem;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo-mark {
    font-size: 0.95rem;
  }

  .nav-wrap {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex: none;
    justify-content: flex-start;
    background: rgba(7, 20, 34, 0.98);
    padding: 0.75rem 1rem calc(5.5rem + var(--safe-b));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    z-index: 999;
    overscroll-behavior: contain;
  }

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

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: 100%;
  }

  .nav > li > a {
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
    min-height: var(--touch);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* 有下拉的項目加提示箭頭 */
  .nav > li:has(> .dropdown) > a::after {
    content: "▾";
    font-size: 0.75em;
    opacity: 0.65;
    margin-left: 0.5rem;
  }

  .nav > li.is-open > a::after {
    content: "▴";
  }

  .nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    display: none;
    margin: 0 0 0.4rem;
    min-width: 0;
    padding: 0.25rem;
    border-radius: 10px;
  }

  .nav > li.is-open > .dropdown {
    display: block;
  }

  .nav .dropdown a {
    color: rgba(255, 255, 255, 0.88);
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    min-height: var(--touch);
    display: flex;
    align-items: center;
    font-size: 0.98rem;
  }

  .nav .dropdown a:hover,
  .nav .dropdown a:active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
  }

  .intro-grid,
  .compare,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .process-grid,
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero .container {
    padding: 2.25rem 0 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 3rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 0.85rem 1rem;
  }

  .hero-keywords {
    gap: 0.4rem;
  }

  .hero-keywords span {
    font-size: 0.75rem;
  }

  .process-grid {
    gap: 0.75rem;
  }

  .cta-band .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .actions .btn {
    width: 100%;
    min-height: 3rem;
    white-space: normal;
  }

  .inline-cta-row {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
  }

  .inline-cta-row .btn {
    width: 100%;
  }

  /* 平板也顯示底欄，轉換率優先 */
  .mobile-cta-bar {
    display: flex;
  }

  body {
    padding-bottom: calc(4.25rem + var(--safe-b));
  }

  .float-cta {
    display: none; /* 有底欄就不重疊浮動鈕，避免擋內容 */
  }

  .faq-item button {
    font-size: 0.98rem;
    padding: 1rem 1rem;
    min-height: var(--touch);
    line-height: 1.4;
  }
}

/* ========== 手機直式 (≤640) ========== */
@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --page-pad-x: 0.9rem;
  }

  .logo-sub {
    display: none;
  }

  .logo-mark {
    font-size: 0.9rem;
  }

  .fs-btn {
    min-width: 32px;
    padding: 0 6px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    max-width: none;
  }

  .hero-stats > div {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-stats > div:last-child {
    border-bottom: none;
  }

  .hero-stats dt {
    font-size: 1.25rem;
    min-width: 3.2rem;
  }

  .hero-stats dd {
    margin: 0;
    font-size: 0.88rem;
  }

  .hero-phone {
    font-size: 1.45rem;
    word-break: keep-all;
  }

  .grid-4,
  .process-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.6rem 0;
  }

  .section-head {
    margin-bottom: 1.75rem;
    text-align: left;
  }

  .section-head .eyebrow {
    font-size: 1.08rem;
  }

  .section-head p {
    font-size: 0.95rem;
  }

  .trust-bar {
    padding: 0.9rem 0;
  }

  .trust-bar ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .trust-bar li {
    font-size: 0.88rem;
  }

  .card,
  .card-amber,
  .service-card,
  .process-step,
  .link-card,
  .proof-item,
  .compare-card {
    padding: 1.15rem 1rem;
  }

  .chip {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    min-height: var(--touch);
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
  }

  .area-grid {
    gap: 0.5rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.85rem 1.15rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.1rem;
  }

  .footer-nav {
    gap: 0.55rem 1rem;
  }

  .footer-nav a {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }

  .footer-seo {
    font-size: 0.78rem;
  }

  /* 流程步驟：左側數字條更清晰 */
  .process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    align-items: start;
  }

  .process-step .num {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .process-step h3 {
    margin-bottom: 0.25rem;
  }

  /* 對照卡：圖示與文字不擠 */
  .compare-card li {
    font-size: 0.92rem;
    line-height: 1.5;
  }

}

/* 超窄螢幕 */
@media (max-width: 380px) {
  .chip {
    flex: 1 1 100%;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

/* 橫向手機：底欄不佔太多 */
@media (max-width: 980px) and (max-height: 430px) and (orientation: landscape) {
  .mobile-cta-bar {
    padding: 0.35rem 0.75rem calc(0.35rem + var(--safe-b));
  }

  .mobile-cta-bar .btn {
    min-height: 2.4rem;
    padding: 0.45rem 0.5rem;
    font-size: 0.88rem;
  }

  body {
    padding-bottom: calc(3.2rem + var(--safe-b));
  }

  .nav-wrap {
    padding-bottom: calc(3.8rem + var(--safe-b));
  }
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* 觸控裝置：hover 位移不要太誇張 */
@media (hover: none) {
  .btn:hover {
    transform: none;
  }

  .service-card:hover,
  .process-step:hover,
  .proof-item:hover,
  .link-card:hover,
  .chip:hover {
    transform: none;
  }

  .float-cta a:hover {
    transform: none;
  }
}
