/* 二维码模态框 */
.qr-code-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.qr-code-modal.active {
    display: flex;
}

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

.qr-code-content {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.98), rgba(13, 18, 41, 0.98));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0, 212, 255, 0.4);
}

@keyframes slideIn {
    from {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.qr-code-content .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-content .close-btn:hover {
    background: rgba(255, 45, 146, 0.2);
    border-color: #ff2d92;
    color: #ff2d92;
    transform: rotate(90deg) scale(1.1);
}

.qr-code-content h3 {
    font-size: 24px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #00d4ff, #7b2fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-code-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    object-fit: contain;
    display: block;
}

/* 响应式 - 二维码模态框 */
@media (max-width: 768px) {
    .qr-code-content {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .qr-code-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .qr-code-content img {
        max-height: 60vh;
        border-radius: 10px;
    }

    .qr-code-content .close-btn {
        width: 36px;
        height: 36px;
        font-size: 28px;
        top: 12px;
        right: 12px;
    }
}
