* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    text-align: center;
}



#showQrCode:hover {
    background-color: #f0f0f0;
}

/* 灰屏背景 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 弹窗 */
.qr-popup {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    font-size: 20px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #cc0000;
}

/* QR Code 样式 */
.qr-code {
    max-width: 100%;
    height: auto;
}

/* 手机和PC端响应式 */
@media (max-width: 768px) {
    .qr-popup {
        width: 55%;
    }

    .close-btn {
        top: -5px;
        right: -5px;
    }
}

@media (min-width: 769px) {
    .qr-popup {
        width: 300px;
    }
}
