/* ===========================
   Bosen Dental 柏森牙醫
   =========================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-mint: #e8f4f5;
  --teal: #4a90a4;
  --teal-dark: #2e6b7d;
  --teal-light: #a8d5d8;
  --navy: #1a2b4a;
  --text: #1a2b4a;
  --text-mid: #4a5e7a;
  --text-soft: #8a96a8;
  --border: #e3e9f0;
  --border-soft: #eef2f7;
  --shadow: 0 20px 50px rgba(26, 43, 74, 0.08);
  --sans: 'Manrope', 'Noto Sans TC', -apple-system, sans-serif;
  --serif: 'Noto Serif TC', serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ TOPBAR ============ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  font-size: 15.1px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.topbar-left { display: flex; gap: 32px; }
.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-left svg { color: var(--teal-light); }
.topbar-right a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-light);
  font-weight: 600;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(26, 43, 74, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--teal);
}
.logo div { line-height: 1.2; }
.logo strong {
  display: block;
  font-size: 24.6px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.logo small {
  display: block;
  font-size: 12.2px;
  color: var(--teal);
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 16.2px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-mid);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--teal);
  color: #fff;
  font-size: 15.1px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-mint);
  color: var(--teal-dark);
  font-size: 14.6px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(41.6px, 5.7vw, 70.7px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 28px;
}
.hero-title .hl {
  color: var(--teal);
  position: relative;
  display: inline-block;
}
.hero-title .hl::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--teal-light);
  z-index: -1;
  opacity: 0.5;
}
.hero-desc {
  font-size: 19px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 28px;
}
.trust-item strong {
  display: block;
  font-size: 38.9px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.trust-item sup {
  font-size: 18.6px;
  color: var(--teal);
  margin-left: 2px;
}
.trust-item span {
  font-size: 14.6px;
  color: var(--text-soft);
  font-weight: 500;
  display: block;
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 600px;
}
.hero-img-main {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(26, 43, 74, 0.15);
}
.hero-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card {
  position: absolute;
  background: #fff;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(26, 43, 74, 0.12);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.hero-card svg {
  color: var(--teal);
  background: var(--bg-mint);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.hero-card strong {
  display: block;
  font-size: 16.2px;
  color: var(--navy);
  font-weight: 700;
}
.hero-card small {
  font-size: 13.4px;
  color: var(--text-soft);
}
.hero-card-1 {
  top: 12%;
  left: -20px;
  animation: float 5s ease-in-out infinite;
}
.hero-card-2 {
  bottom: 16%;
  right: -20px;
  animation: float 5s ease-in-out infinite 1.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 16.2px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn.large { padding: 20px 40px; font-size: 17.4px; }
.btn.full { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(74, 144, 164, 0.3);
}
.btn-line {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-line:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ============ SECTION HEAD ============ */
.section-eyebrow {
  font-size: 14.6px;
  letter-spacing: 0.2em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(37.4px, 4.7vw, 58.2px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-title em {
  color: var(--teal);
  font-style: normal;
}
.section-desc {
  font-size: 18.6px;
  color: var(--text-mid);
  margin-top: 16px;
}
.section-head { margin-bottom: 64px; }
.section-head.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ ABOUT / FEATURES ============ */
.about {
  padding: 120px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  background: var(--bg-soft);
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  transition: all 0.4s var(--ease);
}
.feature:hover {
  background: #fff;
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--teal-light);
}
.feat-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-mint);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 24px;
  transition: all 0.4s;
}
.feature:hover .feat-icon {
  background: var(--teal);
  color: #fff;
}
.feature h3 {
  font-size: 20.2px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.feature p {
  font-size: 16.2px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============ SERVICES ============ */
.services {
  padding: 120px 0;
  background: var(--bg-soft);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all 0.4s var(--ease);
}
.service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.srv-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.srv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.service:hover .srv-img img {
  transform: scale(1.08);
}
.srv-body {
  padding: 32px 28px;
  position: relative;
}
.srv-num {
  position: absolute;
  top: -20px;
  right: 24px;
  background: var(--teal);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15.1px;
  font-weight: 700;
}
.srv-body h3 {
  font-size: 24.6px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.srv-body p {
  font-size: 16.2px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.srv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 15.1px;
  font-weight: 600;
  transition: gap 0.3s;
}
.srv-link:hover { gap: 12px; }

/* ============ DOCTORS ============ */
.doctors {
  padding: 120px 0;
}
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.doctor {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all 0.4s var(--ease);
}
.doctor:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.dr-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-mint);
}
.dr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dr-body {
  padding: 32px 28px;
}
.dr-body h3 {
  font-size: 26.9px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.dr-title {
  font-size: 15.1px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.dr-body ul {
  list-style: none;
}
.dr-body ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15.1px;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.dr-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* ============ CASES ============ */
.cases {
  padding: 120px 0;
  background: var(--bg-soft);
}
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.cases-desc {
  font-size: 18.6px;
  color: var(--text-mid);
  margin: 24px 0 36px;
  max-width: 440px;
}
.testi-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testi {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}
.testi .stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testi .stars svg {
  width: 18px;
  height: 18px;
  color: #f5b942;
}
.testi p {
  font-size: 18.6px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.testi strong {
  font-size: 15.1px;
  color: var(--text-soft);
  font-weight: 600;
}

/* ============ CTA ============ */
.cta {
  padding: 80px 0;
  background: var(--bg);
}
.cta-card {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 60px 80px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cta-card h2 {
  font-size: 38.9px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-card p {
  font-size: 18.6px;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.cta-actions .btn-primary {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}
.cta-actions .btn-primary:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.cta-actions .btn-line {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.cta-actions .btn-line:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ============ CONTACT ============ */
.contact {
  padding: 120px 0;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-desc {
  font-size: 18.6px;
  color: var(--text-mid);
  margin: 24px 0 40px;
}
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: 14px;
  border: 1px solid var(--border-soft);
}
.info-card svg {
  color: var(--teal);
  background: var(--bg-mint);
  padding: 12px;
  border-radius: 12px;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}
.info-card h4 {
  font-size: 17.4px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.info-card p {
  font-size: 15.1px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Form */
.contact-form {
  background: var(--bg-soft);
  padding: 48px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form h3 {
  font-size: 26.9px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field label {
  display: block;
  font-size: 14.6px;
  color: var(--text-mid);
  font-weight: 600;
  margin-bottom: 8px;
}
.form-field label em {
  color: #e74c3c;
  font-style: normal;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-size: 16.2px;
  font-family: inherit;
  border-radius: 10px;
  transition: all 0.3s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.12);
}
.form-field textarea { resize: vertical; }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer .logo strong { color: #fff; }
.footer .logo small { color: var(--teal-light); }
.footer-col p {
  font-size: 16.2px;
  margin-top: 16px;
  line-height: 1.7;
}
.footer-col h5 {
  color: #fff;
  font-size: 16.2px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  font-size: 16.2px;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  font-size: 14.6px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ============ REVEAL ============ */
/* 「先藏起來再進場」的規則一律掛在 .js 底下：
   關掉 JS（或爬蟲不執行 JS）時 <html> 沒有 .js，內容直接完整呈現。 */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);   /* 同一組卡片依序錯開 */
}
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ MOBILE NAV / HAMBURGER ============ */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  z-index: 1001;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: all 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu-inner {
  min-height: 100%;
  padding: 110px 32px 60px;
  display: flex;
  flex-direction: column;
}
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--border-soft); }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 24.6px;
  font-weight: 600;
  color: var(--navy);
  transition: padding 0.3s var(--ease), color 0.3s;
}
.mobile-nav a span {
  font-size: 13.4px;
  letter-spacing: 0.2em;
  color: var(--teal);
  font-weight: 700;
}
.mobile-nav a:hover { padding-left: 12px; color: var(--teal); }
.mobile-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 16.2px;
  border-radius: 12px;
}
.mobile-foot {
  margin-top: auto;
  padding-top: 60px;
  font-size: 14.6px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  line-height: 1.9;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .topbar-left { gap: 20px; font-size: 14.6px; }
  .hero-title { font-size: clamp(41.6px, 6.2vw, 66.6px); }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { height: 480px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .cases-grid { grid-template-columns: 1fr; gap: 60px; }
  .cta-card { grid-template-columns: 1fr; padding: 50px 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .topbar { display: none; }
  .nav { padding: 14px 0; }
  .container { padding: 0 24px; }
  .logo strong { font-size: 20.2px; }
  .logo small { font-size: 11px; }

  .hero { padding: 40px 0 70px; }
  .hero-eyebrow { font-size: 13.4px; }
  .hero-title { font-size: clamp(37.4px, 9.4vw, 54.1px); line-height: 1.15; }
  .hero-desc { font-size: 16.2px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-actions .btn { padding: 14px 24px; font-size: 15.1px; }
  .hero-visual { height: 380px; }
  .hero-card-1 { left: 0; padding: 14px 18px; font-size: 14.6px; }
  .hero-card-2 { right: 0; padding: 14px 18px; font-size: 14.6px; }
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .hero-trust > * { font-size: 13.4px; }

  .about, .services, .doctors, .cases, .contact { padding: 80px 0; }
  .section-eyebrow { font-size: 13.4px; }
  .section-title { font-size: clamp(31.2px, 7.3vw, 45.8px); }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 24px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }

  .cta-card { padding: 40px 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .mobile-nav a { font-size: 21.3px; padding: 20px 0; }
  .mobile-menu-inner { padding: 100px 24px 50px; }
}


/* === CJK-LINEBREAK-RULE === 中文分行規範：斷在停頓處、不切詞、無孤字
   規範全文：~/網頁中文分行規範.md
   三類文字處理方式不同，所以這裡逐一列名，不用 [class*="desc"] 這種萬用選擇器
   （彈窗內文是從段落複製過來的多句散文，套上 keep-all 反而會斷得更糟）。 */

/* 標題與描述：需要多行時各行等長 */
h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .cta-card h2, .ls-head h1,
.hero-desc, .section-desc, .cases-desc, .contact-desc, .flow-desc,
.cta-card p, .ls-lead {
  text-wrap: balance;
}

/* 描述／標語：子句是不可拆的整體，只在空格（原本的逗號處）斷 */
.hero-desc, .section-desc, .cases-desc, .contact-desc, .flow-desc,
.cta-card p, .ls-lead {
  word-break: keep-all;
  overflow-wrap: break-word;   /* 最後保險：單一子句長到裝不下時才讓它斷 */
}

/* 內文散文（多句段落）：保留標點、不塞 <br>、只避免最後一行孤字 */
p, li, blockquote, dd { text-wrap: pretty; }

/* 彈窗內文是散文，即使 class 帶 desc 也不套 keep-all */
.srv-modal-desc, .srv-modal-detail p,
.dr-modal-detail p, .faq-a p { word-break: normal; }

/* 括號／引號裡面含標籤時整組黏死，避免「（」自己一行 */
.nb { white-space: nowrap; }
/* === /CJK-LINEBREAK-RULE === */

/* ================= 版面差異化 ================= */
/* 特色四欄 → 兩欄大卡；治療項目三欄 → 兩欄交錯下沉 */
.features-grid { grid-template-columns: repeat(2, 1fr); }
.services-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
/* 交錯下沉用 position 偏移，不用 transform：
   transform 要留給進場動畫與 hover 抬升，兩邊搶同一個屬性會互相蓋掉 */
.services-grid > *:nth-child(even) { position: relative; top: 44px; }
.srv-img { aspect-ratio: 4 / 3; }
/* 醫師三欄 → 四欄窄卡、照片改直式 */
.doctors-grid { grid-template-columns: repeat(4, 1fr); }
.dr-img { aspect-ratio: 3 / 4; border-radius: 0; }
/* 案例左右比例對調 */
.cases-grid { grid-template-columns: 1.25fr 1fr; }
@media (max-width: 900px) {.features-grid, .services-grid, .doctors-grid, .cases-grid{ grid-template-columns: 1fr; }.services-grid > *:nth-child(even){ transform: none; }}


/* ==========================================================================
   進場・微互動・跨頁轉場
   原則：原生 CSS + IntersectionObserver，不引入任何函式庫；
   所有「先藏起來再進場」的規則都掛在 .js 底下，沒有 JS 時內容照常呈現。
   ========================================================================== */

/* ---------- 跨頁轉場：支援的瀏覽器接手做淡入，不支援的直接忽略 ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .26s var(--ease) both; }
::view-transition-new(root) { animation: vtIn  .34s var(--ease) both; }
@keyframes vtOut { to   { opacity: 0; } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 首屏：等開場動畫收起來才依序進場 ---------- */
.js .rv-hero {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + .12s);
}
body.is-ready .rv-hero { opacity: 1; transform: none; }

/* ---------- 信賴數字：進場時從 0 跑上去 ---------- */
/* 等寬數字，跑動時寬度不會抖 */
.trust-item strong { font-variant-numeric: tabular-nums; }
/* 數字被包進 <span> 才能單獨改寫內容，但 .trust-item span 是下方標籤的樣式，
   會誤傷到它，這裡把數字的字級與顏色還原 */
.trust-item strong span {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
}

/* ==========================================================================
   看診流程（線條依序描出來 → 節點逐一亮起）
   ========================================================================== */
.flow { padding: 110px 0; background: var(--bg-mint); }
.flow-track { position: relative; }

.flow-line {
  position: absolute;
  top: 26px; left: 0;
  width: 100%; height: 2px;
  overflow: visible;
}
.flow-line path {
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 2;
  stroke-linecap: round;
}
/* pathLength="1" 把長度正規化，dashoffset 1 → 0 就是完整一筆 */
.js .flow-line path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease) .1s;
}
.js .flow-track.visible .flow-line path { stroke-dashoffset: 0; }

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  list-style: none;   /* <ol> 只是為了語意上的順序，不顯示編號（編號在圓點裡） */
}
.flow-step { text-align: center; }
.flow-dot {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal-light);
  color: var(--teal-dark);
  font-size: 17.4px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(26, 43, 74, .07);
}
.flow-step h3 {
  font-size: 19px; font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.flow-step p {
  font-size: 15.7px;
  color: var(--text-mid);
  line-height: 1.85;
  word-break: keep-all;      /* 短子句，只在空格處斷 */
  overflow-wrap: break-word;
}
.js .flow-dot {
  opacity: 0; transform: scale(.82);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i, 0) * .24s + .14s);
}
.js .flow-step h3,
.js .flow-step p {
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i, 0) * .24s + .28s);
}
.js .flow-track.visible .flow-dot { opacity: 1; transform: none; }
.js .flow-track.visible .flow-step h3,
.js .flow-track.visible .flow-step p { opacity: 1; transform: none; }

/* ==========================================================================
   常見問題（展開收合走 grid-template-rows，高度過渡才會平滑）
   ========================================================================== */
.faq { padding: 110px 0; background: var(--bg); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.faq-row { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-size: 19px; font-weight: 600;
  color: var(--navy);
  text-align: left;
  line-height: 1.55;
  transition: color .3s var(--ease);
}
.faq-q:hover { color: var(--teal); }
.faq-ico { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq-ico::before,
.faq-ico::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  background: var(--teal);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.faq-ico::before { width: 14px; height: 2px; }
.faq-ico::after  { width: 2px; height: 14px; }
.faq-row.is-open .faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-a { display: grid; grid-template-rows: 1fr; }
.js .faq-a {
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.js .faq-row.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 0;
  padding: 0 4px 26px;
  font-size: 17.4px;
  color: var(--text-mid);
  line-height: 1.9;
}

/* ==========================================================================
   表單微互動
   ========================================================================== */
.form-field label { transition: color .25s var(--ease); }
.form-field:focus-within label { color: var(--teal-dark); }

.form-done { display: none; text-align: center; padding: 24px 0 4px; }
.form-done.is-on { display: block; }
.form-done svg { width: 54px; height: 54px; margin: 0 auto 16px; }
.form-done circle { fill: none; stroke: var(--teal-light); stroke-width: 2; }
.form-done path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.form-done.is-on path { animation: tickDraw .5s var(--ease) .12s forwards; }
@keyframes tickDraw { to { stroke-dashoffset: 0; } }
.form-done strong { display: block; font-size: 18.6px; color: var(--navy); margin-bottom: 6px; }
.form-done span { font-size: 16.2px; color: var(--text-mid); }

/* ==========================================================================
   流程與問答的窄螢幕版
   ========================================================================== */
@media (max-width: 900px) {
  .flow { padding: 80px 0; }
  .flow-line { display: none; }          /* 橫線改成直線，見下方 ::before */
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    position: relative;
    padding-left: 8px;
  }
  .flow-steps::before {
    content: '';
    position: absolute;
    left: 35px; top: 20px; bottom: 20px;
    width: 2px;
    background: var(--teal-light);
    transform-origin: top;
  }
  .js .flow-steps::before { transform: scaleY(0); transition: transform 1.4s var(--ease) .1s; }
  .js .flow-track.visible .flow-steps::before { transform: none; }
  .flow-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 18px;
    row-gap: 2px;
    text-align: left;
  }
  /* 圓點跨兩列，標題行高對齊圓點中心，說明緊接在標題下面 */
  .flow-dot { margin: 0; grid-row: 1 / span 2; align-self: start; }
  .flow-step h3 { grid-column: 2; grid-row: 1; margin-bottom: 0; line-height: 54px; }
  .flow-step p  { grid-column: 2; grid-row: 2; }
  .faq { padding: 80px 0; }
  .faq-q { font-size: 18px; padding: 22px 4px; }
  .faq-a p { font-size: 16.2px; padding-bottom: 22px; }
}

/* ==========================================================================
   降低動態效果：一律直接呈現最終狀態
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: none; }
  .js .reveal,
  .js .rv-hero,
  .js .flow-dot,
  .js .flow-step h3,
  .js .flow-step p { opacity: 1; transform: none; transition: none; }
  .js .flow-line path { stroke-dashoffset: 0; transition: none; }
  .js .flow-steps::before { transform: none; transition: none; }
  .js .faq-a { transition: none; }
  .form-done.is-on path { animation: none; stroke-dashoffset: 0; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}



/* ==========================================================================
   版面重構（牙醫向）
   為什麼這樣改：
   1. 形狀語彙統一成「拱形＋圓角」——牙齒與門的意象，全站沒有銳角，
      診所網站的第一件事是讓人不緊繃。
   2. 資訊順序照診所被查詢的順序重排：時間・位置・電話 → 流程 → 項目
      → 費用 → 醫師 → 問答 → 預約。
   3. 治療項目改成「左欄釘選 ＋ 右欄捲動」，醫師改成一位一列的雜誌式橫排：
      醫師是診所的信任來源，四欄窄卡把他們縮成了縮圖。
   ========================================================================== */

:root {
  --ease-soft: cubic-bezier(.22, .61, .36, 1);   /* 比原本更柔，收尾更慢 */
  --arch: 280px 280px 32px 32px;                 /* 拱形 */
  --r-card: 24px;
}

/* ---------- 形狀語彙 ---------- */
.btn { border-radius: 100px; }
.feature,
.service,
.testi,
.contact-form,
.info-card,
.srv-modal-box,
.dr-modal-box { border-radius: var(--r-card); }
.hero-card { border-radius: 100px; padding: 14px 24px 14px 14px; }
.contact-form { border-radius: 28px; }

/* ---------- 首屏：不對稱雙欄 ＋ 拱形主視覺 ---------- */
.hero .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.hero .hero-visual { height: 620px; }
.hero-img-main { border-radius: var(--arch); }
.hero-card-1 { top: 7%; left: -30px; }
.hero-card-2 { bottom: 9%; right: -30px; }

/* 看診資訊條 */
.hero-bar {
  margin-top: 66px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  background: var(--bg-mint);
  border-radius: 26px;
}
.hb-cell {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 26px;
  border-right: 1px solid rgba(74, 144, 164, .22);
}
.hb-cell:first-child { padding-left: 8px; }
.hb-cell:nth-child(3) { border-right: 0; }
.hb-cell svg { color: var(--teal); flex-shrink: 0; }
.hb-cell strong {
  display: block;
  font-size: 13.4px; font-weight: 700;
  letter-spacing: .16em;
  color: var(--teal-dark);
  margin-bottom: 2px;
}
.hb-cell span { font-size: 16.2px; font-weight: 600; color: var(--navy); }
.hb-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px;
  border-radius: 100px;
  background: var(--teal);
  color: #fff;
  font-size: 16.2px; font-weight: 700;
  transition: background .35s var(--ease-soft), transform .35s var(--ease-soft);
}
.hb-cta:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ---------- 治療項目：左欄釘選 ＋ 右欄兩列交錯 ---------- */
.services { padding: 120px 0 165px; }
.services-split {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 72px;
  align-items: start;
}
.services-aside { position: sticky; top: 108px; }
.services-aside .section-head { margin-bottom: 26px; text-align: left; max-width: none; }
.srv-note {
  font-size: 16.2px;
  line-height: 1.9;
  color: var(--text-mid);
  padding-left: 16px;
  border-left: 2px solid var(--teal-light);
  margin-bottom: 28px;
  word-break: keep-all;
}
.services-split .services-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }

/* ---------- 醫師團隊：一位一列、照片左右交錯 ---------- */
.doctors { background: var(--bg-soft); }
.doctors-list { display: flex; flex-direction: column; gap: 64px; }
.doctors-list .doctor {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 58px;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.doctors-list .doctor:nth-child(even) { grid-template-columns: 1fr 310px; }
.doctors-list .doctor:nth-child(even) .dr-img { order: 2; }
.doctors-list .doctor:hover { transform: none; box-shadow: none; }
.doctors-list .dr-img {
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 24px 24px;   /* 與首屏同一個拱形語彙 */
  overflow: hidden;
}
.doctors-list .dr-img img { transition: transform .9s var(--ease-soft); }
.doctors-list .doctor:hover .dr-img img { transform: scale(1.04); }
.doctors-list .dr-body { padding: 0; }
.dr-no {
  display: block;
  font-size: 14.6px; font-weight: 700;
  letter-spacing: .22em;
  color: var(--teal);
  margin-bottom: 12px;
}
.doctors-list .dr-body h3 { font-size: 32.4px; margin-bottom: 8px; }
.doctors-list .dr-title { margin-bottom: 22px; }
.doctors-list .dr-body ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; }
.doctors-list .dr-body ul li { margin-bottom: 0; font-size: 15.7px; }
.dr-word {
  font-size: 19px;
  line-height: 1.85;
  color: var(--navy);
  padding-left: 18px;
  border-left: 2px solid var(--teal-light);
  word-break: keep-all;      /* 短子句，只在空格處斷 */
  overflow-wrap: break-word;
}

