/* AI 模板 - 分类页面样式 */

/* 主容器 */
.ai-main.ai-type-page {
  padding: 40px 0;
  min-height: calc(100vh - 300px);
}

.ai-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 面包屑导航 */
.ai-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  font-size: 14px;
  color: #666;
}

.ai-breadcrumb a {
  color: #667eea;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.ai-breadcrumb a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.ai-breadcrumb span {
  color: #999;
}

.ai-breadcrumb-current {
  color: #333 !important;
  font-weight: 600;
}

/* 筛选区域 */
.ai-filter-section {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.ai-filter-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
}

.ai-filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ai-filter-label {
  flex-shrink: 0;
  width: 80px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
  line-height: 32px;
}

.ai-filter-options {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-filter-option {
  display: inline-block;
  padding: 8px 18px;
  background: #f8f9fa;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.ai-filter-option:hover {
  background: #e8e9eb;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.ai-filter-option.ai-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 排序区域 */
.ai-filter-sort {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.ai-sort-option {
  display: inline-block;
  padding: 10px 24px;
  background: #fff;
  color: #666;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.ai-sort-option:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.ai-sort-option.ai-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 视频列表区域 */
.ai-vod-list-section {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.ai-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.ai-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-title-icon {
  font-size: 28px;
}

.ai-result-count {
  color: #999;
  font-size: 14px;
  font-weight: 500;
  background: #f8f9fa;
  padding: 8px 16px;
  border-radius: 20px;
}

/* 视频网格 */
.ai-vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* 分页样式 */
.ai-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.ai-page-btn {
  display: inline-block;
  min-width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  background: #fff;
  color: #666;
  text-decoration: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  padding: 0 15px;
}

.ai-page-btn:hover:not(.disabled) {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.ai-page-btn.ai-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .ai-main.ai-type-page {
    padding: 20px 0;
  }
  
  .ai-breadcrumb {
    flex-wrap: wrap;
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .ai-filter-section {
    padding: 20px;
    border-radius: 12px;
  }
  
  .ai-filter-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .ai-filter-label {
    width: 100%;
    font-size: 14px;
  }
  
  .ai-filter-option {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .ai-filter-sort {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .ai-sort-option {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .ai-vod-list-section {
    padding: 20px;
    border-radius: 12px;
  }
  
  .ai-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .ai-section-title {
    font-size: 20px;
  }
  
  .ai-vod-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .ai-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .ai-page-btn {
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
  }
}

/* 年份选项较多时的滚动优化 */
.ai-filter-options:has(a[href*="year"]) {
  max-height: 120px;
  overflow-y: auto;
  padding-right: 10px;
}

.ai-filter-options:has(a[href*="year"])::-webkit-scrollbar {
  width: 6px;
}

.ai-filter-options:has(a[href*="year"])::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.ai-filter-options:has(a[href*="year"])::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 3px;
}

.ai-filter-options:has(a[href*="year"])::-webkit-scrollbar-thumb:hover {
  background: #764ba2;
}
