@charset "UTF-8";
/* ==========================================================================
   重庆仁品医院 - 首页12块布局样式
   基准宽度：1200px；最小适配：1200px
   ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --color-primary: #1e50ae;
  --color-primary-light: #0e68ef;
  --color-primary-dark: #163d85;
  --color-accent: #fd9100;
  --color-accent-dark: #f58100;
  --color-text: #303030;
  --color-text-secondary: #666666;
  --color-border: #e5e5e5;
  --color-border-dark: #d2d2d2;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-footer: #1c2b3a;
  --container-width: 1200px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Adobe Heiti Std", sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--color-text);
  background: var(--color-bg);
}
img { border: 0; vertical-align: middle; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-primary-light); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; padding: 0; font-weight: normal; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
input { font-family: inherit; }

.container {
  width: 100%; max-width: var(--container-width);
  margin: 0 auto; padding: 0 10px;
  position: relative;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 32px; padding: 0 14px; border-radius: 3px;
  font-size: 14px; color: #fff; white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn--blue { background: var(--color-primary-light); }
.btn--blue:hover { background: var(--color-primary); color: #fff; }
.btn--orange { background: var(--color-accent-dark); }
.btn--orange:hover { background: #e07300; color: #fff; }
.btn__icon { font-size: 13px; line-height: 1; }

/* ---------- 第1块 顶部Header ---------- */
.block-1 { width: 100%; height: 206px; background: #fff; }
.header-top {
  width: 1200px; height: 140px; margin: 0 auto;
  display: flex; align-items: center; gap: 90px;
}
.header-logo img { display: block; width: 310px; height: 61px; }
.header-badges { display: flex; align-items: center; }
.header-badges img { display: block; margin-right: 60px; }
.header-badges img:last-child { margin-right: 0; }

.main-nav { width: 100%; height: 66px; background: var(--color-primary); }
.main-nav .container { height: 66px; }

/* 移动端汉堡按钮（默认隐藏） */
.main-nav__toggle {
  display: none;
}
.main-nav__list {
  width: 1200px; height: 66px; margin: 0 auto;
  display: flex; align-items: stretch;
}
.main-nav__item { width: 198px; text-align: center; position: relative; }
.main-nav__item + .main-nav__item::before {
  content: "|"; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); color: rgba(255,255,255,0.5);
  font-size: 16px; line-height: 1;
}
.main-nav__link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 66px;
  font-family: "Adobe Heiti Std", "Microsoft YaHei", sans-serif;
  font-size: 18px; color: #fff;
  transition: background 0.2s ease;
}
.main-nav__item--active .main-nav__link { color: #fff; }
.main-nav__link:hover { color: #fff; }

/* ---------- 第2块 Banner轮播 ---------- */
.block-2 { width: 100%; height: 630px; background: #dfeaf5; overflow: hidden; }
.banner-slider { position: relative; width: 100%; height: 630px; }
.banner-slider__wrap { position: relative; width: 100%; height: 100%; }
.banner-slider__slide {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.banner-slider__slide--active { opacity: 1; visibility: visible; z-index: 1; }
.banner-slider__slide img {
  display: block; width: 100%; height: 630px; object-fit: cover; object-position: center top;
}
.banner-slider__dots {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 5;
}
.banner-slider__dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--color-primary-light); background: #fff;
  cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.banner-slider__dot:hover,
.banner-slider__dot--active { background: var(--color-primary-light); border-color: var(--color-primary-light); }

/* ---------- 第3块 快捷入口 ---------- */
.block-3 { width: 100%; height: 142px; margin-top: 40px; }
.quick-entry {
  width: 1200px; height: 142px; margin: 0 auto; padding: 0;
  display: flex; gap: 14px;
}
.quick-entry__left {
  width: 294px; height: 142px;
  display: flex; gap: 10px;
}
.quick-entry__big {
  width: 142px; height: 142px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #fff; transition: opacity 0.2s ease;
}
.quick-entry__big:hover { opacity: 0.92; color: #fff; }
.quick-entry__big--orange { background: #fd9100; }
.quick-entry__big--blue { background: #0e68ef; }
.quick-entry__big-icon { width: 64px; height: 54px; display: flex; align-items: center; justify-content: center; }
.quick-entry__big-icon img { max-width: 100%; max-height: 100%; }
.quick-entry__big-text { font-family: "Microsoft YaHei", sans-serif; font-size: 20px; }

.quick-entry__center {
  width: 557px; height: 142px; border: 1px solid var(--color-border); background: #fff;
}
.quick-entry__nav {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.quick-entry__nav li { width: 135px; height: 142px; }
.quick-entry__nav li.divider { width: 1px; height: 105px; background: var(--color-border); margin: 0 2px; }
.quick-entry__nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; gap: 10px;
}
.quick-entry__nav-icon { width: 64px; height: 54px; display: flex; align-items: center; justify-content: center; }
.quick-entry__nav-icon img { max-width: 100%; max-height: 100%; }
.quick-entry__nav-text { font-size: 20px; color: var(--color-text); }
.quick-entry__nav a:hover .quick-entry__nav-text { color: var(--color-primary-light); }

.quick-entry__right {
  width: 321px; height: 142px;
  border: 1px solid var(--color-border); background: #fff; padding: 14px 14px;
}
.quick-entry__right-row { display: flex; align-items: center; gap: 12px; }
.quick-entry__right-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-entry__right-icon img { max-width: 100%; max-height: 100%; }
.quick-entry__right-text .label { font-size: 20px; color: var(--color-text); }
.quick-entry__right-text .time { font-size: 17.6px; font-weight: bold; color: var(--color-primary-light); }
.quick-entry__right-text .label-bold { font-size: 18px; font-weight: bold; color: #0965bd; }
.quick-entry__right-text .desc { font-size: 18px; font-weight: bold; color: #0965bd; }
.quick-entry__right-text--book { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.quick-entry__right-text--book .label-bold,
.quick-entry__right-text--book .desc { margin: 0; }
.quick-entry__right-line {
  width: 289px; height: 1px; margin: 5px 0;
  border-top: 1px dashed #e5e5e5;
}

/* ---------- 第4块 医院简介 + 新闻 ---------- */
.block-4 { width: 100%; height: 460px; margin-top: 40px; }
.about-news {
  width: 1200px; height: 455px; margin: 0 auto; padding: 0;
  display: flex; gap: 15px;
}
.about-card {
  width: 388px; height: 455px;
  background: #1e5bb8 url(../images/bg_s01_03.png) no-repeat left top / 100% 100%;
  overflow: hidden; padding: 18px;
}
.about-card__media { margin-bottom: 14px; }
.about-card__media img { display: block; width: 352px; height: 223px; object-fit: cover; border-radius: 3px; }
.about-card__body p {
  font-size: 17px; color: #fff; line-height: 1.8;
}
.about-card__body .link-more { color: #ffd800; font-size: 18px; }
.about-card__body .link-more:hover { color: #fff; }

.news-card {
  width: 797px; height: 455px; background: #fff;
  border: 1px solid var(--color-border-dark); overflow: hidden;
}
.news-card__header {
  height: 58px; padding: 0 18px;
  background: url(../images/bg_s01_04.png) no-repeat center / 100% 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.news-card__title { font-size: 32px; color: #fff; }
.news-card__more { font-size: 18px; color: #ffd800; display: flex; align-items: center; gap: 6px; }
.news-card__more:hover { color: #fff; }
.news-card__plus {
  width: 18px; height: 18px; border-radius: 50%; background: #ffd800; color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold; line-height: 1;
}
.news-card__featured {
  display: flex; gap: 16px; padding: 16px 18px 20px;
  border-bottom: 1px dashed #d2d2d2;
}
.news-card__featured-text { flex: 1; }
.news-card__featured-name {
  font-size: 24px; font-weight: bold; color: var(--color-primary-light); margin-bottom: 10px;
}
.news-card__featured-name a { color: inherit; }
.news-card__featured-name a:hover { color: var(--color-primary); }
.news-card__featured-desc { font-size: 20px; color: var(--color-text); line-height: 1.7; }
.news-card__featured-desc .link-detail { color: #0057da; font-size: 20px; }
.news-card__featured-desc .link-detail:hover { text-decoration: underline; }
.news-card__featured-media { width: 275px; flex-shrink: 0; }
.news-card__featured-media img { display: block; width: 275px; height: 151px; object-fit: cover; border-radius: 3px; }
.news-card__list { padding: 16px 18px 30px; }
.news-card__list li {
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; border-bottom: 1px dashed #d2d2d2;
}
.news-card__list li:last-child { border-bottom: none; }
.news-card__link {
  font-size: 20px; color: var(--color-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-card__link::before { content: none; }
.news-card__link:hover { color: var(--color-primary-light); }
.news-card__list time { font-size: 20px; color: var(--color-text); flex-shrink: 0; margin-left: 16px; }

/* ---------- 第5块 绿色通栏 ---------- */
.block-5 { width: 100%; height: 135px; margin-top: 40px; }
.block-5 .container { text-align: center; padding: 0; }
.block-5 img { display: block; width: 1197px; height: 131px; margin: 0 auto; }

/* ---------- 第6块 专家团队 ---------- */
.block-6 { width: 100%; height: 540px; margin-top: 40px; margin-bottom: 40px; }
.experts-section {
  width: 1200px; height: 540px; margin: 0 auto;
  border: 1px solid var(--color-border-dark); background: #fff; padding: 0;
}
.experts-section__header {
  height: 60px; padding: 0 18px; margin: 0;
  background: url(../images/bg_s01_06.png) no-repeat center / 100% 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.experts-section__title { font-size: 32px; color: #fff; }
.experts-section__more { font-size: 18px; color: #ffd800; display: flex; align-items: center; gap: 6px; }
.experts-section__more:hover { color: #fff; }
.experts-section__plus {
  width: 18px; height: 18px; border-radius: 50%; background: #ffd800; color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold; line-height: 1;
}
.experts-section__wrap {
  padding: 25px 20px;
  overflow: hidden;
  position: relative;
}
.experts-section__wrap::before,
.experts-section__wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  z-index: 2;
  pointer-events: none;
}
.experts-section__wrap::before { left: 0; }
.experts-section__wrap::after { right: 0; }
.experts-section__list {
  width: max-content; margin: 0;
  display: flex; gap: 10px; flex-wrap: nowrap;
  transition: transform 0.4s ease;
}
.expert-card {
  width: 224px; height: 400px; border: 1px solid var(--color-border-dark);
  text-align: center; padding: 8px 8px 10px;
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow 0.25s ease;
  flex-shrink: 0;
}
.expert-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.expert-card__media { margin-bottom: 8px; }
.expert-card__media img { width: 204px; height: 210px; object-fit: cover; object-position: top center; }
.expert-card__name {
  font-size: 30px; color: var(--color-text); margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.expert-card__badge { display: none; }
.expert-card__divider { display: block; width: 202px; height: 5px; margin: 6px auto 10px; object-fit: fill; }
.expert-card__title {
  width: 92%; min-height: 55px; margin: 0 auto 8px;
  font-size: 18px; color: var(--color-text); line-height: 1.4;
  display: flex; align-items: center; justify-content: center;
}
.expert-card__actions { display: flex; justify-content: center; gap: 8px; width: 100%; margin-top: auto; }
.expert-card__actions .btn { height: 28px; padding: 0 12px; font-size: 16px; }
.experts-section__dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.experts-section__dot {
  width: 10px; height: 10px; border-radius: 50%; background: #c4cdd8; cursor: pointer;
}
.experts-section__dot--active { background: var(--color-primary-light); }

/* ---------- 第7块 特色科室 ---------- */
.block-7 { width: 100%; height: 885px; margin-top: 40px; }
.departments-section {
  width: 1200px; height: 887px; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: 590px 590px; grid-template-rows: 425px 425px;
  gap: 18px 20px;
}
.dept-card {
  width: 590px; height: 425px; border: 1px solid var(--color-border-dark); background: #fff;
}
.dept-card__header {
  height: 59px; padding: 0 16px;
  background: url(../images/bg_s01_09.png) no-repeat center / 100% 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.dept-card__title { font-size: 30px; color: #fff; }
.dept-card__more { font-size: 18px; color: #fff; display: flex; align-items: center; gap: 6px; }
.dept-card__more:hover { color: #ffd800; }
.dept-card__plus {
  width: 18px; height: 18px; border-radius: 50%; background: #ffd800; color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold; line-height: 1;
}
.dept-card__body {
  display: flex; gap: 14px; padding: 16px 16px 10px;
}
.dept-card__media { width: 231px; flex-shrink: 0; }
.dept-card__media img { display: block; width: 231px; height: 165px; object-fit: cover; border-radius: 3px; }
.dept-card__list { flex: 1; }
.dept-card__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 16px; color: var(--color-text-secondary); line-height: 1.6;
  padding: 10px 0; border-bottom: 1px dashed var(--color-border-dark);
}
.dept-card__list li:last-child { border-bottom: none; }
.dept-card__list li a {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dept-card__list li a:hover { color: var(--color-primary-light); }
.dept-card__list li .dept-card__time {
  flex-shrink: 0; font-size: 14px; color: var(--color-text-secondary);
}
.dept-card__icons {
  display: flex; padding: 0 16px 16px; gap: 8px; justify-content: flex-start;
}
.dept-card__icons--4 > a,
.dept-card__icons--5 > a,
.dept-card__icons--6 > a { width: 84px; }
.dept-card__icons a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: none; border-radius: 3px; padding: 8px 0; gap: 6px;
  transition: border-color 0.2s ease;
}
.dept-card__icons a:hover { border-color: var(--color-primary-light); }
.dept-card__icons a span { width: 84px; height: 73px; display: flex; align-items: center; justify-content: center; }
.dept-card__icons a span img { max-width: 100%; max-height: 100%; }
.dept-card__icons a em { font-size: 18px; color: var(--color-text); text-align: center; font-style: normal; }

/* ---------- 第8块 橙色挂号通栏 ---------- */
.block-8 { width: 100%; height: 211px; margin-top: 40px; }
.block-8 .container { text-align: center; padding: 0; }
.block-8 img { display: block; width: 1197px; height: 208px; margin: 0 auto; }

/* ---------- 第9块 医院环境 ---------- */
.block-9 { width: 100%; height: 285px; margin-top: 40px; }
.env-section {
  width: 1200px; height: 282px; margin: 0 auto;
  border: 1px solid var(--color-border-dark); background: #fff; padding: 0;
}
.env-section__header {
  height: 60px; padding: 0 18px;
  background: url(../images/bg_s01_06.png) no-repeat center / 100% 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.env-section__title { font-size: 32px; color: #fff; }
.env-section__more { font-size: 18px; color: #ffd800; display: flex; align-items: center; gap: 6px; }
.env-section__more:hover { color: #fff; }
.env-section__plus {
  width: 18px; height: 18px; border-radius: 50%; background: #ffd800; color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold; line-height: 1;
}
.env-section__grid {
  display: flex; gap: 14px; padding: 18px 18px 0;
}
.env-section__grid img {
  display: block; width: calc((100% - 56px) / 5); height: 165px; object-fit: cover; border-radius: 3px;
  transition: transform 0.25s ease;
}
.env-section__grid img:hover { transform: translateY(-3px); }

/* ---------- 第10块 服务承诺通栏 ---------- */
.block-10 { width: 100%; height: 127px; margin-top: 45px; }
.block-10 img { display: block; width: 100%; height: 127px; object-fit: cover; }

/* ---------- 第11块 预约挂号 ---------- */
.block-11 { width: 100%; height: 620px; }
.appointment-wrap {
  width: 1200px; height: 530px; margin: 45px auto 0; padding: 0;
  background: #fff;
  display: flex;
}
.appointment-form { width: 495px; height: 100%; padding: 0 12px 22px; border: 1px solid var(--color-border); }
.appointment-form__title {
  width: calc(100% + 26px); height: 75px; margin: 0 -13px 22px;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: bold; color: #fff;
}
.appointment-form__row { margin-bottom: 14px; }
.appointment-form__row--2col { display: flex; gap: 14px; }
.appointment-form__field { position: relative; display: block; }
.appointment-form__row--2col .appointment-form__field { width: 190px; }
.appointment-form__label { display: block; font-size: 16px; color: var(--color-text); margin-bottom: 5px; }
.appointment-form__input {
  width: 190px; height: 45px; padding: 0 10px;
  border: 1px solid var(--color-border); outline: none; font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.appointment-form__input--lg { width: 412px; }
/* 预约时间：日历图标 + 悬停/聚焦反馈 */
.appointment-form__date {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M2 3h12a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm0 3v7h12V6H2zm2-4V1h2v1h4V1h2v1h1a1 1 0 0 1 1 1v3H1V4a1 1 0 0 1 1-1h2z' fill='%230168b7'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--color-text);
}
.appointment-form__date:hover { border-color: var(--color-primary-light); }
.appointment-form__date:focus { border-color: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(1,104,183,.12); }
.appointment-form__date::placeholder { color: #999999; }
.appointment-form__date.has-value { color: var(--color-primary); font-weight: 600; }
.appointment-form__select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 0 26px 0 10px; cursor: pointer;
  box-sizing: border-box;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%276%27%3E%3Cpath d=%27M0 0l5 6 5-6z%27 fill=%27%23999%27/%3E%3C/svg%3E") no-repeat right 10px center;
}
/* 2 列布局下的下拉框宽度与姓名框一致，避免向右溢出 */
.appointment-form__row--2col .appointment-form__select { width: 100%; }
.appointment-form__input:focus { border-color: var(--color-primary-light); }
.appointment-form__req {
  position: absolute; right: -14px; bottom: 14px;
  color: var(--color-accent-dark); font-size: 16px;
}
/* 患者年龄 / 预约时间 / 症状描述 的后方星号使用 left 定位 */
.appointment-form__input--lg + .appointment-form__req { left: 420px; right: auto; }
.appointment-form__actions { display: flex; gap: 14px; margin-top: 24px; }
.appointment-form__actions .btn {
  width: 170px; height: 40px; border-radius: 4px;
  font-size: 18px; color: #fff;
}

.appointment-info { flex: 1; padding: 28px 30px; }
.appointment-info__title {
  font-size: 35px; margin-bottom: 22px; line-height: 1.4;
}
.appointment-info__title em { color: var(--color-accent-dark); font-style: normal; }
.appointment-info__title span { color: var(--color-primary-light); }
.appointment-info__text { font-size: 20px; color: var(--color-text); line-height: 1.8; }
.appointment-info__actions {
  display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap;
}
.appt-action {
  width: 140px; text-align: center; overflow: hidden; border-radius: 3px;
  transition: transform 0.25s ease;
}
.appt-action:hover { transform: translateY(-3px); }
.appt-action__media { display: flex; align-items: center; justify-content: center; }
.appt-action__media img { display: block; width: 100%; height: auto; max-width: 100%; }
.appt-action__label {
  display: block; width: 100%; height: 45px; line-height: 45px;
  font-size: 24px; color: #fff; background: var(--color-primary-light);
  transition: background 0.2s ease;
}
.appt-action:hover .appt-action__label { background: var(--color-accent-dark); }
.appt-action:first-child .appt-action__label { background: var(--color-accent-dark); }

/* ---------- 第12块 Footer ---------- */
.block-12 { width: 100%; height: 294px; background: #092439; }
.footer-inner {
  height: 294px; padding: 40px 0;
  display: flex; align-items: flex-start; gap: 45px;
  color: rgba(255,255,255,0.8);
}
.footer-left { width: 223px; text-align: center; }
.footer-left img { width: 223px; height: 146px; }
.footer-center { flex: 1; padding-top: 10px; margin-left: 55px; }
.footer-line { font-size: 16px; line-height: 2.4; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.footer-icon { width: auto; height: auto; display: block; }
.footer-label { color: #fff; }
.footer-phone { color: var(--color-accent); font-size: 24px; font-weight: bold; }
.footer-text { color: rgba(255,255,255,0.75); }
.footer-right { width: 500px; padding-top: 25px; }
.footer-links { font-size: 16px; margin-bottom: 10px; color: rgba(255,255,255,0.75); }
.footer-links a { color: rgba(255,255,255,0.75); margin: 0 4px; }
.footer-links a:hover { color: #fff; }

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed; right: 30px; bottom: 60px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary-light); color: #fff;
  font-size: 20px; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
.back-to-top:hover { background: var(--color-primary); }
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal__dialog {
  position: relative; width: 380px; background: #fff; border-radius: 6px;
  padding: 28px 30px 30px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.modal__close { position: absolute; top: 8px; right: 12px; font-size: 24px; color: #999; }
.modal__close:hover { color: #333; }
.modal__title { font-size: 18px; font-weight: bold; color: var(--color-primary); margin-bottom: 14px; }
.modal__text { font-size: 14px; color: #666; margin-bottom: 10px; }
.modal__phone { display: block; font-size: 26px; font-weight: bold; color: var(--color-accent); margin-bottom: 12px; }
.modal__hint { font-size: 12px; color: #999; }

/* ---------- 响应式自适应 ---------- */
/* 平板及以下：主容器转为 100% 宽，Banner 适度降高 */
@media (max-width: 1199px) {
  .container { padding: 0 12px; }
  .header-top, .main-nav__list, .quick-entry, .about-news,
  .experts-section, .departments-section, .env-section, .appointment-wrap { width: 100%; }
  .experts-section, .env-section { padding: 0; }
  .block-2, .banner-slider, .banner-slider__slide img { height: 460px; }
}

/* 平板（≤991px）：主要区块纵向堆叠，释放固定高度避免裁切 */
@media (max-width: 991px) {
  .block-1, .block-3, .block-4, .block-6, .block-7, .block-9,
  .block-11, .block-12 { height: auto; }
  .block-5, .block-8, .block-10 { height: auto; }

  /* 导航：横向滚动 */
  .main-nav__list { overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .main-nav__item { width: auto; min-width: 110px; flex: 0 0 auto; }

  /* 第3块 快捷入口：三栏堆叠 */
  .quick-entry { flex-wrap: wrap; height: auto; gap: 12px; }
  .quick-entry__left, .quick-entry__center, .quick-entry__right { width: 100%; margin-left: 0; }
  .quick-entry__left { justify-content: center; }
  .quick-entry__center { height: auto; padding: 16px 0; }
  .quick-entry__nav { flex-wrap: wrap; }
  .quick-entry__nav li { width: 50%; height: 120px; }
  .quick-entry__nav li.divider { display: none; }
  .quick-entry__right { padding: 16px; }

  /* 第4块 简介+新闻：纵向 */
  .about-news { flex-direction: column; height: auto; gap: 16px; }
  .about-card, .news-card { width: 100%; height: auto; }
  .about-card__media img, .news-card__featured-media img { width: 100%; height: auto; }
  .news-card__featured { flex-direction: column; }
  .news-card__featured-media { width: 100%; }

  /* 第6块 专家：卡片换行居中 */
  .experts-section { height: auto; }
  .experts-section__list { width: 100%; height: auto; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .expert-card { width: 45%; }
  .experts-section__dots { margin-top: 25px; }

  /* 第7块 科室：单列 */
  .departments-section { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; gap: 16px; }
  .dept-card { width: 100%; height: auto; overflow: visible; }
  .dept-card__icons { display: flex; }

  /* 第9块 环境：5图→3图 */
  .env-section { height: auto; }
  .env-section__grid { flex-wrap: wrap; }
  .env-section__grid img { width: calc((100% - 28px) / 3); height: 110px; }

  /* 第11块 预约：左右堆叠 */
  .appointment-wrap { flex-direction: column; height: auto; }
  .appointment-form, .appointment-info { width: 100%; }
  .appointment-form {
    border-right: none; border-bottom: 1px solid var(--color-border);
    padding: 0 16px 22px;
  }
  .appointment-form__title { width: calc(100% + 32px); margin: 0 -16px 22px; }
  .appointment-info { padding: 24px 16px; }
  .appt-action { width: 45%; }

  /* 页脚：三栏换行 */
  .footer-inner { flex-wrap: wrap; gap: 24px; }
  .footer-left { width: 200px; }
  .footer-right { width: 100%; }
}

/* 手机（≤600px）：紧凑单列、避免溢出 */
@media (max-width: 600px) {
  .container { padding: 0 8px; }

  /* 第1块 header：三行紧凑布局 */
  .block-1 { height: auto; }
  .header-top {
    flex-direction: column; align-items: center;
    height: auto; gap: 8px; padding: 10px 0;
  }
  .header-logo img { width: 220px; height: auto; }
  .header-badges {
    margin-left: 0; justify-content: center; flex-wrap: wrap; gap: 8px;
  }
  .header-badges img {
    margin: 0; width: auto; height: 26px;
  }

  /* 导航：汉堡按钮 + 下拉菜单 */
  .main-nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    position: absolute; top: 12px; right: 10px; z-index: 30;
    width: 34px; height: 34px; padding: 6px;
    background: transparent; border: 0; cursor: pointer;
  }
  .block-1 { position: relative; }
  .main-nav__toggle span {
    display: block; width: 100%; height: 3px; border-radius: 2px;
    background: var(--color-primary); transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .main-nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .main-nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav { height: auto; position: relative; }
  .main-nav__list {
    position: absolute; left: 0; top: 100%; width: 100%; height: auto; margin: 0;
    z-index: 40; background: var(--color-primary);
    display: none; flex-direction: column; align-items: stretch;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  }
  .main-nav__list.is-open { display: flex; }
  .main-nav__item { width: 100%; text-align: center; }
  .main-nav__item + .main-nav__item::before { display: none; }
  .main-nav__link { height: 46px; font-size: 15px; padding: 0; white-space: nowrap; border-top: 1px solid rgba(255,255,255,0.12); }

  /* 第2块 Banner：降高度、居中展示 */
  .block-2, .banner-slider { height: 180px; }
  .banner-slider__slide img {
    height: 180px; object-fit: cover; object-position: center;
  }
  .banner-slider__dots { bottom: 10px; gap: 8px; }
  .banner-slider__dot { width: 10px; height: 10px; }

  /* 第3块 快捷入口：紧凑 */
  .block-3 { height: auto; margin-top: 24px; }
  .quick-entry { height: auto; gap: 10px; }
  .quick-entry__left { width: 100%; height: 100px; justify-content: center; gap: 10px; }
  .quick-entry__big { width: calc(50% - 5px); height: 96px; gap: 8px; }
  .quick-entry__big-icon { width: 44px; height: 36px; }
  .quick-entry__big-text { font-size: 16px; }

  .quick-entry__center { width: 100%; height: auto; padding: 4px 0; }
  .quick-entry__nav li { width: 25%; height: 88px; }
  .quick-entry__nav-icon { width: 38px; height: 32px; }
  .quick-entry__nav-text { font-size: 13px; }

  .quick-entry__right { width: 100%; height: auto; margin-left: 0; padding: 12px 14px; }
  .quick-entry__right-row { gap: 8px; }
  .quick-entry__right-icon { width: 40px; height: 40px; }
  .quick-entry__right-text .label { font-size: 15px; }
  .quick-entry__right-text .time { font-size: 15px; }
  .quick-entry__right-line { width: 100%; margin: 4px 0; }

  /* 第4块 简介+新闻 */
  .block-4 { height: auto; margin-top: 24px; }
  .about-card { padding: 14px; }
  .about-card__media { margin-bottom: 10px; }
  .about-card__media img { width: 100%; height: auto; }
  .about-card__body p { font-size: 15px; line-height: 1.7; }
  .news-card__header { height: 48px; padding: 0 14px; }
  .news-card__title { font-size: 20px; }
  .news-card__featured { flex-direction: column; padding: 14px; gap: 12px; }
  .news-card__featured-media { width: 100%; }
  .news-card__featured-media img { width: 100%; height: auto; }
  .news-card__featured-name { font-size: 18px; margin-bottom: 6px; }
  .news-card__featured-desc { font-size: 15px; line-height: 1.6; }
  .news-card__list { padding: 12px 14px 22px; }
  .news-card__list li { height: auto; padding: 10px 0; }
  .news-card__link { font-size: 14px; }
  .news-card__list time { font-size: 13px; margin-left: 8px; }

  /* 第5/8/10 通栏图：移动端完整显示不裁剪，用 contain 保持比例 */
  .block-5 { height: 62px; margin-top: 14px; background: #fff; }
  .block-8 { margin-top: 14px; background: #fff; }
  .block-10 { margin-top: 14px; background: #fff; }
  .block-5 img, .block-8 img, .block-10 img { width: 100%; height: 100%; object-fit: contain; }
  .block-8 img, .block-10 img { object-fit: cover; }

  /* 第6块 专家：单列 */
  .block-6 { height: auto; margin-top: 24px; }
  .experts-section { width: 100%; height: auto; padding: 0; margin: 0; box-sizing: border-box; }
  .experts-section__header { height: 52px; padding: 0 14px; }
  .experts-section__title, .env-section__title { font-size: 20px; }
  .experts-section__wrap { padding: 16px 0 20px; }
  .experts-section__list { gap: 12px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .experts-section__list::-webkit-scrollbar { display: none; }
  .expert-card { width: 100%; flex: 0 0 auto; scroll-snap-align: start; height: auto; padding: 12px; }
  .expert-card__media img { width: 100%; max-width: 180px; height: auto; }
  .expert-card__name { font-size: 22px; margin-bottom: 6px; }
  .expert-card__divider { width: 140px; }
  .expert-card__title { font-size: 16px; min-height: auto; margin-bottom: 10px; }
  .expert-card__actions .btn { height: 32px; font-size: 16px; }
  .experts-section__dots { margin-top: 18px; }

  /* 第7块 科室 */
  .block-7 { height: auto; margin-top: 24px; }
  .departments-section { grid-template-rows: auto; gap: 12px; }
  .dept-card { overflow: visible; }
  .dept-card__header { height: 48px; padding: 0 14px; }
  .dept-card__title { font-size: 18px; }
  .dept-card__body { flex-direction: column; padding: 12px 14px; gap: 10px; }
  .dept-card__media { width: 100%; }
  .dept-card__media img { width: 100%; height: auto; }
  .dept-card__list li { font-size: 14px; padding: 8px 0; }
  .dept-card__icons { flex-wrap: wrap; justify-content: flex-start; gap: 6px 10px; padding: 0 14px 14px; min-height: 60px; }
  .dept-card__icons--4 > a,
  .dept-card__icons--5 > a,
  .dept-card__icons--6 > a { flex: none; width: 84px; }
  .dept-card__icons a span { flex: none; width: 62px; height: 56px; display: flex; align-items: center; justify-content: center; }
  .dept-card__icons a span img { display: block; max-width: 100%; max-height: 100%; }
  .dept-card__icons a em { font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; }

  /* 第9块 环境 */
  .block-9 { height: auto; margin-top: 24px; }
  .env-section { width: 100%; height: auto; padding: 0; margin: 0; box-sizing: border-box; }
  .env-section__header { height: 52px; padding: 0 14px; }
  .env-section__grid { padding: 14px; gap: 10px; }
  .env-section__grid img { width: calc((100% - 10px) / 2); height: 90px; }
  .env-section__grid img:last-child { display: none; }

  /* 第11块 预约 */
  .block-11 { height: auto; }
  .appointment-wrap { height: auto; margin-top: 24px; }
  .appointment-form { width: 100%; padding: 0 12px 18px; border-bottom: 1px solid var(--color-border); }
  .appointment-form__title { width: calc(100% + 24px); height: 60px; margin: 0 -12px 18px; font-size: 20px; }
  .appointment-form__label { font-size: 14px; }
  .appointment-form__input,
  .appointment-form__input--lg { width: 100%; height: 40px; }
  .appointment-form__row--2col { flex-direction: column; gap: 0; }
  .appointment-form__row--2col .appointment-form__field { width: 100%; }
  .appointment-form__actions { gap: 10px; margin-top: 18px; }
  .appointment-form__actions .btn { flex: 1; width: auto; min-width: 120px; height: 38px; font-size: 16px; }
  .appointment-info { display: none; }

  /* 第12块 页脚 */
  .block-12 { height: auto; }
  .footer-inner { flex-direction: column; gap: 18px; padding: 24px 0; height: auto; align-items: center; text-align: center; }
  .footer-left, .footer-right { width: 100%; }
  .footer-left img { width: 180px; height: auto; }
  .footer-line { font-size: 14px; line-height: 2; justify-content: center; }
  .footer-links { text-align: center; }
  .footer-links a { margin: 0 8px; }
  .footer-phone { font-size: 20px; }

  /* 弹窗 */
  .modal__dialog { width: 90%; max-width: 320px; padding: 22px 18px; }
  .modal__phone { font-size: 22px; }

  /* 回到顶部 */
  .back-to-top { width: 40px; height: 40px; right: 12px; bottom: 40px; }
}

/* 小手机（≤480px）更紧凑 */
@media (max-width: 480px) {
  .header-logo img { width: 200px; }
  .header-badges img { height: 22px; }
  .main-nav__link { font-size: 14px; }
  .quick-entry__big { height: 88px; }
  .quick-entry__big-text { font-size: 15px; }
  .news-card__featured-name { font-size: 16px; }
  .experts-section__title, .env-section__title { font-size: 18px; }
  .dept-card__title { font-size: 16px; }
  .appointment-info__title { font-size: 20px; }
  .appt-action { width: 100%; }
  .appt-action__label { font-size: 15px; }
  .appointment-form__actions .btn { min-width: 100px; font-size: 14px; }
}

/* 超小屏（≤400px）：极限紧凑 */
@media (max-width: 400px) {
  .container { padding: 0 6px; }
  .header-logo img { width: 180px; }
  .quick-entry__nav li { width: 50%; }
  .env-section__grid img { width: 100%; height: 100px; }
  .footer-phone { font-size: 18px; }
}

/* ==========================================================================
   列表页 list.html（栏目页 / 新闻中心）
   复用顶部 Header / 导航 / Footer；中间按设计图（栏目页）实现
   ========================================================================== */

/* ---- 列表页顶部医疗 Banner ---- */
.list-banner { width: 100%; height: 344px; overflow: hidden; }
.list-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---- 列表主体 ---- */
.list-content { width: 100%; margin-top: 30px; padding-bottom: 60px; }
.list-layout { display: flex; gap: 20px; align-items: flex-start; }
.list-side { width: 276px; flex-shrink: 0; }
.list-main { flex: 1; min-width: 0; }

/* 侧栏通用模块标题条 */
.side-module { border: 1px solid var(--color-border-dark); background: #fff; margin-bottom: 20px; }
/* 便民服务、联系我们 侧栏模块背景灰 */
.list-side > .side-module:nth-child(2),
.list-side > .side-module:nth-child(3) { background: #f1f1f1; }
.side-module__title {
  height: 56px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between;
  background: var(--color-primary); font-size: 22px; color: #fff;
}
.side-module__en { font-size: 15px; color: rgba(255,255,255,.8); font-family: Georgia, "Times New Roman", serif; }

/* 侧栏：医院导航菜单（浅灰按钮） */
.side-nav li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 18px; color: var(--color-text);
  background: #f5f7fa; border-bottom: 1px solid #fff; position: relative;
}
.side-nav li + li a { border-top: 1px solid var(--color-border); }
.side-nav li:last-child a { border-bottom: none; }
.side-nav a i {
  border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent #b9c3d4;
}
.side-nav a:hover,
.side-nav a.is-active { background: var(--color-primary-light); color: #fff; }
.side-nav a:hover i,
.side-nav a.is-active i { border-color: transparent transparent transparent #fff; }

/* 侧栏：3 个服务入口按钮（图标原尺寸、无边框圆线） */
.side-svc { display: flex; justify-content: space-around; padding: 24px 10px; }
.side-svc__item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 82px; font-size: 16px; color: var(--color-text); }
.side-svc__circle {
  display: flex; align-items: center; justify-content: center;
}
.side-svc__circle img { width: auto; height: auto; max-width: 72px; }
.side-svc__item:hover { color: var(--color-primary-light); }

/* 侧栏：联系方式卡片 */
.side-contact { padding: 18px 12px 20px; }
.side-contact__row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.side-contact__row:last-child { margin-bottom: 0; }
.side-contact__icon {
  width: auto; height: auto; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.side-contact__icon img { width: auto; height: auto; max-width: 44px; }
.side-contact__text { display: flex; flex-direction: column; line-height: 1.4; }
.side-contact__label { font-size: 16px; color: var(--color-text-secondary); }
.side-contact__phone { font-size: 24px; font-weight: bold; color: var(--color-accent); line-height: 1.3; }
.side-contact__value { font-size: 15px; color: var(--color-accent); line-height: 1.5; }

/* 主区：面包屑 + 新闻列表 */
.main-panel { border: 1px solid var(--color-border-dark); background: #fff; }
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  padding: 15px 20px; font-size: 16px; color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-dark);
}
.breadcrumb a { color: var(--color-text); }
.breadcrumb a:hover { color: var(--color-primary-light); }
.breadcrumb .crumb-cur { color: var(--color-primary); }

.news-list li { display: flex; gap: 18px; padding: 20px 22px; border-bottom: 1px dashed var(--color-border-dark); }
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { background: #f7fafd; }
/* 新闻信息容器：头部(标题+日期) + 描述 */
.news-info { flex: 1; min-width: 0; }
.news-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.news-title { font-size: 20px; font-weight: bold; color: var(--color-text); line-height: 1.4; }
.news-title a:hover { color: var(--color-primary-light); }
.news-date {
  flex-shrink: 0; text-align: center;
  border: 1px solid var(--color-border-dark); border-top: 3px solid var(--color-primary);
  padding: 8px 10px;
}
.news-date__ym { font-size: 13px; color: var(--color-text-secondary); }
.news-date__day { font-size: 30px; font-weight: bold; color: var(--color-primary-light); line-height: 1.2; }
.news-thumb { width: 210px; flex-shrink: 0; }
.news-thumb a { display: block; }
.news-thumb img { width: 100%; height: 130px; object-fit: cover; border-radius: 3px; background: #e3e8ee; }
.news-desc { font-size: 15px; color: var(--color-text-secondary); line-height: 1.8; }
.news-desc .read-more { color: #d0342c; }
.news-desc .read-more:hover { text-decoration: underline; }
/* PC 端 (>=992px)：恢复原始布局，日期为独立左列、居中为缩略图、右侧为信息 */
@media (min-width: 992px) {
  .news-list li { position: relative; padding-left: 118px; }
  .news-head { display: block; margin-bottom: 0; }
  .news-title { margin-bottom: 10px; }
  .news-date { position: absolute; left: 22px; top: 20px; width: 78px; }
}

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 0; }
.page-total { font-size: 15px; color: var(--color-text-secondary); margin-right: 6px; }
.page-btn {
  min-width: 34px; height: 34px; line-height: 32px; text-align: center;
  border: 1px solid var(--color-border); color: var(--color-text); background: #fff; font-size: 15px;
}
.page-btn:hover,
.page-btn.is-active { background: var(--color-primary-light); color: #fff; border-color: var(--color-primary-light); }
.page-prev,
.page-next { font-size: 15px; color: var(--color-text); }
.page-prev:hover,
.page-next:hover { color: var(--color-primary-light); }

/* ---- 列表页响应式 ---- */
@media (max-width: 991px) {
  .list-banner { height: 160px; }
  .list-layout { flex-direction: column; }
  .list-side { width: 100%; }
  .side-svc { justify-content: space-evenly; }
  .news-list li { flex-direction: column; gap: 12px; position: static; padding-left: 22px; }
  .news-thumb { width: 100%; }
  .news-thumb img { height: auto; }
  .news-head { flex-wrap: wrap; align-items: center; }
  .news-title { flex: 1; min-width: 0; }
  .news-date { position: static; width: auto; top: auto; left: auto; }
}

@media (max-width: 600px) {
  .list-banner { height: 110px; }
  .list-content { margin-top: 20px; padding-bottom: 40px; }
  .side-module__title { height: 46px; font-size: 18px; }
  .side-module__en { font-size: 13px; }
  .side-nav li a { font-size: 15px; padding: 13px 16px; }
  .side-svc { padding: 18px 6px; }
  .side-svc__item { width: 72px; font-size: 14px; }
  .side-svc__circle { width: auto; height: auto; }
  .side-svc__circle img { width: auto; height: auto; max-width: 60px; }
  .side-contact__phone { font-size: 22px; }
  .breadcrumb { padding: 12px 14px; font-size: 14px; }
  .news-list li { padding: 14px; gap: 10px; }
  .news-thumb img { height: auto; }
  .news-title { font-size: 17px; }
  .news-desc { font-size: 14px; }
  .news-date { width: auto; padding: 6px 8px; }
  .news-date__day { font-size: 26px; }
  .news-date__ym { font-size: 12px; }
  .page-btn { min-width: 30px; height: 30px; line-height: 28px; font-size: 14px; }
}

@media (max-width: 400px) {
  .side-svc__item { width: 60px; }
}
