/* 分类页样式 */

/* 分类头部 */
.category-header {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}

.category-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: #fff;
}

.category-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.category-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Noto Serif SC', serif;
}

.category-desc {
  font-size: 14px;
  opacity: 0.9;
}

/* 分类Tabs */
.categories-wrapper {
  margin-bottom: 32px;
}

.categories-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tab {
  padding: 8px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.category-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.category-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* 文章列表 */
.articles-section {
  margin-bottom: 48px;
}

.articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.articles-count {
  font-size: 14px;
  color: var(--text-tertiary);
}

.articles-filter select {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  background: #fff;
  cursor: pointer;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 文章项 */
.article-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.article-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-item-cover {
  width: 200px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.article-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-item-category {
  font-size: 12px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.article-item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Noto Serif SC', serif;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item-summary {
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.article-item-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state-desc {
  color: var(--text-tertiary);
  font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
  .category-header {
    height: 160px;
  }
  
  .category-icon {
    font-size: 36px;
  }
  
  .category-title {
    font-size: 24px;
  }
  
  .category-info {
    padding: 20px;
  }
  
  .article-item {
    flex-direction: column;
  }
  
  .article-item-cover {
    width: 100%;
    height: 180px;
  }
  
  .article-item-title {
    font-size: 16px;
  }
}
