/* 验证码弹窗样式 */
.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.captcha-modal.show {
    display: flex;
}

.captcha-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.captcha-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.captcha-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.captcha-hint {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.captcha-hint i {
    color: #ff4081;
    font-size: 16px;
}

.captcha-slider {
    position: relative;
    width: 100%;
    height: 50px;
    background-color: #f5f5f5;
    border-radius: 25px;
    border: 2px solid #ddd;
    overflow: hidden;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.captcha-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff4081 0%, #f50057 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 25px;
}

.captcha-slider-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 2px solid #ff4081;
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ff4081;
    transition: all 0.3s ease;
    user-select: none;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.captcha-slider-handle:active {
    cursor: grabbing;
    transform: translateY(-50%) scale(1.1);
}

.captcha-slider-handle.dragging {
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.3);
}

.captcha-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
    pointer-events: none;
    z-index: 5;
    white-space: nowrap;
}

.captcha-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.captcha-progress-start {
    color: #999;
}

.captcha-progress-end {
    color: #ff4081;
    font-weight: 600;
}

.captcha-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.captcha-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.captcha-btn-primary {
    background-color: #ff4081;
    color: white;
}

.captcha-btn-primary:hover {
    background-color: #f50057;
}

.captcha-btn-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.captcha-btn-secondary:hover {
    background-color: #e5e5e5;
}

.captcha-success {
    color: #4caf50;
    font-weight: 600;
}

.captcha-error {
    color: #f44336;
    font-weight: 600;
}

.captcha-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.captcha-loading.show {
    display: flex;
}

.captcha-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff4081;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .captcha-container {
        padding: 20px;
        margin: 20px;
    }
    
    .captcha-hint {
        font-size: 12px;
        padding: 10px 12px;
    }
} 