/**
 * 首页设计增强层 — 数据条、专题、公告六栏、联系方式、监督举报
 */
:root {
  --he-primary: #044a8c;
  --he-primary-mid: #1a6bb5;
  --he-primary-light: #3293f5;
  --he-gold: #c8a45c;
  --he-line: #e4edf5;
  --he-shadow: 0 8px 32px rgba(4, 74, 140, 0.1);
}

/* ========== 医院数据条 ========== */
.hospital-stats {
  margin-top: 32px;
  padding: 0;
}

.hospital-stats .stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: linear-gradient(135deg, #044a8c 0%, #1a6bb5 55%, #3293f5 100%);
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: var(--he-shadow);
  position: relative;
  overflow: hidden;
}

.hospital-stats .stats-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hospital-stats .stat-item {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
  padding: 8px 12px;
}

.hospital-stats .stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.hospital-stats .stat-item b {
  display: block;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hospital-stats .stat-item b em {
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  margin-left: 2px;
}

.hospital-stats .stat-item span {
  display: block;
  font-size: 14px;
  opacity: 0.88;
  margin-top: 6px;
  letter-spacing: 0.08em;
}

.hospital-stats .stats-slogan {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  letter-spacing: 0.12em;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 4px;
}

/* ========== 重点专科标题 ========== */
.main .key_specialty .title svg text {
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

/* ========== 公告六栏 ========== */
.main .announcement {
  height: auto !important;
  min-height: 420px;
  overflow: visible !important;
}

.main .announcement .announcement_swiper .lists {
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
  justify-content: flex-start;
}

.main .announcement .announcement_swiper .lists ul {
  width: calc(33.333% - 10px) !important;
  height: auto !important;
  min-height: 300px;
  margin-bottom: 0;
  border-radius: 8px;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  box-shadow: 0 6px 20px rgba(4, 74, 140, 0.1);
  border: 1px solid var(--he-line);
  transition: transform 0.25s, box-shadow 0.25s;
}

.main .announcement .announcement_swiper .lists ul:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(4, 74, 140, 0.14);
}

.main .announcement .announcement_swiper .lists ul:nth-child(n) {
  transition-delay: 0s !important;
}

/* ========== 专题导航 ========== */
.special_box_back {
  display: block !important;
  height: auto !important;
  min-height: 160px;
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 100%) !important;
  padding: 48px 0 40px !important;
  top: 0 !important;
  margin-top: 48px;
}

.special_box_back .special_nav {
  height: auto !important;
}

.special_box_back .special_nav::before {
  content: '专题专栏';
  display: block;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--he-primary);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.special_box_back .special_nav .hidden_box .special_swiper {
  height: auto !important;
}

.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  height: auto !important;
}

.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a {
  width: calc(16.666% - 14px) !important;
  min-width: 150px;
  height: 90px !important;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: var(--he-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  font-size: 0;
}

.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(4, 74, 140, 0.82), rgba(50, 147, 245, 0.75));
  line-height: 1.4;
  transition: background 0.25s;
}

.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(4, 74, 140, 0.18);
}

.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a:hover::after {
  background: linear-gradient(135deg, rgba(4, 74, 140, 0.92), rgba(50, 147, 245, 0.88));
}

