/**
 * SliderCaptcha 炫酷样式
 */
.slider-captcha {
    user-select: none;
}

.sc-track {
    position: relative;
    height: 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 170, 0.2);
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sc-track.active {
    border-color: rgba(0, 212, 170, 0.5);
    box-shadow: 
        0 4px 20px rgba(0, 212, 170, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sc-track.success {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 
        0 4px 25px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sc-track.fail {
    border-color: rgba(239, 68, 68, 0.5);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.sc-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, 
        rgba(0, 212, 170, 0.1) 0%,
        rgba(0, 212, 170, 0.3) 50%,
        rgba(0, 184, 148, 0.4) 100%
    );
    border-radius: 25px;
    transition: none;
}

.sc-track.active .sc-progress {
    background: linear-gradient(90deg, 
        rgba(0, 212, 170, 0.2) 0%,
        rgba(0, 212, 170, 0.4) 50%,
        rgba(0, 184, 148, 0.5) 100%
    );
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.sc-track.success .sc-progress {
    background: linear-gradient(90deg, 
        rgba(16, 185, 129, 0.2) 0%,
        rgba(16, 185, 129, 0.5) 100%
    );
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.sc-particles {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sc-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00d4aa;
    border-radius: 50%;
    animation: particleFade 1s ease-out forwards;
    box-shadow: 0 0 6px #00d4aa;
}

.sc-particle.success {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: particleExplode 1s ease-out forwards;
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
}

@keyframes particleExplode {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translate(
            calc((var(--random-x, 0) - 0.5) * 100px),
            calc((var(--random-y, 0) - 0.5) * 100px)
        );
    }
}

.sc-thumb {
    position: absolute;
    left: 0;
    top: 2px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: #0f172a;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 
        0 4px 15px rgba(0, 212, 170, 0.4),
        0 0 0 3px rgba(0, 212, 170, 0.1);
    transition: none;
    z-index: 10;
}

.sc-thumb:hover {
    box-shadow: 
        0 4px 20px rgba(0, 212, 170, 0.5),
        0 0 0 5px rgba(0, 212, 170, 0.15);
}

.sc-thumb.active {
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 
        0 6px 25px rgba(0, 212, 170, 0.6),
        0 0 0 6px rgba(0, 212, 170, 0.2);
}

.sc-thumb i {
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.sc-thumb.active i {
    animation: none;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(3px); opacity: 0.7; }
}

.sc-track.success .sc-thumb {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 
        0 4px 20px rgba(16, 185, 129, 0.5),
        0 0 0 5px rgba(16, 185, 129, 0.2);
}

.sc-track.success .sc-thumb i {
    animation: successPop 0.4s ease;
}

@keyframes successPop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.sc-track.fail .sc-thumb {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.4),
        0 0 0 3px rgba(239, 68, 68, 0.1);
}

.sc-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(148, 163, 184, 0.8);
    font-size: 14px;
    letter-spacing: 2px;
    pointer-events: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.sc-track.active .sc-text {
    opacity: 0.5;
}

.sc-track.success .sc-text {
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.sc-track.fail .sc-text {
    color: #ef4444;
}

/* 发光边缘动画 */
.sc-track::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 212, 170, 0.3),
        transparent
    );
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.sc-track.active::before {
    opacity: 1;
    animation: glowMove 2s linear infinite;
}

@keyframes glowMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
