/* 滑动验证码样式 */
.slider-captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sliderCaptchaFadeIn 0.2s ease;
    touch-action: none;
    -webkit-touch-callout: none;
    overscroll-behavior: contain;
}

@keyframes sliderCaptchaFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.slider-captcha-panel {
    background: #fff;
    border-radius: 8px;
    padding: 24px 28px 20px;
    width: 380px;
    max-width: 92vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    box-sizing: border-box;
}

.slider-captcha-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.slider-captcha-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    background: none;
    border: none;
    padding: 4px 8px;
    transition: color 0.15s;
}

.slider-captcha-close:hover {
    color: #333;
}

.slider-captcha-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.slider-captcha-track {
    position: relative;
    width: 100%;
    height: 42px;
    background: #e8e8e8;
    border-radius: 21px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.slider-captcha-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #5bc0de, #31b0d5);
    border-radius: 21px 0 0 21px;
    transition: background 0.3s;
}

.slider-captcha-fill.success {
    background: linear-gradient(135deg, #5cb85c, #449d44);
}

.slider-captcha-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #aaa;
    pointer-events: none;
    z-index: 1;
}

.slider-captcha-text.success {
    color: #fff;
}

.slider-captcha-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: grab;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.slider-captcha-handle:active {
    cursor: grabbing;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.slider-captcha-handle.dragging {
    transition: none;
}

.slider-captcha-handle.success {
    cursor: default;
    box-shadow: 0 2px 6px rgba(92, 184, 92, 0.3);
}

.slider-captcha-handle-icon {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* 箭头 SVG */
.slider-captcha-handle-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.slider-captcha-status {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 14px;
    min-height: 20px;
}

.slider-captcha-status.success {
    color: #5cb85c;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .slider-captcha-panel {
        padding: 20px 16px 16px;
        width: 94vw;
    }
    .slider-captcha-title {
        font-size: 15px;
    }
    .slider-captcha-track {
        height: 44px;
        border-radius: 22px;
    }
    .slider-captcha-handle {
        width: 40px;
        height: 40px;
        top: 2px;
        left: 2px;
    }
}