/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 应用动画 */
.category-content.active {
    animation: fadeIn 0.5s ease forwards;
}

.config-card {
    animation: fadeIn 0.6s ease forwards;
}

.config-card:nth-child(1) {
    animation-delay: 0.1s;
}

.config-card:nth-child(2) {
    animation-delay: 0.2s;
}

.config-card:nth-child(3) {
    animation-delay: 0.3s;
}

.category-btn:hover {
    animation: pulse 0.5s ease;
}

.select-btn:hover {
    animation: bounce 0.5s ease;
}

.zone-btn.active {
    animation: pulse 0.3s ease;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}