/* page2 专属样式 */
.page-banner {
  background: linear-gradient(135deg, #E8ECF0 0%, #D5DCE3 100%);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-banner h1 {
  font-size: 2.8rem;
  color: #2C3E50;
  margin-bottom: 16px;
}
.page-banner p {
  font-size: 1.1rem;
  color: #5A6C7D;
  max-width: 600px;
  margin: 0 auto;
}

.article-list-section {
  padding: 60px 0;
}

/* 文章卡片 */
.article-card {
  display: flex;
  gap: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 20px;
  transition: box-shadow 0.3s;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card-thumb {
  flex-shrink: 0;
}
.card-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-body h3 {
  margin-bottom: 8px;
}
.card-body h3 a {
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.card-body h3 a:hover {
  color: var(--color-primary);
}
.card-body p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.date {
  color: #999;
  font-size: 13px;
}

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

/* 分页 */
.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;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
  background: #fff;
}
.page-btn.active,
.page-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* 响应式 */
@media (max-width: 768px) {
  .page-banner {
    height: 280px;
  }
  .page-banner h1 {
    font-size: 2rem;
  }
  .page-banner p {
    font-size: 1rem;
  }

  .article-card {
    flex-direction: column;
  }
  .card-thumb img {
    width: 100% !important;
    height: auto !important;
  }
  .card-body {
    padding: 15px;
  }
}