/* 爱美森宠物医院 — 白底 × 蓝紫渐变，毛玻璃卡片，极光氛围动效
   字体：思源宋体标题 + 思源黑体正文 */

:root {
  --paper: #fbfbfe;
  --ink: #16161f;
  --mute: #5a5a6e;
  --blue: #0f62fe;
  --violet: #7c3aed;
  --grad: linear-gradient(135deg, #0f62fe 0%, #6d5cff 55%, #9333ea 100%);
  --grad-soft: linear-gradient(135deg, rgba(15, 98, 254, 0.10), rgba(147, 51, 234, 0.10));
  --deep: #101a3d;
  --line: #e6e6f0;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 8px 32px rgba(23, 43, 99, 0.08);
  --display: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", serif;
  --body: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 极光氛围层：三团渐变光晕缓慢漂移，固定在页面底层 ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  filter: blur(72px) saturate(1.25);
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.aurora .a1 {
  width: 560px; height: 560px;
  left: -140px; top: -160px;
  background: radial-gradient(circle, #4d8bff 0%, transparent 65%);
  animation: drift1 30s ease-in-out infinite alternate;
}

.aurora .a2 {
  width: 640px; height: 640px;
  right: -180px; top: 12%;
  background: radial-gradient(circle, #a855f7 0%, transparent 65%);
  animation: drift2 34s ease-in-out infinite alternate;
}

.aurora .a3 {
  width: 520px; height: 520px;
  left: 24%; bottom: -220px;
  background: radial-gradient(circle, #22d3ee 0%, transparent 65%);
  opacity: 0.38;
  animation: drift3 38s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 70px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-90px, -110px) scale(1.2); } }

@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none; }
}

/* ---------- 页头（毛玻璃） ---------- */

.site-header {
  border-bottom: 1px solid transparent;
  background: rgba(251, 251, 254, 0.72);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  overflow-x: auto;
}

.site-nav a {
  font-size: 14px;
  color: var(--mute);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 150% 150%;
  box-shadow: 0 4px 18px rgba(109, 92, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.42);
}

.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 6px 20px rgba(23, 43, 99, 0.10);
}

.btn-ghost:active { transform: scale(0.97); }

/* ---------- 毛玻璃卡片 ---------- */

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

/* ---------- Hero（首页） ---------- */

.hero { padding: 108px 0 88px; }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hero-slogan {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  margin-top: 28px;
}

.hero-meta {
  max-width: 34em;
  margin-top: 14px;
  font-size: 14px;
  color: var(--mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  overflow: hidden;
  padding: 10px 18px;
}

.hero-facts li {
  padding: 20px 16px;
  text-align: center;
}

.hero-facts li + li {
  border-left: 1px solid var(--line);
}

.fact-num {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.fact-label {
  display: block;
  font-size: 13px;
  color: var(--mute);
  margin-top: 4px;
}

/* 唯一的一次入场动效：hero 自上而下依次浮现 */

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-slogan, .hero-meta, .hero-actions, .hero-facts {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.7s ease forwards;
  }

  .hero-slogan { animation-delay: 0.12s; }
  .hero-meta { animation-delay: 0.2s; }
  .hero-actions { animation-delay: 0.28s; }
  .hero-facts { animation-delay: 0.38s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- 子页页头 ---------- */

.page-hero {
  padding: 84px 0 20px;
}

.page-hero .crumb {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 18px;
}

.page-hero .crumb a { color: var(--mute); text-decoration: none; }
.page-hero .crumb a:hover { color: var(--blue); }

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.25;
}

.page-hero .page-lead {
  max-width: 36em;
  margin-top: 18px;
  color: var(--mute);
}

/* ---------- 通用 section ---------- */

section { padding: 80px 0; }

.section-title {
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 48px;
}

.section-lead {
  color: var(--mute);
  margin-top: -32px;
  margin-bottom: 48px;
}

/* ---------- 服务速览卡片（首页） ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc-card {
  padding: 26px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(23, 43, 99, 0.14);
}

.svc-card .chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

.svc-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.svc-card p {
  font-size: 14px;
  color: var(--mute);
}

.svc-card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.svc-card .card-link:hover { color: var(--violet); }

/* ---------- 数据带 ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 34px 28px;
}

.stat-band .stat-num {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-band .stat-label {
  display: block;
  font-size: 13px;
  color: var(--mute);
  margin-top: 4px;
}

/* ---------- 知识科普：对角阶梯卡片 ---------- */

.stair-wrap {
  padding-bottom: 72px;
}

.stair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.k-card {
  padding: 26px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.k-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(23, 43, 99, 0.14);
}

.k-card .k-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--violet);
  background: rgba(124, 58, 237, 0.10);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}

.k-card h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 8px;
}

.k-card p {
  font-size: 14px;
  color: var(--mute);
}

