/* ===========================
   捷克環衛 Jack Pest Control
   Style: Tiffany Blue palette (蒂芬尼藍)
   (變數名沿用 green-* / grad-gy 等，但值已換成 Tiffany 藍綠)
   =========================== */
:root {
  /* Brand "green" spectrum — 實際為 Tiffany 藍綠 */
  --green-900: #084d4a;
  --green-700: #0a7a72;
  --green-500: #0ABAB5;
  --green-300: #7DDDD5;
  --green-100: #D8F1EE;
  --green-50:  #EEF9F7;

  /* Signature Tiffany 藍漸層（替代原本綠→黃漸層） */
  --grad-gy:      linear-gradient(135deg, #0ABAB5 0%, #5DD3CC 55%, #A8E8E2 100%);
  --grad-gy-soft: linear-gradient(135deg, #5DD3CC 0%, #A8E8E2 55%, #D8F1EE 100%);
  --grad-gy-dark: linear-gradient(135deg, #086e6a 0%, #0ABAB5 55%, #5DD3CC 100%);

  /* Accent — 用 Tiffany 經典配色「珊瑚粉」做溫暖點綴 */
  --yellow-500: #ff9985;
  --yellow-400: #ffb3a8;
  --orange-500: #ff7a66;
  --orange-600: #e56a55;
  --blue-400:   #5ec5c0;

  --line-green: #06c755;

  /* Neutrals — 微微帶藍綠的灰 */
  --gray-900: #18221f;
  --gray-700: #506560;
  --gray-500: #889592;
  --gray-300: #cdd6d3;
  --gray-200: #e3eae8;
  --gray-100: #f3f6f5;
  --bg-soft:  #f3fbfa;
  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(8, 77, 74, .06);
  --shadow-md: 0 10px 28px rgba(8, 77, 74, .10);
  --shadow-lg: 0 22px 60px rgba(8, 77, 74, .14);
  --shadow-gy: 0 14px 34px rgba(10, 186, 181, .28);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Top Bar === */
.topbar {
  background: var(--green-900);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: var(--white); }
.topbar-info { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-cta a {
  background: var(--grad-gy);
  color: var(--green-900);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 700;
}

/* === Header (drsaibosi 風：小 logo + 簡潔橫排選單) === */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.logo-mark {
  width: 130px;
  height: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-900);
  letter-spacing: .5px;
  position: relative;
  transition: color .2s;
}
.nav > ul > li > a:hover { color: var(--green-700); background: transparent; }
.nav > ul > li > a::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--grad-gy);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s;
}
.nav > ul > li > a:hover::before { transform: scaleX(1); }

.has-sub > a::after {
  content: "▾";
  font-size: 9px;
  margin-left: 6px;
  color: var(--gray-500);
  display: inline-block;
  vertical-align: 2px;
}
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: .2s;
  border: 1px solid var(--gray-200);
}
.has-sub:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 14px;
  text-align: left;
}
.submenu li a:hover { background: var(--green-50); color: var(--green-900); }

.nav-cta {
  margin-left: 8px;
  background: var(--line-green);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  font-weight: 700;
  font-size: 14px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #05a649; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--green-900);
  cursor: pointer;
}

/* === Hero (drsaibosi 風：整片大圖 + 中央標語 + 底部弧線) === */
.hero {
  position: relative;
  min-height: 78vh;
  max-height: 820px;
  background: var(--green-900);
  color: var(--white);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 100px 24px 140px;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(8, 40, 38, .18) 0%, rgba(8, 40, 38, .32) 46%, rgba(8, 40, 38, .48) 100%),
    linear-gradient(180deg, rgba(8, 40, 38, .08) 0%, rgba(8, 40, 38, .24) 58%, rgba(8, 40, 38, .62) 100%);
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  animation: heroSlideFade 12.6s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero-slide-business {
  background-image: url("../images/hero-soft-business.jpg");
  opacity: 1;
}
.hero-slide-prevention {
  background-image: url("../images/hero-soft-prevention.jpg");
  animation-delay: 4.2s;
}
.hero-slide-home {
  background-image: url("../images/hero-soft-home.jpg");
  animation-delay: 8.4s;
}
@keyframes heroSlideFade {
  0%,
  28% {
    opacity: 1;
    transform: scale(1.04);
  }
  36%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-emblem {
  display: inline-block;
  margin-bottom: 18px;
}
.hero-emblem img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}
.hero-emblem-text {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--white);
  font-weight: 600;
  opacity: .92;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero h1 {
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.35;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow-400);
}
.hero h1 .row2 {
  display: block;
  margin-top: 4px;
}
.hero p.lead {
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255,255,255,.92);
  margin-bottom: 30px;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
  line-height: 1.9;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.lead-mobile-break { display: none; }
