:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-soft: #edf3f0;
  --text: #19302b;
  --muted: #60756f;
  --line: rgba(25, 48, 43, 0.1);
  --primary: #1f7a6a;
  --primary-dark: #14574b;
  --accent: #cfe4dc;
  --shadow: 0 20px 60px rgba(19, 56, 49, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(207, 228, 220, 0.85), transparent 32%),
    linear-gradient(180deg, #f8fbfa 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(248, 251, 250, 0.82);
  border-bottom: 1px solid rgba(25, 48, 43, 0.06);
}

.nav-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-shell {
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.button-primary:hover {
  background: #ffffff;
}

.hero {
  position: relative;
  padding: 120px 0 72px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 48, 42, 0.82) 0%, rgba(14, 68, 59, 0.62) 40%, rgba(20, 87, 75, 0.34) 100%),
    linear-gradient(180deg, rgba(17, 70, 61, 0.24), rgba(17, 70, 61, 0.18)),
    url("assets/医院正面.png") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.hero-grid,
.section-grid,
.appointment-phones,
.contact-layout,
.card-grid,
.steps-grid,
.trust-grid,
.service-grid,
.account-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.52fr);
  align-items: start;
  gap: 32px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e8f5f0;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  line-height: 1.15;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.4vw, 4.35rem);
}

.hero-text,
.about-panel p,
.info-card p,
.doctor-card small,
.step-card p,
.contact-call-card p,
.contact-call-card span,
.site-footer p {
  line-height: 1.75;
}

.hero-text {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.hero-points,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list {
  color: var(--muted);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.hero-card,
.about-panel,
.info-card,
.doctor-card,
.step-card,
.appointment-panel,
.account-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(25, 48, 43, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  color: var(--text);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.82);
  margin-top: 10px;
}

.hero-card-top,
.hero-card-bottom {
  padding: 18px 0;
}

.hero-card-top {
  border-bottom: 1px solid var(--line);
}

.hero-card p,
.hero-card span {
  margin: 0;
  color: var(--muted);
}

.hero-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.55rem;
}

.trust-strip {
  padding: 0 0 36px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(25, 48, 43, 0.06);
  text-align: center;
  box-shadow: var(--shadow);
}

.trust-grid strong,
.step-card strong {
  display: block;
  font-size: 1.8rem;
  color: var(--primary);
}

.trust-grid span {
  color: var(--muted);
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(237, 243, 240, 0.55), rgba(237, 243, 240, 0.85));
}

.section-accent {
  background: linear-gradient(135deg, #d9ebe4, #f4f8f6);
}

.section-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 28px;
}

.section-heading {
  max-width: 560px;
}

.section-heading h2 {
  color: var(--text);
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.compact {
  margin-bottom: 28px;
}

.about-panel,
.info-card,
.doctor-card,
.step-card,
.appointment-panel,
.account-panel {
  padding: 28px;
}

.about-panel p,
.info-card p,
.step-card p {
  color: var(--muted);
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card h3,
.doctor-card h3,
.step-card h3,
.qr-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.doctor-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 360px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.doctor-strip::-webkit-scrollbar {
  display: none;
}

.doctor-arrows {
  display: flex;
  gap: 10px;
}

.doctor-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(25, 48, 43, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  font: inherit;
  cursor: pointer;
}

.doctor-card {
  scroll-snap-align: start;
}

.doctor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.doctor-card span {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.doctor-avatar {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 122, 106, 0.18), rgba(207, 228, 220, 0.95));
  border: 1px solid rgba(31, 122, 106, 0.12);
  flex: 0 0 auto;
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card p {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: 600;
}

.appointment-panel {
  display: grid;
  gap: 18px;
}

.appointment-phones {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-call-card,
.qr-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(25, 48, 43, 0.08);
}

.contact-call-card p,
.contact-call-card span,
.qr-card h3 {
  margin: 0;
  color: var(--muted);
}

.contact-call-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.account-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qr-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: var(--primary-dark);
  font-weight: 700;
  background:
    linear-gradient(rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.44)),
    repeating-linear-gradient(
      0deg,
      rgba(31, 122, 106, 0.15) 0,
      rgba(31, 122, 106, 0.15) 8px,
      rgba(255, 255, 255, 0.82) 8px,
      rgba(255, 255, 255, 0.82) 16px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(31, 122, 106, 0.15) 0,
      rgba(31, 122, 106, 0.15) 8px,
      rgba(255, 255, 255, 0.82) 8px,
      rgba(255, 255, 255, 0.82) 16px
    );
}

.qr-image {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(25, 48, 43, 0.08);
  background: #ffffff;
}

.qr-small {
  max-width: 112px;
  margin: 0 auto;
}

.service-grid .qr-small {
  max-width: 88px;
}

.service-grid .qr-placeholder {
  max-width: 88px;
  margin: 0 auto;
}

.service-grid .qr-image {
  max-width: 88px;
}

.platform-card {
  padding: 16px;
  text-align: center;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-weight: 700;
}

.platform-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 6px;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-layout {
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  align-items: start;
  gap: 28px;
}

.contact-detail-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.step-card strong {
  margin-bottom: 18px;
}

.site-footer {
  padding: 24px 0 36px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

  .hero {
    padding-top: 110px;
  }

  .hero-grid,
  .section-grid,
  .contact-layout,
  .card-grid,
  .trust-grid,
  .steps-grid,
  .service-grid,
  .account-grid,
  .appointment-phones {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav-shell {
    min-height: 72px;
  }

  .hero-points {
    flex-direction: column;
  }

  .hero-points li {
    width: 100%;
  }

  .section,
  .site-footer {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-card,
  .about-panel,
  .info-card,
  .doctor-card,
  .step-card,
  .appointment-panel,
  .account-panel {
    padding: 22px;
  }

  .doctor-arrows {
    display: none;
  }
}
