/* =========================================================
   聚鼎實業有限公司 — 官方網站樣式表
   風格：工程專業感（深藍灰 + 工程橘）
   ========================================================= */

/* ---------- 1. 設計變數 ---------- */
:root {
  --navy-900: #0d1b2a;
  --navy-800: #14293d;
  --navy-700: #1b3a53;
  --navy-600: #2a4d69;
  --slate-500: #5b7186;
  --slate-300: #9fb0bf;
  --slate-100: #e6ebf0;
  --paper: #f6f8fa;
  --white: #ffffff;

  --orange: #e8703a;
  --orange-dark: #c85922;
  --orange-soft: #fdf0e9;

  --ink: #1c2733;
  --ink-soft: #566573;

  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 3px rgba(13, 27, 42, .08);
  --shadow-md: 0 6px 20px rgba(13, 27, 42, .10);
  --shadow-lg: 0 18px 44px rgba(13, 27, 42, .18);

  --max: 1180px;
  --gut: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- 3. 版面工具 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: var(--slate-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--navy-900);
}
.section--navy .section-title { color: var(--white); }

.section-lead {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.section--navy .section-lead { color: var(--slate-300); }

.section-head { margin-bottom: 46px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- 4. 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 4px 14px rgba(232, 112, 58, .3); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(232, 112, 58, .38); }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn--outline { border: 1.5px solid var(--navy-600); color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: var(--white); }
.btn--lg { padding: 17px 36px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- 5. 頁首 ---------- */
.topbar {
  background: var(--navy-900);
  color: var(--slate-300);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__list { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 14px; height: 14px; flex: none; color: var(--orange); }
.topbar__item a:hover { color: var(--white); }
.topbar__note { color: var(--slate-500); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand__mark {
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.brand__mark span { display: block; line-height: 1; }
.brand__name { font-size: 1.12rem; font-weight: 800; color: var(--navy-900); line-height: 1.25; letter-spacing: .02em; }
.brand__tag { font-size: .72rem; color: var(--slate-500); letter-spacing: .16em; text-transform: uppercase; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: block;
  padding: 10px 15px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__link:hover { color: var(--navy-900); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy-900); }

.nav__cta { margin-left: 10px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  place-items: center;
  color: var(--navy-900);
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  position: relative;
  transition: background .2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: currentColor;
  transition: transform .28s var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-900);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__bg.is-on { opacity: 1; }
.hero::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, .48) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 96px;
}
.hero__content { max-width: 720px; }
.hero__title {
  font-size: clamp(2.05rem, 5.4vw, 3.4rem);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: .01em;
}
.hero__title em { font-style: normal; color: var(--orange); }
.hero__text {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
}
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: none;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: rgba(13, 27, 42, .55);
  backdrop-filter: blur(4px);
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero__stat { padding: 26px 20px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero__stat:first-child { border-left: none; }
.hero__stat b { display: block; font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; color: var(--white); line-height: 1.2; }
.hero__stat span { font-size: .82rem; color: var(--slate-300); letter-spacing: .06em; }

/* 內頁標題區 */
.page-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  padding: 74px 0 62px;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .28;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 27, 42, .95), rgba(13, 27, 42, .65));
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.3; }
.page-hero p { margin-top: 14px; color: rgba(255, 255, 255, .78); max-width: 62ch; }

.crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--slate-300); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { color: var(--slate-500); }

/* ---------- 7. 服務卡片 ---------- */
.grid { display: grid; gap: 26px; }
.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 {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__no {
  position: absolute;
  left: 0; top: 0;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .1em;
  padding: 7px 14px;
}
.card__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card__title { font-size: 1.16rem; font-weight: 800; color: var(--navy-900); line-height: 1.45; }
.card__text { margin-top: 10px; color: var(--ink-soft); font-size: .94rem; flex: 1; }
.card__list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.card__list li {
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--slate-500);
  border: 1px solid var(--slate-100);
}
.card__more {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--orange);
}
.card__more svg { width: 15px; height: 15px; transition: transform .28s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }

