/* 新闻中心页面样式 */

/* 页面顶部横幅 */
.product-banner {
  height: 450px;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 65px;
  position: relative;
}

.product-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.01);
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.product-banner h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 300;
  margin: 0;
}

/* 面包屑导航 - 胶囊形状 */
.breadcrumb {
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.breadcrumb .container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 52px;
  background: #FFFFFF;
  box-shadow: 0px 0px 25px 0px rgba(0,0,0,0.1);
  border-radius: 26px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 14px;
  color: #2C2C2C;
  text-align: center;
}

.breadcrumb a {
  color: #2C2C2C;
  text-decoration: none;
  margin-right: 5px;
}

.breadcrumb a:hover {
  color: #66cc33;
}

/* 新闻中心内容样式 */
.news-content {
  padding: 70px 0 50px;
  background-color: #f8f8f8;
}

.news-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 新闻列表样式 */
.news-list {
  margin-bottom: 40px;
}

/* 新闻项样式 */
.news-item {
  display: flex;
  background-color: #fff;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border-radius: 5px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 25px;
}

.news-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.news-image {
  flex: 0 0 245px;
  overflow: hidden;
  margin-right: 30px;
  border-radius: 3px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 22px;
  font-weight: 500;
  color: #333;
  margin: 0 0 15px;
  line-height: 1.4;
}

.news-description {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 15px;
}

.news-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.news-more-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #66cc33;
  color: #fff;
  font-size: 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.news-more-btn:hover {
  background-color: #69a717;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.page-item {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  border-radius: 50%;
  /* background-color: #fff; */
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-item:hover {
  background-color: #f0f0f0;
}

.page-item.active {
  background-color: #66cc33;
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .news-item {
    flex-direction: column;
    padding: 20px;
  }
  
  .news-image {
    flex: 0 0 auto;
    height: 250px;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .product-banner {
    height: 350px;
  }
  
  .news-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .news-content {
    padding: 50px 0 30px;
  }
  
  .news-image {
    height: 200px;
  }
  
  .news-date {
    margin-bottom: 12px;
  }
  
  .product-banner {
    height: 300px;
  }
  
  .breadcrumb .container {
    width: 180px;
    height: 46px;
    font-size: 13px;
  }
  
  .news-more-btn {
    padding: 6px 15px;
    font-size: 13px;
  }
  
  .pagination {
    margin-top: 30px;
  }
  
  .page-item {
    width: 32px;
    height: 32px;
    margin: 0 3px;
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  .news-content {
    padding: 40px 0 20px;
  }
  
  .news-item {
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .news-image {
    height: 180px;
  }
  
  .news-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .news-description {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
    -webkit-line-clamp: 3;
  }
  
  .product-banner {
    height: 250px;
  }
  
  .product-banner h1 {
    font-size: 24px;
  }
  
  .breadcrumb {
    bottom: -20px;
  }
  
  .breadcrumb .container {
    width: 160px;
    height: 40px;
    font-size: 12px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
}
