/* ===== 分类页面特有样式 ===== */
/* 分类封面大图 */
.category-hero {
  margin: 30px 0 20px 0;
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
}
.category-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}
.category-overlay h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.category-overlay p {
  font-size: 24px;
  font-weight: 300;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

/* 分类标题 */
.category-title-block {
  margin: 30px 0 20px 0;
  text-align: left;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.category-title-block h2 {
  font-size: 32px;
  color: #2c3e50;
  font-weight: 500;
}

/* 新闻网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 20px 0 50px 0;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.news-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #f0f0f0;
}

.news-card .news-title {
  padding: 16px 12px 20px 12px;
  font-size: 18px;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.5;
  text-align: center;
  background-color: #fff;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
}
.pagination span {
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.pagination .current {
  background: #e74c3c;
  color: white;
}
.pagination .page {
  background: #f1f1f1;
  color: #333;
}
.pagination a {
  text-decoration: none;
  color: inherit;
}

/* 分类页面响应式 */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-hero {
    height: 250px;
  }
  .category-overlay h1 {
    font-size: 36px;
  }
  .category-overlay p {
    font-size: 18px;
  }
}
@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}