/* ==========================================================================
   前台样式（服务端直出版）
   由原 Vue 前台的 base.css 与各组件 scoped 样式合并而来，
   因为不再有构建步骤，这里用普通 CSS 组织，按「基础 → 组件 → 页面」排列。
   ========================================================================== */

/* ===== 1. 设计变量：医疗蓝主色，PC 与移动共用 ===== */
:root {
  --brand: #1069b4;
  --brand-dark: #0b4f8a;
  --brand-light: #e9f3fb;
  --brand-soft: #f5faff;
  --text-main: #2b2f33;
  --text-sub: #666c73;
  --text-muted: #9aa2aa;
  --border: #e6eaee;
  --bg-page: #f5f7f9;
  --radius: 6px;
  --container: 1200px;
  --shadow-card: 0 2px 10px rgba(16, 105, 180, 0.07);
  --shadow-hover: 0 8px 22px rgba(16, 105, 180, 0.16);
}

/* ===== 2. 基础重置 ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.page { min-height: 60vh; }

/* ===== 3. 通用元素 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-block { width: 100%; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }

.empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius);
}

.crumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--text-muted); }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pager button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 14px;
}
.pager button:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.pager button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* 富文本正文（后台编辑器产出） */
.article-body { font-size: 16px; line-height: 1.9; color: #3b4046; }
.article-body img { margin: 12px auto; border-radius: var(--radius); }
.article-body p { margin: 0 0 14px; }
.article-body h3 { margin: 20px 0 10px; font-size: 18px; color: var(--brand-dark); }
.article-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: 8px 10px; }

/* 仅供屏幕阅读器与搜索引擎识别的隐藏文本 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 4. 页头 ===== */
.site-header { background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); position: relative; z-index: 70; }

