/**
 * 滑块式人机身份验证 - 样式表
 */

/* 遮罩层 - 覆盖整个页面 */
#slider-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.3s ease;
}

/* 验证容器 */
.verification-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 350px;
    max-width: 90%;
    text-align: center;
}

/* 标题区域 */
.verification-header {
    margin-bottom: 30px;
}

.verification-header h3 {
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* 滑块容器 */
.slider-container {
    margin: 20px 0;
}

.slider-track {
    position: relative;
    width: 300px;
    height: 40px;
    margin: 0 auto;
    background: #f7f9fa;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* 滑块填充进度 */
.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #91d5ff 0%, #40a9ff 100%);
    transition: background 0.3s ease;
}

/* 滑块提示文字 */
.slider-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8c8c8c;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 滑块按钮 */
.slider-button {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    z-index: 10;
}

.slider-button:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.slider-button:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.slider-button span {
    font-size: 18px;
    color: #1890ff;
    font-weight: bold;
}

/* 验证消息提示 */
.verification-message {
    margin-top: 15px;
    font-size: 13px;
    min-height: 20px;
    color: #ff4d4f;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .verification-container {
        min-width: auto;
        padding: 30px 20px;
    }

    .slider-track {
        width: 260px;
    }

    .verification-header h3 {
        font-size: 15px;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .slider-button {
        cursor: grab;
    }

    .slider-button:active {
        cursor: grabbing;
    }
}

/* 动画效果 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.slider-button.shake {
    animation: shake 0.3s ease;
}

/* 成功状态样式 */
.slider-track.success .slider-fill {
    background: #52c41a;
}

.slider-track.success .slider-text {
    color: #52c41a;
}

.slider-track.success .slider-button {
    border-color: #52c41a;
}

.slider-track.success .slider-button span {
    color: #52c41a;
}

/* 失败状态样式 */
.slider-track.failed .slider-button {
    border-color: #ff4d4f;
}