.mobile-only-break { display: none; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero .btn-outline {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.hero .btn-outline:hover { background: var(--white); color: var(--green-900); border-color: var(--white); }

/* 底部 SVG 弧線（drsaibosi 招牌切角） */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 3;
  display: block;
  pointer-events: none;
}
.hero-wave path { fill: var(--bg-soft); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide-home { opacity: 1; transform: none; }
}

/* Hero 下方數據條：獨立一段，浮在 wave 之上 */
.hero-stats-band {
  background: var(--bg-soft);
  padding: 40px 0 56px;
}
.hero-stats-band .container { position: relative; }
.hero-stats {
  position: relative;
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: -80px;
  z-index: 4;
}
.hero-stat {
  position: relative;
  padding: 6px 8px;
  text-align: center;
}
.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  width: 1px; height: 76%;
  background: var(--gray-200);
}
.hero-stat .num {
  font-size: 32px;
  font-weight: 800;
  background: var(--grad-gy-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hero-stat .num small { font-size: 13px; color: var(--gray-500); margin-left: 4px; -webkit-text-fill-color: var(--gray-500); }
.hero-stat .label { font-size: 13px; color: var(--gray-700); margin-top: 8px; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: .2s;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: var(--grad-gy-dark);
  color: var(--white);
  box-shadow: var(--shadow-gy);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(180, 198, 36, .42); }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-line:hover { background: #05a649; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--green-900);
  border: 2px solid var(--green-300);
}
.btn-outline:hover { background: var(--green-100); border-color: var(--green-500); }
.btn-ghost { background: var(--white); color: var(--green-900); border: 1px solid var(--gray-200); }
.btn-ghost:hover { background: var(--green-50); border-color: var(--green-300); }

/* (hero-stats 規則已移至上方 hero 區塊) */

/* === Section 通用 === */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-gray { background: var(--gray-100); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  display: inline-block;
  background: var(--grad-gy-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 13px;
  margin-bottom: 12px;
  position: relative;
  padding: 0 22px;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--grad-gy);
  border-radius: 2px;
}
.section-head .eyebrow::before { left: 0; }
.section-head .eyebrow::after { right: 0; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--green-900);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--gray-700);
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
}

/* === 服務卡片（drsaibosi 風：漸層 icon + 圓角 + hover lift） === */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0 0 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: .3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--green-100);
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27,77,44,.35) 100%);
  transition: .3s;
}
.service-card:hover .service-thumb::after {
  background: linear-gradient(180deg, transparent 35%, rgba(27,77,44,.55) 100%);
}
.service-icon {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 64px; height: 64px;
  background: var(--grad-gy);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px;
  color: var(--white);
  box-shadow: var(--shadow-gy);
  border: 4px solid var(--white);
  z-index: 2;
}
.service-card h3 {
  font-size: 19px;
  color: var(--green-900);
  margin: 28px 22px 8px;
  font-weight: 800;
}
.service-card p { font-size: 14px; color: var(--gray-700); margin: 0 22px 16px; line-height: 1.75; }
.service-card .more {
  font-size: 14px;
  color: var(--green-700);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--green-50);
  transition: .2s;
}
.service-card .more::after { content: "→"; transition: .2s; }
.service-card:hover .more {
  background: var(--grad-gy);
  color: var(--white);
}
.service-card:hover .more::after { transform: translateX(3px); }

/* === About === */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-img {
  aspect-ratio: 4/5;
  background: var(--green-100);
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: var(--green-700);
  position: relative;
  box-shadow: var(--shadow-md);
}
.about-img::after {
  content: "";
  position: absolute;
  bottom: -22px; right: -22px;
  width: 60%; height: 40%;
  background: var(--grad-gy);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .85;
}
.about-content .eyebrow {
  background: var(--grad-gy-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 13px;
  margin-bottom: 12px;
  display: inline-block;
}
.about-content h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--green-900);
  margin-bottom: 18px;
  line-height: 1.3;
}
.about-content p { color: var(--gray-700); margin-bottom: 16px; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 24px 0;
}
.about-features li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--gray-900); font-weight: 600;
}
.about-features li::before {
  content: "✓";
  background: var(--grad-gy);
  color: white;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(180,198,36,.35);
}