.topbar { background: var(--brand-soft); border-bottom: 1px solid var(--border); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.brand-line { color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.tel { display: flex; align-items: center; gap: 6px; color: var(--brand-dark); white-space: nowrap; }
.tel-label { color: var(--text-sub); }
.tel strong { font-size: 15px; letter-spacing: 0.5px; }
.topbar-btn { background: var(--brand); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
.topbar-btn:hover { background: var(--brand-dark); }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.logo { display: flex; align-items: center; }
.logo img { max-height: 52px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: 21px; color: var(--brand-dark); letter-spacing: 1px; }
.logo-text em { font-style: normal; font-size: 10px; color: var(--text-muted); letter-spacing: 1.4px; margin-top: 3px; }

.main-nav > ul { display: flex; align-items: center; flex: 0 0 auto; }
.main-nav > ul > li { position: relative; flex: 0 0 auto; }
.main-nav > ul > li > a {
  display: block;
  padding: 0 15px;
  line-height: 76px;
  font-size: 16px;
  color: var(--text-main);
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav > ul > li > a:hover { color: var(--brand); }

.sub-nav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  padding: 6px 0;
  display: none;
  z-index: 50;
}
.has-sub:hover .sub-nav { display: block; }
.sub-nav a { display: block; padding: 8px 18px; font-size: 14px; color: var(--text-sub); white-space: nowrap; }
.sub-nav a:hover { background: var(--brand-light); color: var(--brand); }

.menu-toggle { display: none; background: none; border: 0; padding: 6px; }
.menu-toggle .bar { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--brand-dark); transition: transform 0.25s, opacity 0.25s; }
.menu-toggle .bar.on:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle .bar.on:nth-child(2) { opacity: 0; }
.menu-toggle .bar.on:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 5. 页脚 ===== */
.site-footer { margin-top: 40px; background: var(--brand-dark); color: rgba(255, 255, 255, 0.82); font-size: 14px; }
.footer-inner { padding: 34px 16px 20px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1.4fr;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-brand strong { display: block; font-size: 19px; color: #fff; letter-spacing: 1px; }
.footer-brand em { font-style: normal; font-size: 12px; opacity: 0.6; letter-spacing: 1px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: rgba(255, 255, 255, 0.82); }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { margin: 0 0 6px; }
.footer-contact .tel strong { color: #fff; font-size: 17px; letter-spacing: 0.5px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 13px;
  opacity: 0.72;
}
.footer-bottom .icp { color: rgba(255, 255, 255, 0.82); }
.footer-bottom .icp:hover { color: #fff; }

/* ===== 6. 在线咨询悬浮入口 ===== */
.consult-side {
  position: fixed;
  right: 14px;
  bottom: 26%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.consult-side .item {
  width: 66px;
  padding: 9px 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: center;
  color: var(--text-sub);
  font-size: 12px;
  transition: all 0.2s;
}
.consult-side .item:hover { color: var(--brand); box-shadow: var(--shadow-hover); }
.consult-side .item.primary { background: var(--brand); color: #fff; }
.consult-side .item .ico { display: block; font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.consult-side .item .txt { display: block; }

.consult-bar { display: none; }

/* ===== 7. 返回顶部 ===== */
.back-top {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-card);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.25s;
}
.back-top[hidden] { display: none; }
.back-top:hover { background: var(--brand); color: #fff; box-shadow: var(--shadow-hover); }
.back-top:active { transform: translateY(1px); }

/* ===== 8. 首页轮播 ===== */
.home-banner { position: relative; overflow: hidden; background: var(--brand-light); }
.home-banner .slides { position: relative; aspect-ratio: 1920 / 598; }
.home-banner .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  display: block;
}
.home-banner .slide.active { opacity: 1; pointer-events: auto; }
.home-banner .slide img { width: 100%; height: 100%; object-fit: cover; }
/* 图片缺失或加载失败时才显示占位文案，避免出现破图 */
.home-banner .slide-fallback { display: none; }
.home-banner .slide.img-failed .slide-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  padding: 0 10%;
  background: linear-gradient(120deg, #eaf4fc 0%, #d3e7f8 55%, #c2ddf4 100%);
  text-align: right;
}
.slide-fallback strong { font-size: 38px; color: var(--brand-dark); letter-spacing: 3px; }
.slide-fallback span { margin-top: 10px; font-size: 30px; color: var(--brand); letter-spacing: 5px; }
.slide-fallback em { margin-top: 8px; font-style: normal; font-size: 11px; color: var(--text-sub); letter-spacing: 1.6px; }

.home-banner .dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; }
.home-banner .dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}
.home-banner .dots button.on { background: var(--brand); width: 24px; border-radius: 999px; }

/* ===== 9. 内容列表 ===== */
.content-list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.content-list.grid .item-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.content-list.grid .item-link:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.content-list.grid .cover { aspect-ratio: 16 / 10; background: var(--brand-light); }
.content-list.grid .cover img { width: 100%; height: 100%; object-fit: cover; }
.content-list .cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--brand);
  font-size: 26px;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #eaf4fc, #d6e9f8);
}
.content-list.grid .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.content-list.grid .title {
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}
.content-list.grid .item-link:hover .title { color: var(--brand); }
.content-list.grid .summary {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-list.list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.content-list.list li + li { border-top: 1px solid var(--border); }
.content-list.list .item-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; }
.content-list.list .title {
  font-size: 15px;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-list.list .item-link:hover .title { color: var(--brand); }
.content-list.list .summary { display: none; }
.content-list.list .meta { margin: 0; padding: 0; flex: none; white-space: nowrap; }

.content-list .meta {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 10. 专家卡片 ===== */
/* 专家列表（/expert 页）：与首页同一套通透排布，另外多显示科室与擅长 */
.expert-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 24px 16px; }
.expert-list .expert-item { text-align: center; }
.expert-list .photo {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--brand-light);
  box-shadow: 0 2px 10px rgba(16, 105, 180, 0.1);
  transition: box-shadow 0.25s, transform 0.25s;
}
.expert-list .expert-item:hover .photo { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.expert-list .photo img { width: 100%; height: 100%; object-fit: cover; }
.expert-list .photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 34px;
  color: var(--brand);
  background: linear-gradient(135deg, #eaf4fc, #d6e9f8);
}
.expert-list .meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 5px;
}
.expert-list .name { font-size: 16px; color: var(--brand-dark); }
.expert-list .name a:hover { color: var(--brand); }
.expert-list .job { font-size: 12px; color: var(--text-sub); white-space: nowrap; }
.expert-list .dept { margin: 0 0 4px; font-size: 12px; color: var(--brand); }
.expert-list .good-at {
  margin: 0 0 10px;
  min-height: 34px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.expert-list .acts { display: flex; justify-content: center; gap: 8px; }
/* ===== 11. 首页版块 ===== */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head .titles { min-width: 0; }
.section-head h2 { font-size: 26px; color: var(--brand-dark); letter-spacing: 1px; }
.section-head .en { font-size: 12px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.section-head .more {
  flex: none;
  font-size: 14px;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 16px;
  transition: all 0.2s;
}
.section-head .more:hover { color: var(--brand); border-color: var(--brand); }

/* 医院概况与常见问题用浅色底做区分 */
.section-about, .section-faq { background: var(--brand-soft); }

.page-home .tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.page-home .tabs a {
  padding: 5px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-sub);
  background: #fff;
  transition: all 0.2s;
}
.page-home .tabs a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

/* ==========================================================================
   12. 响应式（PC 优先，向下适配移动端）
   ========================================================================== */
/* 桌面菜单一行排完约需 1100px 宽，因此把收起点提到 1200px，
   避免 993px~1100px 区间菜单文字被挤成两行 */
@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .navbar-inner { height: 62px; }
  .logo-text strong { font-size: 17px; }
  .logo-text em { display: none; }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 60;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav > ul { display: block; }
  .main-nav > ul > li > a { line-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .sub-nav {
    position: static;
    transform: none;
    display: block;
    box-shadow: none;
    border-radius: 0;
    background: var(--brand-soft);
    padding: 0;
  }
  .sub-nav a { padding: 9px 30px; border-bottom: 1px solid var(--border); }
}

/* 1201px~1400px：桌面菜单仍然显示，收紧 LOGO 与菜单间距，保证一行放得下 */
@media (min-width: 1201px) and (max-width: 1400px) {
  .navbar-inner { gap: 12px; }
  .logo-text strong { font-size: 19px; }
  .main-nav > ul > li > a { padding: 0 12px; font-size: 15px; }
}

@media (max-width: 992px) {
  .footer-main { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 12px; }
  .section { padding: 28px 0; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: 20px; }
  .section-head .en { font-size: 11px; letter-spacing: 1px; }
  .article-body { font-size: 15px; }

  .topbar-inner { height: 34px; font-size: 12px; }
  .brand-line { display: none; }
  .topbar-right { width: 100%; justify-content: space-between; }

  .home-banner .slides { aspect-ratio: 2 / 1; }
  .home-banner .slide.img-failed .slide-fallback { align-items: center; padding: 0 16px; text-align: center; }
  .slide-fallback strong { font-size: 20px; letter-spacing: 1px; }
  .slide-fallback span { font-size: 16px; letter-spacing: 2px; }
  .slide-fallback em { display: none; }
  .home-banner .dots { bottom: 8px; }

  .content-list.list .meta { display: none; }
  .content-list.grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .content-list.grid .title { font-size: 14px; min-height: 42px; }
  .content-list.grid .summary { display: none; }

  .expert-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; }
  .expert-list .name { font-size: 15px; }
  .expert-list .good-at { min-height: 0; -webkit-line-clamp: 2; }

  .page-home .tabs { gap: 8px; margin-bottom: 14px; }
  .page-home .tabs a { padding: 4px 12px; font-size: 13px; }

  /* 移动端底部有固定咨询条，返回顶部按钮上移避免遮挡 */
  .consult-side { display: none; }
  .consult-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .consult-bar .bar-item { flex: 1; text-align: center; line-height: 48px; font-size: 15px; color: var(--brand-dark); }
  .consult-bar .bar-item + .bar-item { border-left: 1px solid var(--border); }
  .consult-bar .bar-item.primary { background: var(--brand); color: #fff; }

  .back-top { right: 12px; bottom: 62px; width: 42px; height: 42px; }
}
/* ==========================================================================
   13. 内页样式（栏目页 / 详情页 / 专家 / 404）
   对应原 Vue 前台的 PageHero、CategoryView、ArticleView、ExpertDetailView、NotFoundView
   ========================================================================== */

/* ===== 内页头部 ===== */
.page-hero {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 42px 0 30px;
}
.page-hero .hero-title { font-size: 26px; letter-spacing: 2px; line-height: 1.4; font-weight: 600; }
.page-hero .en { margin: 10px 0 0; font-size: 12px; letter-spacing: 2px; opacity: 0.75; }
.page-hero .crumb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.9;
}
.page-hero .crumb-inner a:hover { text-decoration: underline; }
.page-hero .crumb-inner .sep { opacity: 0.6; }
.page-hero .crumb-inner .current { opacity: 0.85; }

/* ===== 栏目页 ===== */
.page-category .single-page { padding: 26px; margin-top: 20px; }
.page-category .single-page .page-title { font-size: 22px; color: var(--brand-dark); margin-bottom: 16px; }
.page-category .tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 20px; }
.page-category .tabs .tab {
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--text-sub);
}
.page-category .tabs .tab:hover { color: var(--brand); border-color: var(--brand); }
.page-category .tabs .tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.list-wrap { margin-top: 24px; }

/* ===== 内容详情 ===== */
.page-article .article { padding: 30px; margin-top: 20px; }
.page-article .title { font-size: 25px; line-height: 1.5; color: var(--text-main); }
.page-article .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.page-article .summary {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-sub);
}
.page-article .article-body { margin-top: 18px; }
.page-article .article-foot {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== 专家详情 ===== */
.page-expert-detail .expert-detail { padding: 28px; margin-top: 20px; }
.page-expert-detail .head { display: flex; gap: 24px; align-items: flex-start; }
.page-expert-detail .avatar {
  flex: none;
  width: 150px;
  height: 190px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-light);
}
.page-expert-detail .avatar img { width: 100%; height: 100%; object-fit: cover; }
.page-expert-detail .avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 52px;
  color: var(--brand);
  background: linear-gradient(135deg, #eaf4fc, #d6e9f8);
}
.page-expert-detail .info h1 { font-size: 24px; color: var(--brand-dark); }
.page-expert-detail .info .job { margin: 8px 0 0; font-size: 15px; color: var(--brand); }
.page-expert-detail .info .dept,
.page-expert-detail .info .good { margin: 6px 0 0; font-size: 14px; color: var(--text-sub); }
.page-expert-detail .intro {
  margin: 20px 0 0;
  padding: 14px 16px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--text-sub);
}
.page-expert-detail .foot {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===== 404 / 错误页 ===== */
.page-404 .nf, .page-error .nf { padding: 80px 16px; text-align: center; }
.nf h1 { font-size: 76px; color: var(--brand); letter-spacing: 4px; }
.nf p { margin: 10px 0 26px; color: var(--text-sub); }
.nf .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 分页条：服务端渲染用链接，样式与按钮一致 ===== */
.pager a, .pager .current, .pager .disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 14px;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .disabled { opacity: 0.5; }

@media (max-width: 768px) {
  .page-hero { padding: 26px 0 20px; }
  .page-hero .hero-title { font-size: 19px; }
  .page-hero .crumb-inner { margin-top: 14px; }
  .page-category .single-page { padding: 16px; }
  .page-category .single-page .page-title { font-size: 18px; }
  .page-article .article { padding: 16px; }
  .page-article .title { font-size: 19px; }
  .page-article .article-foot .btn { flex: 1; }
  .page-expert-detail .expert-detail { padding: 16px; }
  .page-expert-detail .head { gap: 14px; }
  .page-expert-detail .avatar { width: 100px; height: 128px; }
  .page-expert-detail .info h1 { font-size: 19px; }
  .page-expert-detail .foot .btn { flex: 1; }
  .nf { padding: 50px 16px; }
  .nf h1 { font-size: 56px; }
}
/* ==========================================================================
   14. 首页（2026-09 调整版）
   Banner → 环境图+疾病介绍 → 医院概况 → 权威专家 → 案例+常见问题
   ========================================================================== */

/* 新版块通用：小标题（带竖条）+「查看更多」按钮 */
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.col-head h2 { position: relative; padding-left: 14px; font-size: 22px; color: var(--brand-dark); letter-spacing: 0.5px; }
.col-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--brand);
}
.btn-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-more:hover { background: var(--brand-dark); }

