/* 滤镜网格样式 */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 4px 0;
}

.filter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7fafc;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-card:hover {
    background: #edf2f7;
}

.filter-card.active {
    border-color: var(--primary-accent);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-preview-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%), linear-gradient(-45deg, #e0e0e0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e0e0e0 75%), linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    overflow: hidden;
}

.filter-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.2s;
}

.filter-name {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 0;
    text-align: center;
    width: 100%;
    background: rgba(255,255,255,0.8);
    border-top: 1px solid #edf2f7;
}

.filter-card.active .filter-name {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--primary-accent);
    color: white;
}

.filter-section.hidden {
    display: none;
}