:root {
  --primary-color: #7b3ff2;
  --secondary-color: #a855f7;
  --purple-light: #e9d5ff;
  --purple-gradient-start: #7b3ff2;
  --purple-gradient-end: #e879f9;
  --text-dark: #333;
  --text-gray: #666;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
  background: #5a1194;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.logo-img {
  /* width: 40px; */
  height: 60px;
  margin-right: 10px;
  /* background: white; */
  padding: 5px;
  border-radius: 5px;
}

.hospital-name {
  color: white;
  font-size: 1.3rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 2.5rem;
  transition: all 0.3s;
  position: relative;
  border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover {
  color: white;
}

.navbar-nav .nav-link.active {
  color: white;
  border-bottom: 2px solid white;
}

/* PC端菜单均匀分布且靠右对齐 */
/* PC端导航菜单样式 */
@media (min-width: 992px) {
  .navbar-nav {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin-left: auto;
  }

  .navbar-nav .nav-item {
    flex: 0 0 auto;
    position: relative;
  }

  /* PC端子菜单样式 */
  .nav-submenu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 150px;
    background: rgba(90, 17, 148, 0.98);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
  }

  /* hover时显示子菜单 */
  .nav-item:hover > .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-submenu li:last-child {
    border-bottom: none;
  }

  .nav-submenu a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
  }

  .nav-submenu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }
}

/* 移动端菜单样式 */
@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: rgba(90, 17, 148, 0.98);
    padding: 0;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    border-radius: 0 0 0 10px;
  }

  .navbar-collapse.show {
    max-height: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: visible;
  }

  .navbar-nav {
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .navbar-nav .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 1rem 1.5rem;
    color: white !important;
    border-bottom: none !important;
    font-size: 0.95rem;
    text-align: left;
  }

  .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
  }

  /* 展开子菜单时主菜单背景颜色 */
  .nav-item.show-submenu > .nav-link {
    background: rgba(255, 255, 255, 0.2);
  }

  /* 子菜单样式 - 默认隐藏 */
  .nav-submenu {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    position: absolute;
    left: -150px;
    top: 0;
    width: 150px;
    background: rgba(120, 40, 200, 0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
  }

  /* 点击后显示子菜单 */
  .nav-item.show-submenu .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-submenu li:last-child {
    border-bottom: none;
  }

  .nav-submenu a {
    display: block;
    padding: 1rem 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
  }

  .nav-submenu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }

  .navbar-toggler {
    position: relative;
    z-index: 10000;
    border: none;
    padding: 0.5rem;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* 资讯页面Banner */
.news-banner {
  background: linear-gradient(135deg, #7b3ff2 0%, #e879f9 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(123,63,242);stop-opacity:0.3" /><stop offset="100%" style="stop-color:rgb(232,121,249);stop-opacity:0.3" /></linearGradient></defs><rect width="1200" height="600" fill="url(%23grad)"/></svg>');
  opacity: 0.3;
}

.news-banner-content {
  position: relative;
  z-index: 1;
}

.news-banner h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

/* 简单标题 */
.section-header-simple {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.section-header-simple .section-title {
  margin: 0;
}

/* PC端资讯卡片 */
.news-card {
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
  height: 200px;
  /* min-height: 400px; */
}

.news-card:hover {
  box-shadow: 0 4px 20px rgba(123, 63, 242, 0.2);
  transform: translateY(-5px);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem;
  background: #f5f5f5;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.85rem;
}

.news-date img {
  height: 16px;
}

.news-body {
  padding: 0 1rem 1rem;
}

.news-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分页样式 */
.pagination {
  gap: 0.5rem;
}

.pagination li {
  border: 1px solid #ddd;
  color: #666;
  /*padding: 0.5rem 0.8rem;*/
  border-radius: 4px;
  transition: all 0.3s;
  position: relative;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
}

.pagination li:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.pagination li a{
  color: grey;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.pagination li:hover a{
  color: white;
}

.pagination li.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination li.disabled {
  background: #f5f5f5;
  color: #999;
}
.pagination li a {
  text-decoration: none;
}

.page-input {
  width: 60px;
  display: inline-block;
  text-align: center;
  padding: 0.5rem 0.3rem;
}

/* Banner区域 */
.hero-section {
  position: relative;
  margin-top: 102px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(123,63,242);stop-opacity:0.3" /><stop offset="100%" style="stop-color:rgb(232,121,249);stop-opacity:0.3" /></linearGradient></defs><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="url(%23grad)"/></svg>');
  background-size: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(123, 63, 242, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-image {
  max-width: 100%;
  /* border-radius: 15px; */
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
  margin-top: 2rem;
}

/* Banner轮播图样式 */
#bannerCarousel {
  width: 100%;
}

#bannerCarousel .carousel-inner {
  border-radius: 0;
}

#bannerCarousel .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#bannerCarousel .carousel-indicators {
  margin-bottom: 20px;
}

#bannerCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid white;
}

#bannerCarousel .carousel-indicators button.active {
  background-color: white;
}

#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(123, 63, 242, 0.7);
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s;
}

