/* 海闊實業｜高雄監視器安裝 專頁打樣 v3
   僅供版面確認，尚未上線。 */
:root {
  --brand: #1a4d8c;
  --brand-dark: #163f72;
  --brand-deep: #122e54;
  --ink: #1d2a33;
  --muted: #5a6b73;
  --line: #d5dee6;
  --bg: #f4f7fa;
  --bg-soft: #e8eef5;
  --paper: #ffffff;
  --cta: #1a4d8c;
  --cta-hover: #163f72;
  --cta-text: #ffffff;
  --star: #c9a227;
  --radius: 16px;
  --btn-radius: 999px;
  --photo-radius: 20px;
  --shadow: 0 12px 32px rgba(18, 46, 70, 0.08);
  --header-h: 4.25rem;
  --bar-h: 4.25rem;
  --max: 70rem;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--brand);
  --font: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --hero-bg: #f4f7fa;
  --topbar-bg: #e8eef5;
  --footer-bg: #e8eef5;
  --chip-bg: #e8eef5;
  --chip-border: #c9d6e4;
  --chip-color: #163f72;
  --header-border: var(--line);
  --icon-bg: var(--bg-soft);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  text-underline-offset: 0.2em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
}
.skip:focus { top: 0; }

.draft-banner {
  background: #fff8e8;
  color: #6a3b08;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #f0e0b8;
}

.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  color: var(--brand-dark);
}
.topbar a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
}
.topbar a:hover { text-decoration: underline; }
.topbar .dot { color: var(--muted); opacity: 0.6; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo { display: block; flex: 0 0 auto; }
.logo img { width: 10rem; height: auto; }

.nav {
  margin-left: auto;
  display: none;
  gap: 0.2rem;
  flex-wrap: wrap;            /* 項目多時整項換行，不再把字切斷 */
  justify-content: flex-end;
  row-gap: 0.15rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  white-space: nowrap;        /* 選單文字不可斷行（中文預設可逐字斷） */
}
.nav a:hover { background: var(--bg); color: var(--brand-dark); }

.header-call {
  display: none;
  margin-left: 0.25rem;
  background: var(--cta);
  color: var(--cta-text) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--btn-radius);
  white-space: nowrap;
}
.header-call:hover { background: var(--cta-hover); }

@media (min-width: 880px) {
  .nav { display: flex; }
  .nav a { font-size: 0.875rem; padding: 0.35rem 0.5rem; }
  .header-inner { flex-wrap: wrap; row-gap: 0.3rem; }
  .header-call { display: inline-flex; align-items: center; gap: 0.35rem; }
}
@media (min-width: 1140px) {
  .nav a { font-size: 0.9375rem; padding: 0.4rem 0.6rem; }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }
.section.alt { background: var(--bg); }

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 2px;
  background: var(--brand);
  margin-right: 0.55rem;
  vertical-align: middle;
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 42rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  padding: 0.9rem 1.25rem;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  min-height: 3.15rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-cta {
  background: var(--cta);
  color: var(--cta-text) !important;
}
.btn-cta:hover { background: var(--cta-hover); }
.btn-ghost {
  background: #fff;
  color: var(--brand-dark) !important;
  border-color: var(--brand);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-outline {
  background: #fff;
  color: var(--brand-dark) !important;
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--bg-soft); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }

/* Hero — default split, themes may override */
.hero {
  background: var(--hero-bg);
  color: var(--ink);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.hero-photo { padding: 0 1.25rem 2rem; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--photo-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-copy {
  padding: 2rem 1.25rem 1.5rem;
  max-width: 44rem;
}
.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 6vw, 2.85rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.hero-copy .sub {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.trust li {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: var(--btn-radius);
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--chip-color);
}

@media (min-width: 840px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    max-width: 90rem;
    margin: 0 auto;
    align-items: center;
  }
  .hero-copy {
    padding: 3.2rem 2rem 3.2rem 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-photo { padding: 3rem 5vw 3rem 0.5rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

.cards-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: var(--icon-bg);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}
.card .icon svg { width: 1.4rem; height: 1.4rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.125rem; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 0.975rem; }

.why-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .why-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.why-item .mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 0.15rem;
}
.why-item .mark svg { width: 1.05rem; height: 1.05rem; }
.why-item h3 { margin: 0 0 0.25rem; font-size: 1.08rem; }
.why-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps { display: grid; gap: 0.85rem; counter-reset: step; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1.3rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.cases { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 700px) {
  .cases { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .cases { grid-template-columns: 1fr 1fr 1fr; }
}
.cases figure {
  margin: 0;
  background: #d7e0e6;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.cases img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}
.cases figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgba(8, 20, 32, 0.88));
  color: #fff;
  font-size: 0.875rem;
}
.photo-note { margin: 1.1rem 0 0; font-size: 0.875rem; color: var(--muted); }

.rating-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
}
.rating-score { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--brand-dark); }
.stars { color: var(--star); letter-spacing: 0.08em; font-size: 1.2rem; }
.rating-box p { margin: 0; color: var(--muted); }
.review-source {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.review-ph { display: grid; gap: 0.85rem; }
@media (min-width: 800px) {
  .review-ph { grid-template-columns: 1fr 1fr 1fr; }
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.2rem;
}
.review-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.55rem;
}
.review-card strong {
  color: var(--brand-dark);
  font-size: 0.98rem;
}
.review-card .stars {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.review-card time {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--muted);
}
.review-card blockquote {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
}

.faq { display: grid; gap: 0.65rem; max-width: 48rem; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.15rem 0.2rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex: 0 0 auto;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq .ans { padding: 0 1rem 1rem; color: var(--muted); margin: 0; }

.areas { display: grid; gap: 0.85rem; }
@media (min-width: 800px) {
  .areas { grid-template-columns: 1fr 1fr 1fr; }
}
.area {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
}
.area h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.area p { margin: 0; color: var(--muted); }

.cabling { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 860px) {
  .cabling { grid-template-columns: 1.1fr 0.9fr; }
}
.cable-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cable-photos img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  border-radius: 12px;
}

.contact-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact-info h2 { margin-top: 0; }
.info-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.info-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list .lbl { color: var(--muted); font-size: 0.9rem; }
.info-list a { text-decoration: none; font-weight: 700; color: var(--brand-dark); }
.info-list a:hover { text-decoration: underline; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: var(--shadow);
}
.form-card h3 { margin: 0 0 0.3rem; }
.form-hint { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; }
label { display: block; font-weight: 700; font-size: 0.9rem; margin: 0.85rem 0 0.3rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9d3dc;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: var(--brand);
}
textarea { min-height: 7.5rem; resize: vertical; }
.form-actions { margin-top: 1.1rem; }
.form-card .btn { width: 100%; border: 0; }
.form-note {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  background: #fff4e5;
  color: #6a3b08;
  border-radius: 10px;
  font-size: 0.925rem;
}
.form-note[hidden] { display: none; }

.site-footer {
  background: var(--footer-bg);
  color: var(--ink);
  padding: 2rem 0 6.5rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 880px) {
  .site-footer { padding-bottom: 2rem; }
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 0.4rem;
}
.site-footer a { color: var(--brand-dark); white-space: nowrap; }
.site-footer .legal { color: var(--muted); margin-top: 0.8rem; }

.callbar {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
  box-shadow: 0 -6px 20px rgba(18, 46, 70, 0.1);
}
.callbar .btn { flex: 1; min-height: 3rem; font-size: 0.95rem; padding: 0.65rem 0.5rem; white-space: nowrap; }
.callbar .btn-city { background: #fff; color: var(--brand-dark) !important; border-color: var(--brand); }
.callbar .btn-city:hover { background: var(--bg-soft); }

@media (min-width: 880px) {
  .callbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ===== 版型 v4：B 版面／圓角與柔和層次 ＋ A 白底信賴藍配色 ===== */
:root {
  --brand: #1a4d8c;
  --brand-dark: #153e72;
  --ink: #1a2633;
  --muted: #5b6773;
  --line: #d5dde6;
  --bg: #f3f6fa;
  --bg-soft: #e7eef6;
  --cta: #1a4d8c;
  --cta-hover: #153e72;
  --cta-text: #ffffff;
  --radius: 16px;
  --btn-radius: 999px;
  --photo-radius: 20px;
  --shadow: 0 12px 32px rgba(16, 42, 78, 0.08);
  --hero-bg: linear-gradient(180deg, #e7eef6 0%, #ffffff 72%);
  --topbar-bg: #e7eef6;
  --footer-bg: #e7eef6;
  --chip-bg: #f3f6fa;
  --chip-border: #c9d6e6;
  --chip-color: #153e72;
  --header-border: #d5dde6;
  --icon-bg: #e7eef6;
}
.hero {
  background:
    radial-gradient(900px 420px at 92% 0%, #e7eef6 0%, transparent 62%),
    linear-gradient(180deg, #f3f6fa 0%, #ffffff 72%);
}
.hero-photo img { box-shadow: 0 18px 40px rgba(16, 42, 78, 0.14); }


/* 其他服務：次要卡片列，視覺小於主服務區 */
#other-services h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}
#other-services .other-lead {
  margin-bottom: 1.2rem;
  max-width: 40rem;
}
.other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (min-width: 1000px) {
  .other-grid { grid-template-columns: repeat(4, 1fr); }
}
a.other-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
  box-shadow: none;
  min-height: 100%;
}
a.other-card:hover,
a.other-card:focus-visible {
  border-color: var(--brand);
  color: inherit;
}
a.other-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--brand-dark);
  font-weight: 700;
}
a.other-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* 事實摘要（2026-11-16） */
.facts-sec{padding-top:8px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:14px 0 0}
.fact{margin:0;padding:10px 14px;border-left:3px solid #2a6593;background:#f6f8fa;border-radius:0 6px 6px 0}
.fact dt{font-size:13px;color:#6b7480;margin:0 0 2px}
.fact dd{margin:0;font-size:15px;line-height:1.6}

/* 文章內文（2026-11-16） */
.prose{max-width:74ch;margin:0}
.prose p{margin:0 0 1.15em;font-size:16.5px;line-height:1.9;color:#26303a}
.prose p:last-child{margin-bottom:0}
.prose strong{color:#16212b;font-weight:700}
.prose ul.bullets{margin:0 0 1.2em;padding-left:1.35em;list-style:none}
.prose ul.bullets li{position:relative;margin:0 0 .7em;font-size:16.5px;line-height:1.85;color:#26303a}
.prose ul.bullets li::before{content:"";position:absolute;left:-1.05em;top:.72em;width:6px;height:6px;border-radius:50%;background:#2a6593}
.tbl-wrap{overflow-x:auto;margin:0 0 1.4em}
.tbl{width:100%;border-collapse:collapse;font-size:15.5px}
.tbl th{text-align:left;padding:10px 12px;background:#f6f8fa;border-bottom:2px solid #dfe5ea;color:#16212b;font-weight:700;white-space:nowrap}
.tbl td{padding:10px 12px;border-bottom:1px solid #eceff2;line-height:1.7;color:#26303a;vertical-align:top}
.tbl tbody tr:last-child td{border-bottom:none}
@media(max-width:560px){.prose p,.prose ul.bullets li{font-size:16px;line-height:1.85}.tbl{font-size:14.5px}.tbl th,.tbl td{padding:9px 10px}}
