* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue:   #1565C0;
  --lblue:  #1E88E5;
  --orange: #F57C00;
  --dark:   #1a1a2e;
  --gray:   #f5f7fa;
  --text:   #333;
}
body { font-family: '微軟正黑體', 'Microsoft JhengHei', sans-serif; color: var(--text); }
a { text-decoration: none; color: inherit; }

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(21,101,192,0.96);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 5%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
nav img.nav-logo { height: 44px; }
.nav-cta {
  background: #fff; color: var(--blue);
  font-weight: bold; font-size: 15px;
  padding: 8px 20px; border-radius: 30px;
  transition: all .2s;
}
.nav-cta:hover { background: #e3f2fd; }

/* HERO */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d3b8e 0%, #1565C0 50%, #1E88E5 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 5% 60px;
  position: relative; overflow: hidden;
}
.hero-content { position: relative; z-index: 1; }
.hero img.mascot { width: 130px; margin-bottom: 20px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3)); }
.hero h1 { font-size: clamp(28px, 5vw, 52px); color: #fff; line-height: 1.3; margin-bottom: 16px; }
.hero h1 span { color: #FDD835; }
.hero p.sub { font-size: clamp(15px, 2vw, 20px); color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #FDD835; color: #1a1a2e;
  font-size: 17px; font-weight: bold;
  padding: 14px 32px; border-radius: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform .2s;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  font-size: 17px; font-weight: bold;
  padding: 14px 32px; border-radius: 40px;
  backdrop-filter: blur(4px);
  transition: background .2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.slogan-bar {
  margin-top: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px; padding: 14px 28px;
  display: inline-block;
  font-size: 16px; color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
}

/* ALERT BANNER — 工班交接 */
.alert-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  padding: 56px 5%;
  text-align: center;
  position: relative; overflow: hidden;
}
.alert-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url('case3.jpg') center/cover no-repeat;
  opacity: 0.06;
}
.alert-inner { position: relative; z-index: 1; }
.alert-tag {
  display: inline-block;
  background: var(--orange); color: #fff;
  font-size: 13px; font-weight: bold;
  padding: 4px 16px; border-radius: 20px;
  letter-spacing: 2px; margin-bottom: 20px;
}
.alert-banner h2 {
  font-size: clamp(22px, 4vw, 40px);
  color: #fff; line-height: 1.4; margin-bottom: 12px;
}
.alert-banner h2 em { color: #FDD835; font-style: normal; }
.alert-banner p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 36px; }
.alert-steps {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
  margin-bottom: 36px;
}
.alert-step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 16px 24px;
  color: #fff; font-size: 14px; min-width: 160px;
}
.alert-step .step-num { font-size: 24px; margin-bottom: 6px; }

