/**
 * tianai-captcha 滑块验证码样式
 */
.tianai-captcha-wrapper {
    width: 310px;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    user-select: none;
    -webkit-user-select: none;
}

/* 背景图区域 */
.tianai-captcha-bg-area {
    position: relative;
    width: 100%;
    height: 155px;
    overflow: hidden;
    background: #f0f2f5;
}

.tianai-captcha-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    object-fit: fill;
}

/* 拼图条: 与背景图等高的竖条, 缺口块位于条内真实Y坐标处.
   必须绝对定位覆盖在背景图上(top:0/height:100%保持原始比例), 用left表示拖动量, 不能当作按钮小图标 */
.tianai-captcha-block-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    display: none;
    object-fit: fill;
    z-index: 1;
    pointer-events: none;
}

.tianai-captcha-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    background: rgba(240, 242, 245, 0.9);
}

/* 刷新按钮 */
.tianai-captcha-refresh {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    font-size: 16px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.tianai-captcha-refresh:hover {
    color: #333;
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

/* 滑动轨道 */
.tianai-captcha-track-bar {
    position: relative;
    width: 100%;
    height: 40px;
    background: #f7f9fa;
    border-top: 1px solid #e4e7ed;
}

.tianai-captcha-track-text {
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #999;
    font-size: 13px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: opacity 0.2s;
}

/* 滑动填充 */
.tianai-captcha-track-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;
    width: 0;
    background: linear-gradient(to right, #e8f5e9, #c8e6c9);
    z-index: 0;
    transition: width 0.05s linear;
}

.tianai-captcha-track-fill-success {
    background: linear-gradient(to right, #a5d6a7, #66bb6a) !important;
}

/* 滑块按钮 */
.tianai-captcha-slider-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.tianai-captcha-slider-btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tianai-captcha-slider-btn.tianai-captcha-dragging {
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
    border-color: #409eff;
}

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

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


