/* 滑块容器样式 */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 20px auto;
}

.slider-wrapper {
    position: relative;
    width: 310px;
    height: 155px;
    margin: 0 auto 20px;
    border: 1px solid #e4e7eb;
    border-radius: 4px;
    /*overflow: hidden;*/
    background: #f7f9fa;
}

/* 滑块拼图样式 */
.block {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.slider-control {
    position: relative;
    text-align: center;
    width: 310px;
    height: 40px;
    line-height: 40px;
    margin: 0 auto;
    background: #f7f9fa;
    color: #45494c;
    border: 1px solid #e4e7eb;
    border-radius: 20px;
    user-select: none;
}

.slider-control.active {
    border-color: #1991FA;
}

.slider-control.success {
    border-color: #52CCBA;
}

.slider-control.fail {
    border-color: #f57a7a;
}

.slider-control.active .slider-track {
    height: 38px;
    top: -1px;
    border: 1px solid #1991FA;
}

.slider-control.success .slider-track {
    height: 38px;
    top: -1px;
    border: 1px solid #52CCBA;
    background-color: #52CCBA !important;
}

.slider-control.fail .slider-track {
    height: 38px;
    top: -1px;
    border: 1px solid #f57a7a;
    background-color: #f57a7a !important;
}

.slider-mask {
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
    border: 0 solid #1991FA;
    background: #D1E9FE;
    border-radius: 20px 0 0 20px;
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s linear;
    z-index: 2;
}

.slider-track:hover {
    background: #1991FA;
}

.slider-track:hover .slider-icon {
    filter: brightness(0) invert(1);
}

.slider-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.59,16.59L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.59Z' fill='%2345494c'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: filter 0.2s;
}

.slider-control.success .slider-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.slider-control.fail .slider-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.slider-text {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    z-index: 1;
}

.refresh-btn {
    position: absolute;
    right: -30px;
    top: -30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
}

.refresh-btn:hover {
    color: #1991FA;
}

.refresh-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}