/* 新闻页面专属样式 */
.banner-news {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
}
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.banner-news .container {
  position: relative;
  z-index: 2;
}
.banner-news h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-align: center;
}

.main-content {
  padding: 60px 0;
}

/* 分类筛选 */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: center;
}
.category-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #666;
  transition: all 0.3s;
  background: #fff;
}
.category-btn.active,
.category-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* 文章列表 */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.article-card {
  display: flex;
  gap: 16px;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}
.article-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.article-card .card-thumb {
  flex-shrink: 0;
  width: 280px;
}
.article-card .card-thumb img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  display: block;
}
.article-card .card-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.article-card h3 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}
.article-card h3 a:hover {
  color: var(--color-primary);
}
.article-card .card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.5;
}
.article-card .date {
  color: #999;
  font-size: 13px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.page-btn {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: all 0.3s;
  font-size: 0.95rem;
}
.page-btn.active,
.page-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.page-btn.prev,
.page-btn.next {
  width: auto;
  padding: 0 16px;
}

/* 响应式 */
@media (max-width: 768px) {
  .banner-news {
    height: 300px;
  }
  .banner-news h1 {
    font-size: 1.8rem;
  }
  .article-card {
    flex-direction: column;
  }
  .article-card .card-thumb {
    width: 100%;
  }
  .article-card .card-thumb img {
    width: 100%;
    height: auto;
    max-height: 240px;
  }
}