/* 爱眸眼科官网 — Neon Green (#39ff14) · 参照 option-c 气质重做，非原样复制 */
:root {
  --fg: #39ff14;
  --fg-deep: #1fbf0a;
  --fg-mid: #57ff38;
  --fg-soft: #d4ffc8;
  --fg-pale: #f0ffe8;
  --fg-mist: #e5ffd9;
  --ink: #0a1f08;
  --text: #1a2e16;
  --muted: #4d6650;
  --line: rgba(57, 255, 20, 0.18);
  --paper: #f4faf2;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 28px rgba(31, 191, 10, 0.10);
  --shadow-lg: 0 16px 48px rgba(31, 191, 10, 0.14);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }

.container { width: min(1120px, 92vw); margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal { animation: rise 0.7s ease both; }
.reveal-delay { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.22s; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 250, 248, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(31, 191, 10, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.brand-slogan {
  font-size: 0.68rem;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
.nav a:hover,
.nav a.is-active { color: var(--fg-deep); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}
.header-cta:hover {
  background: var(--fg-deep);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 4vw 24px;
  z-index: 99;
  box-shadow: var(--shadow);
}
.nav-drawer.is-open { display: block; animation: fade 0.2s ease; }
.nav-drawer a {
  display: block;
  padding: 12px 8px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--fg-mist);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .header-cta {
  margin-top: 12px;
  justify-content: center;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--fg-mid), var(--fg));
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(57, 255, 20, 0.35);
}
.btn-primary:hover { background: var(--fg-deep); color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  color: var(--fg-deep);
  border: 1px solid rgba(57, 255, 20, 0.2);
}
.btn-ghost:hover { background: var(--white); border-color: var(--fg); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--fg-soft);
}
.btn-outline:hover {
  border-color: var(--fg);
  background: var(--fg-pale);
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  padding: calc(var(--header-h) + 48px) 0 72px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(31, 191, 10, 0.92) 0%, rgba(57, 255, 20, 0.72) 48%, rgba(87, 255, 56, 0.55) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(212, 255, 200, 0.25), transparent 55%),
    linear-gradient(160deg, #0a2e08, #39ff14 55%, #57ff38);
}
.hero.has-banners {
  /* 由布局工具写入的 CSS 变量控制；默认按视口宽度保持 2:1 并铺满 */
  --banner-fit: cover;
  --banner-ratio-w: 2;
  --banner-ratio-h: 1;
  --banner-max-h: 960px;
  --banner-min-h: 320px;
  --banner-overlay: 0.35;
  min-height: var(--banner-min-h);
  /* 高度 = 宽度 / 比例，再与 max/vh 取小，避免再出现「限高后左右留白」 */
  height: min(
    calc(100vw * var(--banner-ratio-h) / var(--banner-ratio-w)),
    var(--banner-max-h),
    92vh
  );
  aspect-ratio: auto;
  max-height: none;
  padding: calc(var(--header-h) + 24px) 0 56px;
  align-items: flex-end;
  background: #0a1f08;
}
@media (max-width: 860px) {
  .hero.has-banners {
    /* 外层按内容撑开：上图下文案按钮，互不遮挡 */
    display: flex;
    flex-direction: column;
    margin-top: var(--header-h);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    width: 100%;
    padding: 0;
    align-items: stretch;
    background: var(--paper);
    overflow: hidden;
  }
  .hero.has-banners .hero-slides {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: var(--banner-ratio-w) / var(--banner-ratio-h);
    max-height: 48vh;
    flex: 0 0 auto;
  }
  .hero.has-banners .hero-slide {
    position: absolute;
    inset: 0;
  }
  .hero.has-banners .hero-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
  }
  .hero.has-banners .hero-slide img {
    object-fit: contain !important;
    object-position: center center !important;
  }
  .hero.has-banners .hero-inner {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 4vw 8px;
    color: var(--ink);
    text-shadow: none;
    background: var(--paper);
  }
  /* 即使后台关闭了 Hero 文案，手机端仍保留两个操作按钮 */
  .hero.has-banners.hide-hero-text .hero-inner {
    display: block;
  }
  .hero.has-banners .hero-kicker,
  .hero.has-banners .hero-brand,
  .hero.has-banners .hero-lead {
    display: none;
  }
  .hero.has-banners .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
  }
  .hero.has-banners .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    font-size: 0.92rem;
  }
  .hero.has-banners .hero-actions .btn-ghost {
    color: var(--fg-deep);
    border-color: rgba(57, 255, 20, 0.45);
    background: var(--white);
  }
  .quick-strip {
    margin-top: 0;
    padding: 12px 0 28px;
  }
  .quick-grid { gap: 12px; }
  .quick-item { padding: 16px 14px; }
}
@media (max-width: 640px) {
  .hero.has-banners .hero-slides {
    max-height: 42vh;
    min-height: 140px;
  }
  .hero.has-banners .hero-inner {
    padding: 14px 4vw 6px;
  }
  .quick-strip { padding: 8px 0 24px; }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .quick-item {
    padding: 14px 12px;
    min-height: 76px;
  }
  .quick-item strong {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  .quick-item span {
    font-size: 0.78rem;
    line-height: 1.35;
    display: block;
  }
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a1f08;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
  overflow: hidden;
  background: #0a1f08;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: var(--banner-fit, cover);
  object-position: center;
  display: block;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 42%,
    rgba(10, 31, 8, var(--banner-overlay, 0.35)) 100%
  );
  pointer-events: none;
}
.hero.has-banners .hero-inner {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero.has-banners.hide-hero-text .hero-inner {
  display: none;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
}
.hero-dots button.is-active {
  background: var(--fg);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.25);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 80%, rgba(255, 255, 255, 0.08), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.1), transparent 30%);
  pointer-events: none;
}
.hero.has-banners::before { display: none; }
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin: 0 auto;
  max-width: 720px;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 18px;
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.8;
  opacity: 0.9;
  max-width: 34em;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 48px;
  background:
    linear-gradient(180deg, var(--fg-pale), var(--paper));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--muted);
  max-width: 36em;
  font-size: 1.02rem;
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--fg); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-about {
  background: var(--fg-pale);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.section-head {
  max-width: 560px;
  margin-bottom: 40px;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Quick links */
.quick-strip {
  margin-top: -36px;
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.quick-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}
.quick-item:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 255, 20, 0.35);
}
.quick-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 4px;
}
.quick-item span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Service list */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.service-item:hover {
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow: var(--shadow);
}
.service-index {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--fg-soft);
  color: var(--fg-deep);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}