#bannerCarousel .carousel-control-prev {
  left: 20px;
}

#bannerCarousel .carousel-control-next {
  right: 20px;
}

#bannerCarousel .carousel-control-prev:hover,
#bannerCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(123, 63, 242, 0.9);
}

#bannerCarousel .carousel-control-prev-icon,
#bannerCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* 通用区块样式 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #a0a0a0;
  padding-bottom: 10px;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 80px;
  height: 3px;
  background: #5a1194;
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0;
}

.view-all-link {
  background: #5a1194;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s;
  font-size: 0.9rem;
  text-decoration: none;
}

.view-all-link:hover {
  background: var(--secondary-color);
}

/* 右侧联系卡片 */
.contact-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
  height: 100%;
}

.contact-banner {
  background: linear-gradient(135deg, #7b3ff2 0%, #e879f9 100%);
  /* padding: 2rem 1rem; */
  position: relative;
}
.contact-banner img {
  width: 100%;
}
.contact-info-box {
  /* padding: 1.5rem; */
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #a0a0a0;
  margin-bottom: 1rem;
  gap: 1rem;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-item div {
  flex: 1;
}

.contact-item a {
  color: var(--text-dark);
  text-decoration: none;
  flex: 1;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary-color);
}

.contact-item button {
  flex-shrink: 0;
}

/* 联系按钮样式 */
.btn-contact {
  background: rgba(90, 17, 148, 0.08);
  color: #5a1194;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-contact:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 63, 242, 0.3);
}

.btn-contact img {
  width: 20px;
  height: 20px;
}

.btn-purple {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.3rem 1rem;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-purple:hover {
  background: var(--secondary-color);
  color: white;
}

/* 医院资讯 */
.news-section {
  background: #f5f5f5;
  position: relative;
}

/* PC端显示背景图 */
@media (min-width: 992px) {
  .news-section {
    background-image: url("../images/news_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.news-section .container {
  position: relative;
  z-index: 1;
}

.newsSwiper {
  width: 100%;
  padding: 10px 0;
}

.newsSwiper .swiper-slide {
  height: auto;
}

.news-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.news-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.read-more-link {
  color: var(--primary-color);
  font-size: 0.85rem;
  text-decoration: none;
}

.read-more-link:hover {
  text-decoration: underline;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 新闻头部 */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.news-detail-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: transform 0.3s;
}

.news-detail-icon:hover {
  transform: rotate(90deg);
}

/* 新闻主体 */
.news-body {
  display: flex;
  padding: 1.5rem;
  gap: 1rem;
}

.news-image {
  flex-shrink: 0;
  width: 140px;
}

.news-image img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 0.9rem;
  /* margin-bottom: 1rem; */
  span {
    margin-left: 10px;
  }
}

.news-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* 新闻切换按钮 */
.btn-news-nav {
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}

/* 医院环境 */
.environment-section {
  background: #fcf2ff;
}

.envSwiper {
  width: 100%;
  padding: 10px 0;
}

.envSwiper .swiper-slide {
  height: auto;
}

.env-card {
  transition: all 0.3s;
}

.env-card:hover {
  transform: translateY(-10px);
}

.env-card img {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

/* 就医指南 */
.guide-section {
  background: #fff !important;
}
.section-box {
  padding: 22px;
  background-color: #f6f6f6;
}

.guide-item h5 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

.guide-item p {
  color: var(--text-gray);
  line-height: 1.8;
}

/* 底部 */
.footer {
  background: #f8f8f8 !important;
  color: #000 !important;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-logo img {
  display: block;
}

.footer-link-title {
 
  
}
.footer-link-title a {
  text-decoration: none !important; 
   color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0;
  cursor: pointer;
  transition: color 0.3s;
}
.footer-link-title:hover {
  color: var(--primary-color);
}

.contact-info-footer {
  text-align: left;
}

.footer-contact-item {
  color: #333;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.footer-divider {
  border-color: #ddd !important;
  opacity: 0.5;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.footer-copyright {
  color: #666;
  font-size: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  transition: all 0.3s;
}

.footer-links a:hover {
  padding-left: 5px;
}

.contact-info-footer p {
  font-size: 0.9rem;
}

/* 移动端底部栏 */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.bottom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem;
  text-decoration: none;
  color: var(--primary-color);
  background: #fbf6ff;
  border-radius: 5px;
  transition: all 0.3s;
  font-weight: 500;
  color: #5a1194;
}

.bottom-btn:active {
  transform: scale(0.98);
}

/* 移动端样式调整 */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 18px 0 0;
    margin-top: 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .intro-card {
    padding: 1.5rem;
  }

  .intro-title {
    font-size: 1.4rem;
  }

  body {
    padding-bottom: 70px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .hospital-name {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 35px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .intro-slogan {
    padding: 0.8rem;
  }

  .intro-text {
    font-size: 0.9rem;
  }

  .contact-info {
    font-size: 0.85rem;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 按钮动画 */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 图片加载动画 */
img {
  transition: opacity 0.3s;
}

img:not([src]) {
  opacity: 0;
}

/* 卡片阴影效果 */
.card,
.news-card,
.intro-card,
.guide-content {
  transition: all 0.3s;
}

/* 响应式图片 */
.img-fluid {
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* 医院介绍页面样式 */
.about-banner {
  background: linear-gradient(135deg, #7b3ff2 0%, #e879f9 100%);
  padding: 120px 0 60px;
  margin-top: 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(123,63,242);stop-opacity:0.3" /><stop offset="100%" style="stop-color:rgb(232,121,249);stop-opacity:0.3" /></linearGradient></defs><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="url(%23grad)"/></svg>');
  background-size: cover;
  opacity: 0.3;
}

.about-banner-content {
  position: relative;
  z-index: 2;
}

.about-banner h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* PC端内容 */
.about-content {
  background: white;
}

.about-main {
  background: white;
  border-radius: 10px;
}
.about-main span{
  white-space: pre-wrap !important;
}
.about-main p{
  white-space: pre-wrap !important;
}
.detail-main {
  background: white;
  border-radius: 10px;
}
.detail-main img{
  max-width: 100%;
}
.detail-main span{
  white-space: pre-wrap !important;
}
.detail-main p{
  white-space: pre-wrap !important;
}
.about-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid #a0a0a0;
  position: relative;
  margin-bottom: 2rem;
}

.about-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 120px;
  height: 3px;
  background: #5a1194;
}

.about-image-box img {
  width: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-text-content h5 {
  color: var(--text-dark);
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.about-paragraph {
  color: var(--text-gray);
  line-height: 1.8;
  text-indent: 2em;
  margin-bottom: 1rem;
}

/* 侧边栏 */
.about-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-header {
  text-align: center;
}

.sidebar-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  position: relative;
}

.sidebar-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.sidebar-card {
  background: white;
  overflow: hidden;
}

.sidebar-banner img {
  width: 100%;
}

.sidebar-info {
  padding: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.info-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.info-item span {
  flex: 1;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.sidebar-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-number {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: white;
  border: 1px solid #ddd;
  color: #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  font-weight: 500;
}

.page-number:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-number.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.sidebar-image-box {
  position: relative;
  width: 100%;
}

.sidebar-image {
  display: none;
}

.sidebar-image.active {
  display: block !important;
}

/* 移动端内容 */
.about-mobile {
  background: white;
  margin-top: 20px;
}

.mobile-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-dark);
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

.mobile-about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mobile-timeline {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--primary-color);
}

.timeline-item {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.mobile-text-content {
  padding: 1rem 0;
}

.mobile-paragraph {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.9rem;
  text-indent: 2em;
}

/* 资讯详情页面补充样式 */
.news-detail-content {
  background: #f8f8f8;
}

.news-detail-mobile {
  background: #f8f8f8;
}

.detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-item {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #f0f0f0;
  color: #666;
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.tag-item:hover {
  background: var(--primary-color);
  color: white;
}

.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav-prev,
.nav-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #f8f8f8;
  border-radius: 8px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s;
  flex: 1;
}

.nav-prev:hover,
.nav-next:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(123, 63, 242, 0.3);
}

.nav-prev {
  justify-content: flex-start;
}

.nav-next {
  justify-content: flex-end;
}

.nav-prev span,
.nav-next span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
}

/* 移动端资讯详情样式调整 */
@media (max-width: 991.98px) {
  .detail-nav {
    flex-direction: column;
  }

  .nav-prev,
  .nav-next {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .tag-item {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
  }
}

.news-page-title {
  font-size: 1.4rem;
}
.news-page-title img {
  width: 30px;
  margin: 0 10px;
}
.news-page-title-name {
  font-size: 1.2rem;
  font-weight: normal;
}
.detail_desc {
  font-size: 0.9rem;
  padding-bottom: 4px;
  border-bottom: 1px solid #8b8b8b;
  margin-bottom: 20px;
}

/* 专家团队页面样式 */
.expert-list {
  margin-top: 1rem;
}

.expert-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(123, 63, 242, 0.15);
}

.expert-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expert-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.expert-card:hover .expert-image img {
  transform: scale(1.05);
}

.expert-info {
  padding-top: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.expert-name {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
}

.expert-title {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.expert-description {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expert-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.expert-specialties .badge {
  background: var(--primary-color);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  transition: all 0.3s;
}

.expert-specialties .badge:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* 移动端专家团队样式 */
.mobile-expert-list {
  margin-top: 1rem;
  justify-content: space-between;
  margin: 0 0;
}

.mobile-expert-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  height: 100%;
  margin-bottom: 1rem;
  width: calc(50% - 0.2rem);
  padding: 0 0 !important;
}

.mobile-expert-image {
  overflow: hidden;
  /* border-radius: 8px; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.5rem;
}

.mobile-expert-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.mobile-expert-info {
  padding: 0.8rem;
}
.mobile-expert-name {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.mobile-expert-title {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.mobile-expert-description {
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-expert-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.mobile-expert-specialties .badge {
  background: var(--primary-color);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
}

/* 移动端专家团队样式调整 */
@media (max-width: 991.98px) {
  .expert-card {
    padding: 1rem;
  }

  .expert-image img {
    height: 180px;
  }

  .expert-info {
    padding-left: 0;
    padding-top: 1rem;
  }

  .expert-name {
    font-size: 1.2rem;
  }

  .expert-title {
    font-size: 0.9rem;
  }

  .expert-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .mobile-expert-image img {
    height: 160px;
  }

  .mobile-expert-name {
    font-size: 1.1rem;
  }

  .mobile-expert-title {
    font-size: 0.85rem;
  }

  .mobile-expert-description {
    font-size: 0.8rem;
  }

  .mobile-expert-specialties .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

/* 公益活动页面样式 */
.charity-banner {
  background: linear-gradient(135deg, #7b3ff2 0%, #e879f9 100%);
  padding: 120px 0 60px;
  margin-top: 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.charity-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(123,63,242);stop-opacity:0.3" /><stop offset="100%" style="stop-color:rgb(232,121,249);stop-opacity:0.3" /></linearGradient></defs><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="url(%23grad)"/></svg>');
  background-size: cover;
  opacity: 0.3;
}

.charity-banner-content {
  position: relative;
  z-index: 2;
}

.charity-banner h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* PC端公益活动样式 */
.charity-content {
  background: white;
}

.charity-main {
  background: white;
  border-radius: 10px;
}

.charity-card {
  background: #f2f2f2;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  border: 1px solid #f0f0f0;
}

.charity-card:hover {
  box-shadow: 0 8px 20px rgba(123, 63, 242, 0.15);
  transform: translateY(-3px);
}

.charity-image-box {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.charity-image-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s;
}

.charity-card:hover .charity-image-box img {
  transform: scale(1.05);
}
.charity-info {
  position: relative;
  height: 100%;
}
.charity-title {
  color: var(--text-dark);
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.4;
}

.charity-meta {
  color: #666;
  font-size: 0.9rem;
  position: absolute;
  bottom: 1rem;
  left: 0;
}

.charity-date,
.charity-location {
  display: inline-flex;
  align-items: center;
}

.charity-date i,
.charity-location i {
  margin-right: 0.3rem;
  color: var(--primary-color);
}

.charity-description {
  color: var(--text-gray);
  line-height: 1.8;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

/* 移动端公益活动样式 */
.charity-mobile {
  background: white;
}

.mobile-charity-list {
  margin-top: 1rem;
}

.mobile-charity-card {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.mobile-charity-image {
  overflow: hidden;
}

.mobile-charity-image img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.mobile-charity-title {
  color: #5a1194;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.mobile-charity-meta {
  color: #666;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-charity-date,
.mobile-charity-location {
  display: inline-flex;
  align-items: center;
}

.mobile-charity-date i,
.mobile-charity-location i {
  margin-right: 0.2rem;
  color: var(--primary-color);
}

.mobile-charity-description {
  color: var(--text-gray);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.mobile-charity-more {
  font-size: 0.8rem;
  color: #5a1194;
  text-align: right;
  margin-top: -8px;
}
/* 移动端公益活动样式调整 */
@media (max-width: 575.98px) {
  .mobile-charity-image img {
    height: 90px;
  }

  .mobile-charity-title {
    font-size: 0.9rem;
  }

  .mobile-charity-meta {
    font-size: 0.7rem;
  }

  .mobile-charity-description {
    font-size: 0.75rem;
  }
}

/* PC端就医指南样式 */
.guide-flow-section {
  background: white;
}

.guide-image-box {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guide-image-box img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.guide-image-box:hover img {
  transform: scale(1.05);
}

.guide-content {
  /*background: white;*/
}

.guide-item {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s;
}

.guide-item:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guide-item h5 {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.guide-item p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 0;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* 移动端就医指南样式 */
.mobile-guide-list {
  margin-top: 1rem;
}

.mobile-guide-image-box {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.mobile-guide-image-box img {
  width: 100%;
  height: auto;
}

.mobile-guide-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.mobile-guide-card:hover {
  box-shadow: 0 8px 20px rgba(123, 63, 242, 0.15);
  transform: translateY(-3px);
}

.mobile-guide-title {
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.mobile-guide-description {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* 移动端就医指南样式调整 */
@media (max-width: 575.98px) {
  .mobile-guide-title {
    font-size: 1rem;
  }

  .mobile-guide-description {
    font-size: 0.85rem;
  }
}

/* PC端科室介绍样式 */
.department-list {
  background: white;
}

.department-card {
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid #f0f0f0;
  height: 100%;
  cursor: pointer;
}

.department-card:hover {
  background: white;
  box-shadow: 0 8px 20px rgba(123, 63, 242, 0.15);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.department-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.department-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.department-card:hover .department-image img {
  transform: scale(1.05);
}

.department-info {
  padding: 1.5rem;
  text-align: center;
}

.department-name {
  color: var(--text-dark);
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0;
  transition: color 0.3s;
}

.department-card:hover .department-name {
  color: var(--primary-color);
}

/* 移动端科室介绍样式 */
.mobile-department-list {
  margin-top: 1rem;
}

.mobile-department-card {
  background: #f4f4f4;
  /* border-radius: 10px; */
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
  cursor: pointer;
  height: 100%;
}

.mobile-department-card:hover {
  box-shadow: 0 8px 20px rgba(123, 63, 242, 0.15);
  transform: translateY(-3px);
}

.mobile-department-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
}

.mobile-department-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mobile-department-card:hover .mobile-department-image img {
  transform: scale(1.05);
}

.mobile-department-info {
  padding: 1rem;
  text-align: center;
}

.mobile-department-name {
  color: #7f27c5;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 0;
}

/* 移动端科室介绍样式调整 */
@media (max-width: 575.98px) {
  .mobile-department-name {
    font-size: 0.95rem;
  }
}


.contact-box{
  width: 100px;
  height: 100px;
  background: #5A1194;
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-radius: 15px;
  position: fixed;
  right: 0;
  bottom: 30vh;
  text-decoration: none;
}
.contact-box img{
  width: 35px;
  height: 35px;
}
