
/* 验证码面板样式 */
.panel {
    background: rgba(30,30,40,0.95);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    color: #fff;
    min-width: 320px;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.panel-tip {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}
.panel-actions {
    display: flex;
    gap: 8px;
}

.toast {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    min-height: 20px;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.shake {
    animation: shake 0.4s ease-in-out;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: background 0.2s; */
}
.icon-btn:hover {
    background: rgba(255,255,255,0.2);
}
.captcha {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.captcha-master {
    display: block;
    width: 100%;
    height: auto;
}


    .captcha-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .captcha-modal-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        /* backdrop-filter: blur(4px); */
    }
    .captcha-modal-content {
        position: relative;
        z-index: 1;
        background: transparent;
        border-radius: 12px;
        padding: 20px;
    }

/* 旋转验证码特有样式 */
.rotate-stage {
    position: relative;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: #000;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.rotate-master {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.rotate-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 2;
    transform-origin: center;
}

/* 滑块公共样式 (兼容slide和rotate) */
.slider {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    margin-top: 15px;
    user-select: none;
    -webkit-user-select: none;
}
.slider-track {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: transparent;
}
.slider-mask {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(42, 101, 255, 0.2);
    border-radius: 20px 0 0 20px;
}
.slider-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 40px;
    background: #2a65ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: white;
    box-shadow: 0 0 10px rgba(42, 101, 255, 0.4);
    z-index: 3;
}
.slider-btn:active {
    cursor: grabbing;
}
.slider-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    pointer-events: none;
}
.slider.success .slider-btn {
    background: #46f29b;
    box-shadow: 0 0 10px rgba(70, 242, 155, 0.4);
}
.slider.success .slider-mask {
    background: rgba(70, 242, 155, 0.2);
}
.slider.fail .slider-btn {
    background: #ff6b6b;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
}
.slider.fail .slider-mask {
    background: rgba(255, 107, 107, 0.2);
}