/* ========== 滑动验证弹窗样式 ========== */

/* 滑动验证弹窗遮罩层 */
.slide-verify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

/* 弹窗内容容器 */
.slide-verify-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideVerifyModalFadeIn 0.3s ease;
}

/* 手机端弹窗适配 */
@media (max-width: 768px) {
    .slide-verify-modal-content {
        width: 95%;
        max-width: 350px;
        padding: 25px 20px;
        margin: 20px;
    }
}

/* 弹窗标题 */
.slide-verify-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .slide-verify-modal-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* 弹窗关闭按钮 */
.slide-verify-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.slide-verify-modal-close:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

/* 弹窗提示文字 */
.slide-verify-tips {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .slide-verify-tips {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

/* 滑动验证容器样式 */
.slide-verify-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    padding: 0;
}

/* 弹窗模式主容器 - 调高高度 */
#slide-captcha-modal {
    position: relative;
    width: 320px;
    height: 50px; /* 调高到50px */
    background: linear-gradient(to right, #3b82f6, #6e8ffa);
    border-radius: 25px; /* 对应高度调整圆角 */
    border: none;
    overflow: hidden;
    user-select: none;
    transition: all 0.3s ease;
    margin: 0 auto;
}

/* 手机端适配 */
@media (max-width: 768px) {
    #slide-captcha-modal {
        width: 100%;
        max-width: 280px;
        height: 44px; /* 手机端稍微矮一点 */
        border-radius: 22px;
    }
}

/* 滑动轨迹效果 */
#slide-captcha-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 25px;
    width: 0;
    transition: none;
    z-index: 1;
    opacity: 0;
}

@media (max-width: 768px) {
    #slide-captcha-modal::before {
        border-radius: 22px;
    }
}

/* 滑块样式 - 调大尺寸 */
#slide-captcha-modal .slide-verify-slider {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 42px; /* 调大到42px */
    height: 42px; /* 调大到42px */
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: none;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 16px; /* 字体也调大 */
    font-weight: bold;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    user-select: none;
}

/* 手机端滑块 */
@media (max-width: 768px) {
    #slide-captcha-modal .slide-verify-slider {
        width: 36px;
        height: 36px;
        font-size: 14px;
        left: 4px;
    }
}

#slide-captcha-modal .slide-verify-slider:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
}

#slide-captcha-modal .slide-verify-slider:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(0.98);
}

/* 文字样式 */
#slide-captcha-modal .slide-verify-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px; /* 字体调大 */
    font-weight: 500;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

@media (max-width: 768px) {
    #slide-captcha-modal .slide-verify-text {
        font-size: 13px;
    }
}

/* 拖动状态 - 显示轨迹 */
#slide-captcha-modal.dragging::before {
    opacity: 1;
}

/* 验证成功状态 */
#slide-captcha-modal.success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    animation: successPulse 0.6s ease;
}

#slide-captcha-modal.success::before {
    width: 100%;
    opacity: 1;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 25px;
}

@media (max-width: 768px) {
    #slide-captcha-modal.success::before {
        border-radius: 22px;
    }
}

#slide-captcha-modal.success .slide-verify-slider {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    color: #10b981;
    animation: successBounce 0.5s ease;
    transform: translateY(-50%) scale(1.05);
}

#slide-captcha-modal.success .slide-verify-text {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

/* 验证失败状态 */
#slide-captcha-modal.error {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    animation: errorShake 0.5s ease;
}

#slide-captcha-modal.error::before {
    width: 0;
    opacity: 0;
}

#slide-captcha-modal.error .slide-verify-slider {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    color: #ef4444;
}

#slide-captcha-modal.error .slide-verify-text {
    color: rgba(255, 255, 255, 1);
}

/* 动画定义 */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes successBounce {
    0%, 100% { transform: translateY(-50%) scale(1.05); }
    50% { transform: translateY(-50%) scale(1.15); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* 弹窗淡入动画 */
@keyframes slideVerifyModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 弹窗显示状态 */
.slide-verify-modal.show {
    display: flex !important;
}

/* 弹窗隐藏动画 */
.slide-verify-modal.hide .slide-verify-modal-content {
    animation: slideVerifyModalFadeOut 0.2s ease forwards;
}

@keyframes slideVerifyModalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}