.service-item h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.service-item p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.service-item .more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

/* About band */
.about-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.about-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 16px;
}
.about-copy p {
  color: var(--muted);
  margin-bottom: 18px;
}
.about-points li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
}
.about-panel {
  background: linear-gradient(160deg, var(--fg-deep), var(--fg-mid));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.about-panel h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 12px;
}
.about-panel p { opacity: 0.88; font-size: 0.95rem; }
.about-video-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-video-panel.has-video {
  background: #0a1208;
  aspect-ratio: 16 / 10;
  min-height: 280px;
}
.about-video-panel.is-empty {
  display: none;
}
.about-band.about-band--no-video {
  grid-template-columns: 1fr;
}
.about-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.about-video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: linear-gradient(160deg, #eef2ee, #e0e8e0);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.stat-row strong {
  display: block;
  font-size: 1.4rem;
  font-family: var(--display);
}
.stat-row span {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Doctors */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.doctor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
a.doctor-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.doctor-photo {
  aspect-ratio: 4 / 5;
  min-height: 220px;
  background-color: #eef2ee;
  display: grid;
  place-items: end start;
  padding: 18px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.doctor-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}
.doctor-photo.has-photo {
  color: #fff;
}
.doctor-photo.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}
.doctor-photo .name {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}
.doctor-body { padding: 16px 18px 20px; }
.doctor-field {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}
.doctor-field:last-child { margin-bottom: 0; }
.doctor-field-label {
  color: var(--text);
  font-weight: 600;
}
.detail-profile-copy .doctor-field {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* News / charity preview */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Card list pagination */
.pagination {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pagination-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--fg);
  color: var(--fg);
}
.pagination-btn.is-active {
  background: var(--fg);
  border-color: var(--fg);
  color: #fff;
}
.pagination-btn.is-disabled,
.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pagination-meta {
  font-size: 0.84rem;
  margin: 0;
}
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--muted);
}
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
a.content-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.content-card:hover { box-shadow: var(--shadow); }
.content-card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--fg-mist), var(--fg-soft));
}
.content-card .body { padding: 18px 18px 22px; }
.content-card .meta {
  font-size: 0.75rem;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 8px;
}
.content-card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}
.content-card p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Detail pages: doctor / equipment */
.detail-profile {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 32px;
  align-items: start;
}
.detail-profile-photo {
  aspect-ratio: 4 / 5;
  min-height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #eef2ee;
  position: relative;
}
.detail-profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.detail-profile-copy h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.detail-profile-copy .detail-meta {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.detail-cover {
  max-width: 760px;
  margin: 0 auto 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-cover img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .detail-profile {
    grid-template-columns: 1fr;
  }
  .detail-profile-photo {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* CTA band */
.cta-band {
  padding: 72px 0;
  background:
    linear-gradient(120deg, var(--fg-deep), var(--fg) 60%, var(--fg-mid));
  color: #fff;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}
.cta-band p {
  opacity: 0.9;
  margin-bottom: 28px;
}
.cta-band .btn-ghost { color: var(--fg-deep); }

/* Forms (structure only, no submit logic) */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--fg-pale);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--fg);
  background: var(--white);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.form-hint.is-ok { color: var(--fg-deep); font-weight: 600; }
.form-hint.is-err { color: #b42318; font-weight: 600; }
.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Contact layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.info-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.info-list span,
.info-list a { color: var(--muted); font-size: 0.95rem; }
.contact-map {
  height: 360px;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #eef2ee;
}
.contact-map-iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  background: #eef2ee;
}
.contact-map .leaflet-container {
  width: 100%;
  height: 360px;
  font: inherit;
  z-index: 1;
}
.contact-map-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-map-actions .btn {
  padding: 10px 16px;
  font-size: 0.86rem;
}
.contact-wework-qr {
  display: block;
  width: 120px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.map-placeholder {
  min-height: 280px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.08), rgba(57, 255, 20, 0.18)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 12px,
      rgba(57, 255, 20, 0.04) 12px,
      rgba(57, 255, 20, 0.04) 24px
    );
  border: 1px dashed rgba(57, 255, 20, 0.25);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand-name { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.75; max-width: 28em; }
.site-footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.site-footer li { margin-bottom: 10px; font-size: 0.86rem; }
.site-footer a:hover { color: var(--fg-soft); }
.footer-bottom {
  padding-top: 22px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer-legal {
  margin-top: 8px;
  line-height: 1.6;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.38);
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.48);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover { color: var(--fg-soft); }

/* Mobile float */
.mobile-dock {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.mobile-dock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mobile-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 6px;
  font-weight: 500;
}
.mobile-dock a.is-active,
.mobile-dock a:hover { color: var(--fg); }

body.has-dock { padding-bottom: 72px; }

/* Utilities */
.prose { max-width: 720px; }
.prose p { margin-bottom: 14px; color: var(--muted); }
.prose h2 {
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.35rem;
  margin: 28px 0 12px;
}
.prose h3 {
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.15rem;
  margin: 22px 0 10px;
}
.prose ul,
.prose ol {
  margin: 0 0 14px 1.2em;
  color: var(--muted);
}
.prose li { margin-bottom: 6px; }
.prose a { color: var(--fg-deep); text-decoration: underline; }
.prose img,
.prose video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
  border-radius: 12px;
  background: #0a1f08;
}
.prose video {
  width: 100%;
}
.prose iframe,
.prose iframe.ql-video-embed {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 220px;
  border: 0;
  border-radius: 12px;
  margin: 16px 0;
  display: block;
  background: #0a1f08;
}
.article-body.muted,
.article-body .muted { color: var(--muted); }

/* Rich text from admin (Quill): one typeface + palette in detail pages */
.article-body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.article-body p,
.article-body li,
.article-body span,
.article-body strong,
.article-body em,
.article-body a {
  font-family: inherit !important;
  font-size: inherit;
  background-color: transparent !important;
}
.article-body p,
.article-body li {
  margin-bottom: 14px;
  color: var(--text);
}
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: var(--font) !important;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.article-body h2 { font-size: 1.35rem; margin: 28px 0 12px; }
.article-body h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.article-body h4 { font-size: 1.05rem; margin: 18px 0 8px; }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fg-soft);
  color: var(--fg-deep);
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta.desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: 1fr; }
  .about-band,
  .split { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero:not(.has-banners) { min-height: 78vh; align-items: center; }
  .doctor-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-dock { display: block; }
  body.has-dock { padding-bottom: 72px; }
  .service-item {
    grid-template-columns: 48px 1fr;
  }
  .service-item .more { display: none; }
}

/* === MOBILE_HOME_TUNE_BEGIN === */
/* 由 scripts/tune_mobile_home.py 自动维护，请用脚本调整，勿手改中间内容 */
@media (max-width: 860px) {
  .hero.has-banners .hero-inner {
    padding-bottom: 20px !important;
  }
  .hero.has-banners .hero-actions {
    gap: 10px !important;
  }
  .quick-strip {
    margin-top: 48px !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
  }
  .quick-grid {
    gap: 12px !important;
  }
  .quick-item {
    padding: 14px !important;
  }
  .hero.has-banners .hero-slides {
    max-height: 40.0vh !important;
  }
}
@media (max-width: 640px) {
  .quick-strip {
    margin-top: 48px !important;
  }
  .quick-grid {
    gap: 10px !important;
  }
}
/* === MOBILE_HOME_TUNE_END === */
