/* ===== 衡阳华程医院官网 - 公共样式 ===== */
:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #1976d2;
  --accent: #e53935;
  --accent-light: #ff5252;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #f5f7fa;
  --white: #fff;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body { font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; color: var(--text); background: var(--white); font-size: 15px; line-height: 1.7; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== 顶部服务栏 ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar .right a { margin-left: 18px; }

/* ===== 导航栏 - 两行大气版 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 16px rgba(0,0,0,0.18);
}

/* 第一行：Logo + 联系信息 */
.navbar-top {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  padding: 0;
}
.navbar-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  text-decoration: none;
}
.logo img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}
.navbar-contact {
  display: flex;
  align-items: center;
  gap: 28px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.contact-item .ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item .ci-icon.red { background: url(../img/tel.jpg) center/cover no-repeat #fff; color: transparent; font-size: 0; }
.contact-item .ci-icon.blue { background: #e8f0fe; color: var(--primary); }
.contact-item .ci-icon.green { background: #e8f5e9; color: #2e7d32; }
.contact-item .ci-label { font-size: 13px; color: var(--text-muted); line-height: 1.2; }
.contact-item .ci-value { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; }
.contact-item .ci-value.accent { color: var(--accent); }

/* 手机端顶部操作按钮（预约挂号/电话），PC 端隐藏 */
.navbar-mobile-actions { display: none; }

/* 第二行：菜单 — 配色取自 www.hyhcyy.com 导航（绿底白字） */
.navbar-bottom {
  background: rgba(102,204,0,0.95);
}
.navbar-bottom .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-menu {
  display: flex;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  padding: 0 26px;
  height: 56px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 3px;
  background: #04af9f;
  border-radius: 0;
  transition: transform 0.25s ease;
}
.nav-item > a:hover::after,
.nav-item > a.active::after {
  transform: translateX(-50%) scaleX(1);
}
.nav-item > a:hover,
.nav-item > a.active {
  background: hsla(0,0%,100%,.2);
  color: #fff;
}
.nav-item .arrow { font-size: 10px; opacity: 0.7; }

/* 下拉菜单 — 与上方菜单项等宽（配色取自 www.hyhcyy.com 导航下拉，hover 浅绿从左铺满） */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: transparent;
  min-width: 100%;
  box-shadow: 3px 0 10px rgba(0,0,0,0.1);
  border-radius: 0;
  display: none;
  z-index: 100;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 11px 18px;
  color: #fff;
  font-size: 14px;
  background-color: rgba(102,204,0,0.95);
  background-repeat: no-repeat;
  background-image: linear-gradient(to right, #8BD93D, #8BD93D);
  background-size: 0% 100%;
  transition: background-size 0.5s, color 0.5s;
}
.dropdown a:hover { background-size: 100% 100%; color: #fff; }

/* 手机菜单按钮 */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* 手机端菜单 */
.mobile-menu {
  display: none;
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.9);
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 15px;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-menu .sub-item { padding-left: 36px; font-size: 14px; opacity: 0.85; }

/* ===== 容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 页面横幅 (Banner) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.page-banner h1 { font-size: 28px; margin-bottom: 8px; }
.breadcrumb {
  font-size: 13px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: 0.6; }

/* 页面横幅 — PC/移动端独立代码：PC 端图片背景（img/banks.jpg），移动端保留原渐变 */
.page-banner-mobile { display: none; }
.page-banner-pc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px; /* PC 端横幅高度，可按需调整 */
  padding: 0;
  background: url('../img/banks.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.page-banner-pc h1 {
  position: relative;
  z-index: 1;
  font-size: 42px; /* PC 端横幅标题字号，可按需调整 */
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.page-banner-pc .breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 15px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* ===== section 通用 ===== */
.section { padding: 60px 0; }
.section-bg { background: var(--bg); }
.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}
.section-title h2 {
  font-size: 26px;
  color: var(--text);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title p { color: var(--text-light); margin-top: 10px; font-size: 14px; }

/* ===== 板块标题 — 英文水印风格（首页专家团队等） ===== */
.title-watermark { margin-bottom: 44px; }
.title-watermark h2 {
  font-size: 34px;
  font-weight: 800;
  color: #24406e;
  padding-bottom: 0;
}
.title-watermark h2::after { display: none; } /* 去掉默认蓝色短横线 */
.title-watermark .stw-bg {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  font-weight: 800;
  letter-spacing: 10px;
  color: #e6ebf2;
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.title-watermark .stw-txt { position: relative; z-index: 1; }
.title-watermark .stw-en {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 6px;
  color: #b9c2cf;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .title-watermark h2 { font-size: 26px; }
  .title-watermark .stw-bg { font-size: 34px; letter-spacing: 4px; }
  .title-watermark .stw-en { font-size: 11px; letter-spacing: 4px; }
}

/* 科室导航移动端抬头（mn-header）仅手机端显示，PC 保持居中 section-title */
.dept-mn-header { display: none; }

/* ===== 卡片 ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-body { padding: 20px; }
/* 带角标（如「市级重点」）的卡片 */
.card.has-badge { position: relative; }

/* 仅手机端显示的联系信息项（如门诊时间），PC 端隐藏（移动端 MQ 中覆盖为 flex） */
.footer-contact-item.footer-mobile-only { display: none; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c62828; }

/* ===== 网格布局 ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* 须知提示盒（就诊须知/入院须知） */
.notice-box { margin-top: 32px; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.notice-box > h3 { font-size: 16px; color: #1565c0; margin-bottom: 16px; }

/* ===== 科室导航卡片 (departments.html) ===== */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dept-emoji { font-size: 32px; margin-bottom: 10px; }
.dept-name { font-size: 16px; color: #1565c0; margin-bottom: 8px; }
.dept-name a { color: inherit; text-decoration: none; }
.dept-specialty { font-size: 13px; color: #999; }
.dept-more { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.dept-more-link { color: #1565c0; font-size: 13px; }

/* ===== Hero 轮播 ===== */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--primary-dark);
}
/* 移动端专用轮播：PC 端隐藏 */
.hero-mobile { display: none; }
.hero-slides { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease; }
.hero-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  position: relative;
  flex-direction: column;
  background-size: cover;
  background-position: center;
}
a.hero-slide { text-decoration: none; transition: filter 0.3s; }
a.hero-slide:hover { filter: brightness(1.05); }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-slide h2 { font-size: 36px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); margin-bottom: 12px; text-align: center; padding: 0 20px; }
.hero-slide p { font-size: 18px; opacity: 0.9; text-align: center; padding: 0 20px; }
.hero-slide .slide-tag {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}
.hero-icon { font-size: 64px; margin-bottom: 20px; opacity: 0.85; }
.hero-btns { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.hero-btns a { padding: 10px 24px; border-radius: 24px; font-size: 15px; font-weight: 500; }
.hero-btn-main { background: #fff; color: var(--primary); }
.hero-btn-main:hover { background: #f0f0f0; }
.hero-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.8); }
.hero-btn-outline:hover { background: rgba(255,255,255,0.15); }

/* 轮播指示点 */
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* 轮播箭头 */
.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,0.35); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* ===== Hero + 就医指南包裹层 ===== */
.hero-section-wrap {
  position: relative;
}

/* ===== 就医指南（快捷入口）===== */
.medical-guide.white-bg {
  background: #fff;
  padding: 10px 0 0;
  border-bottom: 1px solid #eef0f5;
  position: relative;
  z-index: 10;
}
.mg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
}
.mg-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0;
  align-items: flex-end;
}
.mg-item {
  background-color: rgba(244,248,252,0.95);
  border: 1px solid #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
  width: 147px;
  margin: 10px 10px 0 0;
  padding: 19px 0;
  text-align: center;
  text-decoration: none;
  color: #374151;
  transition: box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
}
.mg-item:hover {
  background-color: #fff;
  border-color: #4462cb;
  box-shadow: 0 0 15px 5px rgba(68,98,203,0.1);
  color: #374151;
}
.mg-item:hover .mg-icon {
  color: #2563eb;
}
.mg-icon {
  color: #60a5fa;
  display: block;
  font-size: 34px;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.mg-title {
  font-size: 14px;
  color: inherit;
}

/* 右侧大色块按钮：position:absolute，与容器右边对齐 */
.mg-outpatient {
  position: absolute;
  /* 距右边 = (100vw - 1200px)/2 + 20px padding，用 calc 近似 */
  right: max(20px, calc((100% - 1200px) / 2 + 20px));
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.mg-op-item {
  display: block;
  width: 220px;
  height: 110px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: filter 0.3s;
}
.mg-op-item:hover {
  color: #fff;
  filter: brightness(1.08);
}
.mg-op-blue {
  background-color: rgba(59,130,246,0.9);
}
.mg-op-green {
  background-color: rgba(16,185,129,0.9);
}
.mg-op-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 14px;
}
.mg-op-en {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}
.mg-op-icon {
  position: absolute;
  bottom: 16px;
  right: 10px;
  font-size: 80px;
  opacity: 0.1;
  display: block;
  line-height: 1;
}

/* 手机端专属入口：桌面隐藏 */
.mg-item--mobile { display: none; }

/* ===== 首页医院动态（移动端专用：标题+缩略图列表） ===== */
.news-mobile-sec { display: none; }

/* ===== 首页专家团队（移动端专用：一行2位，定时向左滚动） ===== */
.doc-mobile-sec { display: none; }

/* ===== 关于我们 ===== */
.about-flex { display: flex; gap: 40px; align-items: flex-start; }
.about-content { flex: 1; }
.about-content h3 { font-size: 22px; color: var(--primary); margin-bottom: 16px; }
.about-content p { color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.about-tag {
  background: #e3f2fd;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.stat-item { text-align: center; padding: 16px; background: var(--bg); border-radius: var(--radius); }
.stat-num { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.about-img-box { width: 340px; flex-shrink: 0; }
.about-img {
  background: linear-gradient(135deg, #bbdefb, #e3f2fd);
  height: 280px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

/* ===== 科室导航 ===== */
.dept-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.dept-tab {
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-light);
}
.dept-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.dept-tab:hover { color: var(--primary); background: #f0f4ff; }
.dept-content { display: none; }
.dept-content.active { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dept-item {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  color: var(--text);
}
.dept-item:hover { border-color: var(--primary); color: var(--primary); background: #f0f4ff; }
.dept-item .dept-icon { font-size: 24px; margin-bottom: 6px; }
.dept-item .dept-name { font-size: 13px; font-weight: 500; }
/* 科室卡片右上角「市级重点」标签 */
.dept-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: #f7a70a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== 新闻动态 ===== */
/* ===== 首页医院动态 — 参考原网站风格 ===== */

/* 标题栏 */
/* ===== 医院动态 ===== */

/* 两栏布局：左图轮播 + 右侧列表，等高 */
.home-news-wrap {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 28px;
  align-items: stretch;
}

/* ===== 左侧大图轮播 ===== */
/* 左列轮播固定高度；右侧新闻列表通过字号/间距控制到同高，避免底部留白 */
.hn-slider {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
}
.hn-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.hn-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hn-slide.active { opacity: 1; z-index: 1; }
.hn-slide a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}
.hn-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hn-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  padding: 32px 18px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 左右箭头 */
.hn-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s;
}
.hn-slider:hover .hn-slider-btn { opacity: 1; }
.hn-slider-btn:hover { background: var(--primary); color: #fff; }
.hn-prev { left: 12px; }
.hn-next { right: 12px; }
/* 轮播指示点 */
.hn-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 5;
  display: flex;
  gap: 6px;
}
.hn-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.25s;
}
.hn-dots span.active { background: #fff; }

/* ===== 右侧新闻列表 ===== */
.hn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.hn-more-wrap { text-align: right; margin-top: -4px; }
.hn-more-wrap .hn-more {
  font-size: 14px;
  color: #999;
}
.hn-more-wrap .hn-more:hover { color: var(--primary); }
/* 顶部大标题+摘要 */
.hn-list-top {
  text-decoration: none;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e0e0e0;
}
.hn-list-top h4 {
  font-size: 17px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.hn-list-top:hover h4 { color: var(--primary); }
.hn-list-top p {
  font-size: 14px;
  color: #888;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 文字列表 */
.hn-text-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hn-text-list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.5;
}
.hn-text-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.hn-text-list li a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.2s;
}
.hn-text-list li a:hover { color: var(--primary); }

/* 医院动态 - 手机端 */
@media (max-width: 768px) {
  .home-news-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hn-slider { height: 220px; }
  .hn-slide-caption { font-size: 13px; padding: 26px 12px 10px; }
  .hn-list-top h4 { font-size: 15px; -webkit-line-clamp: 1; }
  .hn-text-list { gap: 11px; }
  .hn-text-list li a { font-size: 13px; white-space: normal; }
}

/* ===== 专家团队 — 横向滚动轮播 ===== */
.doctors-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -8px;
}
.doctors-track {
  display: flex;
  gap: 16px;
  transition: transform 0.6s ease;
  padding: 4px 8px;
}
.doctor-card {
  flex: 0 0 calc(20% - 13px); /* 5 per row */
  min-width: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
  padding: 6px 6px 0; /* 照片与卡片边框之间留白，避免悬停时图片贴住边框 */
}
.doctor-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
/* 首页轮播中 <a> 包装器继承 flex 尺寸 */
.doctors-track > a {
  flex: 0 0 calc(20% - 13px);
  min-width: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}
.doctor-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 214 / 245; /* 与专家照片(214x245)同比例，照片恰好填满容器，四周留白均匀 */
  overflow: hidden;
  background: #f8f9fb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.doctor-info {
  padding: 12px 12px 14px;
}
.doctor-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.doctor-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.doctor-title {
  font-size: 12px;
  color: var(--primary);
  background: #e3f2fd;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.doctor-dept {
  font-size: 12px;
  color: var(--text-muted);
}
.doctor-meta-sep {
  color: #ccc;
  font-size: 12px;
}
.badge-special {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
  z-index: 2;
}

/* 轮播圆点指示器 */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cfd8dc;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 6px;
}
.carousel-dot:hover {
  background: var(--primary-light);
}

/* 专家团队左右切换按钮（桌面端，位于轮播盒外侧，常显） */
.doctors-carousel-wrap {
  position: relative;
}
.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(21, 101, 192, 0.18);
  z-index: 5;
  transition: all 0.25s ease;
  padding: 0;
}
.carousel-arrow:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.35);
}
.carousel-arrow i {
  font-size: 26px;
  line-height: 1;
}
.carousel-arrow-prev { left: -62px; }
.carousel-arrow-next { right: -62px; }

/* 视口变窄时为外侧按钮腾出空间（收窄轮播盒，按钮贴到外侧） */
@media (max-width: 1340px) {
  .doctors-carousel-wrap { padding: 0 60px; }
  .carousel-arrow-prev { left: 0; }
  .carousel-arrow-next { right: 0; }
}

.doctors-carousel {
  overflow: hidden;
  background: #fff;
}

/* ===== 就医服务 ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
.service-icon { font-size: 36px; margin-bottom: 12px; }
.service-card h3 { font-size: 16px; margin-bottom: 8px; }
.service-card p, .service-card li { font-size: 13px; color: var(--text-light); line-height: 1.9; }
.service-card ul { padding-left: 16px; list-style: disc; }

/* 就医服务 — 入口卡片（service.html 服务导航） */
.service-entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-entry {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service-entry:hover { transform: translateY(-6px); box-shadow: 0 10px 26px rgba(21,101,192,0.16); border-bottom-color: var(--primary); }
.service-entry .se-icon { font-size: 34px; margin-bottom: 10px; }
.service-entry .se-title { font-size: 16px; font-weight: 700; color: var(--text); }
.service-entry .se-en { font-size: 11px; letter-spacing: 2px; color: #b9c2cf; text-transform: uppercase; margin: 4px 0 10px; }
.service-entry .se-desc { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* 就医服务总览（service.html）— 服务导航区块顶部间距 / 交通路线列表 */
.svc-nav { padding-top: 48px; }
.traffic-list { list-style: none; padding-left: 0; font-size: 14px; color: #666; line-height: 2.2; }
.traffic-list li { margin-bottom: 2px; }

/* 就诊流程 */
.process-steps { display: flex; align-items: flex-start; gap: 0; margin-top: 32px; overflow-x: auto; }
.step-item { flex: 1; text-align: center; min-width: 100px; position: relative; }
.step-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 20px;
  right: -12px;
  color: var(--primary);
  font-size: 18px;
}
.step-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.step-label { font-size: 13px; color: var(--text); font-weight: 500; }
.step-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== 联系我们（精简版） ===== */
.contact-simple {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.contact-simple-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  flex: 1;
  min-width: 260px;
}
.contact-simple-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565c0, #42a5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}
.contact-simple-text h3 {
  font-size: 14px;
  color: #999;
  margin-bottom: 6px;
  font-weight: normal;
}
.contact-simple-phone {
  font-size: 28px;
  color: #1565c0;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}
.contact-simple-text p:not(.contact-simple-phone) {
  font-size: 18px;
  color: #333;
  line-height: 1.3;
}
.baidu-map-box {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  width: 100%;
  height: 450px;
}
/* 地图（Leaflet + 高德瓦片）自定义标注与弹窗 */
.hc-map-pin i {
  display: block;
  font-size: 38px;
  line-height: 38px;
  text-align: center;
  color: #1565c0;
  text-shadow: 0 2px 6px rgba(21,101,192,0.45);
}
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.leaflet-popup-content {
  margin: 14px 18px;
}
.hc-map-popup h4 {
  font-size: 15px;
  color: #1565c0;
  margin-bottom: 6px;
}
.hc-map-popup p {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}
.hc-map-popup a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #1565c0;
  text-decoration: none;
  font-weight: 600;
}

/* ===== 页脚 ===== */
.footer {
  background: #f4f7fa;
  color: #555;
  padding: 40px 0 0;
  border-top: 1px solid #dde3ec;
}
.footer-grid { display: grid; grid-template-columns: auto 0.85fr 0.65fr 0.6fr 150px; gap: 20px; align-items: stretch; padding-bottom: 32px; border-bottom: 1px solid #dde3ec; }
/* 页脚5列：品牌logo | 地址电话 | 门诊时间 | 急诊及住院 | 客服微信二维码 */
.f-brand { align-self: center; }
.f-brand-img { height: 165px; width: auto; display: block; }
.f-contact, .f-hours, .f-emergency { border-left: 1px solid #dde3ec; padding-left: 20px; }
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--primary); }
.f-contact-title, .f-hours-title { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.footer-qr { border-left: 1px solid #dde3ec; padding-left: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.footer-qr .qr-card { background: #fff; border: 1px solid #dde3ec; border-radius: 6px; padding: 8px; width: 100%; box-sizing: border-box; }
.footer-logo { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-desc { font-size: 13px; line-height: 1.8; color: #666; }
/* 官方微信二维码 */
.footer-qr { text-align: center; }
.footer-qr h4 { font-size: 14px; color: #1a1a2e; margin-bottom: 10px; font-weight: 700; }
.footer-qr img { width: 100%; height: auto; border-radius: 6px; border: 1px solid #dde3ec; display: block; }
.footer-qr p { font-size: 12px; color: #888; margin-top: 6px; }
.footer-col h4 { color: #1a1a2e; font-size: 15px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.footer-col ul li a { color: #666; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact-item { display: flex; gap: 8px; margin-bottom: 10px; font-size: 13px; align-items: flex-start; color: #555; }
.footer-contact-item .f-icon { font-size: 16px; margin-top: 1px; }
.footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}
.footer-bottom a { color: #999; text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ===== 页面内容通用 ===== */
.content-section { padding: 50px 0; }
.content-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.content-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 14px; }
.content-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }

/* 新闻详情 */
.news-detail { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.news-article { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.news-article h1 { font-size: 22px; color: var(--text); margin-bottom: 12px; line-height: 1.5; }
.news-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.news-body p { font-size: 15px; color: var(--text); line-height: 1.9; margin-bottom: 16px; }

/* 科室详情 */
.dept-detail { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.dept-main { }
.dept-sidebar { }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.table th { background: var(--bg); color: var(--text); font-weight: 600; }
.table tr:hover td { background: #fafbff; }

/* 高亮文字 */
.highlight { color: var(--primary); font-weight: 600; }
.text-accent { color: var(--accent); }

/* ===== about.html 页面样式 ===== */

/* 两栏布局 */
.about-layout { padding: 40px 0 60px; background: #f5f7fa; }
.about-layout-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* 左侧导航栏 */
.about-sidebar {
  position: sticky;
  top: 20px;
}
.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 12px 12px 0 0;
  text-align: center;
  letter-spacing: 2px;
}
.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}
.sidebar-nav li {
  border-bottom: 1px solid #f0f2f5;
}
.sidebar-nav li:last-child {
  border-bottom: none;
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  color: #444;
  text-decoration: none;
  transition: all 0.2s;
}
.sidebar-nav li a:hover {
  background: #f0f6ff;
  color: var(--primary);
  padding-left: 30px;
}
.sidebar-nav li.active a {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* 侧边联系卡 */
.sidebar-contact-card {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(21,101,192,0.2);
}
.scc-icon { font-size: 32px; margin-bottom: 8px; }
.scc-label { font-size: 13px; opacity: 0.85; margin-bottom: 6px; }
.scc-phone {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.scc-phone:hover { text-decoration: underline; }
.scc-addr { font-size: 12px; opacity: 0.8; margin: 0; }

/* 右侧内容区 */
.about-content {}

/* 内容区块 */
.about-block {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.about-block:last-child { margin-bottom: 0; }

/* 区块标题 */
.about-block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  color: #1a1a2e;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f2f5;
}
.abt-bar {
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  flex-shrink: 0;
}

/* 图文混排 */
.about-text-img {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: center;
}
.about-text-img.reverse {
  grid-template-columns: 380px 1fr;
}
.about-text p {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin-bottom: 14px;
  text-indent: 2em;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text .hl {
  color: var(--primary);
  font-weight: 600;
}
.about-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.about-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.about-img:hover img {
  transform: scale(1.04);
}

/* 科室标签 */
.dept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f2f5;
}
.dept-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  background: #f0f6ff;
  color: var(--primary);
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid #e0ecff;
}
.dept-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21,101,192,0.2);
}

/* 院训卡片 */
.about-motto-card {
  background: linear-gradient(135deg, #f0f6ff, #e8f0fe);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #dae5f5;
}
.motto-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}
.motto-item {
  text-align: center;
}
.motto-icon { font-size: 36px; margin-bottom: 8px; }
.motto-word {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.motto-desc p {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 10px;
  text-indent: 0;
}
.motto-desc p:last-child { margin-bottom: 0; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .doctors-track { gap: 12px; }
  .doctors-track > a { flex: 0 0 calc(33.333% - 8px); }
  .doctor-card { flex: 0 0 calc(33.333% - 8px); }
  .carousel-dot { width: 10px; height: 10px; }
  .carousel-dot.active { width: 24px; }
  .doctors-carousel { padding: 0; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .f-contact, .f-hours, .f-emergency, .footer-qr { border-left: none; padding-left: 0; }
  .footer-qr { justify-self: start; }
  .service-entry-grid { grid-template-columns: repeat(2, 1fr); }
}



@media (max-width: 768px) {
  /* 侧边浮动客服 */
  .side-float { display: none; }
  /* 顶部条 */
  .top-bar { display: none; }
  /* 导航栏 */
  .navbar-top .container { height: auto; padding: 14px 0; }
  .navbar-contact { display: none; }
  .menu-btn { display: flex; gap: 4px; padding: 6px; flex-shrink: 0; }
  /* 手机端顶部操作按钮：预约挂号 + 拨打电话（logo 右侧、汉堡菜单左侧） */
  .navbar-mobile-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 2px; }
  .nma-appt {
    display: inline-flex; align-items: center; justify-content: center;
    height: 29px; padding: 0 13px;
    background: linear-gradient(90deg, #2c5cc5 0%, #3a8fd9 100%);
    color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
    border-radius: 15px; text-decoration: none; white-space: nowrap;
  }
  .nma-phone { display: inline-flex; align-items: center; font-size: 24px; color: #2c6fd6; text-decoration: none; }
  .navbar-bottom { display: none; }
  /* 手机端 logo：撑满剩余空间等比放大，不受窄屏挤压变形 */
  .logo { flex: 1; min-width: 0; }
  .logo img { height: auto; max-height: 52px; max-width: 100%; object-fit: contain; }
  /* Hero — 手机端独立样式，参考 xzsdyyy.com/m/ 全宽Banner */
  .hero-pc { display: none; } /* PC 专用轮播在手机端隐藏 */
  .hero-mobile { display: block; } /* 移动端专用轮播（mbanner 图） */
  .hero {
    height: 46vw;
    max-height: 300px;
  }
  /* 医院动态 — 手机端独立版式（标题+缩略图列表） */
  .news-pc-sec { display: none; }
  .news-mobile-sec { display: block; padding: 26px 0 6px; }
  .mn-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .mn-title { font-size: 17px; font-weight: 700; color: #1a1a2e; display: flex; align-items: center; }
  .mn-title i { width: 4px; height: 16px; background: var(--primary); border-radius: 2px; margin-right: 8px; }
  .mn-more { font-size: 13px; color: #999; }
  .mn-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #f0f2f5; text-decoration: none; }
  .mn-item:last-child { border-bottom: none; }
  .mn-body { flex: 1; min-width: 0; }
  .mn-body h3 {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mn-body p { margin-top: 10px; font-size: 12px; color: #b0b0b0; }
  .mn-thumb { width: 112px; height: 74px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
  /* 专家团队 — 手机端独立版式：一行2位，逐位向左无缝滚动，两端按钮 */
  .doc-pc-sec { display: none; }
  .doc-mobile-sec { display: block; padding: 26px 0; }
  .doc-mobile-sec .mn-header { margin-bottom: 14px; }
  .dm-carousel { position: relative; display: flex; align-items: center; gap: 6px; }
  .dm-viewport { flex: 1; min-width: 0; overflow: hidden; }
  /* 轨道：所有专家排成一行，每次左移一张卡片实现无缝循环 */
  .dm-track { display: flex; gap: 12px; transition: transform 0.5s ease; }
  .dm-item {
    flex: 0 0 calc(50% - 6px); /* 视口内正好显示 2 位 */
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .dm-avatar {
    width: 100%;
    aspect-ratio: 1 / 1.16;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
  }
  .dm-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
  .dm-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
  }
  .dm-name span { overflow: hidden; text-overflow: ellipsis; }
  .dm-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    background: #eaf1fd;
    border-radius: 50em;
    padding: 1px 7px;
    flex-shrink: 0;
  }
  .dm-meta {
    margin-top: 3px;
    font-size: 12px;
    color: #8a94a6;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dm-arrow {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
    font-size: 18px;
    padding: 0;
  }
  .dm-arrow i { font-size: 18px; }
  .dm-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .dm-dot { width: 7px; height: 7px; border-radius: 50%; background: #cfd8e3; transition: all 0.3s; }
  .dm-dot.active { width: 20px; border-radius: 50em; background: var(--primary); }
  /* 隐藏文字内容、按钮、箭头 */
  .hero-slide h2,
  .hero-slide p,
  .hero-icon,
  .hero-slide .slide-tag,
  .hero-btns,
  .hero-prev,
  .hero-next { display: none !important; }
  /* 药丸形指示点 */
  .hero-dots { bottom: 8px; gap: 6px; }
  .hero-dot {
    width: 30px;
    height: 4px;
    border-radius: 50em;
    background: rgba(255,255,255,0.6);
  }
  .hero-dot.active {
    background: #4462cb;
    width: 30px;
    border-radius: 50em;
  }
  /* 通用 */
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 28px; }
  .section-title h2 { font-size: 22px; }
  .section-title p { font-size: 13px; }
  /* 科室导航 — 手机端抬头改为医院动态同款（蓝色竖条+更多>） */
  .dept-nav-sec .section-title { display: none; }
  .dept-nav-sec .dept-mn-header { display: flex; margin-bottom: 14px; }
  .container { padding: 0 16px; }
  /* 网格 */
  .grid-2 { grid-template-columns: 1fr; }
  /* 须知/提示三卡 — 手机端紧凑 2 列 */
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-3 h4 { font-size: 13px !important; margin-bottom: 4px !important; }
  .grid-3 ul { font-size: 12px !important; line-height: 1.65 !important; padding-left: 14px !important; }
  /* 须知提示盒（就诊须知/入院须知）手机端收紧 */
  .notice-box { margin-top: 14px; padding: 14px 12px; }
  .notice-box > h3 { font-size: 14px; margin-bottom: 10px; }
  /* 挂号方式 4 卡 — 手机端紧凑 2 列 */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-4 .content-card { padding: 18px 14px; }
  .grid-4 .content-card h3 { font-size: 15px; margin-bottom: 8px; }
  .grid-4 .content-card p { font-size: 12px; line-height: 1.7; margin-bottom: 0; }
  /* 科室导航 — 手机端紧凑2列，隐藏擅长，重新排版 */
  .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dept-grid .card-body { padding: 14px; }
  .dept-emoji { font-size: 26px; margin-bottom: 8px; }
  .dept-name { font-size: 14px; margin-bottom: 6px; }
  .dept-specialty { display: none; }
  .dept-more { margin-top: 10px; padding-top: 10px; }
  .dept-more-link { font-size: 12px; }
  /* 就医指南 - 手机端：完全仿 xzsdyyy.com/m/ medical-guide 样式 */
  .mg-outpatient { display: none !important; }
  .mg-item--mobile { display: flex; }
  .medical-guide.white-bg { background-color: #fff; padding: 0; border-bottom: none; }
  .mg-container { display: block; max-width: 100%; padding: 0; }
  .mg-list { display: flex; flex-wrap: wrap; padding: 10px 0; gap: 0; }
  .mg-item {
    color: #6b7280;
    display: flex;
    flex: 0 0 25%;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    margin: 10px 0;
    height: auto;
    width: auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    text-align: center;
    text-decoration: none;
  }
  .mg-item:hover { background: none; border-color: transparent; box-shadow: none; color: #4462cb; }
  .mg-icon { color: #4462cb; font-size: 36px; margin-bottom: 10px; }
  .mg-item:hover .mg-icon { color: #2251c5; }
  .mg-title { font-size: 14px; color: inherit; }
  /* 关于我们 */
  .about-flex { flex-direction: column; }
  .about-img-box { width: 100%; }
  .about-img { height: 200px; font-size: 60px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  /* 科室标签 */
  .dept-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dept-tab { white-space: nowrap; padding: 8px 14px; font-size: 13px; }
  .dept-content.active { grid-template-columns: repeat(3, 1fr); }
  /* 专家轮播 */
  .doctors-carousel { padding: 0; }
  .doctors-carousel-wrap { padding: 0; } /* 按钮已隐藏，取消预留空间 */
  .carousel-arrow { display: none; } /* 手机端隐藏专家轮播左右按钮 */
  .doctors-track { gap: 10px; }
  .doctors-track > a { flex: 0 0 calc(50% - 6px); }
  .doctor-card { flex: 0 0 calc(50% - 6px); }
  .doctor-name { font-size: 14px; }
  .doctor-title { font-size: 11px; }
  .doctor-dept { font-size: 11px; }
  /* 新闻 */
  /* 服务 */
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 18px 14px; }
  .service-icon { font-size: 28px; margin-bottom: 8px; }
  .service-card h3 { font-size: 15px; margin-bottom: 6px; }
  .service-entry-grid { grid-template-columns: 1fr; }
  .service-entry { padding: 22px 16px; }
  /* 就医服务总览 service.html — 手机端紧凑排版（压缩页面高度，PC 端不受影响） */
  .svc-page .section { padding: 24px 0; }
  .svc-page .section-title { margin-bottom: 16px; }
  .svc-page .section-title p { display: none; }
  /* 服务导航：4 个入口卡改 2 列紧凑卡 */
  .svc-page .service-entry-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .svc-page .service-entry { padding: 15px 10px; }
  .svc-page .service-entry .se-icon { font-size: 26px; margin-bottom: 6px; }
  .svc-page .service-entry .se-title { font-size: 14px; }
  .svc-page .service-entry .se-en { font-size: 10px; letter-spacing: 1px; margin: 3px 0 6px; }
  .svc-page .service-entry .se-desc { font-size: 11px; line-height: 1.55; }
  /* 便民服务：卡片与列表收紧 */
  .svc-page .service-grid { gap: 10px; }
  .svc-page .service-card { padding: 14px 12px; }
  .svc-page .service-card .service-icon { font-size: 20px; margin-bottom: 6px; }
  .svc-page .service-card h3 { font-size: 14px; margin-bottom: 4px; }
  .svc-page .service-card li { font-size: 12px; line-height: 1.6; }
  .svc-page .service-card ul { padding-left: 14px; }
  /* 交通路线：上下两卡紧凑 */
  .svc-page .grid-2 { gap: 10px; }
  .svc-page .content-card { padding: 14px 12px; }
  .svc-page .content-card h3 { font-size: 15px; margin-bottom: 6px; }
  .svc-page .traffic-list { font-size: 12px; line-height: 1.7; }
  /* 流程步骤 — 手机端 2 列紧凑卡片（就诊流程/入院流程/出院流程共用） */
  .process-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 10px; margin-top: 16px; overflow-x: visible; }
  .step-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 9px;
    align-items: start;
    text-align: left;
    min-width: 0;
    padding: 9px 10px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .step-item:not(:last-child)::after,
  .step-item:not(:last-child)::before { display: none; }
  .step-circle { grid-column: 1; grid-row: 1 / span 2; width: 28px; height: 28px; font-size: 13px; margin: 0; }
  .step-label { grid-column: 2; grid-row: 1; font-size: 13px; padding-top: 4px; }
  .step-sub { grid-column: 2; grid-row: 2; font-size: 11px; margin-top: 2px; line-height: 1.5; }
  /* 联系我们 */
  .contact-simple { flex-direction: column; gap: 16px; }
  .contact-simple-item { min-width: 0; padding: 20px 18px; }
  .contact-simple-phone { font-size: 24px; }
  .baidu-map-box { height: 300px; }
  /* 详情页 */
  .dept-detail { grid-template-columns: 1fr; }
  .news-detail { grid-template-columns: 1fr; }
  .dept-sidebar { order: -1; }
  /* 页脚 — 手机端排版：联系信息(左) + 客服微信二维码(右，垂直居中对称)；logo列/门诊时间列隐藏 */
  .footer { padding: 24px 0 0; }
  .f-brand, .f-hours, .f-emergency { display: none; }
  .f-contact { border-left: none; padding-left: 0; }
  .f-contact-title { display: none; } /* 手机端隐藏地址电话标题，保持精简 */
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 8px 18px;
    align-items: start;
    padding-bottom: 20px;
  }
  .footer-grid .f-contact {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .footer-contact-item {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 9px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
  }
  .footer-contact-item .f-icon { font-size: 15px; margin-top: 2px; }
  .footer-contact-item.footer-mobile-only { display: flex; } /* 手机端显示门诊时间行 */
  /* 客服微信二维码：右侧与联系信息并排，垂直居中对称 */
  .footer-qr {
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    text-align: center;
    border-left: none;
    padding-left: 0;
  }
  .footer-qr .qr-card { border: none; background: none; padding: 0; }
  .footer-qr img { width: 92px; height: 92px; border-radius: 4px; }
  .footer-qr p { font-size: 12px; color: #777; margin-top: 6px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1.7;
  }
  /* 页面横幅 */
  .page-banner { padding: 28px 0; }
  .page-banner-pc { display: none; }
  .page-banner-mobile { display: block; }
  .page-banner h1 { font-size: 22px; }
  /* 内容卡片 */
  .content-section { padding: 36px 0; }
  .content-card { padding: 20px; }
  .content-card h3 { font-size: 16px; }

/* ===== 网站地图 ===== */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.sitemap-list { list-style: none; }
.sitemap-list li { margin-bottom: 9px; font-size: 14px; }
.sitemap-list li a { color: #555; transition: color 0.2s; }
.sitemap-list li a:hover { color: var(--primary); }
.sitemap-list li a::before { content: "· "; color: var(--primary); font-weight: 700; }
.content-card h3 i { margin-right: 6px; color: var(--primary); }
  /* about.html 768px */
  .about-layout { padding: 20px 0 40px; }
  .about-layout-inner { grid-template-columns: 1fr; gap: 20px; }
  .about-sidebar { position: static; }
  .sidebar-contact-card { display: none; }
  .sidebar-nav li a { padding: 12px 20px; font-size: 14px; }
  .about-block { padding: 20px; margin-bottom: 16px; }
  .about-block-title { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; }
  .about-text-img,
  .about-text-img.reverse { grid-template-columns: 1fr; }
  .about-img img { height: 200px; }
  .about-text p { font-size: 14px; line-height: 1.9; }
  .dept-tags { gap: 8px; }
  .dept-tag { padding: 6px 14px; font-size: 13px; }
  .motto-items { gap: 24px; }
  .motto-icon { font-size: 28px; }
  .motto-word { font-size: 18px; }
  .about-motto-card { padding: 20px; }
}
@media (max-width: 480px) {
  .dept-content.active { grid-template-columns: repeat(2, 1fr); }
  .doctors-track { gap: 8px; }
  .doctors-track > a { flex: 0 0 calc(50% - 5px); }
  .doctor-card { flex: 0 0 calc(50% - 5px); }
  .stat-num { font-size: 22px; }
  /* 手机端页脚 — 小屏更紧凑 */
  .footer { padding: 18px 0 0; }
  .footer-grid { gap: 6px 14px; padding-bottom: 16px; }
  .footer-contact-item { font-size: 13px; margin-bottom: 7px; }
  .footer-qr img { width: 80px; height: 80px; }
  /* about.html 480px */
  .about-block { padding: 16px; }
  .about-img img { height: 160px; }
  .about-block-title { font-size: 16px; }
  .about-text p { font-size: 13px; line-height: 1.8; }
  .motto-items { gap: 16px; }
  .motto-icon { font-size: 24px; }
  .motto-word { font-size: 16px; }
  .dept-tag { padding: 5px 12px; font-size: 12px; }
  /* 科室导航 — 小屏更紧凑 */
  .dept-grid { gap: 10px; }
  .dept-grid .card-body { padding: 12px; }
  .dept-emoji { font-size: 22px; margin-bottom: 6px; }
  .dept-name { font-size: 13px; margin-bottom: 4px; }
  .dept-more { margin-top: 8px; padding-top: 8px; }
}

/* ===== 右侧浮动客服（大气版-原网站风格） ===== */
.side-float {
  position: fixed;
  top: 50%;
  right: 1%;
  margin-top: -163px;
  z-index: 999;
  width: 80px;
  list-style: none;
  padding: 0;
  margin-left: 0;
  margin-bottom: 0;
}
.side-float > dd {
  position: relative;
  float: left;
  width: 80px;
  height: 80px;
  background: var(--primary);
  margin-top: 2px;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  cursor: pointer;
  transition: all .5s;
}
.side-float > dd:first-child { margin-top: 0; }
.side-float > dd:hover { background: var(--primary-dark); }
.side-float > dd i {
  width: 100%;
  height: 30px;
  display: block;
  margin-top: 13px;
  background: url(../img/toolbar.png) no-repeat center 0;
}
.side-float > dd.qq i { background-position-y: 0; }
.side-float > dd.tel i { background-position-y: -30px; }
.side-float > dd.code i { background-position-y: -60px; }
.side-float > dd.top i { background-position-y: -90px; }
.side-float > dd span {
  display: block;
  color: #fff;
  font-size: 14px;
}
/* 服务热线弹出框 */
.side-float > dd.tel .box {
  position: absolute;
  top: 0;
  width: 190px;
  right: 90px;
  height: 100%;
  border-radius: 5px;
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
  transition: all .5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.side-float > dd.tel:hover .box {
  opacity: 1;
  visibility: visible;
  right: 90px;
}
.side-float > dd.tel .box p { font-size: 14px; margin: 0; color: #fff; }
.side-float > dd.tel .box h3 { font-size: 18px; font-weight: bold; margin: 5px 0 0; color: #fff; }
.side-float > dd.tel .box::after {
  content: " "; display: block;
  border-style: solid dashed dashed dashed;
  border-color: transparent transparent transparent var(--primary);
  border-width: 9px;
  position: absolute;
  top: 50%; margin-top: -9px;
  right: -18px;
}
/* 微信咨询弹出框 */
.side-float > dd.code .box {
  position: absolute;
  top: 0;
  width: 162px;
  right: 90px;
  height: 162px;
  border-radius: 5px;
  background: var(--primary);
  opacity: 0;
  visibility: hidden;
  transition: all .5s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-float > dd.code:hover .box {
  opacity: 1;
  visibility: visible;
  right: 90px;
}
.side-float > dd.code .box img {
  width: 140px; height: 140px;
  border-radius: 3px;
}
.side-float > dd.code .box::after {
  content: " "; display: block;
  border-style: solid dashed dashed dashed;
  border-color: transparent transparent transparent var(--primary);
  border-width: 9px;
  position: absolute;
  top: 30px;
  right: -18px;
}
/* 在线客服链接 */
.side-float > dd a {
  color: #fff; text-decoration: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
/* 返回顶部 */
.side-float > dd.top { opacity: 0; visibility: hidden; pointer-events: none; transition: all .3s; }
.side-float > dd.top.show { opacity: 1; visibility: visible; pointer-events: auto; }
/* ===== 移动端底部悬浮栏（结构/尺寸与参考站 m.dfhkkfyy.com 一致，仅背景色不同） ===== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  height: 70px;
  background: linear-gradient(90deg, #2c5cc5 0%, #3a8fd9 100%);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-bar .mbb-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  padding: 0;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-bar .mbb-item img {
  width: 27px;
  height: 27px;
  display: block;
}

.mobile-bottom-bar .mbb-item h6 {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

/* 科室导航（icon 字体） */
.mobile-bottom-bar .mbb-item .mbb-ic {
  width: 27px;
  height: 27px;
  font-size: 31px;
  line-height: 27px;
  color: #fff;
  display: block;
  overflow: visible;
}

/* 中间电话按钮（白圈红底白话筒 PNG，垂直居中） */
.mobile-bottom-bar .mbb-tel {
  flex: 0 0 57px;
  width: 57px;
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-bar .mbb-tel img {
  width: 57px;
  height: 57px;
  display: block;
}

.mobile-bottom-bar .mbb-tel:active img { transform: scale(0.94); }

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
  /* 已有移动端底部栏时，footer底部增加安全间距 */
  .footer-bottom {
    padding-bottom: 86px;
  }
}

/* 在线咨询二维码弹窗 */
.mbb-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
}
.mbb-mask:not([hidden]) { display: flex; }
.mbb-qr {
  background: #fff;
  border-radius: 10px;
  padding: 18px 18px 14px;
  text-align: center;
  width: 246px;
  max-width: 80vw;
}
.mbb-qr img {
  width: 210px;
  height: 210px;
  display: block;
  margin: 0 auto;
}
.mbb-qr p {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
}

/* ===== 移动端右侧悬浮电话按钮 ===== */
.float-phone-btn {
  display: none;
  position: fixed;
  right: 14px;
  top: 50%;                 /* 右侧垂直居中 */
  transform: translateY(-50%);
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: #fff;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(21,101,192,0.45);
  -webkit-tap-highlight-color: transparent;
}
.float-phone-btn i {
  font-size: 24px;
  line-height: 1;
}
/* 呼吸光圈 */
.float-phone-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(21,101,192,0.5);
  animation: floatPhonePulse 2s ease-out infinite;
}
@keyframes floatPhonePulse {
  0%   { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.float-phone-btn:active {
  transform: translateY(-50%) scale(0.92);
}
@media (max-width: 768px) {
  .float-phone-btn {
    display: flex;
  }
}
@media (max-width: 480px) {
  .float-phone-btn {
    width: 44px;
    height: 44px;
    right: 10px;
  }
  .float-phone-btn i { font-size: 22px; }
}

/* ===== 移动端右侧悬浮微信咨询按钮 ===== */
.float-wx-btn {
  display: none;
  position: fixed;
  right: 14px;
  top: calc(50% + 58px);     /* 电话按钮下方 */
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c9e52, #16c26b);
  color: #fff;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(12,158,82,0.45);
  -webkit-tap-highlight-color: transparent;
}
.float-wx-btn i {
  font-size: 26px;
  line-height: 1;
}
.float-wx-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(12,158,82,0.45);
  animation: floatWxPulse 2s ease-out infinite;
}
@keyframes floatWxPulse {
  0%   { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.float-wx-btn:active { transform: scale(0.92); }
@media (max-width: 768px) {
  .float-wx-btn { display: flex; }
}
@media (max-width: 480px) {
  .float-wx-btn {
    width: 44px;
    height: 44px;
    right: 10px;
    top: calc(50% + 54px);
  }
  .float-wx-btn i { font-size: 24px; }
}

/* ===== 医院动态列表页 ===== */
/* 整体布局：左边栏 + 右侧内容 */
.news-page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: flex-start;
}

/* ---- 左侧边栏 ---- */
.news-sidebar {
  position: sticky;
  top: 20px;
}

/* 就医导航标题（蓝色渐变，与关于我们页一致） */
.sidebar-nav-header {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 10px 10px 0 0;
  letter-spacing: 2px;
}

/* 就医导航列表 */
.sidebar-nav-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.sidebar-nav-list li {
  border-bottom: 1px solid #f0f0f0;
}
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list li a {
  display: block;
  padding: 12px 18px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.sidebar-nav-list li a:hover {
  background: #f0f6ff;
  color: #1565c0;
}
.sidebar-nav-list li a.active {
  background: #f0f6ff;
  color: #1565c0;
}

/* 联系卡（蓝色渐变，与关于我们页一致） */
.sidebar-contact-card {
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: #fff;
  padding: 22px 18px;
  border-radius: 10px;
  text-align: center;
  margin-top: 18px;
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}
.scc-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.scc-label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.scc-phone {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
}
.scc-phone:hover { text-decoration: underline; }
.scc-addr {
  font-size: 11px;
  opacity: 0.8;
  margin: 0;
}

/* ---- 右侧新闻列表 ---- */
.news-main {}

/* 每条新闻 */
.nl-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #ebebeb;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.nl-item:first-child { padding-top: 0; }
.nl-item:last-of-type { border-bottom: none; }
.nl-item:hover .nl-title { color: #1565c0; }

/* 左侧文字 */
.nl-body {
  flex: 1;
  min-width: 0;
}
.nl-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  margin-bottom: 8px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nl-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nl-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #999;
}
.nl-category {
  color: #1565c0;
  background: #eef3ff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

/* 右侧图片 */
.nl-img-wrap {
  flex: 0 0 200px;
  width: 200px;
  height: 130px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}
.nl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.nl-item:hover .nl-img { transform: scale(1.04); }

/* 分页 */
.nl-pagination {
  display: flex;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.nl-page-btn {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid #dde1ea;
  border-radius: 4px;
  font-size: 13px;
  color: #444;
  text-decoration: none;
  background: #fff;
  transition: all 0.2s;
}
.nl-page-btn:hover {
  border-color: #1565c0;
  color: #1565c0;
  background: #f0f6ff;
}
.nl-page-btn.active {
  background: #1565c0;
  color: #fff;
  border-color: #1565c0;
}

/* ===== 手机端就医导航折叠条（桌面端隐藏）===== */
.mobile-nav-bar {
  display: none;
}
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1565c0;
  background: #fff;
  border-bottom: 1px solid #e3eaf5;
  user-select: none;
}
.mobile-nav-toggle .toggle-arrow {
  transition: transform 0.25s;
  font-size: 12px;
}
.mobile-nav-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}
.mobile-nav-panel {
  display: none;
  max-height: 340px;
  overflow-y: auto;
  background: #f8fafd;
  border-bottom: 1px solid #e3eaf5;
}
.mobile-nav-panel.open {
  display: block;
}
.mobile-nav-link {
  display: block;
  padding: 10px 16px;
  color: #455a64;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid #eef2f8;
  transition: background 0.15s;
}
.mobile-nav-link:hover {
  background: #e8f0fe;
}
.mobile-nav-link.active {
  color: #1565c0;
  font-weight: 600;
  background: #e8f0fe;
}

/* 响应式：手机端单列 */
@media (max-width: 768px) {
  .mobile-nav-bar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  }
  .news-page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  /* 手机端隐藏原侧边栏 */
  .news-sidebar { display: none; }
  /* 手机端隐藏资讯详情页侧栏（改用上方折叠条，与 news.html 一致） */
  .nd-sidebar { display: none; }
  .nl-img-wrap {
    flex: 0 0 110px;
    width: 110px;
    height: 80px;
  }
  .nl-title { font-size: 15px; }
  .nl-desc { display: none; }
  .nl-item { gap: 12px; padding: 16px 0; }
}

