/* 滑块验证码组件样式（发送短信防刷用，独立 sc- 前缀，不依赖 jigsaw.css 旧样式） */
.sc-wrap {
    margin: 0 auto;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}
.sc-img-area {
    position: relative;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    overflow: hidden;
    background: #f7f9fa;
}
.sc-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.sc-slider {
    position: absolute;
    left: 0;
    top: 0;
    cursor: grab;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.4));
}
.sc-slider:active {
    cursor: grabbing;
}
.sc-refresh {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    background: rgba(255,255,255,0.85) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'><path d='M17.65 6.35A7.958 7.958 0 0012 4a8 8 0 108 8h-2a6 6 0 11-6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/></svg>") center/14px no-repeat;
    border-radius: 50%;
    z-index: 5;
    transition: background .2s;
}
.sc-refresh:hover {
    background: rgba(255,255,255,1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231991FA'><path d='M17.65 6.35A7.958 7.958 0 0012 4a8 8 0 108 8h-2a6 6 0 11-6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/></svg>") center/14px no-repeat;
}
.sc-tip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 13px;
    z-index: 6;
}
.sc-tip-fail {
    background: rgba(245,122,122,0.95);
    color: #fff;
}
.sc-bar {
    position: relative;
    height: 40px;
    margin-top: 12px;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    background: #f7f9fa;
    overflow: hidden;
}
.sc-bar-mask {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 42px;
    background: #d1e9fe;
    border-right: 1px solid #1991FA;
}
.sc-bar-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 100%;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    box-shadow: 0 0 3px rgba(0,0,0,0.15);
    cursor: grab;
    z-index: 3;
    text-align: center;
    transition: background .15s;
}
.sc-bar-slider:active {
    cursor: grabbing;
}
.sc-bar-icon {
    display: inline-block;
    margin-top: 11px;
    color: #9aa3af;
    font-size: 16px;
    font-weight: bold;
    transition: color .15s;
}
.sc-bar-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    line-height: 40px;
    text-align: center;
    color: #8a94a6;
    font-size: 13px;
    z-index: 2;
}

/* 拖动中 */
.sc-bar-active .sc-bar-slider {
    background: #1991FA;
    border-color: #1991FA;
}
.sc-bar-active .sc-bar-icon {
    color: #fff;
}

/* 成功 */
.sc-bar-success .sc-bar-slider {
    background: #52CCBA;
    border-color: #52CCBA;
}
.sc-bar-success .sc-bar-icon {
    color: #fff;
}
.sc-bar-success .sc-bar-mask {
    background: #d2f4ef;
    border-right-color: #52CCBA;
}
.sc-bar-success .sc-bar-text {
    color: #52CCBA;
}
.sc-bar-success .sc-bar-slider .sc-bar-icon:before {
    content: "\2713";
}

/* 失败 */
.sc-bar-fail .sc-bar-slider {
    background: #f57a7a;
    border-color: #f57a7a;
}
.sc-bar-fail .sc-bar-icon {
    color: #fff;
}
.sc-bar-fail .sc-bar-mask {
    background: #fce1e1;
    border-right-color: #f57a7a;
}
.sc-bar-fail .sc-bar-text {
    color: #f57a7a;
}
.sc-bar-success .sc-bar-text,
.sc-bar-fail .sc-bar-text {
    z-index: 4;
}
