/* ============================================
   VIVID CARTOON THEME - Category/Filter/Search
   活力卡通风 - 分类/筛选/搜索
   ============================================ */

/* --- Category Header --- */
.v-category-header {
  padding: var(--v-space-2xl) 0 var(--v-space-lg);
  text-align: center;
}

.v-category-header__title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--v-coral), var(--v-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--v-space-sm);
}

.v-category-header__desc {
  font-size: 15px;
  color: var(--v-text-secondary);
}

/* --- Filter Bar --- */
.v-filter {
  background: var(--v-bg-card);
  border-radius: var(--v-radius-md);
  box-shadow: var(--v-shadow-sm);
  padding: var(--v-space-lg);
  margin-bottom: var(--v-space-xl);
}

.v-filter__group {
  display: flex;
  align-items: flex-start;
  padding: var(--v-space-sm) 0;
  border-bottom: 1px solid var(--v-border-light);
}

.v-filter__group:last-child {
  border-bottom: none;
}

.v-filter__label {
  flex-shrink: 0;
  width: 80px;
  font-size: 14px;
  font-weight: 600;
  color: var(--v-text);
  padding-top: 5px;
}

.v-filter__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v-space-xs);
  flex: 1;
}

.v-filter__option {
  padding: 5px 16px;
  border-radius: var(--v-radius-pill);
  font-size: 13px;
  color: var(--v-text-secondary);
  cursor: pointer;
  transition: all var(--v-duration-fast) var(--v-ease-bounce);
}

.v-filter__option:hover {
  background: rgba(255, 107, 107, 0.08);
  color: var(--v-coral);
}

.v-filter__option--active {
  background: var(--v-coral);
  color: #fff;
}

.v-filter__option--active:hover {
  background: var(--v-coral-dark);
  color: #fff;
}

/* --- Results Header --- */
.v-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--v-space-lg);
}

.v-results-header__count {
  font-size: 14px;
  color: var(--v-text-secondary);
}

.v-results-header__count strong {
  color: var(--v-coral);
  font-weight: 700;
}

.v-results-header__sort {
  display: flex;
  gap: var(--v-space-sm);
}

.v-results-header__sort-btn {
  padding: 6px 14px;
  border-radius: var(--v-radius-pill);
  font-size: 13px;
  color: var(--v-text-secondary);
  cursor: pointer;
  transition: all var(--v-duration-fast);
}

.v-results-header__sort-btn:hover {
  color: var(--v-coral);
  background: rgba(255, 107, 107, 0.06);
}

.v-results-header__sort-btn--active {
  background: var(--v-coral);
  color: #fff;
}

/* --- Results Grid --- */
.v-results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--v-space-lg);
}

/* --- Search Page --- */
.v-search-page {
  min-height: 60vh;
}

.v-search-page__header {
  padding: var(--v-space-2xl) 0;
  text-align: center;
}

.v-search-page__box {
  max-width: 560px;
  margin: 0 auto;
}

.v-search-page__input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  border-radius: var(--v-radius-pill);
  border: 3px solid var(--v-border);
  background: var(--v-bg-card);
  font-size: 16px;
  color: var(--v-text);
  transition: all var(--v-duration-normal) var(--v-ease-smooth);
}

.v-search-page__input:focus {
  border-color: var(--v-coral);
  box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.1);
}

.v-search-page__input::placeholder {
  color: var(--v-text-muted);
}

.v-search-page__hot {
  margin-top: var(--v-space-lg);
  text-align: left;
}

.v-search-page__hot-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--v-text);
  margin-bottom: var(--v-space-sm);
}

.v-search-page__hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v-space-sm);
}

.v-search-page__hot-tag {
  padding: 5px 14px;
  border-radius: var(--v-radius-pill);
  font-size: 13px;
  color: var(--v-text-secondary);
  background: var(--v-bg-section);
  transition: all var(--v-duration-fast);
  cursor: pointer;
}

.v-search-page__hot-tag:hover {
  background: rgba(255, 107, 107, 0.08);
  color: var(--v-coral);
}

/* Search result item */
.v-search-item {
  display: flex;
  gap: var(--v-space-lg);
  padding: var(--v-space-lg);
  background: var(--v-bg-card);
  border-radius: var(--v-radius-md);
  box-shadow: var(--v-shadow-sm);
  margin-bottom: var(--v-space-md);
  transition: all var(--v-duration-normal) var(--v-ease-smooth);
}

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

.v-search-item__cover {
  flex-shrink: 0;
  width: 100px;
  height: 134px;
  border-radius: var(--v-radius-sm);
  overflow: hidden;
}

.v-search-item__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-search-item__info {
  flex: 1;
  min-width: 0;
}

.v-search-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--v-text);
  margin-bottom: var(--v-space-sm);
}

.v-search-item__meta {
  font-size: 13px;
  color: var(--v-text-secondary);
  margin-bottom: var(--v-space-sm);
}

.v-search-item__desc {
  font-size: 13px;
  color: var(--v-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-search-item__tags {
  display: flex;
  gap: var(--v-space-sm);
  margin-top: var(--v-space-sm);
}

.v-search-item__action {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
}

/* --- Lists Page (Class listing) --- */
.v-lists-page {
  padding: var(--v-space-xl) 0;
}

.v-lists-page__header {
  margin-bottom: var(--v-space-xl);
}

.v-lists-page__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--v-text);
}

.v-lists-page__subtitle {
  font-size: 14px;
  color: var(--v-text-secondary);
  margin-top: var(--v-space-xs);
}

.v-lists-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--v-space-lg);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .v-results-grid { grid-template-columns: repeat(4, 1fr); }
  .v-lists-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
  .v-results-grid { grid-template-columns: repeat(3, 1fr); }
  .v-lists-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .v-results-grid { grid-template-columns: repeat(2, 1fr); }
  .v-lists-grid { grid-template-columns: repeat(2, 1fr); }
  .v-search-item { flex-direction: column; }
  .v-search-item__cover { width: 100%; height: 200px; }
}
