* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #2f9b4f; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 24px)); margin: 0 auto; }
.muted { color: #888; }
.accent { color: #2f9b4f; }
.error { color: #c0392b; }
.success { color: #1e7a46; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* top bar */
.site-top {
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #888;
}
.top-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-welcome { margin: 0; }
.top-links { display: flex; gap: 14px; flex-wrap: wrap; }
.top-links a:hover { color: #2f9b4f; }

/* brand + search */
.site-brandbar { background: #fff; }
.brandbar-inner {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark-sm,
.logo-name,
.nav-toggle { display: none; }
.logo-full {
  width: auto;
  height: 118px;
  max-width: min(560px, 100%);
  object-fit: contain;
  object-position: left center;
}
.search-box {
  display: flex; width: min(460px, 100%); border: 1px solid #d9d9d9; border-radius: 2px; overflow: hidden;
}
.search-box input {
  flex: 1; border: 0; outline: none; padding: 10px 12px; font-size: 14px;
}
.search-box button {
  border: 0; background: #2f9b4f; color: #fff; padding: 0 22px; cursor: pointer; font-size: 14px;
}
.search-box button:hover { background: #278a44; }

/* green nav */
.site-nav { background: #2f9b4f; }
.nav-inner {
  display: flex; flex-wrap: wrap; min-height: 48px; align-items: stretch;
}
.nav-inner a {
  color: #fff; padding: 0 18px; display: inline-flex; align-items: center;
  font-size: 15px; white-space: nowrap;
}
.nav-inner a:hover,
.nav-inner a.is-active { background: #278a44; color: #fff; }

/* layout */
.crumb-bar {
  padding: 14px 0; font-size: 13px; color: #888;
}
.crumb-bar a { color: #666; }
.layout-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding-bottom: 40px;
  align-items: start;
}
.main-col { min-width: 0; }
.block-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 8px;
}
.block-head h1,
.block-head h2 {
  margin: 0; font-size: 22px; color: #222; position: relative; padding-bottom: 8px;
}
.block-head h1::after,
.block-head h2::after {
  content: ""; position: absolute; left: 0; bottom: -11px;
  width: 56px; height: 3px; background: #2f9b4f;
}
.block-head a { color: #888; font-size: 13px; }
.block-desc { color: #888; font-size: 14px; margin: 0 0 16px; }
.mt-lg { margin-top: 36px; }

/* news list like 华赞 */
.news-list { border-top: 1px solid #eee; }
.news-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}
.news-thumb {
  height: 112px; border-radius: 2px; display: block; overflow: hidden;
  background-size: cover; background-position: center;
}
.news-body h2,
.news-body h3 {
  margin: 0 0 8px; font-size: 18px; line-height: 1.45; font-weight: 700; color: #222;
}
.news-body h2 a:hover,
.news-body h3 a:hover { color: #2f9b4f; }
.news-body p {
  margin: 0; color: #777; font-size: 13px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-body time {
  display: block; margin-top: 10px; color: #aaa; font-size: 12px; text-align: right;
}

.cover-news {
  background:
    linear-gradient(135deg, rgba(47,155,79,0.2), rgba(47,155,79,0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='112'%3E%3Crect fill='%23d9f0df' width='180' height='112'/%3E%3Ccircle cx='120' cy='40' r='28' fill='%237ec988'/%3E%3Ccircle cx='120' cy='40' r='12' fill='%23fff'/%3E%3C/svg%3E");
}
.cover-digital {
  background:
    linear-gradient(135deg, rgba(46,125,160,0.15), rgba(46,125,160,0.5)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='112'%3E%3Crect fill='%23d7ebf5' width='180' height='112'/%3E%3Cpath d='M20 80 L50 50 L80 70 L120 30 L160 55' stroke='%232e7da0' stroke-width='4' fill='none'/%3E%3C/svg%3E");
}
.cover-kepu {
  background:
    linear-gradient(135deg, rgba(90,140,200,0.15), rgba(90,140,200,0.45)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='112'%3E%3Crect fill='%23e4eef8' width='180' height='112'/%3E%3Ccircle cx='90' cy='56' r='26' fill='%235a8cc8'/%3E%3Ccircle cx='90' cy='56' r='10' fill='%23fff'/%3E%3C/svg%3E");
}
.cover-price {
  background:
    linear-gradient(135deg, rgba(200,150,60,0.15), rgba(200,150,60,0.45)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='112'%3E%3Crect fill='%23f7eed8' width='180' height='112'/%3E%3Ctext x='70' y='68' font-size='36' fill='%23c8963c'%3E¥%3C/text%3E%3C/svg%3E");
}

/* sidebar hot */
.sidebar { position: sticky; top: 12px; }
.hot-box { border: 1px solid #eee; padding: 14px; }
.hot-title {
  margin: 0 0 14px; text-align: center; font-size: 16px; color: #c47a2c; font-weight: 700;
}
.hot-title span::before,
.hot-title span::after {
  content: "——";
  color: #e0b57a;
  margin: 0 6px;
}
.hot-feature { display: block; margin-bottom: 12px; }
.hot-feature-cover {
  height: 150px; border-radius: 2px; margin-bottom: 8px;
  background-size: cover; background-position: center;
}
.hot-feature p {
  margin: 0; font-size: 14px; line-height: 1.5; color: #333;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hot-list { list-style: none; margin: 0; padding: 0; }
.hot-list li {
  border-top: 1px dotted #ddd; padding: 10px 0;
}
.hot-list a {
  font-size: 13px; color: #444; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hot-list a:hover { color: #2f9b4f; }

/* home carousel */
.home-carousel {
  --carousel-h: 360px;
  background: #e8f3ec;
  border-bottom: 1px solid #dceee2;
}
.carousel-frame {
  position: relative;
  width: min(1180px, calc(100% - 24px));
  height: var(--carousel-h);
  margin: 18px auto 22px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(30, 90, 50, 0.12);
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.7s ease, visibility 0.55s;
  z-index: 1;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.carousel-slide-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(28, 110, 58, 0.78) 0%, rgba(47, 155, 79, 0.42) 42%, rgba(180, 230, 200, 0.15) 68%, transparent 82%),
    var(--slide-image, none) right center / cover no-repeat,
    linear-gradient(120deg, #2f9b4f 0%, #5fbf7a 45%, #b7e3c0 100%);
}
.carousel-slide--tone .carousel-slide-bg {
  background:
    radial-gradient(circle at 78% 40%, rgba(255,255,255,0.28) 0 12%, transparent 13%),
    radial-gradient(circle at 86% 62%, rgba(255,255,255,0.16) 0 8%, transparent 9%),
    linear-gradient(115deg, #1f7a45 0%, #39a85c 38%, #7ec988 72%, #d8f0df 100%);
}
.carousel-copy {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 24px 24px 280px;
  color: #fff;
  animation: carousel-copy-in 0.65s ease both;
}
.carousel-slide.is-active .carousel-copy {
  animation: carousel-copy-in 0.65s ease both;
}
@keyframes carousel-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.carousel-en {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.92;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}
.carousel-copy h1,
.carousel-copy h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-shadow:
    0 0 1px #1e7a46,
    0 2px 14px rgba(0,0,0,0.18);
}
.carousel-tagline {
  margin: 14px 0 22px;
  font-size: 15px;
  letter-spacing: 0.06em;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0,0,0,0.16);
}
.carousel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 11px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe566 0%, #f0c93a 100%);
  color: #3a2f00;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(180, 140, 20, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.carousel-cta:hover {
  color: #3a2f00;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(180, 140, 20, 0.36);
}

.carousel-hot {
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 232px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  padding: 14px 12px 10px;
  box-shadow: 0 10px 28px rgba(20, 60, 35, 0.14);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
}
.carousel-hot h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #222;
  text-align: center;
  letter-spacing: 0.08em;
}
.carousel-hot ol,
.carousel-hot-fallback {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
}
.carousel-hot a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 6px;
  border-radius: 2px;
  color: #444;
  font-size: 13px;
  line-height: 1.4;
}
.carousel-hot a:hover {
  background: #eff8f1;
  color: #2f9b4f;
}
.carousel-hot-num {
  color: #2f9b4f;
  font-weight: 700;
  font-size: 13px;
}
.carousel-hot-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  width: 36px;
  height: 56px;
  border: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.32); }
.carousel-arrow--prev { left: 0; border-radius: 0 4px 4px 0; }
.carousel-arrow--next { right: 0; border-radius: 4px 0 0 4px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}
.carousel-dots button.is-active {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(47, 155, 79, 0.35);
}

.btn-solid, .btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; font-size: 14px; border-radius: 2px; border: 1px solid #2f9b4f;
}
.btn-solid { background: #2f9b4f; color: #fff; }
.btn-solid:hover { background: #278a44; color: #fff; }
.btn-line { background: #fff; color: #2f9b4f; }
.btn-line:hover { background: #eff8f1; color: #2f9b4f; }

.home-entities {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 10px 0 48px;
}
.entity-panel { border: 1px solid #eee; padding: 14px 16px 8px; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { border-bottom: 1px dashed #eee; padding: 10px 0; }
.simple-list a { display: flex; flex-direction: column; gap: 2px; }
.simple-list strong { color: #222; font-size: 14px; }
.simple-list span { color: #888; font-size: 12px; }
.simple-list a:hover strong { color: #2f9b4f; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.chip {
  padding: 4px 12px; border: 1px solid #ddd; color: #666; font-size: 13px; border-radius: 2px;
}
.chip.is-active, .chip:hover { background: #2f9b4f; border-color: #2f9b4f; color: #fff; }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { border-bottom: 1px solid #eee; padding: 16px 0; }
.rank-list a { display: flex; gap: 12px; }
.rank-num { color: #2f9b4f; font-weight: 700; min-width: 22px; }
.rank-list h2 { margin: 0 0 6px; font-size: 18px; color: #222; }
.rank-list p { margin: 4px 0; color: #777; font-size: 13px; }
.rank-list a:hover h2 { color: #2f9b4f; }

.doctor-grid { display: grid; gap: 14px; }
.doctor-card {
  display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px;
  border: 1px solid #eee; padding: 14px;
}
.doctor-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e8f6ec; color: #2f9b4f; display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
}
.doctor-card h2 { margin: 0 0 4px; font-size: 17px; color: #222; }
.doctor-card h2 small { font-size: 13px; color: #888; font-weight: 400; }
.doctor-card p { margin: 4px 0; color: #777; font-size: 13px; }
.doctor-card:hover h2 { color: #2f9b4f; }

.detail-article h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.4; color: #222; }
.detail-article h1 small { font-size: 16px; color: #888; font-weight: 400; }
.detail-meta { color: #999; font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-cover {
  height: 220px; border-radius: 2px; margin-bottom: 18px;
  background-size: cover; background-position: center; background-color: #f3f3f3;
}
.detail-lead { font-size: 16px; color: #444; line-height: 1.8; }
.detail-content p { color: #555; line-height: 1.9; font-size: 15px; }
.richtext h2, .richtext h3, .richtext h4 {
  margin: 1.4em 0 0.6em; color: #222; line-height: 1.4;
}
.richtext h2 { font-size: 20px; }
.richtext h3 { font-size: 18px; }
.richtext h4 { font-size: 16px; }
.richtext ul, .richtext ol { padding-left: 1.4em; color: #555; }
.richtext li { margin: 0.35em 0; line-height: 1.8; }
.richtext a { color: #2f9b4f; text-decoration: underline; }
.richtext img { max-width: 100%; height: auto; margin: 12px 0; border-radius: 2px; }
.richtext table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.richtext th, .richtext td { border: 1px solid #e5e5e5; padding: 8px 10px; }
.richtext blockquote {
  margin: 12px 0; padding: 10px 14px; border-left: 3px solid #2f9b4f;
  background: #f6fbf7; color: #555;
}
.detail-article h2 { margin: 24px 0 8px; font-size: 18px; color: #222; }
.detail-cta { margin-top: 28px; padding-top: 18px; border-top: 1px solid #eee; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.detail-cta p { margin: 0; color: #999; font-size: 12px; width: 100%; }

.consult-form { display: grid; gap: 12px; max-width: 520px; }
.consult-form label { display: grid; gap: 6px; font-size: 14px; color: #444; }
.consult-form input,
.consult-form select,
.consult-form textarea {
  border: 1px solid #ddd; padding: 9px 10px; font: inherit; border-radius: 2px;
}
.consult-form .tip { margin: 0; color: #999; font-size: 12px; }

.site-footer {
  background: #f7f7f7; border-top: 1px solid #eee; padding: 24px 0 28px; margin-top: 20px;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-bottom: 14px;
}
.footer-links a { color: #666; font-size: 13px; }
.footer-note { color: #999; font-size: 12px; line-height: 1.8; text-align: center; }
.footer-note p { margin: 4px 0; }

.float-consult {
  position: fixed; right: 18px; bottom: 80px; z-index: 50;
  background: #2f9b4f; color: #fff; border-radius: 6px;
  padding: 10px 12px; display: flex; flex-direction: column; align-items: center;
  gap: 4px; font-size: 12px; box-shadow: 0 6px 18px rgba(47,155,79,0.28);
}
.float-consult:hover { background: #278a44; color: #fff; }
.float-icon { font-size: 18px; line-height: 1; }

.list-search {
  display: flex; gap: 8px; margin: 12px 0 14px; max-width: 520px;
}
.list-search input {
  flex: 1; border: 1px solid #ddd; padding: 8px 10px; border-radius: 2px; font: inherit;
}
.list-search button {
  border: 0; background: #2f9b4f; color: #fff; padding: 0 16px; border-radius: 2px; cursor: pointer;
}
.filter-row-scroll { max-height: 78px; overflow: auto; }
.chip-more { color: #999; font-size: 12px; align-self: center; }
.hospital-row { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 14px; }
.entity-cover {
  width: 120px; height: 90px; object-fit: cover; border-radius: 2px; background: #f3f3f3;
}
.entity-cover.placeholder {
  display: grid; place-items: center; color: #2f9b4f; background: #e8f6ec; font-size: 13px;
}
.clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pagination {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  padding: 18px 0 8px; color: #666; font-size: 13px;
}
.pagination a { color: #2f9b4f; }
.detail-photo {
  width: 100%; max-height: 280px; object-fit: cover; border-radius: 2px; margin-bottom: 16px;
}
.detail-photo-mask {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
  max-height: 280px;
  background: #f5f5f5;
}
.detail-photo-mask .detail-photo {
  display: block;
  width: 100%;
  max-height: 280px;
  margin: 0;
  filter: blur(3px);
  transform: scale(1.04);
  transform-origin: center;
}
.detail-photo-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(245, 248, 246, 0.08) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
}
.doctor-avatar-img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #eee;
  filter: blur(2.5px);
  transform: scale(1.06);
}
.doctor-detail-head {
  display: flex; gap: 16px; align-items: center; margin-bottom: 8px;
}
.doctor-detail-avatar-mask {
  position: relative;
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee;
}
.doctor-detail-avatar-mask .doctor-detail-avatar {
  width: 100%; height: 100%; border-radius: 0; margin: 0;
  filter: blur(3px);
  transform: scale(1.06);
  transform-origin: center;
}
.doctor-detail-avatar-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(245, 248, 246, 0.08) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
}
.doctor-detail-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #eee;
}

/* ===== 找医生 / 找医院（对标门户卡片风） ===== */
.page-list { padding-bottom: 40px; }
.region-box {
  display: flex; gap: 10px; border: 1px solid #e8e8e8; background: #fff;
  padding: 14px 16px; margin-bottom: 16px;
}
.region-label {
  flex-shrink: 0; color: #333; font-size: 14px; font-weight: 600; padding-top: 4px;
}
.region-list { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.region-item {
  padding: 3px 10px; font-size: 13px; color: #555; border-radius: 2px; line-height: 1.6;
}
.region-item:hover { color: #2f9b4f; }
.region-item.is-active { background: #2f9b4f; color: #fff; }
.result-count { margin: 0 0 14px; color: #888; font-size: 13px; }
.result-count strong { color: #2f9b4f; }

.doctor-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.doc-card {
  border: 1px solid #eee;
  background: #fff;
  padding: 14px 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.doc-photo {
  position: relative;
  display: block; aspect-ratio: 1; overflow: hidden; background: #f5f5f5; margin-bottom: 12px;
}
.doc-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(3px);
  transform: scale(1.05);
  transform-origin: center;
}
.doc-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(245, 248, 246, 0.08) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
}
.doc-photo-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: #e8f6ec; color: #2f9b4f; font-size: 42px; font-weight: 700;
}
.doc-name-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.doc-name { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.doc-name strong { font-size: 16px; color: #222; }
.doc-name span { font-size: 12px; color: #888; }
.v-badge {
  width: 16px; height: 16px; border-radius: 50%; background: #e8b84a; color: #fff;
  font-style: normal; font-size: 10px; font-weight: 700;
  display: inline-grid; place-items: center; line-height: 1;
}
.btn-consult {
  flex-shrink: 0; background: #2f9b4f; color: #fff !important; border-radius: 16px;
  padding: 4px 12px; font-size: 12px; white-space: nowrap;
}
.btn-consult:hover { background: #278a44; color: #fff !important; }
.btn-consult-sm { padding: 3px 10px; border-radius: 14px; }
.doc-hospital {
  margin: 0 0 8px; color: #888; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.doc-skill {
  margin: 0; font-size: 12px; color: #666; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.doc-skill em { color: #2f9b4f; font-style: normal; }

.hospital-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start;
}
.hos-list { display: grid; gap: 14px; }
.hos-card {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px;
  border: 1px solid #eee; background: #fff; padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.hos-cover {
  position: relative; display: block; width: 140px; height: 140px; background: #f5f5f5; overflow: hidden;
}
.hos-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(3px);
  transform: scale(1.05);
  transform-origin: center;
}
/* 参考站风格：模糊图 + 浅色蒙版 */
.hos-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(245, 248, 246, 0.08) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
}
.hos-cover-fallback {
  width: 100%; height: 100%; display: grid; place-items: center; color: #2f9b4f; background: #e8f6ec;
}
.hos-rank {
  position: absolute; left: 0; top: 0; z-index: 2;
  min-width: 24px; height: 22px; padding: 0 6px;
  background: #e74c3c; color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.hos-title-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
}
.hos-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.hos-title h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.hos-title h2 a { color: #222; }
.hos-title h2 a:hover { color: #2f9b4f; }
.meta-tag { font-size: 12px; color: #888; }
.hos-stars { color: #f5b301; letter-spacing: 1px; font-size: 13px; flex-shrink: 0; }
.hos-address { margin: 10px 0; color: #666; font-size: 13px; }
.hos-address em { font-style: normal; color: #999; }
.hos-bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.skill-tags em { font-style: normal; color: #2f9b4f; font-size: 13px; }
.skill-tag {
  border: 1px solid #9fd0ab; color: #2f9b4f; border-radius: 2px;
  padding: 2px 8px; font-size: 12px; line-height: 1.5;
}

.doctor-side {
  border: 1px solid #eee; background: #fff; padding: 12px 12px 4px;
  position: sticky; top: 12px;
}
.side-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 8px;
}
.side-head h2 {
  margin: 0; font-size: 16px; color: #222; padding-left: 8px;
  border-left: 3px solid #2f9b4f; line-height: 1.2;
}
.side-head a { color: #888; font-size: 12px; }
.side-doctors { list-style: none; margin: 0; padding: 0; }
.side-doctors li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee;
}
.side-doc { display: flex; gap: 10px; min-width: 0; align-items: center; }
.side-doc-avatar {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee;
}
.side-doc-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(2.5px);
  transform: scale(1.08);
  transform-origin: center;
}
.side-doc-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(245, 248, 246, 0.08) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
}
.side-doc img, .side-doc-fallback {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.side-doc-fallback {
  display: grid; place-items: center; background: #e8f6ec; color: #2f9b4f; font-weight: 700;
}
.side-doc-info { min-width: 0; }
.side-doc-info strong { display: block; font-size: 14px; color: #222; }
.side-doc-info small { color: #888; font-weight: 400; }
.side-doc-info p {
  margin: 2px 0 0; color: #888; font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-skill { color: #666 !important; }

@media (max-width: 1100px) {
  .doctor-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .layout-main, .home-entities, .hospital-layout { grid-template-columns: 1fr; }
  .doctor-side { position: static; }
  .doctor-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }

  /* 顶栏精简 */
  .site-top { display: none; }

  .brandbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0 12px;
    min-height: 0;
  }
  .brand-row { width: 100%; }
  .logo-full { display: none; }
  .logo-mark-sm {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .logo-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    white-space: nowrap;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    background: #2f9b4f;
    border-radius: 1px;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }

  .search-box { width: 100%; height: 40px; }
  .search-box input { padding: 8px 10px; font-size: 13px; }
  .search-box button { padding: 0 16px; font-size: 13px; }

  /* 汉堡菜单：默认收起，展开为纵向列表 */
  .site-nav {
    display: none;
    border-bottom: 1px solid #e6f0e8;
  }
  .site-nav.is-open { display: block; }
  .site-nav > .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .nav-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 0;
  }
  .nav-inner a {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .home-carousel {
    --carousel-h: 200px;
    margin-top: 0;
  }
  .carousel-frame {
    width: calc(100% - 20px);
    margin: 10px auto 14px;
    height: auto;
    overflow: visible;
    box-shadow: none;
    border-radius: 0;
  }
  .carousel-track {
    height: var(--carousel-h);
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(30, 90, 50, 0.12);
  }
  .carousel-copy { padding: 16px 36px; }
  .carousel-copy h1,
  .carousel-copy h2 { font-size: 24px; letter-spacing: 0.04em; }
  .carousel-en { font-size: 10px; letter-spacing: 0.12em; }
  .carousel-tagline { font-size: 12px; margin: 8px 0 14px; }
  .carousel-cta {
    min-width: 140px;
    padding: 9px 20px;
    font-size: 14px;
  }
  .carousel-hot {
    position: static;
    width: auto;
    margin-top: 10px;
    height: auto;
    box-shadow: none;
  }
  .carousel-arrow {
    width: 28px;
    height: 44px;
    font-size: 22px;
    top: calc(var(--carousel-h) / 2);
  }
  .carousel-dots {
    top: calc(var(--carousel-h) - 24px);
    bottom: auto;
  }
  .news-item { grid-template-columns: 120px minmax(0,1fr); }
  .news-thumb { height: 84px; }
  .region-box { flex-direction: column; }
  .block-head h1,
  .block-head h2 { font-size: 18px; }
}

@media (max-width: 640px) {
  .brandbar-inner { padding: 8px 0 10px; gap: 8px; }
  .logo-name { font-size: 17px; }
  .home-carousel { --carousel-h: 180px; }
  .carousel-copy h1,
  .carousel-copy h2 { font-size: 22px; }
  .news-item { grid-template-columns: 1fr; }
  .news-thumb { height: 150px; }
  .doctor-cards { grid-template-columns: 1fr; }
  .hos-card { grid-template-columns: 100px minmax(0, 1fr); }
  .hos-cover { width: 100px; height: 100px; }
  .hos-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
  }
  .footer-note { font-size: 12px; line-height: 1.7; }
}
