/* 遮罩层 */
.ey-slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* 弹窗 */
.ey-slider-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 320px;
    overflow: hidden;
}

.ey-slider-modal-title {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ey-slider-close {
    cursor: pointer;
    font-size: 20px;
    color: #999;
    line-height: 1;
}

.ey-slider-close:hover {
    color: #333;
}

.ey-slider-modal-body {
    padding: 16px;
}

/* 拼图区域 */
.ey-slider-puzzle {
    position: relative;
    width: 280px;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ey-slider-puzzle-gap {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    border: 2px dashed rgba(255,255,255,0.5);
}

.ey-slider-puzzle-block {
    position: absolute;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    left: 0;
}

/* 滑动轨道 */
.ey-slider-track {
    position: relative;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    border: 1px solid #ddd;
    user-select: none;
}

.ey-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px;
}

.ey-slider-thumb {
    position: absolute;
    top: 2px;
    left: 0;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #667eea;
    z-index: 2;
}

.ey-slider-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
}

/* 成功状态 */
.ey-slider-success .ey-slider-fill {
    background: linear-gradient(90deg, #52c41a, #73d13d) !important;
}

.ey-slider-success .ey-slider-thumb {
    background: #52c41a !important;
    color: #fff !important;
}

.ey-slider-success .ey-slider-hint {
    color: #52c41a !important;
}

/* 失败状态 */
.ey-slider-fail .ey-slider-fill {
    background: linear-gradient(90deg, #ff4d4f, #ff7875) !important;
}

.ey-slider-fail .ey-slider-thumb {
    background: #ff4d4f !important;
    color: #fff !important;
}

.ey-slider-fail .ey-slider-hint {
    color: #ff4d4f !important;
}
