/* 历史专题列表页面样式 */
.ui-topic-banner {
  padding: 60px 0 40px;
}
.ui-topic-banner .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui-topic-banner .topicName {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  text-align: center;
}
.topicListContainer {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.topicListMain {
  width: 100%;
}
.topicGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.topicCard {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.topicCard:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}
.topicCard:hover .topicCover img {
  transform: scale(1.05);
}
.topicLink {
  display: block;
  text-decoration: none;
  color: inherit;
}
.topicCover {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topicCover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.topicCover.placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 14px;
}
.topicInfo {
  padding: 16px;
}
.topicTitle {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.topicDesc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 12px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.topicMeta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #999;
}
.topicMeta .createTime {
  flex: 1;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: #999;
}
/* 分页样式 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.page-btn {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}
.page-btn:hover:not(.disabled) {
  background: #f5f5f5;
  border-color: #999;
}
.page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #eee;
}
.page-info {
  font-size: 14px;
  color: #666;
}
/* 移动端适配 */
@media screen and (max-width: 768px) {
  .ui-topic-banner {
    padding: 30px 0 20px;
  }
  .ui-topic-banner .topicName {
    font-size: 24px;
  }
  .topicListContainer {
    padding: 20px 15px;
  }
  .topicGrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  .topicCover {
    height: 120px;
  }
  .topicInfo {
    padding: 12px;
  }
  .topicTitle {
    font-size: 16px;
  }
  .topicDesc {
    font-size: 13px;
  }
  .pagination {
    gap: 12px;
  }
  .page-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
  .page-info {
    font-size: 13px;
  }
}
