/* 惠东吉隆安康医院官网 - 样式定义 (配色与全新医院LOGO深度融合) */
:root {
  /* 品牌主色：源自LOGO的医疗青碧色 (Teal) */
  --primary: #0f766e;
  --primary-dark: #0a4d4b;
  --primary-light: #14b8a6;
  --primary-subtle: #f0fdfa;
  
  /* 品牌辅色：源自LOGO飞翼的暖阳金黄色 (Golden Yellow) */
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-gold-light: #fde68a;
  
  /* 中性与功能色 */
  --text-main: #1f2937;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* 顶部与主导航样式 */
.header-top {
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.main-nav {
  background: linear-gradient(180deg, #0d7a75 0%, #084745 100%);
  box-shadow: 0 4px 14px rgba(8, 71, 69, 0.2);
}

@media (min-width: 1024px) {
  .main-nav {
    display: block !important;
  }
}

.nav-link {
  display: inline-block;
  padding: 12px 13px;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s ease;
}

@media (min-width: 1280px) {
  .nav-link {
    padding: 14px 17px;
    font-size: 15px;
  }
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fef08a;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: #facc15;
  border-radius: 2px 2px 0 0;
}

/* 全站业务模块下架强制隐藏（精准针对被标记下架的导航项与容器，杜绝误伤 Tailwind 响应式 hidden 类） */
.nav-link.hidden,
.mobile-nav-link.hidden,
[data-offline-pruned="true"],
.nav-link[data-offline-pruned="true"],
.mobile-nav-link[data-offline-pruned="true"],
section.module-offline,
div.module-offline {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 快捷服务通道卡片 */
.quick-service-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(13, 122, 117, 0.08);
  margin-top: -36px;
  position: relative;
  z-index: 20;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border-right: 1px solid #f1f5f9;
  transition: all 0.25s ease;
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background-color: #f0fdfa;
  transform: translateY(-2px);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  color: var(--primary);
}

.service-icon {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

/* 通用板块标题样式 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
}

.section-en {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* 专科导航卡片 (DISEASE) - 匹配青碧色系 */
.specialty-bg {
  background: linear-gradient(135deg, #0e706c 0%, #063c3a 100%);
  color: #ffffff;
}

.disease-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 13px;
  margin: 3px;
  transition: all 0.2s;
  color: #f1f5f9;
}

.disease-tag:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

/* 专家医生卡片：现代参数化弹性网格系统（告别硬编码死定高，支持响应式与无障碍大字号弹性伸缩） */
.doctor-card {
  --carousel-fallback: calc((100% - 48px) / 4);
  flex: 0 0 calc((100% - (var(--carousel-cols, 2) - 1) * var(--carousel-gap, 12px)) / var(--carousel-cols, 2));
  width: calc((100% - (var(--carousel-cols, 2) - 1) * var(--carousel-gap, 12px)) / var(--carousel-cols, 2));
  max-width: calc((100% - (var(--carousel-cols, 2) - 1) * var(--carousel-gap, 12px)) / var(--carousel-cols, 2));
  min-height: 350px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

@media (min-width: 640px) {
  .doctor-card {
    min-height: 385px;
  }
}

@media (min-width: 1024px) {
  .doctor-card {
    min-height: 395px;
  }
}

.doctor-card:hover {
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.14);
  transform: translateY(-4px);
  border-color: #0f766e;
}

.doctor-avatar-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.doctor-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-avatar-wrap img {
  transform: scale(1.05);
}

.doctor-name {
  min-height: 24px;
  line-height: 1.35;
}

.doctor-dept-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.doctor-sec-slot {
  min-height: 22px;
  overflow: hidden;
}

.doctor-specialty {
  min-height: 2.85em;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.25s ease;
}

.doctor-card:hover .doctor-specialty,
.doctor-specialty:hover {
  display: block;
  -webkit-line-clamp: unset;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 2px;
}

@media (max-width: 640px) {
  .doctor-specialty {
    min-height: 2.7em;
    -webkit-line-clamp: 2;
  }
}

.doctor-bottom-bar {
  min-height: 32px;
  box-sizing: border-box;
}

/* 典型案例卡片 */
.case-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.25s ease;
}

.case-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

/* 问答折叠项 (FAQ) */
.faq-item {
  border-bottom: 1px dashed #e2e8f0;
  padding: 10px 0;
}

.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

/* 页脚 Footer */
.main-footer {
  background-color: #072625;
  color: #cbd5e1;
  font-size: 13px;
}

/* 侧边浮动栏 */
.floating-side-bar {
  position: fixed;
  right: 16px;
  bottom: 120px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-btn {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.float-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(-4px);
}

/* 移动端底部悬浮条 (手机端专享·符合 iOS/Android 原生规范) */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .floating-side-bar {
    display: none;
  }

  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .mobile-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    padding: 4px 0;
    transition: color 0.15s ease;
  }

  .mobile-bottom-item i {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .mobile-bottom-item.active,
  .mobile-bottom-item:active {
    color: #0f766e;
  }

  .mobile-bottom-emergency {
    position: relative;
    top: -10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
    border: 3px solid #ffffff;
    flex: 0 0 48px;
  }

  .mobile-bottom-emergency i {
    font-size: 18px;
    margin-bottom: 0;
  }

  .mobile-bottom-emergency span {
    font-size: 9px;
    font-weight: bold;
    line-height: 1;
    margin-top: 1px;
  }
}

/* 移动端侧滑抽屉导航 (Off-Canvas Drawer) */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 290px;
  max-width: 86vw;
  background: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 门诊排班表：移动端首列粘性固定 (Sticky Left Column) */
@media (max-width: 768px) {
  .sched-sticky-col {
    position: sticky !important;
    left: 0;
    z-index: 10;
    background-color: #ffffff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.06);
  }
  th.sched-sticky-col {
    background-color: #042f2e !important;
    z-index: 11;
  }
}

/* 图形验证码（180x50 的位图按比例显示，窄屏缩小） */
.captcha-box, .captcha-img { width: 180px; height: 50px; }
@media (max-width: 420px) { .captcha-box, .captcha-img { width: 144px; height: 40px; } }

/* ============ 手机端排版优化 (≤640px) ============ */
@media (max-width: 640px) {
  /* 输入框防止 iOS 自动缩放 */
  input[type="text"], input[type="tel"], textarea, select {
    font-size: 16px !important;
  }

  /* 顶部通栏：公告折成单行（超长省略），门诊时间在手机端不显示，急救电话另起一行 */
  #topHours, #topAnnouncement + span { display: none; }
  .bg-\[\#083b3a\] > div { justify-content: center; text-align: center; }
  .bg-\[\#083b3a\] > div > div:first-child { max-width: 100%; min-width: 0; justify-content: center; }
  #topAnnouncement { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  #topAnnouncement.is-expanded { white-space: normal; overflow: visible; text-overflow: clip; }

  /* 头部：去掉挤成两行的英文口号，缩小医院名 */
  #headerHospitalSlogan { display: none; }
  #headerHospitalName, #headerHospitalName ~ * { font-size: 20px; }
  .header-top h1 { font-size: 20px; }

  /* 板块标题：纵向排列，隐藏英文小字，避免标题被挤断行 */
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; padding-bottom: 10px; }
  .section-title-wrap { flex-wrap: wrap; gap: 2px 10px; }
  .section-title { font-size: 20px; line-height: 1.3; }
  .section-en { display: none; }

  /* 首屏：大图高度由 .hero-slider-wrap 统一控制（见下方“首页大图轮播”样式）。
     此处不得再对 #home > div 设置 height，否则轮播容器会塌成 0 高度（B1）。
     以下仅调整轮播文字字号。 */
  #home h2 { font-size: 26px; margin-bottom: 10px; }
  #home p { margin-bottom: 16px; font-size: 13px; }
  #heroBtn1, #heroBtn2 { flex: 1 1 100%; justify-content: center; padding: 10px 16px; }

  /* B2：手机端统一使用整体压暗的纵向渐变，不沿用桌面的左侧渐变。
     取值依据：即使底图为纯白，白色标题与遮罩混合后的对比度仍 ≥ 4.5:1 (WCAG AA)。
     后台选择“无遮罩”(hero-overlay-none) 的海报保持原样。 */
  .hero-slide-overlay:not(.hero-overlay-none) {
    background: linear-gradient(180deg, rgba(6, 41, 40, 0.72) 0%, rgba(6, 41, 40, 0.68) 50%, rgba(6, 41, 40, 0.74) 100%) !important;
  }
  /* 轮播圆点上移，避开向上浮起 24px 的“快捷服务”卡片 */
  #heroDots.hero-dots-wrap { bottom: 36px; }

  /* 快捷服务通道：手机端升级为 4 列微型金刚区 */
  .quick-service-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border-radius: 14px;
    margin-top: -24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 6px 0;
  }
  .service-card {
    padding: 10px 4px !important;
    border: none !important;
  }
  .service-icon {
    font-size: 22px !important;
    margin-bottom: 4px !important;
  }
  .service-card .font-bold {
    font-size: 11px !important;
    line-height: 1.2;
  }
  .service-card .text-gray-400 {
    display: none;
  }

  /* 专家团队与尖端设备：手机端横滑两列小卡片，天然自适应等高等宽 */
  .doctor-card > div:last-child { padding: 8px 10px; }
  .doctor-card h4 { font-size: 14px; }
  .doctor-card:hover { transform: none; }

  /* 排班表：保持单行，左右滑动查看 */
  .overflow-x-auto > table { min-width: 640px; }
  .overflow-x-auto > table th, .overflow-x-auto > table td { white-space: nowrap; padding: 8px 10px !important; }

  /* 触控：搜索框/按钮至少 44px 高 */
  #searchInput { height: 44px; }
  .faq-question { padding: 6px 0; }
}

/* =========================================================================
   二级页面通用英雄区栏目标题横幅背景 (保障所有二级页面栏目标题背景色绝对稳固)
   ========================================================================= */
.page-hero-banner,
.guide-hero-banner,
.bg-guide-hero {
  background: linear-gradient(135deg, #063332 0%, #094846 50%, #0d5956 100%) !important;
  color: #ffffff !important;
}

.news-hero-banner,
.cases-hero-banner,
.bg-news-hero,
.bg-cases-hero {
  background: linear-gradient(135deg, #083b3a 0%, #0f766e 100%) !important;
  color: #ffffff !important;
}

.insurance-hero-banner,
.schedule-hero-banner,
.bg-insurance-hero,
.bg-schedule-hero {
  background: linear-gradient(135deg, #0d7a75 0%, #084745 100%) !important;
  color: #ffffff !important;
}

/* 核心任意括号类与品牌色彩全局原生兜底，彻底杜绝 Tailwind 漏编译或缓存丢失 */
.from-\[\#063332\] { --tw-gradient-from: #063332 var(--tw-gradient-from-position); --tw-gradient-to: rgb(6 51 50 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.via-\[\#094846\] { --tw-gradient-to: rgb(9 72 70 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #094846 var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
.to-\[\#0d5956\] { --tw-gradient-to: #0d5956 var(--tw-gradient-to-position) !important; }

.from-\[\#083b3a\] { --tw-gradient-from: #083b3a var(--tw-gradient-from-position); --tw-gradient-to: rgb(8 59 58 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.to-\[\#0f766e\] { --tw-gradient-to: #0f766e var(--tw-gradient-to-position) !important; }

.from-\[\#0d7a75\] { --tw-gradient-from: #0d7a75 var(--tw-gradient-from-position); --tw-gradient-to: rgb(13 122 117 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.to-\[\#084745\] { --tw-gradient-to: #084745 var(--tw-gradient-to-position) !important; }

.bg-\[\#063332\] { background-color: #063332 !important; }
.bg-\[\#083b3a\] { background-color: #083b3a !important; }
.bg-\[\#0a4d4b\] { background-color: #0a4d4b !important; }
.bg-\[\#0d7a75\] { background-color: #0d7a75 !important; }
.bg-\[\#084745\] { background-color: #084745 !important; }
.bg-\[\#f59e0b\] { background-color: #f59e0b !important; }

.text-\[\#0a4d4b\] { color: #0a4d4b !important; }
.text-\[\#052625\] { color: #052625 !important; }

.border-\[\#052625\] { border-color: #052625 !important; }
.border-\[\#0b3b3a\] { border-color: #0b3b3a !important; }

/* 院区楼层科室与便民设施专用强化防挤压样式 (Floor Guide Anti-Squeeze Guarantee) */
.floor-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 1.75rem !important;
  height: 1.75rem !important;
  border-radius: 0.5rem !important;
  background-color: #115e59 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.facility-card {
  display: flex !important;
  align-items: center !important;
  gap: 0.625rem !important;
  padding: 0.625rem 0.75rem !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  font-size: 0.75rem !important;
  line-height: 1.375 !important;
  word-break: break-word !important;
  transition: all 0.2s ease !important;
}
.facility-card i {
  flex-shrink: 0 !important;
  font-size: 0.75rem !important;
  color: #0f766e !important;
}
.facility-card span {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  word-break: break-word !important;
}

.department-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.375rem 0.75rem !important;
  background-color: #f0fdfa !important;
  color: #115e59 !important;
  border: 1px solid #99f6e4 !important;
  border-radius: 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02) !important;
}

/* 二级列表页：科室筛选胶囊与资讯分类胶囊 (防挤压、防断行、支持平滑滑动) */
.case-dept-pill,
.news-cat-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  user-select: none !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  background-color: #ffffff !important;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb !important;
  transition: all 0.2s ease !important;
}

@media (min-width: 768px) {
  .case-dept-pill,
  .news-cat-pill {
    font-size: 0.8125rem !important;
    padding: 0.5rem 1rem !important;
  }
}

.case-dept-pill:hover,
.news-cat-pill:hover {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}

.case-dept-pill.active,
.news-cat-pill.active {
  background-color: #0a4d4b !important;
  color: #ffffff !important;
  border-color: #0a4d4b !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px 0 rgba(10, 77, 75, 0.25) !important;
}

/* ==========================================================================
   全新体验升级专属样式：Hero轮播、概况折叠、专家/设备/宣教轮播、荣誉流光长廊与灯箱
   ========================================================================== */

/* 1. Hero Banner 轮播器 */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background-color: #041c1b;
}
@media (min-width: 768px) {
  .hero-slider-wrap { height: 480px; }
}
@media (min-width: 1024px) {
  .hero-slider-wrap { height: 540px; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%; /* 默认居中；实际值由后台焦点位置 focus_x/focus_y 以内联样式覆盖 (B2) */
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-slide.active img.hero-bg-img {
  transform: scale(1.03);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-bottom: 2.5rem;
}
@media (max-width: 767px) {
  .hero-slide-overlay {
    padding-bottom: 1.5rem;
  }
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0;
}
.hero-slider-wrap:hover .hero-nav-arrow {
  opacity: 0.85;
}
.hero-nav-arrow:hover {
  background: rgba(15, 118, 110, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.08);
}
.hero-nav-prev { left: 16px; }
.hero-nav-next { right: 16px; }
@media (max-width: 767px) {
  .hero-nav-arrow { display: none; } /* 移动端靠原生滑动手势，免去箭头阻挡 */
}

.hero-dots-wrap {
  position: absolute;
  bottom: 42px; /* 高于桌面端 #homeQuickServices 的叠压区 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
.hero-dot-item {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}
.hero-dot-item.active {
  width: 24px;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* 2. 医院概况智能折叠与羽化 */
.about-intro-collapsed {
  max-height: 155px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-intro-expanded {
  max-height: 2500px;
  overflow: visible;
  position: relative;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-fade-mask {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to top, #ffffff 20%, rgba(255, 255, 255, 0));
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.about-intro-expanded .about-fade-mask {
  display: none;
}

/* 3. 通用平滑横向滚动容器 (专家、设备、宣教) - 参数化 CSS 变量架构 */
.smooth-carousel-track {
  --carousel-cols: 2;
  --carousel-gap: 12px;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: var(--carousel-gap);
  padding: 8px 4px 16px;
}
.smooth-carousel-track::-webkit-scrollbar {
  display: none;
}
.smooth-carousel-track > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .smooth-carousel-track {
    --carousel-cols: 3;
    --carousel-gap: 16px;
  }
}

@media (min-width: 1024px) {
  .smooth-carousel-track {
    --carousel-cols: 4;
    --carousel-gap: 16px;
  }
}

/* 4. 尖端设备卡片 (现代自适应参数化架构，等比缩放与弹性排版) */
.equipment-card {
  --carousel-fallback: calc((100% - 48px) / 4);
  flex: 0 0 calc((100% - (var(--carousel-cols, 2) - 1) * var(--carousel-gap, 12px)) / var(--carousel-cols, 2));
  width: calc((100% - (var(--carousel-cols, 2) - 1) * var(--carousel-gap, 12px)) / var(--carousel-cols, 2));
  max-width: calc((100% - (var(--carousel-cols, 2) - 1) * var(--carousel-gap, 12px)) / var(--carousel-cols, 2));
  min-height: 280px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

@media (min-width: 640px) {
  .equipment-card {
    min-height: 300px;
  }
}

@media (min-width: 1024px) {
  .equipment-card {
    min-height: 310px;
  }
}

.equipment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(15, 118, 110, 0.18);
  border-color: #0f766e;
}

.equipment-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f0fdf4 0%, #e6fffa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.equipment-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.equipment-card:hover .equipment-img-box img {
  transform: scale(1.05);
}

.equipment-desc {
  min-height: 2.8em;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. 权威荣誉拍照走马灯长廊 (Marquee) */
.honors-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.honors-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: honors-stream 45s linear infinite;
}
.honors-marquee-container:hover .honors-marquee-track {
  animation-play-state: paused;
}
@keyframes honors-stream {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.honor-photo-card {
  width: 260px;
  height: 230px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.honor-photo-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #d97706;
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.2);
}
.honor-photo-frame {
  width: 100%;
  height: 140px;
  background: #fafaf9;
  border-radius: 0.625rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid #f3f4f6;
}
.honor-photo-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.honor-photo-card:hover .honor-photo-frame img {
  transform: scale(1.04);
}

/* 6. 荣誉证书高保真全屏检视灯箱 (Lightbox) */
.honor-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.honor-lightbox-modal.active {
  display: flex;
}
.honor-lightbox-content {
  background: #ffffff;
  border-radius: 1.25rem;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  animation: zoom-in-light 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zoom-in-light {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}



/* 7. 统一页脚公示信息与“亮证就医”入口 (Round 4 / B3, B4) */
.site-footer-legal .footer-legal-line { line-height: 1.7; }
.license-show-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  color: #5eead4;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.license-show-btn:hover, .license-show-btn:focus-visible { color: #facc15; }
.license-show-btn.license-card-btn {
  padding: 6px 12px;
  background: #be123c;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  flex-shrink: 0;
}
.license-show-btn.license-card-btn:hover, .license-show-btn.license-card-btn:focus-visible { background: #9f1239; color: #fff; }
/* 浅色底页面（二级页页脚为深色，无需额外处理）；灯箱内容恒为白底 */
#licenseLightboxModal .honor-lightbox-content { max-width: 640px; }