/* 二维码生成器CSS */

/* 二维码相关样式 */
.qrcode-info-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 25px;
    border-radius: 15px;
    z-index: 99999;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease;
}

/* 【新增】更大的二维码容器样式 */
.qrcode-container.large {
    width: 140px !important;
    /* 容器比二维码大一些 */
    height: 140px !important;
}

/* 【新增】确保二维码图片显示正常 */
.qrcode-image.large {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
}

.qrcode-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 调试信息 - 确保二维码容器样式正确 */
.qrcode-container.debug {
    border: 1px dashed #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

/* 确保生成的二维码大小一致 */
#generatedQrcode canvas,
#generatedQrcode img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 点击效果 */
.qrcode-container:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}