/* ===== Hero ===== */
.hero { padding: 48px 0 32px; text-align: center; }
.hero-title { font-size: 2.25em; font-weight: 800; margin-bottom: 8px; color: #0F172A; font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }
.hero-desc { color: #475569; font-size: 1em; margin-bottom: 24px; font-weight: 400; }
.hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.hero-stats span { color: #475569; font-size: 14px; }

/* ===== 筛选栏 ===== */
.filter-bar { padding: 24px 0; }
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-btn {
  padding: 8px 16px; border: 1px solid #E2E8F0; border-radius: 9999px;
  background: #FFFFFF; color: #475569; font-size: 14px; cursor: pointer;
  transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.filter-btn:hover { border-color: #0891B2; color: #0891B2; }
.filter-btn.active { background: #0891B2; border-color: #0891B2; color: #fff; }
.search-box { max-width: 400px; }
.search-box input {
  width: 100%; padding: 10px 16px; border: 1px solid #E2E8F0; border-radius: 12px;
  background: #FFFFFF; color: #0F172A; font-size: 14px; outline: none;
  transition: border-color 0.2s; font-family: 'Inter', sans-serif;
}
.search-box input:focus { border-color: #0891B2; box-shadow: 0 0 0 3px #ECFEFF; }
.search-box input::placeholder { color: #94A3B8; }

/* ===== 置顶文章 ===== */
.pinned-section { padding: 0 0 32px; }
.section-title { font-size: 1.125em; font-weight: 700; margin-bottom: 24px; color: #0F172A; font-family: 'Inter', sans-serif; }
.pinned-grid { display: grid; gap: 24px; }

/* ===== 文章列表 ===== */
.posts-section { padding: 0 0 48px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ===== 文章卡片 ===== */
.post-card {
  display: block; background: #FFFFFF; border-radius: 16px; overflow: hidden;
  border: 1px solid #E2E8F0; transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.post-card:hover { transform: translateY(-2px); border-color: #22D3EE; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.post-card.featured { display: grid; grid-template-columns: 1fr 1fr; }
.card-cover { height: 180px; overflow: hidden; }
.post-card.featured .card-cover { height: 100%; min-height: 240px; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .card-cover img { transform: scale(1.05); }
.card-cover-placeholder { display: flex; align-items: center; justify-content: center; background: #F8FAFC; }
.placeholder-icon { font-size: 48px; opacity: 0.3; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card-category {
  display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px;
  border: 1px solid; align-self: flex-start; font-weight: 500;
}
.card-title { font-size: 17px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #0F172A; font-family: 'Inter', sans-serif; }
.post-card.featured .card-title { font-size: 22px; }
.card-excerpt { color: #475569; font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-meta { display: flex; gap: 16px; color: #94A3B8; font-size: 12px; flex-wrap: wrap; }

/* ===== 分页 ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  padding: 8px 20px; border: 1px solid #E2E8F0; border-radius: 9999px;
  background: #FFFFFF; color: #475569; font-size: 14px; cursor: pointer; transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.page-btn:hover { border-color: #0891B2; color: #0891B2; }
.page-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 9999px; font-size: 14px;
  color: #475569; transition: all 0.2s;
}
.page-num:hover { background: #F8FAFC; color: #0891B2; }
.page-num.current { background: #0891B2; color: #fff; }
.page-dots { color: #94A3B8; padding: 0 4px; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-title { font-size: 1.75em; }
  .hero-stats { gap: 12px; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .card-cover { height: 180px; min-height: 180px; }
}