/* === Why us（drsaibosi 風漸層 icon） === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: .3s;
  text-align: center;
  position: relative;
}
.why-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.why-icon {
  width: 72px; height: 72px;
  background: var(--grad-gy);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 32px;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-gy);
  transition: .3s;
}
.why-card:hover .why-icon {
  transform: rotate(-8deg) scale(1.05);
}
.why-card h3 { font-size: 18px; color: var(--green-900); margin-bottom: 8px; font-weight: 800; }
.why-card p { font-size: 14px; color: var(--gray-700); line-height: 1.8; }

/* === Process（drsaibosi 風：6 步驟橫向流程含圖片） === */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  position: relative;
}
.process-step {
  background: var(--white);
  padding: 0 0 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  border: 1px solid var(--gray-200);
  transition: .3s;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.process-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--green-100);
  background-size: cover;
  background-position: center;
  margin-bottom: 36px;
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.process-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,77,74,.40) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.process-num {
  width: 48px; height: 48px;
  background: var(--grad-gy);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 18px;
  position: absolute;
  left: 50%; bottom: -24px;
  transform: translateX(-50%);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-gy);
  z-index: 3;
}
.process-step h4 { color: var(--green-900); margin: 0 16px 6px; font-size: 16px; font-weight: 800; }
.process-step p { font-size: 13px; color: var(--gray-700); margin: 0 16px; line-height: 1.7; }

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, #0a7a72 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 320px; height: 320px;
  background: var(--grad-gy);
  border-radius: 50%;
  opacity: .25;
  filter: blur(20px);
}
.cta-banner::after {
  content: "";
  position: absolute;
  left: -60px; bottom: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(243,209,25,.4), transparent 70%);
  border-radius: 50%;
}
.cta-banner > div { position: relative; z-index: 1; }
.cta-banner h2,
.detail-content .cta-banner h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-weight: 800;
  color: var(--white);
}
.cta-banner p,
.detail-content .cta-banner p {
  color: rgba(255, 255, 255, .92);
  margin: 0;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }

/* === FAQ === */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: .2s;
}
.faq-item[open] { border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--green-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--green-700);
  font-weight: 400;
  transition: .2s;
}
.faq-item[open] {
  border-color: transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              var(--grad-gy) border-box;
  border: 1px solid transparent;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--green-900); }
.faq-item .answer {
  padding: 0 24px 22px;
  color: var(--gray-700);
  font-size: 15px;
}

