/* R46 宠物店/医院展示预约 */
:root {
  --primary: #4A90D9;
  --accent: #6CB4F5;
  --bg-light: #EBF3FC;
  --text-dark: #1A2332;
  --bg: #F5F9FD;
  --text: #1A2332;
  --text-muted: #5A6A7E;
  --card: #FFFFFF;
  --border: rgba(74,144,217,.2);
  --shadow: 0 4px 20px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}
html.has-mobile-bar body { padding-bottom: calc(9.5rem + env(safe-area-inset-bottom)); }

.section { padding: 3rem 1.25rem; max-width: 960px; margin: 0 auto; }
.section__title { font-size: 1.5rem; text-align: center; margin: 0 0 .35rem; color: var(--primary); }
.section__sub { text-align: center; color: var(--text-muted); margin: 0 0 1.5rem; font-size: .9rem; }

.btn {
  display: inline-block; padding: .65rem 1.25rem; border-radius: 999px;
  border: none; cursor: pointer; font-weight: 600; font-size: .88rem; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .45rem .9rem; font-size: .78rem; }
.btn-block { display: block; width: 100%; }
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,144,217,.35); } 50% { box-shadow: 0 0 0 10px rgba(74,144,217,0); } }

.persona-bar, .pet-channel-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center;
  padding: .55rem 1rem; background: var(--card); border-bottom: 1px solid var(--border);
}
.persona-btn, .pet-channel-btn {
  padding: .4rem .9rem; border-radius: 999px; border: 2px solid var(--border);
  background: var(--bg); cursor: pointer; font-weight: 600; font-size: .82rem;
}
.persona-btn.active, .pet-channel-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.pet-channel-bar__label { font-size: .75rem; color: var(--text-muted); }

.top-nav {
  position: sticky; top: 0; z-index: 200; display: flex; align-items: center; gap: .75rem;
  padding: .55rem 1rem; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: .25s;
}
.top-nav.is-scrolled { background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
.top-nav__brand { font-weight: 800; color: var(--primary); text-decoration: none; font-size: .9rem; flex-shrink: 0; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nav__menu { margin-left: auto; border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: .35rem .55rem; cursor: pointer; }
.top-nav__links { display: none; width: 100%; flex-direction: column; gap: .2rem; }
.top-nav__links.is-open { display: flex; }
.top-nav__links a { color: var(--text-muted); text-decoration: none; padding: .45rem .65rem; border-radius: 6px; font-size: .82rem; }
.top-nav__links a.is-active, .top-nav__links a:hover { color: var(--primary); background: var(--bg-light); }
.top-nav__cta { color: var(--primary) !important; font-weight: 700; }
@media (min-width: 768px) {
  .top-nav__menu { display: none; }
  .top-nav__links { display: flex !important; flex-direction: row; width: auto; margin-left: auto; }
}

.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--bg-light), var(--bg)); }
.hero__particles { position: absolute; inset: 0; pointer-events: none; }
.hero__particles span { position: absolute; opacity: .25; animation: float 6s ease-in-out infinite; }
.hero__particles span:nth-child(1) { top: 15%; left: 10%; }
.hero__particles span:nth-child(2) { top: 25%; right: 15%; animation-delay: 1s; }
.hero__particles span:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.hero__particles span:nth-child(4) { bottom: 20%; right: 10%; animation-delay: .5s; }
.hero__particles span:nth-child(5) { top: 40%; left: 50%; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__content { position: relative; z-index: 1; padding: 2rem 1.25rem; max-width: 560px; }
.hero__pets { font-size: 3rem; margin-bottom: .5rem; }
.hero__pet--dog, .hero__pet--cat { display: inline-block; margin: 0 .25rem; }
.hero__eyebrow { color: var(--primary); font-size: .85rem; letter-spacing: .08em; margin: 0 0 .5rem; }
.hero__title { font-size: clamp(1.75rem, 7vw, 2.75rem); margin: 0 0 .5rem; font-weight: 800; color: var(--text-dark); }
.hero__sub { color: var(--text-muted); margin-bottom: 1.25rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem;
  text-align: center; transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__icon { font-size: 2rem; margin-bottom: .5rem; }
.service-card__desc { font-size: .82rem; color: var(--text-muted); min-height: 2.5em; }
.service-card__meta { display: flex; justify-content: space-between; font-size: .78rem; margin: .75rem 0; color: var(--text-muted); }
.service-card__price { color: var(--primary); font-weight: 700; }

.doctors-swiper { padding-bottom: 2rem; }
.doctor-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; text-align: center;
}
.doctor-card__avatar-wrap { position: relative; width: 88px; height: 88px; margin: 0 auto .75rem; }
.doctor-card__avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.doctor-card__badge { position: absolute; bottom: -4px; right: -4px; background: var(--card); border-radius: 50%; padding: 2px 6px; font-size: .75rem; box-shadow: var(--shadow); }
.doctor-card__title { font-size: .82rem; color: var(--text-muted); margin: .25rem 0; }
.doctor-card__tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: .5rem 0; }
.tag { font-size: .68rem; padding: .2rem .5rem; border-radius: 999px; background: var(--bg-light); color: var(--primary); }
.doctor-card__rating { font-size: .78rem; color: var(--text-muted); }