/* 特色 */
.feature { text-align: left; }
.feature__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--orange-dark);
  margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; font-weight: 800; color: var(--navy-900); }
.feature p { margin-top: 9px; color: var(--ink-soft); font-size: .93rem; }
.section--navy .feature h3 { color: var(--white); }
.section--navy .feature p { color: var(--slate-300); }
.section--navy .feature__icon { background: rgba(232, 112, 58, .16); color: var(--orange); }

/* ---------- 8. 服務詳細 ---------- */
.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 34px;
}
.svc:nth-child(even) .svc__media { order: 2; }
.svc__media { min-height: 340px; background: var(--slate-100); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.svc__no {
  font-size: .78rem; font-weight: 800; letter-spacing: .2em;
  color: var(--orange); margin-bottom: 10px;
}
.svc__body h2 { font-size: 1.42rem; font-weight: 800; color: var(--navy-900); line-height: 1.42; }
.svc__body > p { margin-top: 14px; color: var(--ink-soft); font-size: .96rem; }
.svc__points { margin-top: 22px; display: grid; gap: 11px; }
.svc__points li {
  position: relative;
  padding-left: 26px;
  font-size: .93rem;
  color: var(--ink);
}
.svc__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 13px; height: 8px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}
.svc__meta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--slate-100);
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: var(--slate-500);
}
.svc__meta b { display: block; color: var(--navy-900); font-size: .95rem; }

/* ---------- 9. 流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.flow__item { position: relative; padding: 0 16px; text-align: center; }
.flow__item::before {
  content: "";
  position: absolute;
  top: 27px; left: -50%;
  width: 100%; height: 2px;
  background: var(--slate-100);
  z-index: 0;
}
.flow__item:first-child::before { display: none; }
.flow__dot {
  position: relative;
  z-index: 1;
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy-700);
  color: var(--navy-700);
  font-weight: 800;
}
.flow__item h4 { font-size: 1rem; font-weight: 800; color: var(--navy-900); }
.flow__item p { margin-top: 7px; font-size: .87rem; color: var(--ink-soft); }

/* ---------- 10. 相簿 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 34px; }
.filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--slate-100);
  background: var(--white);
  font-size: .89rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .24s var(--ease);
}
.filter:hover { border-color: var(--navy-600); color: var(--navy-900); }
.filter.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-100);
  cursor: zoom-in;
  border: none;
  width: 100%;
  display: block;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.shot:hover img { transform: scale(1.07); }
.shot__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 18px 16px;
  background: linear-gradient(to top, rgba(13, 27, 42, .9), transparent);
  color: var(--white);
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: all .34s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
.shot__cap b { display: block; font-size: .95rem; font-weight: 700; }
.shot__cap span { font-size: .8rem; color: var(--slate-300); }
.shot.is-hidden { display: none; }

/* 燈箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 15, 24, .95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(1200px, 92vw);
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox__cap {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  text-align: center;
  color: var(--slate-100);
  font-size: .95rem;
  padding-inline: 60px;
}
.lightbox__cap b { display: inline-block; margin-right: 12px; }
.lightbox__cap span { color: var(--slate-500); margin-left: 10px; font-size: .85rem; }
.lb-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  transition: background .22s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- 11. 關於 ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__badge {
  position: absolute;
  right: -16px; bottom: -22px;
  background: var(--orange);
  color: var(--white);
  padding: 20px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.split__badge b { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.split__badge span { font-size: .8rem; letter-spacing: .06em; }

.prose p { margin-top: 16px; color: var(--ink-soft); }
.prose p:first-child { margin-top: 0; }
.prose h3 { margin-top: 30px; font-size: 1.15rem; font-weight: 800; color: var(--navy-900); }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--slate-100); border: 1px solid var(--slate-100); border-radius: var(--radius-lg); overflow: hidden; }
.value { background: var(--white); padding: 30px 28px; }
.value b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--navy-900); }
.value p { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
.spec-table th { width: 32%; color: var(--navy-900); font-weight: 700; background: var(--paper); white-space: nowrap; }
.spec-table td { color: var(--ink-soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- 12. FAQ ---------- */
.faq { border-top: 1px solid var(--slate-100); }
.faq__item { border-bottom: 1px solid var(--slate-100); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy-900);
}
.faq__q:hover { color: var(--orange-dark); }
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; margin-top: 5px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--orange);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  transition: transform .28s var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.faq__a p { padding: 0 4px 24px; color: var(--ink-soft); font-size: .95rem; max-width: 76ch; }

