.slider-captcha {
    position: relative;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.captcha-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.captcha-bg {
    position: relative;
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.captcha-gap {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background: rgba(30, 136, 229, 0.1);
    border: 2px dashed #1e88e5;
    border-radius: 4px;
    z-index: 2;
}

.captcha-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
    transition: color 0.3s ease;
}

.captcha-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.slider-btn {
    position: absolute;
    top: 7px;
    left: 0;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.slider-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.slider-btn i {
    color: #666;
    font-size: 12px;
    transition: color 0.3s ease;
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #1e88e5 0%, #64b5f6 100%);
    border-radius: 0 0 4px 0;
    transition: width 0.3s ease;
    z-index: 1;
}

/* 验证成功状态 */
.slider-captcha.verified .slider-btn {
    background: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.slider-captcha.verified .slider-btn i {
    color: #fff;
}

.slider-captcha.verified .slider-text {
    color: #4caf50;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .slider-captcha {
        width: 280px !important;
        height: 140px !important;
    }
    
    .captcha-bg {
        height: 90px;
    }
    
    .captcha-gap {
        width: 35px;
        height: 35px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .captcha-text {
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-captcha {
    animation: slideIn 0.3s ease-out;
} 