/* 本地滑块行为验证码样式，与登录页深色主题保持一致 */
.slider-captcha {
    position: relative;
    user-select: none;
}

.slider-captcha-stage {
    position: relative;
    min-height: 120px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.slider-captcha-bg {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-captcha-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
    will-change: transform;
}

.slider-captcha-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #b7a3ff;
    font-size: 12px;
    text-align: center;
    background: rgba(12, 10, 18, 0.62);
}

.slider-captcha-refresh {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #d8c8ff;
    font-size: 11px;
    line-height: 1.4;
    cursor: pointer;
    background: rgba(12, 10, 18, 0.56);
}

.slider-captcha-refresh:hover {
    border-color: rgba(167, 139, 250, 0.6);
    color: #f3efff;
}

.slider-captcha-track {
    position: relative;
    height: 44px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    touch-action: none;
}

.slider-captcha-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.16), rgba(167, 139, 250, 0.38));
}

.slider-captcha-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 44px;
    color: #8d84a1;
    font-size: 11px;
    pointer-events: none;
}

.slider-captcha-handle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #160f28;
    font-size: 14px;
    cursor: grab;
    touch-action: none;
    background: linear-gradient(135deg, #d8c8ff 0%, #a78bfa 52%, #7c5cff 100%);
    box-shadow: 0 10px 24px rgba(124, 92, 255, 0.28);
}

.slider-captcha-handle:active {
    cursor: grabbing;
}

.slider-captcha-handle:focus-visible {
    outline: 2px solid rgba(216, 200, 255, 0.9);
    outline-offset: 2px;
}

.slider-captcha.is-checking .slider-captcha-handle,
.slider-captcha.is-success .slider-captcha-handle {
    cursor: default;
    pointer-events: none;
}

.slider-captcha.is-checking .slider-captcha-handle {
    opacity: 0.72;
}

.slider-captcha.is-success .slider-captcha-track {
    border-color: rgba(102, 214, 160, 0.52);
    background: rgba(102, 214, 160, 0.08);
}

.slider-captcha.is-success .slider-captcha-progress {
    background: linear-gradient(90deg, rgba(102, 214, 160, 0.2), rgba(102, 214, 160, 0.42));
}

.slider-captcha.is-success .slider-captcha-handle {
    color: #08251a;
    background: linear-gradient(135deg, #b8f5d6 0%, #66d6a0 100%);
    box-shadow: 0 10px 24px rgba(102, 214, 160, 0.24);
}

.slider-captcha.is-success .slider-captcha-text {
    color: #9fe8c2;
}

.slider-captcha.is-error .slider-captcha-track {
    border-color: rgba(255, 141, 155, 0.6);
}

.slider-captcha.is-error .slider-captcha-mask {
    color: #ffb3bc;
}

/* 弹层模式：登录提交时弹出 */
.slider-captcha-layer-body {
    width: 360px;
    max-width: 100%;
}

.layui-layer.drama-slider-layer {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #17131f;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.58);
}

.layui-layer.drama-slider-layer .layui-layer-title {
    height: 42px;
    padding: 0 16px;
    color: #f6f2ff;
    font-size: 13px;
    line-height: 42px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.layui-layer.drama-slider-layer .layui-layer-content {
    padding: 14px 16px 16px;
    background: transparent;
}

.slider-captcha-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.slider-captcha-cancel {
    padding: 4px 10px;
    border: 0;
    color: #8d84a1;
    font-size: 12px;
    cursor: pointer;
    background: transparent;
}

.slider-captcha-cancel:hover {
    color: #d8c8ff;
}
