/* ==================== 二维码弹窗 ==================== */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.qr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.25s ease;
}

.qr-modal-content {
    position: relative;
    background-color: #fff;
    padding: 32px 28px 24px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    animation: qrSlideUp 0.3s ease;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    text-align: center;
    z-index: 1;
}

/* 右上角 × 关闭 */
.qr-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 24px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.qr-modal-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

/* 标题 */
.qr-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 18px;
}

/* 二维码容器 */
.qr-code-container-single {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

/* 二维码包裹层 — 蓝青色呼吸式闪烁边框 */
.qr-code-wrapper {
    display: inline-block;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #4facfe;
    animation: qrBorderGlow 2.5s ease-in-out infinite;
}

@keyframes qrBorderGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(79,172,254,0.3);
        border-color: #4facfe;
    }
    50% {
        box-shadow: 0 0 16px rgba(0,242,254,0.5);
        border-color: #00f2fe;
    }
}

.qr-code-wrapper img {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 4px;
}

/* 引导文案 */
.qr-modal-guide {
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.9;
}

.qr-modal-guide p {
    margin: 0;
}

/* 底部关闭按钮 */
.qr-modal-close-btn {
    display: inline-block;
    padding: 8px 32px;
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.qr-modal-close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* ==================== 内嵌二维码 ==================== */
.inline-qr-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.inline-qr-item {
    text-align: center;
}

.inline-qr-wrapper {
    display: inline-block;
    padding: 5px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #4facfe;
    animation: qrBorderGlowInline 3s ease-in-out infinite;
}

@keyframes qrBorderGlowInline {
    0%, 100% {
        box-shadow: 0 0 6px rgba(79,172,254,0.25);
        border-color: #4facfe;
    }
    50% {
        box-shadow: 0 0 12px rgba(0,242,254,0.4);
        border-color: #00f2fe;
    }
}

.inline-qr-wrapper img {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 4px;
}

.inline-qr-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

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

@keyframes qrSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式 ==================== */
@media (max-width: 600px) {
    .qr-modal-content {
        padding: 24px 16px 20px;
    }

    .qr-code-wrapper img {
        width: 130px;
        height: 130px;
    }

    .qr-modal-title {
        font-size: 18px;
    }

    .inline-qr-area {
        gap: 10px;
    }

    .inline-qr-wrapper img {
        width: 100px;
        height: 100px;
    }
}
