/* 滑块验证码样式(自托管,与 slider-captcha-adapter.js 配套) */

.slider-captcha-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-captcha-box {
    width: 384px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    padding: 16px;
    box-sizing: border-box;
}

.slider-captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.slider-captcha-title {
    font-size: 15px;
    color: #333333;
    font-weight: 600;
}

.slider-captcha-close {
    font-size: 20px;
    line-height: 1;
    color: #999999;
    cursor: pointer;
    padding: 0 4px;
}

.slider-captcha-close:hover {
    color: #666666;
}

.slider-captcha-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f2f3f5;
    margin: 0 auto;
}

.slider-captcha-bg {
    display: block;
    /* 尺寸由 adapter 按弹层实际内容宽算好后写死,禁止被全局 img 规则二次压缩 */
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-captcha-template {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    max-width: none;
    user-select: none;
    -webkit-user-drag: none;
    /* 支持直接按住拼图块拖动:touch-action 必须为 none,
       否则移动端会先判定为页面滚动,touchend 提前触发导致拖动被截断 */
    cursor: grab;
    touch-action: none;
    /* 禁用移动端长按弹出的"存储图片"菜单 */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* 拼图本身带阴影,保证在浅色背景上也看得清 */
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.45));
}

.slider-captcha-template.is-dragging {
    cursor: grabbing;
}

.slider-captcha-track {
    position: relative;
    height: 40px;
    line-height: 40px;
    margin-top: 12px;
    border-radius: 4px;
    background: #f2f3f5;
    border: 1px solid #e4e7ed;
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
}

.slider-captcha-track-text {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #909399;
}

.slider-captcha-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #409eff;
    cursor: pointer;
    box-sizing: border-box;
}

.slider-captcha-handle:hover {
    border-color: #409eff;
}

.slider-captcha-tip {
    visibility: hidden;
    min-height: 18px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 18px;
    color: #f56c6c;
    text-align: center;
    /* 生成失败(含 1s 生成节流被拒)时点击提示可重试,避免停在旧图上无路可走 */
    cursor: pointer;
}
