/* 滑动验证组件样式 */

.slider-captcha-container {
    width: 100%;
    max-width: 300px;
    user-select: none;
}

.captcha-puzzle {
    position: relative;
    width: 280px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.captcha-puzzle .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.captcha-puzzle .slider-piece {
    position: absolute;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    transition: filter 0.1s;
}

.captcha-puzzle .slider-piece:hover {
    filter: brightness(1.1);
}

.captcha-puzzle .slider-piece img {
    width: 100%;
    height: 100%;
}

.captcha-puzzle .status-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    z-index: 20;
}

.captcha-puzzle .status-overlay.success {
    background: rgba(34, 197, 94, 0.85);
    color: white;
}

.captcha-puzzle .status-overlay.failed {
    background: rgba(239, 68, 68, 0.85);
    color: white;
}

.captcha-puzzle .status-overlay.loading {
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
}

.slider-track {
    position: relative;
    height: 40px;
    background: #f3f4f6;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.slider-track.verified {
    background: #dcfce7;
    border-color: #22c55e;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, #6366f1, #818cf8);
    border-radius: 4px 0 0 4px;
    transition: width 0.05s;
}

.slider-track.verified .slider-fill {
    background: linear-gradient(to right, #22c55e, #4ade80);
}

.slider-thumb {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6b7280;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s, box-shadow 0.1s;
    z-index: 10;
}

.slider-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.slider-thumb:active {
    transform: scale(0.95);
}

.slider-track.verified .slider-thumb {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

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

.refresh-btn {
    margin-top: 10px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    transition: all 0.2s;
}

.refresh-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
