/* 滑块验证码样式 - IE兼容版本 */
.slider-captcha-container {
    position: relative;
    width: 320px;
    margin: 10px 0;
    -ms-user-select: none;
    user-select: none;
    font-family: "Microsoft YaHei", sans-serif;
}

.centerContainer {
    text-align: center;
}

/* 弹窗内居中 */
#sliderCaptchaModal .modal-body #slider-captcha-modal,
#slider-captcha-modal {
    width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.slider-captcha-container * {
    box-sizing: border-box;
}

/* 图片容器 */
.slider-captcha-canvas {
    position: relative;
    width: 320px;
    height: 155px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

/* 背景图片 */
.slider-captcha-canvas .slider-captcha-bg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 滑块图片（拼图块） */
.slider-captcha-block {
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    z-index: 10;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
}

/* 加载中 */
.slider-captcha-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.9;
    filter: alpha(opacity=90);
    z-index: 20;
    text-align: center;
}

.slider-captcha-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #409eff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -15px;
    margin-top: -15px;
}

/* IE10+ animation */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .slider-captcha-loading-spinner {
        animation: spin 1s linear infinite;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 刷新按钮 */
.slider-captcha-refresh {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #777;
    padding: 2px 5px;
    z-index: 15;
    opacity: 0.9;
    filter: alpha(opacity=90);
    text-align: center;
    cursor: pointer;
}

.slider-captcha-refresh:hover {
    background-color: #555;
}

.slider-captcha-refresh-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

/* 滑动条容器 */
.slider-captcha-bar {
    position: relative;
    width: 320px;
    height: 40px;
    margin-top: 10px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

/* 滑动条背景（进度） */
.slider-captcha-bar-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #67c23a;
}

/* 滑动条文字提示 */
.slider-captcha-bar-text {
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

/* 滑块按钮 */
.slider-captcha-btn {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    padding: 6px 9px;
    z-index: 5;
    text-align: center;
}

.slider-captcha-btn:hover {
    background: #fafafa;
}

/* 验证成功状态 */
.slider-captcha-container.success .slider-captcha-bar-bg {
    width: 100% !important;
    background-color: #67c23a;
}

.slider-captcha-container.success .slider-captcha-btn {
    background: #67c23a;
    border-color: #67c23a;
}

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

/* 验证失败状态 */
.slider-captcha-container.fail .slider-captcha-bar-bg {
    background-color: #f56c6c;
}

.slider-captcha-container.fail .slider-captcha-btn {
    background: #f56c6c;
    border-color: #f56c6c;
}

/* IE10+ 失败动画 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .slider-captcha-container.fail .slider-captcha-btn {
        animation: shake 0.5s;
    }
}

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

/* 禁用状态 */
.slider-captcha-container.disabled .slider-captcha-btn {
    cursor: not-allowed;
    opacity: 0.6;
    filter: alpha(opacity=60);
}
