/* 滑块验证码样式 */
.slider-captcha-container {
    position: relative;
    width: 320px;
    margin: 10px 0;
    -ms-user-select: none;
    user-select: none;
    font-family: "Microsoft YaHei", sans-serif;

}
.centerContainer {
  display: flex;
  justify-content: center; /* 水平居中 */

}

/* 弹窗内居中 */
#sliderCaptchaModal .modal-body #slider-captcha-modal,
#slider-captcha-modal {
  width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.slider-captcha-container * {
    box-sizing: border-box;
}

/* 图片容器 */
.slider-captcha-canvas {
    position: relative;
    width: 320px;
    height: 155px;
    border-radius: 4px;
    overflow: hidden;
    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: #fff; /* IE8 fallback */
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 0.9; /* IE8 fallback */
    filter: alpha(opacity=90); /* IE8 fallback */
    z-index: 20;
}

.slider-captcha-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #409eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute; /* IE8 fallback centering */
    left: 50%;
    top: 50%;
    margin-left: -15px;
    margin-top: -15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 刷新按钮 */
.slider-captcha-refresh {
    position: absolute;
    top: 5px;
    right: 5px;
   /* width: 28px;*/
   /* height: 28px;*/
    background-color: #000; /* IE8 fallback */
     background: rgba(0, 0, 0, 0.5);

    border-radius: 4px;
    cursor: pointer;
    display: -ms-flexbox;
    /*display: flex;
    align-items: center;
    justify-content: center;*/
    padding: 2px 5px 5px 5px;
    z-index: 15;
    transition: background 0.3s;
    /* line-height: 28px; /* IE8 fallback */
    text-align: center; /* IE8 fallback */
    opacity: 0.9; /* IE8 fallback */
    filter: alpha(opacity=90); /* IE8 fallback */
}

.slider-captcha-refresh:hover {
    background-color: #000; /* IE8 fallback */
    background: rgba(0, 0, 0, 0.7);
}

.slider-captcha-refresh:before {
    content: "";
    width: 16px;
    height: 16px;
    display: none;
}

.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;
    border-radius: 4px;
    overflow: hidden;
}

/* 滑动条背景（进度） */
.slider-captcha-bar-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: #67c23a; /* IE8 fallback */
    background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
    transition: width 0s;
}

/* 滑动条文字提示 */
.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;
   /* width: 40px;*//**/
    height: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: -ms-flexbox;
    padding:6px 9px;
   /* display: flex;
    align-items: center;
    justify-content: center;*/
    z-index: 5;
    transition: background 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /*line-height: 40px;  IE8 fallback /**/
    text-align: center; /* IE8 fallback */
}

.slider-captcha-btn:hover {
    background: #fafafa;
}

/*.slider-captcha-btn:before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3Cpath d='M15.59 16.59L20.17 12l-4.58-4.59L17 6l6 6-6 6-1.41-1.41z' transform='translate(-6, 0)'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    color: #666;
    display: inline-block;
    text-align: center;
    line-height: 20px;
    font-size: 0;
}*/

/* 验证成功状态 */
.slider-captcha-container.success .slider-captcha-bar-bg {
    width: 100% !important;
    background-color: #67c23a; /* IE8 fallback */
    background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
}

.slider-captcha-container.success .slider-captcha-btn {
    background: #67c23a;
    border-color: #67c23a;
}

.slider-captcha-container.success .slider-captcha-btn:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.slider-captcha-container.success .slider-captcha-bar-text {
    color: #fff;
}

/* 验证失败状态 */
.slider-captcha-container.fail .slider-captcha-bar-bg {
    background: linear-gradient(135deg, #f56c6c 0%, #f78989 100%);
}

.slider-captcha-container.fail .slider-captcha-btn {
    background: #f56c6c;
    border-color: #f56c6c;
    animation: shake 0.5s;
}

.slider-captcha-container.fail .slider-captcha-btn:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
}

@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;
}