.trust-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .trust-stats { grid-template-columns: repeat(4, 1fr); } }
.trust-stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; text-align: center; }
.trust-stat__val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.trust-stat__lbl { font-size: .72rem; color: var(--text-muted); }
.trust__subtitle { text-align: center; font-size: 1rem; margin: 1.5rem 0 .75rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.review-card__head { display: flex; gap: .65rem; align-items: center; margin-bottom: .5rem; }
.review-card__head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-stars { margin-left: auto; color: #f5a623; font-size: .75rem; }
.brands-marquee { overflow: hidden; margin: 1rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands-marquee__track { display: flex; gap: .5rem; width: max-content; animation: marquee 26s linear infinite; }
.brand-chip { flex-shrink: 0; padding: .35rem .85rem; background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.cert-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.cert-chip { font-size: .75rem; padding: .35rem .65rem; background: var(--bg-light); border-radius: 8px; }

.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 0; }
.process-step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.process-step h4 { margin: 0 0 .25rem; }
.process-step p { margin: 0; font-size: .85rem; color: var(--text-muted); }
.process-connector { width: 2px; height: 16px; background: var(--border); margin-left: 21px; }

.book-progress { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-bottom: 1.25rem; font-size: .68rem; }
.book-progress__step { padding: .3rem .5rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.book-progress__step.active { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.book-progress__step.done { background: var(--bg-light); }
.book-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.book-panel h3 { margin: 0 0 1rem; font-size: 1rem; }
.book-panel label { display: block; margin-bottom: .75rem; font-size: .85rem; }
.book-panel input, .book-panel select, .book-panel textarea {
  width: 100%; margin-top: .35rem; padding: .6rem; border-radius: 8px; border: 1px solid var(--border); font-size: .9rem;
}
.book-options, .book-doctors { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.book-opt, .book-doc {
  padding: .65rem; border-radius: 10px; border: 2px solid var(--border); background: var(--bg);
  cursor: pointer; text-align: center; font-size: .82rem;
}
.book-opt.active, .book-doc.active { border-color: var(--primary); background: var(--bg-light); }
.book-doc img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto .35rem; }
.pet-toggle { display: flex; gap: .5rem; margin-bottom: .75rem; }
.pet-toggle-btn { flex: 1; padding: .5rem; border-radius: 8px; border: 2px solid var(--border); background: #fff; cursor: pointer; }
.pet-toggle-btn.active { border-color: var(--primary); background: var(--bg-light); }
.slot-date-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.slot-btn { padding: .5rem; border-radius: 8px; border: 1px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; font-size: .82rem; }
.slot-btn.active { background: var(--primary); color: #fff; }
.slot-btn.is-booked { border-color: #ddd; color: #ccc; background: #f5f5f5; cursor: not-allowed; }
.slot-hint { text-align: center; color: var(--text-muted); font-size: .85rem; }
.confirm-card { font-size: .88rem; line-height: 1.8; }
.book-nav { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }

.success-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; text-align: center; }
.verify-code { font-size: 1.75rem; letter-spacing: .2em; color: var(--primary); }
.qr-box { margin: 1rem auto; display: inline-block; }
.success-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }

.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: .5rem; padding: .5rem .75rem; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.contact-cards { display: grid; gap: .65rem; margin: 1rem 0; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: .85rem; text-decoration: none; color: inherit; }
.btn-map { display: inline-block; margin-top: .5rem; }

.mobile-book-bar {
  position: fixed; left: 0; right: 0; bottom: calc(3.6rem + env(safe-area-inset-bottom)); z-index: 840;
  display: none; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem 1rem; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.mobile-book-bar__info { font-size: .75rem; line-height: 1.3; }
.mobile-book-bar__info strong { color: var(--primary); display: block; }
@media (max-width: 768px) { .mobile-book-bar { display: flex; } }

.theme-panel {
  position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 180;
  display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--card); border-radius: 10px; border: 1px solid var(--border);
}
.theme-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0; }
.theme-dot.active { outline: 2px solid var(--text); }

.pet-toast {
  position: fixed; left: 50%; bottom: calc(10rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text-dark); color: #fff; padding: .65rem 1.2rem; border-radius: 999px; opacity: 0; transition: .25s; z-index: 1100; font-size: .85rem;
}
.pet-toast--show { opacity: 1; }

.contact-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
  background: #1a1a1a; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.08);
}
.contact-footer__btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; max-width: 960px; margin: 0 auto; }
.contact-footer__cta { background: #c41e1e !important; color: #fff !important; text-align: center; padding: .6rem .35rem; border-radius: 6px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.contact-footer__btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: .6rem .35rem; border-radius: 6px; font-size: .78rem; cursor: pointer; text-align: center; text-decoration: none; }
.contact-footer__brand { text-align: center; font-size: .62rem; color: rgba(255,255,255,.5); margin: .4rem 0 0; }
html.has-contact-footer .zw-root .zw-fab { bottom: calc(6rem + env(safe-area-inset-bottom)); }

.verify-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.verify-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; max-width: 400px; width: 100%; }
.verify-back { display: inline-block; margin-bottom: 1rem; color: var(--primary); text-decoration: none; font-size: .85rem; }
.verify-box label { display: block; margin: .75rem 0; font-size: .85rem; }
.verify-box input { width: 100%; padding: .65rem; margin-top: .35rem; border-radius: 8px; border: 1px solid var(--border); }
.verify-code-display { font-size: 1.1rem; margin: 1rem 0; }
.verify-msg.ok { color: #34c759; }
.verify-msg.err { color: #ff6b6b; }

.breed-tabs, .est-toggle { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.breed-tab, .breed-tab.active { padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--border); background: var(--card); cursor: pointer; font-size: .82rem; }
.breed-tab.active { border-color: var(--primary); background: var(--bg-light); color: var(--primary); font-weight: 700; }
.breed-selected-hint { text-align: center; font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; text-decoration: underline; font-size: inherit; }
.breed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; }
.breed-grid--compact { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); margin-bottom: 1rem; }
.breed-chip {
  display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .55rem .35rem;
  border-radius: 10px; border: 2px solid var(--border); background: var(--card); cursor: pointer; font-size: .72rem;
}
.breed-chip.active { border-color: var(--primary); background: var(--bg-light); box-shadow: var(--shadow); }
.breed-chip__icon { font-size: 1.35rem; }
.service-card { position: relative; }
.service-card.is-recommended { border-color: var(--primary); }
.service-card__badge {
  position: absolute; top: 8px; right: 8px; font-size: .62rem; padding: .15rem .45rem;
  background: var(--primary); color: #fff; border-radius: 999px; font-weight: 700;
}

.estimator { background: var(--card); border: 1px solid var(--border); border-radius: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.est-panel { padding: 0 0 1rem; }
.est-label { display: block; font-size: .82rem; font-weight: 600; margin: 1rem 0 .5rem; color: var(--text-muted); }
.est-panel select, .est-panel input[type="range"] { width: 100%; }
.est-panel select { padding: .65rem; border-radius: 8px; border: 1px solid var(--border); font-size: .9rem; }
.est-hint { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 1.25rem 0 0; }
.est-result { margin-top: 1.25rem; padding: 1.25rem; background: var(--bg-light); border-radius: 12px; text-align: center; }
.est-result__title { margin: 0 0 .5rem; font-size: 1rem; }
.est-result__price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.est-result__note { font-size: .78rem; color: var(--text-muted); margin: 0 0 1rem; }

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .theme-panel { top: auto; bottom: calc(10rem + env(safe-area-inset-bottom)); transform: none; flex-direction: row; right: 8px; }
}
