/* =============================================
   网盘下载弹窗样式 - 扫码版（无直链）
   闪烁边框：2秒周期蓝紫渐变，border-color + box-shadow呼吸
   ============================================= */

/* 模态弹窗遮罩 */
.qr-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.qr-modal {
    background: #ffffff;
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.qr-modal-overlay.active .qr-modal {
    transform: translateY(0) scale(1);
}

/* 关闭按钮 */
.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.25s ease;
    z-index: 10;
    line-height: 1;
}

.qr-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #333;
    transform: rotate(90deg);
}

/* 弹窗头部 */
.qr-modal-header {
    padding: 32px 32px 0;
    text-align: center;
}

.qr-modal-header .qr-modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.qr-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

/* 分隔线 */
.qr-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #4a90d9, #357abd);
    border-radius: 3px;
    margin: 14px auto 0;
}

/* 安全标签 */
.qr-safety-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 32px 16px;
    margin: 0;
}

.qr-safety-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(39, 174, 96, 0.08);
    color: #27ae60;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 二维码区域 */
.qr-modal-qr-section {
    padding: 24px 32px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-code-wrapper {
    position: relative;
    padding: 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.02);
}

/* ========== 柔和闪烁边框动画 - 2秒周期蓝紫渐变 ========== */
/* border-color 在蓝色(#4a90d9)和紫色(#8a2be2)之间过渡 */
/* box-shadow 微弱呼吸，不刺眼 */

@keyframes qrBorderPulse {
    0%, 100% {
        border-color: rgba(74, 144, 217, 0.45);
        box-shadow: 0 0 8px rgba(74, 144, 217, 0.10);
    }
    25% {
        border-color: rgba(106, 94, 210, 0.45);
        box-shadow: 0 0 14px rgba(106, 94, 210, 0.15);
    }
    50% {
        border-color: rgba(138, 43, 226, 0.45);
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.12);
    }
    75% {
        border-color: rgba(106, 94, 210, 0.45);
        box-shadow: 0 0 14px rgba(106, 94, 210, 0.15);
    }
}

@keyframes qrBorderPulseQuark {
    0%, 100% {
        border-color: rgba(74, 144, 217, 0.45);
        box-shadow: 0 0 8px rgba(74, 144, 217, 0.10);
    }
    25% {
        border-color: rgba(106, 94, 210, 0.45);
        box-shadow: 0 0 14px rgba(106, 94, 210, 0.15);
    }
    50% {
        border-color: rgba(138, 43, 226, 0.45);
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.12);
    }
    75% {
        border-color: rgba(106, 94, 210, 0.45);
        box-shadow: 0 0 14px rgba(106, 94, 210, 0.15);
    }
}

@keyframes qrBorderPulseBaidu {
    0%, 100% {
        border-color: rgba(74, 144, 217, 0.45);
        box-shadow: 0 0 8px rgba(74, 144, 217, 0.10);
    }
    25% {
        border-color: rgba(106, 94, 210, 0.45);
        box-shadow: 0 0 14px rgba(106, 94, 210, 0.15);
    }
    50% {
        border-color: rgba(138, 43, 226, 0.45);
        box-shadow: 0 0 10px rgba(138, 43, 226, 0.12);
    }
    75% {
        border-color: rgba(106, 94, 210, 0.45);
        box-shadow: 0 0 14px rgba(106, 94, 210, 0.15);
    }
}

.qr-code-border {
    padding: 12px;
    background: #ffffff;
    border-radius: 16px;
    display: inline-block;
    border: 3px solid rgba(74, 144, 217, 0.45);
    animation: qrBorderPulse 2s ease-in-out infinite;
}

.qr-code-border.quark {
    border-color: rgba(74, 144, 217, 0.45);
    animation-name: qrBorderPulseQuark;
}

.qr-code-border.baidu {
    border-color: rgba(74, 144, 217, 0.45);
    animation-name: qrBorderPulseBaidu;
}

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

/* 引导文案 */
.qr-modal-qr-section .qr-hint {
    font-size: 0.9rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.9;
    max-width: 340px;
    margin: 0 auto;
}

.qr-modal-qr-section .qr-hint strong {
    color: #1a1a2e;
}

.qr-modal-qr-section .qr-hint .qr-hint-sub {
    display: inline-block;
    font-size: 0.84rem;
    color: #666;
    margin-top: 2px;
}

/* 弹窗按钮区（仅保留关闭按钮） */
.qr-modal-actions {
    padding: 0 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.qr-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.qr-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.qr-modal-btn:active {
    transform: translateY(0);
}

.qr-modal-btn.outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #5a6c7d;
    max-width: 260px;
}

.qr-modal-btn.outline:hover {
    background: #f8f9fa;
    border-color: #cbd5e0;
}

/* =============================================
   页面内嵌二维码（120px，带闪烁边框，无直链按钮）
   ============================================= */

.inline-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    margin: 10px 0;
    background: rgba(74, 144, 217, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(74, 144, 217, 0.08);
}

.inline-qr-section .inline-qr-label {
    font-size: 0.82rem;
    color: #4a5568;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.5;
    font-weight: 600;
}

.inline-qr-section .inline-qr-expire {
    font-size: 0.75rem;
    color: #e65100;
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
    max-width: 220px;
}

.inline-qr-section .qr-code-border {
    margin-bottom: 0;
    border-radius: 12px;
    padding: 10px;
}

.inline-qr-section .qr-code-border img.inline-qr-img {
    width: 120px;
    height: 120px;
}

/* 响应式 */
@media (max-width: 520px) {
    .qr-modal {
        border-radius: 20px;
        max-height: 95vh;
        max-width: 92vw;
    }
    .qr-modal-header {
        padding: 24px 24px 0;
    }
    .qr-modal-header h3 {
        font-size: 1.2rem;
    }
    .qr-modal-qr-section {
        padding: 20px 24px 10px;
    }
    .qr-modal-actions {
        padding: 0 24px 24px;
    }
    .qr-safety-tags {
        padding: 6px 24px 14px;
    }
    .qr-code-border img {
        width: 140px;
        height: 140px;
    }
    .inline-qr-section .qr-code-border img.inline-qr-img {
        width: 110px;
        height: 110px;
    }
}
