#qrCodeContainer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#qrCodeContainer.active {
    display: flex; /* 激活时显示 */
}

#qrCodeContainer > div {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: scale(1);
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
}

/* 关闭按钮样式 */
#closeQrBtn {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background-color: white;
    color: #6b7280;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

#closeQrBtn:hover {
    color: #4b5563;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.qr-code-wrapper {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto; /* 居中显示 */
}

.qr-code-wrapper img {
    display: block;
    width: 100%;
    max-width: 16rem;
    height: auto;
    margin: 0 auto;
    border-radius: 0.375rem;
}

.qr-footer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}