.slider-container {
    position: relative;
    width: 320px;
    height: 195px;
    background: #f7f9fa;
    border: 1px solid #e4e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}
.slider-canvas-bg {
    position: absolute;
    width: 320px;
    height: 160px;
    left: 0;
    top: 0;
}
.slider-canvas-bg img {
    width: 100%;
    height: 100%;
    display: block;
}
.slider-bg {
    position: absolute;
    width: 40px;
    height: 38px;
    background: #3cbf79;
    border-radius: 2px;
    left: 0;
    top: 162px;
    z-index: 2;
}
.slider-text {
    position: absolute;
    width: 280px;
    height: 38px;
    left: 40px;
    top: 162px;
    text-align: center;
    line-height: 38px;
    color: #b1b5b9;
    font-size: 14px;
    user-select: none;
    z-index: 1;
    background: #f7f9fa;
}
.slider-btn {
    position: absolute;
    width: 40px;
    height: 38px;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 2px;
    left: 0;
    top: 162px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.slider-btn i {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 8px solid #666;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.slider-success .slider-bg {
    background: #3cbf79;
}
.slider-success .slider-btn {
    border-color: #52ccba;
}
.slider-success .slider-btn i {
    border-left-color: #fff;
}
.slider-success .slider-text {
    color: #fff;
    background: linear-gradient(90deg, #52ccba, #6ae2c8);
}
.slider-mask {
    position: absolute;
    width: 40px;
    height: 38px;
    background: rgba(0,0,0,0.2);
    display: none;
    border-radius: 2px;
    left: 0;
    top: 162px;
}
.slider-piece {
    position: absolute;
    width: 47px;
    height: 160px;
    left: 0;
    top: 0;
    background-repeat: no-repeat;
    background-size: 47px 160px;
}
.slider-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slider-loading-icon {
    width: 30px;
    height: 30px;
    border: 3px solid #e4e7eb;
    border-top: 3px solid #3cbf79;
    border-radius: 50%;
    animation: slider-spin 1s linear infinite;
}
.slider-refresh {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.3) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 4v6h-6'%3E%3C/path%3E%3Cpath d='M1 20v-6h6'%3E%3C/path%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'%3E%3C/path%3E%3C/svg%3E") no-repeat center center;
    background-size: 16px;
    cursor: pointer;
    border-radius: 2px;
    z-index: 5;
    transition: background-color 0.2s;
}
.slider-refresh:hover {
    background-color: rgba(0,0,0,0.6);
}
.slider-result {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 24px;
    line-height: 24px;
    text-align: left;
    text-indent: 10px;
    font-size: 12px;
    color: #fff;
    z-index: 8;
    display: none;
}
.slider-result.success {
    background: rgba(82, 204, 186, 0.8);
}
.slider-result.fail {
    background: rgba(217, 83, 79, 0.8);
}
.slider-container.fail .slider-btn {
    border-color: #d9534f;
    background-color: #d9534f;
}
.slider-container.fail .slider-bg {
    background-color: #d9534f;
}
.slider-container.success .slider-btn {
    border-color: #52ccba;
    background-color: #52ccba;
}
.slider-container.success .slider-bg {
    background-color: #52ccba;
}
/* 图标变换 */
.slider-container.success .slider-btn i {
    width: 12px;
    height: 6px;
    border: none;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-bottom: 3px;
}
.slider-container.fail .slider-btn i {
    width: 14px;
    height: 14px;
    border: none;
    background: transparent;
    position: relative;
}
.slider-container.fail .slider-btn i::before,
.slider-container.fail .slider-btn i::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
}
.slider-container.fail .slider-btn i::after {
    transform: rotate(-45deg);
}
@keyframes slider-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
