/* 新闻容器布局 */
.news-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}

/* 左侧新闻详情 */
.news-content {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.news-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.news-meta span {
  margin-right: 20px;
}

.news-summary {
  font-size: 16px;
  color: #666;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #4caf50;
  margin-bottom: 20px;
}

.news-image {
  margin: 20px 0;
}

.news-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
}

/* 视频响应式样式 */
.news-image video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.image-caption {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

.news-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* 添加新闻文本中图片的样式 */
.news-text img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: cover; /* 确保图片填充整个容器空间,保持宽高比并裁剪多余部分 */
  border-radius: 4px;
  margin: 0 auto 15px auto;
  display: block;
}

.news-text p {
  text-align: justify;
  text-indent: 2em;
  /* margin-bottom: 20px; */
}

.news-navigation {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-navigation a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.news-navigation a:hover {
  color: #4caf50;
}

/* 右侧边栏 */
.news-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 18px;
  color: #333;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4caf50;
}

/* 热门文章样式 */
.hot-news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hot-news-item {
  display: flex;
  gap: 15px;
  /* padding-bottom: 20px; */
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

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

.hot-news-item a {
  text-decoration: none;
  color: #333;
}

.hot-news-image {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
}

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

.hot-news-info {
  flex: 1;
}

.hot-news-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

.hot-news-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 最新文章样式 */
.latest-news {
  margin-top: 30px;
}

.latest-news-list {
  list-style: none;
  padding: 0;
}

.latest-news-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.latest-news-list li:hover {
  transform: translateX(5px);
}

.latest-news-list a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-news-list a:hover {
  color: #4caf50;
}

/* 手机端隐藏热门文章和最新文章 */
@media (max-width: 991px) {
  .hot-news {
    display: none;
  }

  .latest-news {
    display: none;
  }

  .news-sidebar {
    width: 0;
  }

  .news-container {
    gap: 0;
    padding: 0;
  }

  .news-content {
    padding: 20px 15px;
  }

  .news-title {
    font-size: 22px;
  }

  /* 确保所有图片和视频在手机端响应式显示 */
  .news-image img,
  .news-image video,
  .news-text img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
}
