/* 新闻中心页面样式 */

/* Banner样式 */
.news-banner {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.news-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/n_xinwen.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: bannerZoomIn 8s ease-out forwards;
}
@keyframes bannerZoomIn {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

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

.banner-content h1 {
  font-size: 54px;
  font-weight: 700;
  margin-bottom: 30px;
}

.banner-content p {
  font-size:18px;
  opacity: 0.9;
}

/* 新闻列表样式 */
.news-list-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.news-list {
  max-width: 100%;
  margin: 0 auto;
}

.news-item {
  padding: 40px 0 30px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-item:hover {
  transform: translateX(5px);
  cursor: pointer;
}

.news-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  aspect-ratio: 16/9;
  overflow: hidden;
}


.news-image img {
  width: 450px;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding-left: 0;
}


.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.875rem;
  color: #6b7280;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-category {
  display: inline-block;
  padding: 3px 10px;
  background-color: rgba(57, 176, 88, 0.1);
  color: #39b058;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s ease;
  cursor: pointer;
}

.news-item:hover .news-title {
  color: #39b058;
}

.news-excerpt {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #39b058;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: #2d8d46;
  transform: translateX(5px);
}

.news-detail-section {
    padding: 60px 0;
    background: #fff;
}

.news-detail-content {
    max-width: 1215px;
    margin: 0 auto;
    padding: 0 15px;
}

.news-detail-title {
    font-size: 32px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

.news-detail-info {
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.news-detail-date,
.news-detail-source {
    color: #999;
    font-size: 14px;
}

.news-detail-author {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 14px;
}

.news-detail-text {
    max-width: 100% !important;
    margin-top: 30px;
    text-align: left;
    p,div,h1,h2,h3,h4,h5,h6,span{
        max-width: 100% !important;
    }
}


.news-detail-text p,.news-detail-text div {
    font-size: 16px !important;
    color: #444 !important;
    line-height: 2 !important;
    margin-bottom: 8px !important;
    text-align: justify !important;
}

.news-detail-text img {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    background: #F8F8F8;
    padding: 20px;
}

.news-detail-img {
    max-width: 1160px !important;
    border-radius: 8px;
    margin: 20px auto;
}