/* 基础样式 */

/* 触发按钮 */
.trigger-button {
    padding: 10px 20px;
    background-color: #4096ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    -webkit-transition: background-color 0.2s;
    transition: background-color 0.2s;
    margin: 5px;
}

.trigger-button:hover {
    background-color: #1677ff;
}

.trigger-button:active {
    background-color: #0958d9;
}

/* 弹窗样式 */
.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: -webkit-box;      /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
    display: -moz-box;         /* 老版本语法: Firefox (buggy) */
    display: -ms-flexbox;      /* 混合版本语法: IE 10 */
    display: -webkit-flex;     /* 新版本语法: Chrome 21+ */
    display: flex;             /* 新版本语法: Opera 12.1, Firefox 22+ */
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

.captcha-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.captcha-container {
    min-width: 260px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    position: relative;
    -webkit-transform: scale(0.9);
    -ms-transform: scale(0.9);
    transform: scale(0.9);
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
}

.captcha-modal.active .captcha-container {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}


.captcha-header {
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin-bottom: 15px;
    display: -webkit-box;      /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
    display: -moz-box;         /* 老版本语法: Firefox (buggy) */
    display: -ms-flexbox;      /* 混合版本语法: IE 10 */
    display: -webkit-flex;     /* 新版本语法: Chrome 21+ */
    display: flex;             /* 新版本语法: Opera 12.1, Firefox 22+ */
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.captcha-header p{
    margin: 0;
    padding: 0;    
}

.captcha-close {
    position: absolute;
    top: 15px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.captcha-close::before,
.captcha-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #999;
}

.captcha-close::before {
    -webkit-transform: translateY(-50%) rotate(45deg);
    -ms-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
}

.captcha-close::after {
    -webkit-transform: translateY(-50%) rotate(-45deg);
    -ms-transform: translateY(-50%) rotate(-45deg);
    transform: translateY(-50%) rotate(-45deg);
}

.captcha-close:hover::before,
.captcha-close:hover::after {
    background-color: #666;
}

/* 图片区域 */
.captcha-image-container {
    position: relative;
    width: 260px;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.captcha-bg-image {
    width: 260px;
    height: 150px;
    -o-object-fit: cover;
    object-fit: cover;
}

.captcha-slider {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: 100% 100%;
    /*border: 2px solid #4096ff;*/
    border-radius: 4px;
    cursor: pointer;
    /* background-size: 260px 150px; */
    background-repeat: no-repeat;
    box-shadow: 0 0 8px rgba(64, 150, 255, 0.3);
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    z-index: 10;
    /* will-change 属性：现代浏览器不需要前缀 */
    will-change: transform;
    
    /* transition 属性：添加浏览器前缀 */
    -webkit-transition: -webkit-transform 0.05s ease-out;
    -moz-transition: -moz-transform 0.05s ease-out;
    -o-transition: -o-transform 0.05s ease-out;
    transition: transform 0.05s ease-out;
    
    /* transform 属性：添加浏览器前缀 */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.captcha-slider:hover {
    box-shadow: 0 0 12px rgba(64, 150, 255, 0.5);
}

.captcha-slider:active {
    box-shadow: 0 0 16px rgba(64, 150, 255, 0.7);
}

/* 滑块条 */
.captcha-slider-bar {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 15px;
    margin-bottom: 10px;
    overflow: hidden;
}

.captcha-slider-btn-line{
    width: 100%;
    height: 11.5px;
    background-color: #eaeaea;
    border-radius: .25rem;
    position: relative;
    box-sizing: border-box;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.captcha-slider-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 30px;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    display: -webkit-box;      /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
    display: -moz-box;         /* 老版本语法: Firefox (buggy) */
    display: -ms-flexbox;      /* 混合版本语法: IE 10 */
    display: -webkit-flex;     /* 新版本语法: Chrome 21+ */
    display: flex;             /* 新版本语法: Opera 12.1, Firefox 22+ */
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    background: url(../images/hk-bot.png) center center no-repeat;
    background-size: 100% 100%;
    z-index: 2;
    /* will-change 属性：现代浏览器不需要前缀 */
    will-change: transform;
    
    /* transition 属性：添加浏览器前缀 */
    -webkit-transition: -webkit-transform 0.05s ease-out;
    -moz-transition: -moz-transform 0.05s ease-out;
    -o-transition: -o-transform 0.05s ease-out;
    transition: transform 0.05s ease-out;
    
    /* transform 属性：添加浏览器前缀 */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

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

.captcha-slider-btn:active {
    background-color: #e6f4ff;
}

.captcha-btn-line{
    height: 11.5px;
    background-color: #eaeaea;
    border-radius: 0.5rem;
    position: relative;
    box-sizing: border-box;
    left: 0;
    /* top: 50%; */
    transform: translateY(-50%);
    z-index: 1;
}

.captcha-slider-progress {
    display: none;
    position: absolute;
    left: 0;
    top: 5px;
    height: 20px;
    background-color: #eeeeee;
    width: 100%;
    border-radius: 20px;
    z-index: 1;
}

.captcha-slider-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: -webkit-box;      /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
    display: -moz-box;         /* 老版本语法: Firefox (buggy) */
    display: -ms-flexbox;      /* 混合版本语法: IE 10 */
    display: -webkit-flex;     /* 新版本语法: Chrome 21+ */
    display: flex;             /* 新版本语法: Opera 12.1, Firefox 22+ */
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    color: #999;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 0;
}

.captcha-success {
    color: #52c41a;
    z-index: 30;
}

.captcha-fail {
    color: #ff4d4f;
}

/* 刷新按钮 */
.captcha-refresh {
    display: inline-block;
    width: 17px;
    height: 15px;
    background: url(../images/reload.png) center center no-repeat;
    background-size: 100% 100%;
    margin-left: 3px;    
}

/* 加载状态 */
.captcha-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    
    display: -webkit-box;      /* 老版本语法: Safari, iOS, Android browser, older WebKit browsers. */
    display: -moz-box;         /* 老版本语法: Firefox (buggy) */
    display: -ms-flexbox;      /* 混合版本语法: IE 10 */
    display: -webkit-flex;     /* 新版本语法: Chrome 21+ */
    display: flex;             /* 新版本语法: Opera 12.1, Firefox 22+ */
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    /* 老版本语法 */
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    
    /* 混合版本语法 */
    -ms-flex-direction: column;
    
    /* 新版本语法 */
    -webkit-flex-direction: column;
    flex-direction: column;
    z-index: 30;
}

.captcha-loading .captcha-load {
    width: 30px;
    margin-bottom: 6px;
}
.captcha-loading p{
    font-size: 13px;
    font-weight: normal;
    margin: 0;
    color: #ffffff;
    padding: 0;
    text-align: center;
}