/* 新闻中心页面样式 */
.news-page {
  padding: 3rem 0;
  background-color: #f9f9f9;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
  font-size: 2rem;
  color: #000;
  margin: 0 0 0.5rem 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #666;
}

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

.breadcrumb a:hover {
  color: #002fff;
}

.breadcrumb span {
  color: #333;
  font-weight: 500;
}

.news-content {
  display: flex;
  gap: 2rem;
}

.news-categories {
  flex: 0 0 250px;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-categories h3 {
  font-size: 1.2rem;
  color: #000;
  margin: 0 0 1rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #002fff;
}

.news-categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-categories li {
  margin-bottom: 0.8rem;
}

.news-categories li:last-child {
  margin-bottom: 0;
}

.news-categories a {
  display: block;
  padding: 0.8rem 1rem;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.news-categories a:hover {
  background-color: rgba(0, 47, 255, 0.1);
  color: #002fff;
}

.news-categories li.active a {
  background-color: rgba(0, 47, 255, 0.2);
  color: #002fff;
  font-weight: 500;
}

.news-list {
  flex: 1;
}

.news-list .news-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.news-list .news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-list .news-image {
  flex: 0 0 200px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
}

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

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

.news-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-details h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.news-details h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-details h3 a:hover {
  color: #002fff;
}

.news-details p {
  margin: 0 0 1rem 0;
  color: #666;
  line-height: 1.6;
  flex: 1;
}

.news-details .news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-details .date {
  color: #999;
  font-size: 0.9rem;
}

.news-details .category {
  color: #002fff;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  background-color: rgba(0, 47, 255, 0.1);
  border-radius: 4px;
}

.news-details .read-more {
  color: #002fff;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: rgba(0, 47, 255, 0.1);
}

.news-details .read-more:hover {
  background-color: rgba(0, 47, 255, 0.2);
  transform: translateY(-2px);
}

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.pagination li {
  margin: 0;
}

.pagination a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.pagination a:hover {
  background-color: rgba(0, 47, 255, 0.1);
  color: #002fff;
  border-color: #002fff;
}

.pagination li.active a {
  background-color: #002fff;
  color: #fff;
  border-color: #002fff;
}

.pagination span {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #999;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

/* 新闻详情页面样式 */
.news-detail-page {
  padding: 3rem 0;
  background-color: #f9f9f9;
}

.news-detail-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-article {
  margin-bottom: 2rem;
}

.news-article h2 {
  font-size: 1.8rem;
  color: #000;
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.article-meta {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.article-meta span {
  color: #666;
  font-size: 0.9rem;
  margin-right: 1.5rem;
}

.article-body {
  margin-bottom: 2rem;
}

.article-body p {
  margin: 0 0 1.5rem 0;
  color: #333;
  line-height: 1.8;
  text-align: justify;
}

.article-navigation {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid #e0e0e0;
}

.prev-article, .next-article {
  flex: 1;
}

.prev-article {
  margin-right: 1rem;
}

.next-article {
  margin-left: 1rem;
  text-align: right;
}

.article-navigation span {
  color: #999;
  font-size: 0.9rem;
}

.article-navigation a {
  color: #002fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-navigation a:hover {
  text-decoration: underline;
}

.related-news {
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.related-news h3 {
  font-size: 1.2rem;
  color: #000;
  margin: 0 0 1rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #002fff;
}

.related-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-news li {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed #e0e0e0;
}

.related-news li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-news a {
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.related-news a:hover {
  color: #002fff;
  transform: translateX(5px);
}

/* 媒体查询 - 平板设备 */
@media (max-width: 992px) {
  .news-content {
    flex-direction: column;
  }
  
  .news-categories {
    flex: 0 0 auto;
    margin-bottom: 2rem;
  }
  
  .news-list .news-item {
    padding: 1.2rem;
  }
  
  .news-list .news-image {
    flex: 0 0 180px;
    height: 130px;
  }
  
  .news-details h3 {
    font-size: 1.2rem;
  }
}

/* 媒体查询 - 大型手机 */
@media (max-width: 768px) {
  .news-page,
  .news-detail-page {
    padding: 2rem 0;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .news-list .news-item {
    flex-direction: column;
  }
  
  .news-list .news-image {
    flex: 0 0 auto;
    height: 200px;
    width: 100%;
  }
  
  .news-details h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
  }
  
  .news-details .news-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .news-detail-content {
    padding: 1.5rem;
  }
  
  .news-article h2 {
    font-size: 1.5rem;
  }
  
  .article-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .prev-article, .next-article {
    margin: 0;
    text-align: left;
  }
}

/* 媒体查询 - 小型手机 */
@media (max-width: 480px) {
  .news-page,
  .news-detail-page {
    padding: 1.5rem 0;
  }
  
  .page-header h1 {
    font-size: 1.6rem;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
  }
  
  .news-categories {
    padding: 1rem;
  }
  
  .news-list .news-item {
    padding: 1rem;
  }
  
  .news-list .news-image {
    height: 160px;
  }
  
  .news-details h3 {
    font-size: 1.2rem;
  }
  
  .pagination ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pagination a,
  .pagination span {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }
  
  .news-detail-content {
    padding: 1rem;
  }
  
  .news-article h2 {
    font-size: 1.3rem;
  }
  
  .article-meta {
    padding: 0.8rem;
  }
  
  .article-meta span {
    display: block;
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
  
  .article-meta span:last-child {
    margin-bottom: 0;
  }
  
  .article-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }
}