/* ---------- 13. 聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }

.info-list { display: grid; gap: 2px; background: var(--slate-100); border: 1px solid var(--slate-100); border-radius: var(--radius-lg); overflow: hidden; }
.info {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: var(--white);
}
.info__icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.info__icon svg { width: 20px; height: 20px; }
.info b { display: block; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); font-weight: 700; }
.info p { margin-top: 4px; color: var(--navy-900); font-weight: 600; line-height: 1.65; }
.info p a:hover { color: var(--orange-dark); }
.info small { display: block; color: var(--slate-500); font-weight: 400; font-size: .85rem; }

.form-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--navy-900); margin-bottom: 7px; }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 138px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(42, 77, 105, .12);
}
.field .hint { font-size: .8rem; color: var(--slate-500); margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--slate-500); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; display: none; }
.form-status.is-on { display: block; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #c0392b; }

.map-wrap { margin-top: 34px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--slate-100); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- 14. CTA 帶 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 62px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.95rem); font-weight: 800; line-height: 1.4; }
.cta-band p { margin-top: 10px; color: rgba(255, 255, 255, .76); max-width: 52ch; }
.cta-band__actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* ---------- 15. 頁尾 ---------- */
.site-footer { background: var(--navy-900); color: var(--slate-300); padding: 62px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.site-footer h4 { color: var(--white); font-size: .84rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer a:hover { color: var(--orange); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__tag { color: var(--slate-500); }
.footer-about { margin-top: 18px; line-height: 1.85; color: var(--slate-300); max-width: 40ch; }
.footer-links li { margin-bottom: 11px; }
.footer-contact li { margin-bottom: 13px; display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--slate-500);
}

/* 浮動快速聯絡 */
.quick { position: fixed; right: 20px; bottom: 20px; z-index: 800; display: grid; gap: 10px; }
.quick a {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform .24s var(--ease), background .24s var(--ease);
}
.quick a:hover { transform: scale(1.08); background: var(--orange); }
.quick svg { width: 22px; height: 22px; }

/* ---------- 16. 捲動動畫 ---------- */
/* 預設可見；只有在 JS 成功執行後才隱藏並播放進場動畫，
   避免 JS 失效或被封鎖時整頁空白。 */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- 17. 響應式 ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__badge { right: 16px; bottom: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .flow__item::before { display: none; }
}

@media (max-width: 900px) {
  .nav__menu {
    position: fixed;
    inset: 0 0 auto 0;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
    padding: 10px 20px 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .38s var(--ease), padding .38s var(--ease);
  }
  .nav__menu.is-open { max-height: 560px; }
  .nav__link { padding: 15px 4px; border-bottom: 1px solid var(--slate-100); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--orange-dark); }
  .nav__cta { margin: 16px 0 0; }
  .nav__toggle { display: grid; }
  .topbar__note { display: none; }

  .section { padding: 62px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc__media { order: 0; }
  .svc__media { min-height: 240px; aspect-ratio: 16 / 10; }
  .svc__body { padding: 30px 26px 34px; }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stat:nth-child(3) { border-left: none; }
  .hero__stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gut: 18px; }
  .hero { min-height: 68vh; }
  .hero__inner { padding: 70px 0; }
  .hero__actions .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .filter { white-space: nowrap; }
  .grid--4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .brand__tag { display: none; }
  .topbar__list { gap: 14px; font-size: .78rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .spec-table th { width: 38%; padding: 13px 12px; }
  .spec-table td { padding: 13px 12px; }
}

/* 列印 */
@media print {
  .site-header, .topbar, .quick, .cta-band, .hero__actions, .lightbox { display: none !important; }
  body { color: #000; }
}