/* 阶梯错位：第二列下沉、第三列更深，形成对角阶梯 */

@media (min-width: 981px) {
  .stair-grid > *:nth-child(3n + 2) { margin-top: 40px; }
  .stair-grid > *:nth-child(3n) { margin-top: 80px; }
}

@media (max-width: 980px) and (min-width: 641px) {
  .stair-grid { grid-template-columns: 1fr 1fr; }
  .stair-grid > *:nth-child(2n) { margin-top: 36px; }
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 800px;
}

.faq-list details {
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-list details:hover {
  box-shadow: 0 10px 30px rgba(23, 43, 99, 0.12);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--violet);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--mute);
}

/* ---------- 渐变 CTA 带 ---------- */

.cta-band {
  background: var(--grad);
  border-radius: 24px;
  padding: 56px 52px;
  color: #fff;
  box-shadow: 0 18px 48px rgba(109, 92, 255, 0.35);
  overflow: hidden;
  position: relative;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  right: -120px; top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  pointer-events: none;
}

.cta-band .section-title { color: #fff; margin-bottom: 12px; }

.cta-band .visit-line { opacity: 0.94; margin-bottom: 6px; font-size: 16px; }

.visit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 22px 0 18px;
}

.visit-phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}

.visit-phone:hover { border-bottom-color: #fff; }

.copy-btn {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.copy-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.copy-btn:active { transform: scale(0.96); }

.copy-btn.is-copied {
  border-color: #fff;
  background: #fff;
  color: var(--violet);
}

.visit-note {
  font-size: 14px;
  opacity: 0.78;
}

/* ---------- 内容块（医院实力等） ---------- */

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.panel { padding: 30px 28px; }

.panel h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.plain-list { list-style: none; }

.plain-list li {
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.plain-list li:last-child { border-bottom: none; }

.founder { max-width: 40em; }

.founder h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.founder .role {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  color: var(--mute);
  margin-left: 12px;
  letter-spacing: 0.04em;
}

.founder-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--mute);
  padding-left: 16px;
  border-left: 2px solid var(--violet);
}

.prose {
  max-width: 42em;
}

.prose p { margin-bottom: 18px; }

.prose .drop {
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: linear-gradient(135deg, #0c1230 0%, var(--deep) 60%, #1b1040 100%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-inner a { color: inherit; }
.footer-inner a:hover { color: #fff; }

/* ---------- 手机端悬浮拨号 ---------- */

.call-fab {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  z-index: 20;
  transition: transform 0.15s ease, opacity 0.3s ease;
}

.call-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.call-fab:hover { transform: scale(1.06); }
.call-fab:active { transform: scale(0.94); }

/* ---------- 滚动显现 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .js .reveal .svc-card,
  .js .reveal .k-card,
  .js .reveal .panel {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.22s ease;
  }

  .js .reveal.in-view .svc-card,
  .js .reveal.in-view .k-card,
  .js .reveal.in-view .panel {
    opacity: 1;
    transform: translateY(0);
  }

  /* 卡片依次浮现：错开 60ms */
  .js .reveal.in-view .svc-card:nth-child(2),
  .js .reveal.in-view .k-card:nth-child(2),
  .js .reveal.in-view .panel:nth-child(2) { transition-delay: 0.06s; }
  .js .reveal.in-view .svc-card:nth-child(3),
  .js .reveal.in-view .k-card:nth-child(3),
  .js .reveal.in-view .panel:nth-child(3) { transition-delay: 0.12s; }
  .js .reveal.in-view .svc-card:nth-child(n + 4),
  .js .reveal.in-view .k-card:nth-child(n + 4) { transition-delay: 0.18s; }
  .js .reveal.in-view .svc-card:nth-child(n + 7),
  .js .reveal.in-view .k-card:nth-child(n + 7) { transition-delay: 0.24s; }
}

.section-title-rule { position: relative; padding-bottom: 18px; }

.section-title-rule::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  transform-origin: left;
}

@media (prefers-reduced-motion: no-preference) {
  .section-title-rule::after {
    transform: scaleX(0);
    transition: transform 0.7s ease 0.15s;
  }

  .in-view .section-title-rule::after,
  .section-title-rule.in-view::after {
    transform: scaleX(1);
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }

  .hero { padding: 72px 0 64px; }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 18px;
  }

  .hero-facts li { padding: 16px 0; }

  .hero-facts li + li {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .card-grid,
  .duo-grid,
  .stair-grid { grid-template-columns: 1fr; gap: 18px; }

  .stair-grid > * { margin-top: 0 !important; }
  .stair-wrap { padding-bottom: 0; }

  section { padding: 60px 0; }

  .cta-band { padding: 40px 28px; border-radius: 18px; }

  .call-fab { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .call-fab.is-hidden { transform: none; }
}
