/* 滑动拼图验证码组件样式（配合 slider-captcha.js） */
.sc-outer { width: 100%; overflow: hidden; }
.sc-canvas { width: 300px; }

.sc-stage {
    position: relative;
    width: 300px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f3f5;
}
.sc-bg { width: 300px; height: 150px; display: block; }
.sc-piece {
    position: absolute;
    left: 0;
    top: 0;
    width: 51px;
    height: 51px;
    z-index: 2;
    pointer-events: none;
}
.sc-status {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #909399;
    background: #f2f3f5;
    cursor: pointer;
}
.sc-status.sc-error { color: #f56c6c; }

.sc-bar {
    position: relative;
    width: 300px;
    height: 40px;
    margin-top: 10px;
    background: #f2f3f5;
    border: 1px solid #e4e7ed;
    border-radius: 20px;
}
.sc-bar-fill {
    position: absolute;
    left: 0;
    top: -1px;
    bottom: -1px;
    width: 0;
    background: #d1e7ff;
    border-radius: 20px;
}
.sc-bar-text {
    position: absolute;
    inset: 0;
    line-height: 38px;
    text-align: center;
    font-size: 13px;
    color: #909399;
    pointer-events: none;
}
.sc-bar-btn {
    position: absolute;
    left: 0;
    top: -1px;
    width: 42px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    color: #667eea;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.18);
    cursor: grab;
    touch-action: none;
}
.sc-bar-btn:active { cursor: grabbing; }

/* 回弹动画（仅在需要时由 JS 添加 sc-anim） */
.sc-bar-btn.sc-anim,
.sc-bar-fill.sc-anim,
.sc-piece.sc-anim { transition: left .2s ease, width .2s ease; }

/* 成功/失败态 */
.sc-outer.sc-success .sc-bar { border-color: #67c23a; }
.sc-outer.sc-success .sc-bar-fill { background: #c2e7b0; }
.sc-outer.sc-success .sc-bar-text { color: #67c23a; }
.sc-outer.sc-fail .sc-bar { border-color: #f56c6c; }
.sc-outer.sc-fail .sc-bar-fill { background: #fbc4c4; }
.sc-outer.sc-fail .sc-bar-text { color: #f56c6c; }