/* === Testimonials === */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 22px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.rating-summary .big {
  font-size: 30px;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1;
}
.rating-summary .stars { font-size: 18px; }
.rating-summary .meta { font-size: 13px; color: var(--gray-500); }

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.testimonial-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: .2s;
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--green-500); }

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.stars { color: #f5b400; letter-spacing: 2px; font-size: 16px; }
.rating-num { color: var(--green-900); font-weight: 800; font-size: 14px; }
.testimonial-tag {
  margin-left: auto;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.testimonial-quote {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 18px;
  flex: 1;
}
.testimonial-quote::before {
  content: "“";
  display: inline-block;
  font-size: 28px;
  background: var(--grad-gy-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Georgia, serif;
  line-height: 0;
  margin-right: 4px;
  vertical-align: -8px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--green-900); font-size: 15px; }
.testimonial-meta { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* === Credentials 認證區塊 === */
.cred-featured {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: .2s;
}
.cred-featured:hover { box-shadow: var(--shadow-md); border-color: var(--green-500); }
.cred-featured .cred-img-wrap {
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  aspect-ratio: 3/4;
  display: grid; place-items: center;
  color: var(--gray-500);
  font-size: 13px;
  background-size: cover;
  background-position: center;
  transition: .2s;
}
.cred-featured .cred-img-wrap:hover { transform: scale(1.02); }
.cred-featured h3 {
  font-size: 24px;
  color: var(--green-900);
  margin-bottom: 10px;
}
.cred-featured .cred-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.cred-featured .cred-num {
  font-size: 18px;
  color: var(--orange-600);
  font-weight: 800;
  margin: 8px 0;
  letter-spacing: 1px;
}
.cred-featured p { color: var(--gray-700); }

.cred-subhead {
  text-align: center;
  font-size: 18px;
  color: var(--green-900);
  margin: 36px 0 22px;
  font-weight: 700;
}
.cred-subhead::before, .cred-subhead::after {
  content: "—";
  color: var(--gray-200);
  margin: 0 12px;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.cred-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: .2s;
  cursor: zoom-in;
  display: block;
}
.cred-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-500);
}
.cred-card .cred-img-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-100);
  background-size: cover;
  background-position: center;
  display: grid; place-items: center;
  color: var(--gray-500);
  font-size: 12px;
}
.cred-card .cred-meta {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--gray-700);
  text-align: center;
  border-top: 1px solid var(--gray-200);
  font-weight: 600;
}
.cred-card .cred-meta strong { color: var(--green-900); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
  cursor: zoom-out;
  animation: fadeIn .2s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  cursor: pointer;
  border: 0;
  transition: .15s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 720px) {
  .cred-featured { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
  .cred-featured .cred-img-wrap { max-width: 280px; margin: 0 auto; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === 延伸閱讀 / 知識卡（cross-link 到 pestfinder.tw） === */
.knowledge-block {
  background: linear-gradient(135deg, #d8efeb 0%, #e8f6f4 100%);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin: 36px 0 12px;
  position: relative;
  overflow: hidden;
}
.knowledge-block::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: var(--grad-gy-soft);
  border-radius: 50%;
  opacity: .3;
  filter: blur(28px);
}
.knowledge-block > * { position: relative; z-index: 1; }
.knowledge-block .kb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.knowledge-block .kb-icon {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  border: 1px solid var(--green-100);
}
.knowledge-block h3 {
  color: var(--green-900);
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}
.knowledge-block h3::before { display: none !important; }
.knowledge-block .kb-lead {
  color: var(--gray-700);
  font-size: 14.5px;
  margin: 0 0 20px;
  line-height: 1.8;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.knowledge-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: .2s;
  text-decoration: none;
}
.knowledge-link:hover {
  border-color: var(--green-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.knowledge-link .kl-bullet {
  color: var(--green-700);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.knowledge-link .kl-body strong {
  display: block;
  color: var(--green-900);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.knowledge-link .kl-body span {
  color: var(--gray-700);
  font-size: 12.5px;
  line-height: 1.6;
}
.knowledge-block .kb-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray-700);
}
.knowledge-block .kb-source a {
  color: var(--green-700);
  font-weight: 700;
  border-bottom: 1px dashed var(--green-300);
}

/* sidebar resource card (簡版) */
.sidebar-card.sidebar-resource {
  background: linear-gradient(135deg, #e8f6f4 0%, #d8efeb 100%);
  border-color: transparent;
}
.sidebar-card.sidebar-resource h4 { border-color: rgba(0,0,0,.08); }
.sidebar-card.sidebar-resource ul li {
  margin-bottom: 0;
}
.sidebar-card.sidebar-resource ul li a {
  display: flex;
  gap: 8px;
  padding: 9px 10px;
  font-size: 13.5px;
  color: var(--gray-900);
  border-radius: 8px;
  transition: .15s;
}
.sidebar-card.sidebar-resource ul li a:hover {
  background: var(--white);
  color: var(--green-700);
}
.sidebar-card.sidebar-resource ul li a::before {
  content: "›";
  color: var(--green-700);
  font-weight: 800;
}

/* === 圖片占位框（等 AI 生成圖片貼上） === */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(180,198,36,.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--green-50), #e8f6f4);
  border: 2px dashed var(--green-300);
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: var(--green-900);
  position: relative;
}
.img-placeholder::before {
  content: "🖼";
  position: absolute;
  top: 12px; left: 14px;
  font-size: 20px;
  opacity: .6;
}
.img-placeholder .ph-inner {
  max-width: 92%;
}
.img-placeholder .ph-file {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: var(--white);
  color: var(--green-900);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--green-300);
  margin-bottom: 8px;
  font-weight: 700;
}
.img-placeholder .ph-prompt {
  font-size: 12px;
  color: var(--gray-700);
  line-height: 1.6;
  font-weight: 500;
}

/* === 子頁柔性訴求區塊（soft-hook / care-grid / scene-grid / guarantee） === */
.soft-hook {
  background: linear-gradient(135deg, #e8f6f4 0%, #d8efeb 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 56px 0 8px;
  position: relative;
  overflow: hidden;
}
.soft-hook::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  background: var(--grad-gy-soft);
  border-radius: 50%;
  opacity: .35;
  filter: blur(30px);
}
.soft-hook-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.soft-hook-img img,
.scene-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.soft-hook-text { position: relative; z-index: 1; }
.soft-hook-text .eyebrow {
  display: inline-block;
  background: var(--white);
  color: var(--green-700);
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  border: 1px solid var(--green-100);
}
.soft-hook h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--green-900);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 800;
}
.soft-hook h2::before { display: none !important; }
.soft-hook h2 em { font-style: normal; color: var(--orange-600); }
.soft-hook p {
  color: var(--gray-700);
  line-height: 1.95;
  margin-bottom: 12px;
  font-size: 15.5px;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.care-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: .25s;
}
.care-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.care-icon {
  width: 64px; height: 64px;
  background: var(--grad-gy);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-gy);
}
.care-card h4 {
  font-size: 16px;
  color: var(--green-900);
  margin-bottom: 8px;
  font-weight: 800;
}
.care-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.75;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 36px;
}
.scene-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}
.scene-tile::after {
  content: attr(data-label);
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255,255,255,.95);
  color: var(--green-900);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.guarantee-box {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 36px 36px 132px;
  position: relative;
  margin: 36px 0 24px;
  overflow: hidden;
}
.guarantee-box::before {
  content: "✓";
  position: absolute;
  left: 32px; top: 50%;
  transform: translateY(-50%);
  width: 72px; height: 72px;
  background: var(--grad-gy);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  box-shadow: var(--shadow-gy);
}
.guarantee-box::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 200px; height: 200px;
  background: var(--grad-gy);
  border-radius: 50%;
  opacity: .15;
  filter: blur(20px);
}
.guarantee-box h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 800;
  position: relative; z-index: 1;
}
.guarantee-box p {
  color: rgba(255,255,255,.9);
  margin: 0;
  position: relative; z-index: 1;
  line-height: 1.8;
  font-size: 15px;
}

