/* ============== 滑块验证码弹窗样式 ==============  */
#slide-captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.captcha-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 1;
    width: 390px;
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.captcha-header span:first-child {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.captcha-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.captcha-close:hover {
    color: #333;
}

.captcha-body {
    margin-bottom: 15px;
}

/* 验证码图片容器 */
.captcha-image-container {
    position: relative;
    width: 350px;
    height: 200px;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.captcha-bg {
    display: block;
    width: 100%;
    height: 100%;
}

.captcha-puzzle {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
}

/* 滑块控制条 */
.slider-container {
    position: relative;
    width: 350px;
    height: 40px;
    background: #f7f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-text {
    color: #999;
    font-size: 14px;
    user-select: none;
}

.slider-button {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 40px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 1;
}

.slider-button:hover {
    background: #f0f0f0;
}

.slider-button.dragging {
    background: #00b4d2;
    border-color: #00b4d2;
}

.slider-button.dragging .slider-icon {
    color: #fff;
}

.slider-icon {
    font-size: 18px;
    color: #999;
    font-weight: bold;
}

/* 验证结果提示 */
.captcha-tips {
    min-height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.captcha-tips.success {
    color: #52c41a;
}

.captcha-tips.error {
    color: #f5222d;
}

/* 底部按钮 */
.captcha-footer {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.btn-refresh {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.btn-refresh:hover {
    color: #00b4d2;
    border-color: #00b4d2;
}

/* ============== 短信验证码登录表单样式 ============== */
#sms-login-container .btn-get-code {
    position: absolute;
    right: 0;
    top: 8px;
    height: 42px;
    line-height: 42px;
    padding: 0 15px;
    border: 1px solid #00b4d2;
    background: #fff;
    color: #00b4d2;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

#sms-login-container .btn-get-code:hover {
    background: #00b4d2;
    color: #fff;
}

#sms-login-container .btn-get-code:disabled {
    background: #f5f5f5;
    color: #999;
    border-color: #d9d9d9;
    cursor: not-allowed;
}

#sms-login-container .form_code input {
    width: 60%;
}

/* ============== 响应式布局 ============== */
@media screen and (max-width: 768px) {
    .captcha-content {
        width: 90%;
        max-width: 400px;
        padding: 15px;
    }
    
    .captcha-image-container,
    .slider-container {
        width: 100%;
    }
    
    .captcha-puzzle {
        width: 14%;
        height: auto;
    }
}