.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a.topic-1 { background: linear-gradient(135deg, #044a8c, #3293f5) !important; }
.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a.topic-2 { background: linear-gradient(135deg, #063f9a, #1a6bb5) !important; }
.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a.topic-3 { background: linear-gradient(135deg, #0d5a9e, #3d9ae8) !important; }
.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a.topic-4 { background: linear-gradient(135deg, #044a8c, #00a896) !important; }
.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a.topic-5 { background: linear-gradient(135deg, #1a6bb5, #3293f5) !important; }
.special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a.topic-6 { background: linear-gradient(135deg, #063f9a, #3293f5) !important; }

/* ========== 监督举报卡片化 ========== */
.supervise {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 16px !important;
  height: auto !important;
  background: #f8fafc;
  border-radius: 10px;
  margin-top: 48px !important;
}

.supervise p {
  background: #fff;
  border: 1px solid var(--he-line);
  border-radius: 8px;
  padding: 24px 20px !important;
  margin: 0 !important;
  box-shadow: 0 4px 16px rgba(4, 74, 140, 0.06);
  line-height: 1.8 !important;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.supervise p:hover {
  border-color: var(--he-primary-light);
  box-shadow: var(--he-shadow);
}

.supervise p::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--he-primary-light), transparent);
  margin-bottom: 12px;
  border-radius: 2px;
}

.supervise p span {
  display: block !important;
  margin-top: 8px;
  color: #5c6f82;
  font-size: 13px;
}

.supervise1 {
  margin: 32px auto !important;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--he-shadow);
}

/* ========== 联系方式卡片 ========== */
.map .contact-card {
  width: 360px;
  max-width: calc(100% - 32px);
  height: auto;
  min-height: auto;
  padding-bottom: 24px;
  border-radius: 10px;
  top: 50% !important;
  transform: translateY(-50%);
  right: 5%;
  box-shadow: 0 12px 40px rgba(4, 74, 140, 0.15);
}

.map .contact-card li:nth-child(1) {
  margin-top: 32px;
  font-size: 26px;
}

.map .contact-card li:nth-child(2) {
  font-size: 32px;
  margin-bottom: 8px;
}

.map .contact-card li:nth-child(3) {
  margin: 24px auto 20px;
}

.map .contact-card li.contact-website,
.map .contact-card li:nth-child(5) {
  width: auto;
  max-width: 300px;
  margin: 0 auto 20px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 20px;
  text-align: left;
}

.map .contact-card li.contact-website img,
.map .contact-card li:nth-child(4) img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.map .contact-card li.contact-website .website-link,
.map .contact-card li:nth-child(4) .address {
  flex: 1;
  line-height: 1.6;
  font-size: 15px;
  text-align: left;
  word-break: break-all;
}

.map .contact-card li.contact-website .website-link a {
  color: var(--he-primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

.map .contact-card li.contact-website .website-link a:hover {
  color: var(--he-primary);
  text-decoration: underline;
}

.map .contact-card li.switch_map {
  width: 300px;
  margin-top: 8px;
}

.map .contact-card li.switch_map span {
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}

.map .contact-card li.switch_map span:hover {
  transform: translateY(-1px);
}

/* ========== 页脚增强 ========== */
.footer {
  border-top: 3px solid var(--he-primary);
}

.footer .content.container > div p:first-child {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.footer .official-site {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.footer .official-site a {
  color: var(--he-primary-light);
}

.footer .official-site a:hover {
  color: var(--he-primary);
}

/* ========== 快捷入口精修 ========== */
.sub_nav_box {
  margin-top: -32px;
}

.sub_nav_box .sub_nav a {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--he-line);
}

.sub_nav_box .sub_nav a span {
  color: var(--he-primary);
  font-weight: 500;
}

.sub_nav_box .sub_nav a:hover span {
  color: var(--he-primary-light);
}

/* ========== Banner 渐变遮罩 ========== */
.banner .box .swiper-wrapper a {
  position: relative;
}

.banner .box .swiper-wrapper a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 74, 140, 0.25) 100%);
  pointer-events: none;
}

.banner .box .swiper-wrapper a div {
  z-index: 2;
}

/* ========== 新闻 Tab 标题下划线 ========== */
.tab .tab_title a.active {
  font-weight: 700;
}

/* ========== 科室大全标题 ========== */
.department_nav .left .left_title div {
  border-radius: 8px 8px 0 0;
}

.department_nav .right a {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.department_nav .right a:hover {
  transform: translateY(-3px);
  box-shadow: var(--he-shadow);
}

/* ========== 响应式 ========== */
@media screen and (max-width: 992px) {
  .hospital-stats .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 20px;
  }

  .hospital-stats .stat-item:nth-child(2)::after {
    display: none;
  }

  .hospital-stats .stat-item b {
    font-size: 28px;
  }

  .main .announcement .announcement_swiper .lists ul {
    width: calc(50% - 8px) !important;
  }

  .special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a {
    width: calc(33.333% - 12px) !important;
  }

  .supervise {
    grid-template-columns: 1fr !important;
  }

  .map .contact-card {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    right: auto !important;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
  }
}

@media screen and (max-width: 767px) {
  .hospital-stats .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 16px;
  }

  .hospital-stats .stat-item:not(:last-child)::after {
    display: none;
  }

  .hospital-stats .stat-item b {
    font-size: 24px;
  }

  .main .announcement .announcement_swiper .lists ul {
    width: 100% !important;
    min-height: auto;
  }

  .special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a {
    width: calc(50% - 8px) !important;
    min-width: 0;
    height: 72px !important;
  }

  .special_box_back .special_nav .hidden_box .special_swiper .swiper-wrapper a::after {
    font-size: 12px;
  }
}