/* 标题 + 日期 列表（单列 / 两列共用） */
.title-list li + li { border-top: 1px dashed var(--border); }
.title-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; }
.title-list .t {
  position: relative;
  padding-left: 12px;
  font-size: 15px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.title-list .t::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--text-muted);
}
.title-list a:hover .t { color: var(--brand); }
.title-list .d { flex: none; font-size: 13px; color: var(--text-muted); }

/* 白色面板容器 */
.panel { height: 100%; padding: 18px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* ---- 1. 环境图轮播 + 疾病介绍 ---- */
.home-split { padding: 30px 0; }
.home-split-inner { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 20px; align-items: stretch; }

.env-gallery { position: relative; min-height: 330px; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--brand-light); }
.env-slides { position: absolute; inset: 0; }
.env-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.env-slide.active { opacity: 1; }
.env-slide img { width: 100%; height: 100%; object-fit: cover; }
.env-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 130px 14px 18px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
}
.env-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand-dark);
  font-size: 26px;
  line-height: 1;
  transition: background 0.2s;
}
.env-arrow:hover { background: #fff; }
.env-arrow.prev { left: 12px; }
.env-arrow.next { right: 12px; }
.env-dots { position: absolute; right: 16px; bottom: 18px; display: flex; gap: 7px; }
.env-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.6); }
.env-dots button.on { width: 20px; border-radius: 999px; background: #fff; }
.disease-panel { display: flex; flex-direction: column; }

/* ---- 2. 医院概况 ---- */
.home-about { padding: 30px 0 46px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: stretch; }
.about-card { display: flex; flex-direction: column; padding: 26px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.about-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.about-logo { max-height: 52px; }
.about-brand strong { font-size: 22px; color: var(--brand-dark); letter-spacing: 1px; }
.about-text { margin: 0 0 20px; font-size: 15px; line-height: 1.95; color: var(--text-sub); }
.about-card .btn-more { display: flex; width: fit-content; margin: auto 0 0 auto; }

.contact-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: var(--shadow-card);
}
.contact-card h3 { margin-bottom: 18px; font-size: 20px; letter-spacing: 1px; color: #fff; }
.contact-line { margin-bottom: 16px; }
.contact-line .label { display: block; font-size: 13px; opacity: 0.85; }
.contact-line .value { font-size: 24px; font-weight: 600; letter-spacing: 0.5px; color: #fff; }
.contact-line a.value:hover { text-decoration: underline; }
.qr-list { display: flex; flex-direction: column; gap: 14px; }
.qr-item { display: flex; align-items: center; gap: 12px; }
.qr-item img { flex: none; width: 84px; height: 84px; padding: 3px; background: #fff; border-radius: 4px; }
.qr-item span { font-size: 12px; line-height: 1.7; opacity: 0.92; }

/* ---- 3. 权威专家：一行五个、自动滚动 ---- */
/* 排布参考 022axonjsk.com 的「各科室坐诊医生一览」：通透式、卡片本身不加白底边框，
   姓名与职称同一行、按钮小而克制，靠照片本身的边界区分。 */
/* 上面「医院概况」也是浅色底，加一条上边线把两个区块分开 */
.home-experts { padding: 40px 0; background: var(--brand-soft); border-top: 1px solid var(--border); }
.expert-marquee { overflow: hidden; }
.expert-row { display: flex; }
.expert-cell {
  flex: 0 0 206px;
  margin-right: 16px;
  text-align: center;
}
.expert-cell .photo {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--brand-light);
  box-shadow: 0 2px 10px rgba(16, 105, 180, 0.1);
  transition: box-shadow 0.25s, transform 0.25s;
}
.expert-cell:hover .photo { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.expert-cell .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 34px;
  color: var(--brand);
  background: linear-gradient(135deg, #eaf4fc, #d6e9f8);
}
/* 姓名 + 职称同一行，像参考站那样一行读完 */
.expert-cell .meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 9px;
}
.expert-cell .name { font-size: 16px; color: var(--brand-dark); }
.expert-cell .name a:hover { color: var(--brand); }
.expert-cell .job { font-size: 12px; color: var(--text-sub); white-space: nowrap; }
.expert-cell .acts { display: flex; justify-content: center; gap: 8px; }
.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 27px;
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s;
}
.act.booking { background: #ef9246; }
.act.booking:hover { background: #d97a1d; }
.act.consult { background: var(--brand); }
.act.consult:hover { background: var(--brand-dark); }
/* 滚动由 main.js 控制（自动滚动 + 左右按钮手动翻）；外层留出边距给按钮 */
.expert-wrap { position: relative; padding: 0 28px; }
.expert-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-dark);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.expert-nav:hover { background: var(--brand); color: #fff; }
/* 箭头贴在卡片行内侧：容器最右边会被固定的「在线咨询」悬浮条盖住，点不到 */
.expert-nav.prev { left: 28px; }
.expert-nav.next { right: 28px; }

/* ---- 4. 案例分享 + 常见问题：两列 ---- */
.home-two-col { padding: 0 0 46px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.two-col-item { min-width: 0; }

@media (max-width: 992px) {
  .home-split-inner { grid-template-columns: 1fr; }
  .env-gallery { min-height: 250px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-card { order: 2; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .col-head h2 { font-size: 18px; }
  .col-head h2::before { height: 16px; }
  .btn-more { height: 30px; padding: 0 14px; font-size: 13px; }
  .title-list a { padding: 9px 0; }
  .title-list .t { font-size: 14px; }
  .panel { padding: 16px; }
  .about-card { padding: 18px; }
  .about-brand strong { font-size: 18px; }
  .about-text { font-size: 14px; }
  .contact-line .value { font-size: 20px; }
  .qr-item img { width: 72px; height: 72px; }
  .expert-cell { flex: 0 0 150px; margin-right: 12px; }
  .expert-cell .name { font-size: 15px; }
  .act { min-width: 56px; height: 28px; font-size: 13px; }
}
/* ===== 15. 空状态（对外访客看到的"内容还在完善"提示） ===== */
.empty-box {
  padding: 46px 20px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.empty-box p {
  max-width: 520px;
  margin: 0 auto 18px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
}
/* 面板类容器里的空状态不要再套一层卡片 */
.panel .empty-box,
.about-card .empty-box { padding: 34px 12px; box-shadow: none; }

@media (max-width: 768px) {
  .empty-box { padding: 34px 16px; }
  .empty-box p { font-size: 14px; }
}
/* 环境图/疾病介绍缺一侧时，另一侧占满整行 */
.home-split-inner.no-left,
.home-split-inner.no-right { grid-template-columns: minmax(0, 1fr); }
