/* 新闻轮播图样式 */
.news-carousel {
  width: 100%;
}

.news-swiper {
  width: 100%;
  height: auto;
}

.news-card {
  display: flex;
  background: #FFFFFF;
  overflow: hidden;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  height: 3.6rem;
  box-sizing: border-box;
  cursor: pointer;
}

.news-card:hover .news-title{
  color: #127ce0
}

.news-image {
  width: 50%;
  position: relative;
  overflow: hidden;
}

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

.news-content {
  width: 50%;
  padding: 0.32rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

.news-title {
  width: 100%;
  font-size: 0.3rem;
  font-weight: 500;
  color: #1D2129;
  margin-bottom: 0.24rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: wrap;
}

.news-excerpt {
  color: #8f8f8f;
  max-height: .56rem;
  margin: .25rem 0 .2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: .16rem;
  line-height: .28rem;
}

.news-date {
  color: #8f8f8f;
  font-size: .16rem;
  line-height: .28rem;
}

/* 轮播图指示器样式 */
.news-pagination {
  position: absolute;
  bottom: 0.24rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}

.news-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  /* background: #ffffff; */
  border: 2px solid #FFFFFF;
  background: transparent;
  opacity: 1;
  margin: 0 0.16rem;
  transition: all 0.3s ease;
}

.news-pagination .swiper-pagination-bullet-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
    height: auto;
  }
  
  .news-image {
    width: 100%;
    height: 200px;
  }
  
  .news-content {
    width: 100%;
    padding: 1.5rem;
  }
  
  .news-title {
    font-size: 1.2rem;
  }
  
  .news-excerpt {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  
  .news-content {
    padding: 1rem;
  }
  
  .news-title {
    font-size: 1.1rem;
  }
}