.mom-quote {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: .2s;
}
.mom-quote:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.mom-quote .stars { color: #f5b400; font-size: 16px; margin-bottom: 10px; display: block; }
.mom-quote p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
  font-style: italic;
}
.mom-quote p::before {
  content: "「";
  color: var(--green-500);
  font-weight: 800;
}
.mom-quote p::after {
  content: "」";
  color: var(--green-500);
  font-weight: 800;
}
.mom-quote .who {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
}
.mom-quote .avatar {
  width: 40px; height: 40px;
  background: var(--grad-gy);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
}
.mom-quote .who strong { color: var(--green-900); font-size: 14px; display: block; }
.mom-quote .who span { color: var(--gray-500); font-size: 12px; }

@media (max-width: 720px) {
  .soft-hook { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .guarantee-box { padding: 28px; }
  .guarantee-box::before { position: static; transform: none; margin-bottom: 16px; }
}

/* === Article 文章內頁 === */
.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.article-meta .article-tag {
  background: var(--green-100);
  color: var(--green-700);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.article-content p { margin-bottom: 16px; }
.article-content .lead {
  font-size: 17px;
  color: var(--gray-900);
  font-weight: 500;
  border-left: 3px solid var(--green-500);
  padding-left: 16px;
  margin: 0 0 28px;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-700);
  font-weight: 700;
  margin-top: 20px;
}
.article-back:hover { color: var(--green-900); }

/* === Highlight Quote (重點引言區塊) === */
.highlight-quote {
  position: relative;
  background: linear-gradient(135deg, var(--green-100) 0%, #e0f4f1 100%);
  border-left: 6px solid var(--green-500);
  border-radius: var(--radius-md);
  padding: 32px 32px 32px 80px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.highlight-quote::before {
  content: "“";
  position: absolute;
  left: 22px; top: 8px;
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--green-500);
  opacity: .55;
}
.highlight-quote p {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.7;
  color: var(--green-900);
  font-weight: 700;
  margin: 0 0 8px;
}
.highlight-quote .quote-em { color: var(--orange-600); }
.highlight-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 600;
}

/* === Service detail page === */
.page-hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 60%, #0a7a72 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/圖1.jpg");
  background-size: cover;
  background-position: center;
  opacity: .22;
}
.page-hero-rat {
  background: linear-gradient(105deg, #173820 0%, #2b6b38 58%, #71951f 100%);
  min-height: 78vh;
  max-height: 820px;
  padding: 100px 0 140px;
  display: flex;
  align-items: center;
}
.page-hero-rat .container { width: 100%; }
.page-hero-rat::before {
  background-image:
    linear-gradient(90deg, rgba(9, 33, 20, .78) 0%, rgba(24, 67, 37, .62) 45%, rgba(24, 67, 37, .22) 100%),
    url("../images/rat-hero-family.jpg");
  background-position: center 45%;
  opacity: .78;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 340px; height: 340px;
  background: var(--grad-gy);
  border-radius: 50%;
  opacity: .22;
  filter: blur(30px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 3;
  display: block;
  pointer-events: none;
}
.page-hero-wave path { fill: var(--white); }
.breadcrumb { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.breadcrumb a { color: var(--white); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.page-hero p { opacity: .9; max-width: 640px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
.detail-content h2 {
  font-size: 24px;
  color: var(--green-900);
  margin: 28px 0 12px;
  padding-left: 16px;
  position: relative;
  font-weight: 800;
}
.detail-content h2::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 5px;
  background: var(--grad-gy);
  border-radius: 3px;
}
.detail-content h3 { font-size: 18px; color: var(--green-900); margin: 22px 0 8px; }
.detail-content p { color: var(--gray-700); margin-bottom: 14px; }
.detail-content ul { padding-left: 22px; margin-bottom: 18px; color: var(--gray-700); }
.detail-content ul li { list-style: disc; margin-bottom: 6px; }
.detail-figure {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--green-100);
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  display: grid; place-items: center;
  color: var(--green-700);
  margin: 22px 0;
}

.sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 {
  color: var(--green-900);
  margin-bottom: 14px;
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}
.sidebar-list li a {
  display: block;
  padding: 10px 12px;
  color: var(--gray-700);
  border-radius: 8px;
  font-size: 15px;
  transition: .15s;
}
.sidebar-list li a:hover, .sidebar-list li a.active {
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 600;
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  background: var(--grad-gy);
  border-radius: 50%;
  opacity: .25;
  filter: blur(12px);
}
.sidebar-cta > * { position: relative; }
.sidebar-cta h4 { color: var(--white); border-color: rgba(255,255,255,.2); }
.sidebar-cta .phone {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #7DDDD5 0%, #B8E8E5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 6px 0 12px;
  display: block;
}
.sidebar-cta .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* === Portfolio === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: .25s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portfolio-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--green-100);
  background-size: cover;
  background-position: center;
  display: grid; place-items: center;
  color: var(--green-700);
}
.portfolio-info { padding: 20px 22px; }
.portfolio-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-weight: 700;
}
.portfolio-info h3 { font-size: 17px; color: var(--green-900); margin-bottom: 6px; }
.portfolio-info p { font-size: 14px; color: var(--gray-700); }

