﻿/* 基础样式重置 - 带业务前缀防止冲突 */
.slide-verify-reset {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 滑块容器样式 */
.slide-verify-container {
    width: 100%;
    max-width: 420px;
    min-width: 280px;
    /*padding: 24px;*/
    background-color: transparent;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
}

/* 滑块标题样式 */
.slide-verify-title {
    font-size: 19px;
    color: #2c3e50;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 500;
}

/* 滑块轨道样式 */
.slide-verify-track {
    width: 100%;
    height: 40px;
    background-color: #f7f9fa;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    /* 关键修复：添加触摸动作样式，告诉浏览器这个区域需要阻止默认行为 */
    touch-action: none;
}

/* 滑块进度条样式 */
.slide-verify-progress {
    height: 100%;
    background-color: #e8f4fd;
    width: 0;
    transition: width 0.1s ease;
}

/* 滑块按钮样式 */
.slide-verify-button {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    user-select: none;
}

/* 滑块按钮图标样式 */
.slide-verify-icon {
    color: #4096ff;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* 滑块文字提示样式 */
.slide-verify-text {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #64748b;
    z-index: 1;
    user-select: none;
    transition: color 0.3s ease;
}

/* 成功状态样式 */
.slide-verify-success .slide-verify-progress {
    background-color: #f0fdf4;
}

.slide-verify-success .slide-verify-button {
    border-color: #22c55e;
    background-color: #f0fdf4;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.slide-verify-success .slide-verify-icon {
    color: #22c55e;
    transform: rotate(180deg);
}

.slide-verify-success .slide-verify-text {
    color: #22c55e;
}

/* 失败状态样式 */
.slide-verify-error .slide-verify-progress {
    background-color: #fee2e2;
}

.slide-verify-error .slide-verify-button {
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.slide-verify-error .slide-verify-icon {
    color: #ef4444;
}

.slide-verify-error .slide-verify-text {
    color: #ef4444;
}

/* 动画效果 */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-5px);
    }

    40%, 80% {
        transform: translateX(5px);
    }
}

.slide-verify-shake {
    animation: shake 0.5s ease;
}

/* 响应式调整 */
@media (max-width: 480px) {
    /* .slide-verify-container {
        padding: 18px;
    }*/

    .slide-verify-track,
    .slide-verify-button {
        height: 46px;
    }

    .slide-verify-button {
        width: 46px;
    }

    .slide-verify-icon {
        font-size: 16px;
    }

    .slide-verify-text {
        font-size: 14px;
    }
}
