.topics-header {
  margin-bottom: 24px;
}
.topics-title {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 8px;
}
.topics-subtitle {
  color: #666;
  font-size: 16px;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.topic-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.topic-cover {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.topic-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fafafa;
  color: #555;
  font-weight: 600;
  text-align: center;
}
.topic-meta {
  padding: 12px 14px 16px;
}
.topic-name {
  font-size: 18px;
  margin: 0 0 6px;
  color: #2c3e50;
}
.topic-count {
  color: #999;
  font-size: 14px;
}

/* 复用首页文章列表风格 */
.post-item {
  padding: 20px;
  margin: 0 -20px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
}
.post-item:hover {
  background: #f8f9fa;
}
.post-item:last-child {
  border-bottom: none;
}
.post-item h2 {
  margin-bottom: 10px;
}
.post-title {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}
.post-title:hover {
  color: #3498db;
}
.post-meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}
.description {
  color: #555;
  margin: 10px 0;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.pagination a {
  color: #3498db;
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid #3498db;
  border-radius: 4px;
  transition: all 0.2s;
}
.pagination a:hover {
  background: #3498db;
  color: #fff;
}
.pagination .disabled {
  color: #ccc;
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.page-info {
  color: #666;
}