/* === News === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-500); }
.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--green-100);
  background-size: cover;
  background-position: center;
  display: grid; place-items: center;
  color: var(--green-700);
}
.news-info { padding: 20px; }
.news-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.news-info h3 { font-size: 17px; color: var(--green-900); margin-bottom: 8px; line-height: 1.4; }
.news-info p { font-size: 14px; color: var(--gray-700); }

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: var(--grad-gy);
  border-radius: 50%;
  opacity: .22;
  filter: blur(20px);
}
.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-card h3 { font-size: 22px; margin-bottom: 24px; }
.contact-info-card .item {
  display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start;
}
.contact-info-card .icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-card .label { font-size: 12px; opacity: .8; margin-bottom: 2px; }
.contact-info-card .value { font-weight: 600; }
.contact-info-card a.value:hover { color: var(--yellow-400); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px;
}
.contact-form h3 { color: var(--green-900); margin-bottom: 8px; }
.contact-form p.muted { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field label { font-size: 13px; color: var(--gray-700); font-weight: 600; margin-bottom: 6px; display: block; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: .15s;
  background: var(--white);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.form-submit { display: flex; gap: 12px; flex-wrap: wrap; }
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.form-status.sending { display: block; background: var(--gray-100); color: var(--gray-700); }
.form-status.success { display: block; background: var(--green-100); color: var(--green-900); border: 1px solid var(--green-500); }
.form-status.error { display: block; background: #fde8e8; color: #c81e1e; border: 1px solid #f8b4b4; }

/* === Footer (drsaibosi 風：淺底 3 欄 + 底部綠條) === */
.footer {
  background: var(--bg-soft);
  color: var(--gray-700);
  padding: 72px 0 0;
  font-size: 14px;
  border-top: 1px solid var(--gray-200);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}