/* ---------- 收費區間 ---------- */
.fees { padding: 120px 0; background: var(--bg); }
.fee-table {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.fee-head,
.fee-row {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1.5fr .75fr;
  gap: 16px;
  align-items: center;
  padding: 18px 30px;
}
.fee-head {
  background: var(--bg-soft);
  font-size: 13.4px; font-weight: 700;
  letter-spacing: .16em;
  color: var(--text-soft);
}
.fee-row { border-top: 1px solid var(--border-soft); transition: background .35s var(--ease-soft); }
.fee-row:hover { background: var(--bg-mint); }
.fee-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.fee-tag {
  justify-self: start;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 14px; font-weight: 700;
  background: var(--bg-soft);
  color: var(--text-mid);
}
.fee-tag.is-nhi { background: var(--bg-mint); color: var(--teal-dark); }
.fee-price { font-size: 16.8px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.fee-times { font-size: 15.1px; color: var(--text-soft); }
.fee-foot {
  max-width: 980px;
  margin: 20px auto 0;
  font-size: 15.1px;
  color: var(--text-soft);
  text-align: center;
  word-break: keep-all;
}
/* 逐列進場 */
.js .fee-row {
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft), background .35s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 70ms + .15s);
}
.js .fee-table.visible .fee-row { opacity: 1; transform: none; }