/* SECTION COMMON */
section { padding: 72px 5%; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(22px, 3vw, 34px); color: var(--blue); }
.section-title p { color: #666; margin-top: 8px; font-size: 15px; }
.section-title h2::after {
  content: ''; display: block;
  width: 48px; height: 4px;
  background: var(--lblue); border-radius: 2px;
  margin: 12px auto 0;
}

/* FEATURES */
.features { background: var(--gray); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; max-width: 1100px; margin: 0 auto; }
.feat-card {
  background: #fff; border-radius: 16px;
  padding: 32px 24px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform .2s;
}
.feat-card:hover { transform: translateY(-4px); }
.feat-icon { font-size: 40px; margin-bottom: 16px; }
.feat-card h3 { font-size: 17px; color: var(--blue); margin-bottom: 10px; }
.feat-card p { font-size: 14px; color: #666; line-height: 1.7; }
.feat-card.equip { border-top: 4px solid var(--orange); }
.feat-card.equip h3 { color: var(--orange); }

/* COMPARISON */
.comparison { background: #fff; }
.compare-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.compare-table th { padding: 18px 20px; font-size: 16px; text-align: center; }
.compare-table th:first-child { background: #f0f0f0; color: #555; width: 30%; }
.compare-table th.th-old { background: #9E9E9E; color: #fff; }
.compare-table th.th-new { background: var(--blue); color: #fff; }
.compare-table td { padding: 14px 20px; font-size: 14px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.compare-table td:first-child { text-align: left; font-weight: bold; color: #444; background: #fafafa; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td:not(:first-child) { background: #f9fbff; }
.badge-bad  { color: #c62828; font-weight: bold; }
.badge-good { color: #2e7d32; font-weight: bold; }
.compare-note { text-align: center; margin-top: 20px; font-size: 13px; color: #888; }

/* SERVICES */
.services { background: var(--gray); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.svc-card {
  background: #fff;
  border: 2px solid #e3f2fd; border-radius: 16px;
  padding: 28px 24px; position: relative; overflow: hidden;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 6px; height: 100%; background: var(--lblue);
}
.svc-card.highlight::before { background: var(--orange); }
.svc-card.highlight { border-color: #ffe0b2; }
.svc-badge {
  display: inline-block; background: var(--orange); color: #fff;
  font-size: 11px; font-weight: bold; padding: 2px 10px;
  border-radius: 10px; margin-bottom: 10px;
}
.svc-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 14px; }
.svc-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.svc-item:last-child { border-bottom: none; }
.svc-item::before { content: '✔'; color: var(--lblue); font-size: 13px; flex-shrink: 0; }
.svc-card.highlight .svc-item::before { color: var(--orange); }
.svc-note { font-size: 12px; color: #999; margin-top: 14px; }
.svc-cta { margin-top: 40px; text-align: center; }
.svc-cta p { color: #555; margin-bottom: 16px; font-size: 15px; }

/* GALLERY */
.gallery { background: var(--dark); }
.gallery .section-title h2 { color: #fff; }
.gallery .section-title p { color: rgba(255,255,255,0.6); }
.gallery .section-title h2::after { background: #FDD835; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-label {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.6); color: #FDD835;
  font-size: 12px; font-weight: bold;
  padding: 3px 10px; border-radius: 12px;
}
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff; font-size: 13px; padding: 20px 14px 12px;
}

/* BUILDER CTA */
.builder-cta {
  background: linear-gradient(135deg, var(--orange) 0%, #E65100 100%);
  padding: 64px 5%; text-align: center;
}
.builder-cta h2 { font-size: clamp(22px, 3vw, 36px); color: #fff; margin-bottom: 12px; }
.builder-cta p { color: rgba(255,255,255,0.88); font-size: 16px; margin-bottom: 32px; line-height: 1.7; }
.btn-white {
  background: #fff; color: var(--orange);
  font-size: 18px; font-weight: bold;
  padding: 16px 40px; border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform .2s;
  display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); }

/* CONTACT */
.contact { background: var(--gray); }
.contact-wrap { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-info h3 { font-size: 22px; color: var(--blue); margin-bottom: 24px; }
.contact-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.contact-icon { font-size: 28px; }
.contact-label { font-size: 13px; color: #888; }
.contact-value { font-size: 20px; font-weight: bold; color: var(--dark); }
.contact-area { font-size: 14px; color: #555; margin-top: 4px; }
.qr-box { text-align: center; }
.qr-box img { width: 160px; border: 4px solid #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.qr-box p { margin-top: 12px; font-size: 14px; color: #555; }

/* FOOTER */
footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  text-align: center; padding: 24px 5%; font-size: 13px;
}

@media (max-width: 600px) {
  .contact-wrap { grid-template-columns: 1fr; text-align: center; }
  .contact-row { justify-content: center; }
  .alert-steps { flex-direction: column; align-items: center; }
}

/* PRICING in service cards */
.svc-price {
  margin-top: 16px; padding-top: 14px;
  border-top: 2px dashed #dde8f8;
  font-size: 13.5px; color: #555; line-height: 2;
}
.svc-price strong { color: var(--dark); font-size: 15px; }
.svc-card.highlight .svc-price { border-color: #ffd09a; }

/* WARRANTY */
.warranty { background: #fff; }
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 780px; margin: 0 auto;
}
.warranty-card {
  border-radius: 16px; padding: 32px 24px; text-align: center;
}
.warranty-card.w-blue { border: 2px solid #bbdefb; background: #f0f7ff; }
.warranty-card.w-gold { border: 2px solid #FDD835; background: #fffef0; }
.warranty-icon { font-size: 44px; margin-bottom: 10px; }
.warranty-num {
  font-size: 52px; font-weight: 900; line-height: 1; color: var(--blue);
}
.warranty-card.w-gold .warranty-num { color: #E65100; }
.warranty-unit { font-size: 20px; font-weight: bold; vertical-align: bottom; line-height: 2.4; }
.warranty-label { font-size: 13px; color: #999; margin: 4px 0 12px; }
.warranty-type { font-size: 17px; font-weight: bold; color: var(--dark); margin-bottom: 8px; }
.warranty-desc { font-size: 13px; color: #777; line-height: 1.75; }
.warranty-exclude {
  max-width: 640px; margin: 28px auto 0;
  background: #fff8f8; border-radius: 12px;
  padding: 18px 24px; border-left: 4px solid #e57373;
  font-size: 13.5px; color: #555; line-height: 1.9;
}
.warranty-exclude b { color: #c62828; }

/* CASE STUDIES (text cards inside gallery) */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px; max-width: 1100px; margin: 28px auto 0;
}
.case-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; padding: 22px 20px;
}
.case-tag {
  display: inline-block; background: #FDD835; color: #1a1a2e;
  font-size: 11px; font-weight: bold;
  padding: 2px 10px; border-radius: 10px; margin-bottom: 10px;
}
.case-card h4 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.case-card p { font-size: 13px; color: rgba(255,255,255,0.62); line-height: 1.8; }
.case-result {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px; color: #FDD835; font-weight: bold;
}

/* ===== v2：三分頁共用 ===== */
nav .nav-right { display: flex; gap: 10px; align-items: center; }
.nav-tel {
  color: #fff; font-weight: bold; font-size: 15px;
  padding: 8px 14px; border: 2px solid rgba(255,255,255,0.6); border-radius: 30px;
}
.tabs {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: #fff; display: flex; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow-x: auto;
}
.tabs a {
  padding: 12px 22px; font-size: 15px; font-weight: bold; color: #666;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--blue); }
.tabs a.active { color: var(--blue); border-bottom-color: var(--blue); }
.hero { padding-top: 150px; min-height: 88vh; }
.hero.hero-bld { background: linear-gradient(135deg, #263238 0%, #37474F 50%, #1565C0 100%); }
.hero.hero-bdr { background: linear-gradient(135deg, #1a1a2e 0%, #E65100 140%); }

/* 症狀卡 */
.symptoms { background: #fff; }
.sym-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.sym-card { background: var(--gray); border-radius: 14px; padding: 24px 20px; border-left: 5px solid var(--orange); }
.sym-card .sym-icon { font-size: 32px; margin-bottom: 8px; }
.sym-card h3 { font-size: 17px; color: var(--dark); margin-bottom: 6px; }
.sym-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* 流程 */
.steps { background: var(--gray); }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; counter-reset: s; }
.step-card { background: #fff; border-radius: 14px; padding: 28px 20px 22px; text-align: center; position: relative; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.step-card::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; line-height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: bold;
}
.step-card .step-icon { font-size: 34px; margin-bottom: 8px; }
.step-card h3 { font-size: 16px; color: var(--blue); margin-bottom: 6px; }
.step-card p { font-size: 13.5px; color: #666; line-height: 1.7; }

/* 價格卡 */
.price { background: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 820px; margin: 0 auto; }
.price-card { border: 2px solid #e3f2fd; border-radius: 16px; padding: 30px 24px; text-align: center; }
.price-card.main { border-color: var(--orange); background: #fffaf3; }
.price-card .p-name { font-size: 17px; font-weight: bold; color: var(--dark); margin-bottom: 10px; }
.price-card .p-num { font-size: 40px; font-weight: 900; color: var(--orange); line-height: 1.2; }
.price-card .p-num small { font-size: 16px; color: #888; font-weight: normal; }
.price-card .p-desc { font-size: 14px; color: #666; line-height: 1.8; margin-top: 10px; }
.price-note { max-width: 820px; margin: 22px auto 0; font-size: 13px; color: #888; line-height: 1.9; text-align: center; }

/* FAQ */
.faq { background: var(--gray); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { background: #fff; border-radius: 12px; margin-bottom: 12px; padding: 16px 20px; box-shadow: 0 1px 6px rgba(0,0,0,0.05); }
.faq-list summary { font-weight: bold; font-size: 15.5px; color: var(--dark); cursor: pointer; }
.faq-list details p { margin-top: 10px; font-size: 14px; color: #555; line-height: 1.8; }

@media (max-width: 600px) {
  .nav-tel { display: none; }
  .tabs { justify-content: flex-start; }
  .tabs a { padding: 12px 14px; font-size: 14px; }
}

/* 沒塞≠乾淨 */
.why { background: #fff; }
.why-wrap { max-width: 1000px; margin: 0 auto; }
.why-wrap img { width: 100%; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.why-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.why-point { background: var(--gray); border-radius: 12px; padding: 18px 20px; font-size: 14px; color: #555; line-height: 1.8; }
.why-point b { display: block; font-size: 16px; color: var(--blue); margin-bottom: 4px; }
