﻿body {
    overflow-x: hidden;
}

.block {
    position: absolute;
    left: 0;
    top: 0;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
}

.card-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

    .card-header:first-child {
        border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
    }

.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

.sliderContainer {
    position: relative;
    text-align: center;
    line-height: 40px;
    background: #f7f9fa;
    color: #45494c;
    border-radius: 2px;
}

.sliderbg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    background-color: #f7f9fa;
    height: 40px;
    border-radius: 2px;
    border: 1px solid #e6e8eb;
}

.sliderContainer_active .slider {
    top: -1px;
    border: 1px solid #1991FA;
}

.sliderContainer_active .sliderMask {
    border-width: 1px 0 1px 1px;
}

.sliderContainer_success .slider {
    top: -1px;
    border: 1px solid #52CCBA;
    background-color: #52CCBA !important;
}

.sliderContainer_success .sliderMask {
    border: 1px solid #52CCBA;
    border-width: 1px 0 1px 1px;
    background-color: #D2F4EF;
}

.sliderContainer_success .sliderIcon:before {
    content: "\f00c";
}

.sliderContainer_fail .slider {
    top: -1px;
    border: 1px solid #f57a7a;
    background-color: #f57a7a !important;
}

.sliderContainer_fail .sliderMask {
    border: 1px solid #f57a7a;
    background-color: #fce1e1;
    border-width: 1px 0 1px 1px;
}

.sliderContainer_fail .sliderIcon:before {
    content: "\f00d";
}

.sliderContainer_active .sliderText, .sliderContainer_success .sliderText, .sliderContainer_fail .sliderText {
    display: none;
}

.sliderMask {
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
    border: 0 solid #1991FA;
    background: #D1E9FE;
    border-radius: 2px;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background .2s linear;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider:hover {
        background: #1991FA;
    }

        .slider:hover .sliderIcon {
            background-position: 0 -13px;
        }

.sliderText {
    position: relative;
}

.sliderIcon {
}

.refreshIcon {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    margin: 6px;
    color: rgba(0,0,0,.25);
    font-size: 1rem;
    z-index: 5;
    transition: color .3s linear;
}

    .refreshIcon:hover {
        color: #6c757d;
    }

/* ==================== 滑块验证码弹窗样式 ==================== */
.lsd-captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.lsd-captcha-modal--active {
    display: flex;
}

.lsd-captcha-modal__content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 360px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lsd-captcha-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lsd-captcha-modal__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.lsd-captcha-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.lsd-captcha-modal__close:hover {
    background: #F3F4F6;
}

.lsd-captcha-modal__close svg {
    width: 20px;
    height: 20px;
    color: #9CA3AF;
}

.lsd-captcha-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#captcha-container {
    position: relative;
    border-radius: 4px;
    overflow: visible;
    padding-bottom: 10px;
}

.lsd-captcha-modal__footer {
    margin-top: 16px;
    text-align: center;
}

.lsd-captcha-modal__refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B7280;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 4px 8px;
}

.lsd-captcha-modal__refresh:hover {
    color: #0069EA;
}

.lsd-captcha-modal__refresh svg {
    width: 14px;
    height: 14px;
}

.lsd-captcha-modal__tip {
    margin-top: 12px;
    font-size: 12px;
    color: #9CA3AF;
}

/* 滑块容器在弹窗中的样式调整 */
.lsd-captcha-modal__body .sliderContainer {
    margin-top: 12px;
    border-radius: 4px;
    width: 310px !important;
    height: 40px;
    line-height: 40px;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 确保滑块文字可见 */
.lsd-captcha-modal__body .sliderText {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #45494c;
    font-size: 14px;
    z-index: 1;
}

/* 滑块图标样式 */
.lsd-captcha-modal__body .sliderIcon {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #1991FA;
}

.lsd-captcha-modal__body .slider:hover .sliderIcon {
    border-left-color: #fff;
}

/* 确保拼图块正确显示 */
.lsd-captcha-modal__body .block {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}

/* 确保滑块在最上层 */
.lsd-captcha-modal__body .slider {
    z-index: 20;
}

/* ElementUI Message 层级提升，确保在弹窗之上显示 */
.el-message {
    z-index: 10000 !important;
}
