/* 分类页（现代化设计） */

/* 页面容器 */
.category-page {
  background: #f8f9fa;
}

/* 顶部英雄区 */
.category-hero {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #22c55e 100%);
  padding: 3.5rem 0 2.2rem;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.18);
}

.category-hero .hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.category-title-modern {
  margin: 0 0 .6rem 0;
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.category-subtitle {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* 统计 */
.category-hero .header-stats {
  display: flex;
  gap: 1.2rem;
}

.category-hero .stat-box {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  backdrop-filter: blur(6px);
}

.category-hero .stat-number {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.category-hero .stat-label {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}

/* 搜索与返回 */
.category-actions {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.95);
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(16,185,129,.18);
}

.category-search-input {
  padding: .9rem 1rem;
  border: 0;
  outline: 0;
  width: 260px;
  font-size: .98rem;
  color: #1f2937;
  background: transparent;
}

.category-search-input::placeholder { color: #6b7280; }

.category-search:focus-within {
  border-color: #10b981;
  background: #fff;
}

.category-search-btn {
  background: linear-gradient(135deg,#10b981 0%,#059669 100%);
  color: #fff;
  border: 0;
  padding: .9rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  color: #059669;
  border: 2px solid #22c55e33;
  border-radius: 10px;
  padding: .7rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(16,185,129,.16);
}

.btn-back:hover { background:#ecfdf5; }

/* 芯片导航继承 posts-filter-section 的基础样式（来自 main.css） */
.posts-filter-section { margin-top: 1.2rem; }

/* 分页覆盖增加间距 */
.pagination-modern { padding: 2rem 0 2.4rem; }

/* 响应式 */
@media (max-width: 992px) {
  .category-hero { padding: 2.6rem 0 1.6rem; }
  .category-title-modern { font-size: 1.9rem; }
  .category-hero .hero-content { flex-direction: column; align-items: flex-start; }
  .category-search-input { width: 220px; }
}

@media (max-width: 640px) {
  .category-title-modern { font-size: 1.6rem; }
  .category-search-input { width: 100%; }
  .category-actions { flex-direction: column; align-items: stretch; }
  .category-search { width: 100%; }
}

/* 暗色主题 */
.dark-theme .category-page { background: #111827; }
.dark-theme .category-hero { background: linear-gradient(135deg,#065f46 0%,#064e3b 100%); box-shadow: 0 8px 30px rgba(6,95,70,.35); }
.dark-theme .category-subtitle { color: #e5e7eb; }
.dark-theme .btn-back { background:#1f2937; color:#a7f3d0; border-color:#10b98155; }
.dark-theme .btn-back:hover { background:#111827; }
.dark-theme .category-search { background:#1f2937; box-shadow:none; }
.dark-theme .category-search-input { color:#e5e7eb; }
.dark-theme .category-search-input::placeholder { color:#9ca3af; }
.dark-theme .category-search:focus-within { border-color:#10b981; background:#111827; }