.footer-brand .logo { margin-bottom: 14px; display: block; }
.footer-brand .logo-mark {
  width: 220px;
  height: auto;
  max-width: 100%;
  filter: none;
}
.footer-brand p {
  line-height: 1.8;
  color: var(--gray-700);
  font-size: 13px;
}
.footer h5 {
  color: var(--green-900);
  margin-bottom: 18px;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 800;
  position: relative;
  padding-left: 14px;
}
.footer h5::before {
  content: "";
  position: absolute;
  left: 0; top: 3px; bottom: 3px;
  width: 4px;
  background: var(--grad-gy);
  border-radius: 2px;
}
.footer ul li {
  margin-bottom: 12px;
  color: var(--gray-700);
  line-height: 1.7;
}
.footer ul li a { color: var(--gray-700); transition: .15s; }
.footer ul li a:hover { color: var(--green-700); }
.footer-bottom {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: rgba(255,255,255,.92);
  padding: 18px 24px;
  text-align: center;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-bottom a:hover { color: var(--yellow-400); }
.cert-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-top: 12px;
  color: var(--green-900);
  font-weight: 700;
}

/* === Floating buttons === */
.floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}
.fab {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: .2s;
  font-size: 22px;
  font-weight: 700;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-line { background: var(--line-green); }
.fab-tel { background: var(--grad-gy-dark); }
.fab-top { background: var(--green-900); font-size: 16px; }

.fab-label {
  position: absolute;
  right: 70px;
  background: var(--gray-900);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: .2s;
  pointer-events: none;
}
.fab-wrap { position: relative; }
.fab-wrap:hover .fab-label { opacity: 1; transform: translateX(0); }

/* === RWD === */
@media (max-width: 980px) {
  .hero { min-height: 64vh; padding: 80px 20px 120px; }
  .hero h1 { letter-spacing: 1px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-img { aspect-ratio: 16/10; }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 36px; text-align: center; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .topbar-info { font-size: 12px; gap: 10px; }
  .header .container {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .logo-mark { width: 110px; max-width: none; }
  .menu-toggle { display: block; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav.open > ul { flex-direction: column; gap: 0; }
  .nav.open > ul > li > a { display: block; padding: 14px; border-radius: 0; border-bottom: 1px solid var(--gray-200); }
  .nav.open .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 16px; }
  .nav.open .nav-cta { margin: 12px 0 0; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .hero { min-height: 640px; padding: 60px 16px 130px; }
  .hero-emblem img { width: 88px; }
  .hero-emblem-text { font-size: 11px; letter-spacing: 5px; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 34px); line-height: 1.32; letter-spacing: 1px; }
  .hero p.lead { font-size: 14px; max-width: 330px; margin-bottom: 24px; }
  .lead-mobile-break { display: inline; }
  .mobile-only-break { display: block; }
  .page-hero-rat::before { background-position: 68% center; opacity: .82; }
  .hero-cta { flex-direction: column; align-items: center; gap: 10px; }
  .hero .btn { width: min(100%, 252px); justify-content: center; padding: 13px 18px; font-size: 14px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 20px 14px; margin-top: -70px; gap: 16px 4px; }
  .hero-stat + .hero-stat::before { display: none; }
  .hero-stat:nth-child(3)::after, .hero-stat:nth-child(4)::after {
    content: ""; position: absolute; top: -8px; left: 10%; right: 10%; height: 1px; background: var(--gray-200);
  }
  .hero-wave { height: 60px; }
  .floating { right: 12px; bottom: 12px; gap: 8px; }
  .fab { width: 48px; height: 48px; font-size: 18px; }
  .fab-label { display: none; }
  .cta-banner { padding: 28px; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
