/* 扫码上传组件样式 */

.qrcode-wrapper {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    margin: 0 auto;
}

.qrcode-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qrcode-title i {
    color: #165DFF;
    font-size: 18px;
}

.qrcode-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 12px;
}

.qrcode-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.qrcode-tips {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 8px;
}

.qrcode-status {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
    padding: 8px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qrcode-status i {
    font-size: 16px;
}

/* 扫码按钮样式 */
.scan-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.scan-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.scan-upload-btn i {
    font-size: 16px;
}

/* 扫码弹窗样式 */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.qrcode-modal.show {
    display: flex;
}

.qrcode-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.qrcode-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 18px;
}

.qrcode-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .qrcode-wrapper {
        max-width: 100%;
        padding: 15px;
    }

    .qrcode-modal-content {
        max-width: 320px;
        padding: 20px;
    }

    .qrcode-image {
        padding: 8px;
    }
}

/* 加载动画 */
.qrcode-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: qrcodeSpinner 0.8s linear infinite;
}

@keyframes qrcodeSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* 成功/错误状态样式 */
.qrcode-status.success {
    color: #4CAF50;
}

.qrcode-status.error {
    color: #f44336;
}