/* ---------- 週看診時間表 ---------- */
.hours {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.hours-row {
  display: grid;
  grid-template-columns: 40px repeat(7, 1fr);
  gap: 8px;
  align-items: center;
  text-align: center;
  margin-bottom: 8px;
}
.hours-head {
  font-size: 14.6px; font-weight: 700;
  color: var(--text-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 12px;
}
.hours-head .is-off { color: #c98080; }
.hours-label { font-size: 14.6px; font-weight: 600; color: var(--text-mid); text-align: left; }
.hours-row i { position: relative; height: 26px; border-radius: 8px; background: var(--bg-soft); }
.hours-row i.on { background: var(--bg-mint); }
.hours-row i.on::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  transform: translate(-50%, -50%);
}
.hours-note { margin-top: 14px; font-size: 14.6px; color: var(--text-soft); word-break: keep-all; }
.js .hours-row i {
  opacity: 0; transform: scale(.86);
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 45ms + .1s);
}
.js .hours.visible .hours-row i { opacity: 1; transform: none; }

/* ---------- 字級 ----------
   原本 body 沒有指定字級，靠瀏覽器預設的 16px，中文讀起來偏小。
   這裡把基準拉到 18px，沒有另外指定字級的元素（清單、行動選單、頁尾連結）
   會一起變大；有指定的則已在各自的規則裡按比例調過。 */
body { font-size: 18px; }

/* 大標在窄螢幕會擠出孤字（「…諮｜詢」），字級跟著視窗縮 */
.cta-card h2 { font-size: clamp(28.1px, 6.7vw, 38.9px); }

/* ---------- 區段底色節奏：白 → 薄荷 → 淺灰 交錯 ---------- */
.cases { background: var(--bg); }
.faq { background: var(--bg-soft); }

/* ---------- 手機常駐預約列 ---------- */
.mbar { display: none; }

/* ==========================================================================
   響應式（放在最後，蓋掉前面同名的舊斷點）
   ========================================================================== */
@media (max-width: 1100px) {
  .services-split { grid-template-columns: 1fr; gap: 44px; }
  .services-aside { position: static; }
  .doctors-list .doctor,
  .doctors-list .doctor:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .doctors-list .doctor:nth-child(even) .dr-img { order: 0; }
  .doctors-list .dr-img { max-width: 320px; }
  .doctors-list .dr-body h3 { font-size: 28.1px; }
}
@media (max-width: 1024px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero .hero-visual { height: 520px; }
  .hero-bar { margin-top: 48px; }
}
@media (max-width: 900px) {
  .hero-bar { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
  .hb-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(74, 144, 164, .22);
    padding: 12px 4px;
  }
  .hb-cell:first-child { padding-left: 4px; }
  .hb-cell:nth-child(3) { border-bottom: 0; }
  .hb-cta { justify-content: center; margin-top: 12px; }

  .services { padding: 80px 0 120px; }
  .services-split .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .services-grid > *:nth-child(even) { top: 0; }   /* 單欄就不需要交錯下沉 */
  .fees { padding: 80px 0; }
  .fee-head { display: none; }
  .fee-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 18px 20px;
  }
  .fee-name { grid-column: 1; }
  .fee-tag  { grid-column: 2; justify-self: end; }
  .fee-price { grid-column: 1 / 3; font-size: 16.2px; }
  .fee-times { grid-column: 1 / 3; }
  .doctors { padding: 80px 0; }
  .doctors-list { gap: 48px; }
}
@media (max-width: 768px) {
  .hero .hero-visual { height: 400px; }
  .hero-img-main { border-radius: 180px 180px 24px 24px; }
  .doctors-list .dr-img { border-radius: 150px 150px 20px 20px; }
  .hours { padding: 18px 16px; }
  .hours-row { grid-template-columns: 34px repeat(7, 1fr); gap: 5px; }
  .hours-row i { height: 22px; border-radius: 6px; }
  .hours-label { font-size: 13.4px; }

  /* 常駐預約列：診所的轉換都在這兩顆按鈕上，不該讓人捲回頂端找 */
  body { padding-bottom: 84px; }
  .mbar {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 120;
  }
  .mbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 10px;
    border-radius: 100px;
    font-size: 16.2px; font-weight: 700;
    box-shadow: 0 10px 30px rgba(26, 43, 74, .18);
  }
  .mbar-tel { background: #fff; color: var(--navy); border: 1px solid var(--border); }
  .mbar-book { background: var(--teal); color: #fff; }
  body.menu-open .mbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .fee-row,
  .js .hours-row i { opacity: 1; transform: none; transition: none; }
}



/* ==========================================================================
   斷點分寬窄兩套
   同一句話在桌機的三百多 px 欄位、與在手機的整行寬度，最佳斷點不一樣。
   規範要求「斷點寫死」，但沒說只能寫一種——寫死兩種，各自對應一個版面。
   ========================================================================== */
@media (max-width: 900px) { br.br-lg { display: none; } }
@media (min-width: 901px) { br.br-sm { display: none; } }


/* ==========================================================================
   手機版整體協調（≤768px）
   字級整體放大之後，桌機的間距、浮動卡片與對齊方式在窄螢幕會失衡。
   這一段把手機當成獨立的版面，重新對齊一次。
   ========================================================================== */
@media (max-width: 768px) {

  /* ---- 1. 對齊：手機一律靠左，全頁左緣統一在 container 的 24px ----
     置中標題配上靠左的卡片與清單，會讓每一段的起始位置都不一樣，
     這是手機上「不協調」最主要的來源。 */
  .section-head.center {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .fee-foot { text-align: left; }

  /* ---- 2. 首屏信賴數字：三欄等寬，不再用 flex 擠到第二行 ---- */
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 12px;
    align-items: end;
  }
  .trust-divider { display: none; }
  .trust-item strong { font-size: 27px; }
  .trust-item sup { font-size: 13px; }
  .trust-item span { font-size: 12px; letter-spacing: 0; }

  /* ---- 3. 首屏浮動卡片：收進圖片裡，不要出血到螢幕外 ----
     桌機是刻意讓卡片壓在圖片邊緣外 30px，窄螢幕照做會被螢幕切掉。 */
  .hero-card { padding: 11px 18px 11px 11px; gap: 10px; }
  .hero-card svg { width: 34px; height: 34px; padding: 8px; }
  .hero-card strong { font-size: 13.5px; }
  .hero-card small { font-size: 11.5px; }
  .hero-card-1 { left: 10px; top: 5%; }
  .hero-card-2 { right: 10px; bottom: 6%; }

  /* ---- 4. 卡片內距 ----
     原本的 .feature-card / .service-card 對不到實際的 class（是 .feature / .service），
     所以手機一直吃著桌機的 40px／32px 內距，字級放大後更擠。 */
  .feature { padding: 28px 22px; }
  .srv-body { padding: 26px 22px; }
  .testi { padding: 26px 22px; }
  .contact-form { padding: 28px 22px; }
  .info-card { padding: 20px 18px; gap: 14px; }
  .hours { padding: 18px 16px; }
  .feat-icon { margin-bottom: 18px; }

  /* ---- 5. 行寬：一行 21 個中文字在 327px 會頂到右邊界 ---- */
  .hero-desc { font-size: 15.4px; }

  /* ---- 6. 醫師照片滿版，不要留 7px 的畸零邊 ---- */
  .doctors-list .dr-img { max-width: none; }

  /* ---- 7. 看診流程：圓點縮小，標題與圓點中心對齊 ---- */
  .flow-steps { padding-left: 0; }
  .flow-steps::before { left: 22px; }
  .flow-step { grid-template-columns: 44px 1fr; column-gap: 14px; }
  .flow-dot { width: 44px; height: 44px; font-size: 14.5px; }
  .flow-step h3 { line-height: 44px; }
}
