/* 验证模态框 */
.captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.captcha-modal.show {
    display: flex;
}

.captcha-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.captcha-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.captcha-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.captcha-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-close:hover {
    color: #333;
}

.captcha-body {
    padding: 20px;
}

.captcha-footer {
    padding: 16px 20px;
    border-top: 1px solid #e4e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.captcha-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.captcha-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.captcha-btn-cancel:hover {
    background: #e8e8e8;
}

.captcha-btn-verify {
    background: #1991FA;
    color: white;
}

.captcha-btn-verify:hover {
    background: #1478d6;
}

.captcha-btn-verify:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 验证状态提示 */
.captcha-hint {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

.captcha-hint.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.captcha-hint.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}

/* 加载状态 */
.captcha-loading {
    text-align: center;
    padding: 40px 20px;
}

.captcha-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1991FA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 模态框居中样式 */
.captcha-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.captcha-modal.show {
    display: block;
    opacity: 1;
}

.captcha-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 350px;
    max-width: 23%;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.captcha-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.captcha-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-close:hover {
    color: #343a40;
}

.captcha-body {
    padding: 28px;
}

/* 滑块容器样式 */
.slider-container {
    margin: 0 auto;
    width: fit-content;
}

/* 提示信息样式 */
.captcha-hint {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.captcha-hint.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.captcha-hint.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}