/* 筛选界面样式 */

/* 筛选界面样式 - 优化版本 */
.filter-section {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.filter-group {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0;
    font-size: 0.875rem;
    min-width: 90px;
    flex-shrink: 0;
    padding-top: 0.5rem;
    letter-spacing: 0.025em;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
}

.filter-option {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background-color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.filter-option:hover {
    color: #374151;
    background-color: #ffffff;
    border-color: #d1d5db;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
}

.filter-option.active {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 4px 12px 0 rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.filter-option.active:hover {
    background-color: #bfdbfe;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px 0 rgba(59, 130, 246, 0.4);
}

/* 响应式筛选界面 - 优化版本 */
@media (max-width: 768px) {
    .filter-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-label {
        margin-bottom: 0.5rem;
        min-width: auto;
        padding-top: 0;
        font-size: 0.8rem;
    }
    
    .filter-options {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    
    .filter-option {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .filter-section {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .filter-group {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }
    
    .filter-options {
        gap: 0.375rem;
    }
    
    .filter-option {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        border-radius: 6px;
    }
}

/* 深色模式支持 - 优化版本 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --border-color: #4b5563;
    }
    
    .filter-section {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
        border-color: #6b7280;
    }
    
    .filter-label {
        color: #f9fafb;
    }
    
    .filter-option {
        color: #d1d5db;
        background-color: #1f2937;
        border-color: #4b5563;
    }
    
    .filter-option:hover {
        color: #f9fafb;
        background-color: #374151;
        border-color: #6b7280;
    }
    
    .filter-option.active {
        background-color: #1e3a8a;
        color: #dbeafe;
        border-color: #3b82f6;
    }
}
