:root {
  --red: #AC0110;
  --red-dark: #8a000d;
  --gray: #D6D6D6;
  --gray-soft: #f3f3f3;
  --ink: #1d1d1f;
  --muted: #5b5b60;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; color: var(--red); white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--ink); }
.nav a:hover { background: var(--gray-soft); }
.nav a.active { color: var(--red); }
.nav-cta { background: var(--red); color: var(--white) !important; }
.nav-cta:hover { background: var(--red-dark) !important; }
.menu-btn { display: none; background: none; border: 1px solid var(--gray); border-radius: 8px; padding: 6px 10px; font-size: 15px; font-weight: 700; color: var(--ink); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-red { background: var(--white); color: var(--red); border-color: var(--red); }

/* ---------- hero carousel ---------- */
.hero { position: relative; height: min(78vh, 620px); min-height: 420px; overflow: hidden; background: #111; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 60%, rgba(0,0,0,.1) 100%); pointer-events: none; }
.hero-text { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-text .wrap { color: var(--white); }
.hero-text .tag { display: inline-block; background: var(--red); padding: 4px 12px; border-radius: 6px; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.hero-text h1 { margin: 0 0 10px; font-size: clamp(30px, 5.4vw, 54px); line-height: 1.2; font-weight: 900; }
.hero-text p { margin: 0 0 22px; font-size: clamp(16px, 2.2vw, 20px); max-width: 640px; }
.hero-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.85); color: var(--red); font-size: 22px; font-weight: 900; cursor: pointer;
}
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.hero-dots button.is-on { background: var(--white); width: 26px; border-radius: 6px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.gray { background: var(--gray-soft); }
.section.red { background: var(--red); color: var(--white); }
.section-title { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; }
.section-title::after { content: ""; display: block; width: 48px; height: 5px; background: var(--red); border-radius: 3px; margin-top: 10px; }
.section.red .section-title::after { background: var(--white); }
.section-lead { margin: 0 0 28px; color: var(--muted); }
.section.red .section-lead { color: rgba(255,255,255,.9); }
.page-head { background: var(--red); color: var(--white); padding: 48px 0 40px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; }
.page-head p { margin: 0; font-size: 17px; opacity: .95; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--gray); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; background: var(--red); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.block { display: flex; align-items: center; justify-content: center; }
.card-media.block span { color: var(--white); font-size: 26px; font-weight: 900; letter-spacing: 2px; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: 0 0 6px; font-size: 20px; color: var(--red); }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }

.svc-rows { display: grid; gap: 28px; }
.svc-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--gray); border-radius: var(--radius); overflow: hidden; }
.svc-row .card-media { height: 100%; min-height: 240px; aspect-ratio: auto; }
.svc-row .svc-text { padding: 24px 24px 24px 0; }
.svc-row h2 { margin: 0 0 8px; color: var(--red); font-size: 26px; }
.svc-row p { margin: 0 0 14px; color: var(--muted); }

/* ---------- areas ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.area { background: var(--white); border: 2px solid var(--red); color: var(--red); border-radius: 12px; padding: 14px 10px; text-align: center; font-weight: 900; font-size: 20px; }
.section.red .area { border-color: var(--white); }
.badge-247 { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--red); border-radius: 999px; padding: 8px 18px; font-weight: 900; font-size: 18px; margin-top: 22px; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.why-item { background: var(--white); border-left: 6px solid var(--red); border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 0 var(--gray); }
.why-item h3 { margin: 0 0 6px; font-size: 19px; }
.why-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--gray); border-radius: 12px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; display: inline-block; background: var(--red); color: var(--white); border-radius: 6px; width: 24px; text-align: center; margin-right: 10px; }
.faq details p { margin: 0 0 14px; color: var(--muted); padding-left: 34px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.contact-card { background: var(--white); border: 1px solid var(--gray); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { margin: 0 0 10px; color: var(--red); }
.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.phone-list a { display: block; text-decoration: none; font-size: 22px; font-weight: 900; color: var(--ink); background: var(--gray-soft); border-radius: 10px; padding: 10px 14px; }
.phone-list small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- cta band ---------- */
.cta-band { background: var(--red); color: var(--white); padding: 44px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 900; }

/* ---------- footer ---------- */
.site-footer { background: #1d1d1f; color: #cfcfd2; padding: 40px 0 28px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: #cfcfd2; text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.copyright { border-top: 1px solid #38383b; padding-top: 16px; }

/* ---------- mobile sticky bar ---------- */
.mobile-bar { display: none; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray); flex-direction: column; padding: 8px 16px 14px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row .card-media { min-height: 200px; aspect-ratio: 4 / 3; }
  .svc-row .svc-text { padding: 0 18px 22px; }
  .hero-arrow { width: 38px; height: 38px; font-size: 18px; }
  .hero-arrow.prev { left: 6px; }
  .hero-arrow.next { right: 6px; }
  .hero-text .wrap { padding: 0 52px; }
  .btns .btn { flex: 1 1 auto; }
  body { padding-bottom: 66px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--gray);
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 58px; text-decoration: none; font-weight: 900; font-size: 16px; }
  .mobile-bar .mb-call { color: var(--red); }
  .mobile-bar .mb-line { color: #06a94d; border-left: 1px solid var(--gray); border-right: 1px solid var(--gray); }
  .mobile-bar .mb-rescue { background: var(--red); color: var(--white); }
}
@media (max-width: 420px) {
  .brand span { font-size: 16px; }
  .hero-text .wrap { padding: 0 46px; }
}
