/* 夸克网盘二维码弹窗样式 */
.xu5-qr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.xu5-qr-modal-overlay.xu5-qr-active {
    display: flex;
}

.xu5-qr-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 420px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    box-sizing: border-box;
    animation: xu5QrFadeIn 0.25s ease;
}

@keyframes xu5QrFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.xu5-qr-modal-header {
    padding: 22px 24px 0;
}

.xu5-qr-modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.xu5-qr-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
}

.xu5-qr-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
    padding: 0 0 0 12px;
    line-height: 1;
    transition: color 0.2s;
}

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

.xu5-qr-modal-tip {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
    word-break: break-word;
}

.xu5-qr-modal-tip p {
    margin: 0 0 8px;
}

.xu5-qr-modal-tip p:last-child {
    margin-bottom: 0;
}

.xu5-qr-img-wrap {
    text-align: center;
    padding: 0 24px 18px;
}

.xu5-qr-img-box {
    position: relative;
    margin: 0 auto;
    max-width: 220px;
    min-height: 160px;
}

.xu5-qr-img {
    max-width: 220px;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.xu5-qr-img-status {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #888;
    font-size: 13px;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.xu5-qr-img-status.is-error {
    color: #b91c1c;
    background: #fff5f5;
    border-color: #fecaca;
}

.xu5-qr-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: xu5QrSpin 0.8s linear infinite;
}

@keyframes xu5QrSpin {
    to { transform: rotate(360deg); }
}

.xu5-qr-retry {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #3b82f6;
    background: #3b82f6;
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.xu5-qr-retry:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.xu5-qr-caption {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.xu5-qr-extract-wrap {
    padding: 0 24px 16px;
    text-align: center;
    display: none;
}

.xu5-qr-extract-box {
    background: #f0f7ff;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #1565c0;
    display: inline-block;
}

.xu5-qr-extract-val {
    font-size: 18px;
    letter-spacing: 2px;
    user-select: all;
    font-weight: 700;
}

.xu5-qr-extract-tip {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.xu5-qr-footer {
    padding: 0 24px 22px;
    text-align: center;
}

.xu5-qr-open-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #21c97a, #16a34a);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.xu5-qr-open-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(33, 201, 122, 0.35);
}

@media (max-width: 480px) {
    .xu5-qr-modal-overlay {
        padding: 12px;
    }
    .xu5-qr-modal-box {
        border-radius: 12px;
    }
    .xu5-qr-modal-header,
    .xu5-qr-img-wrap,
    .xu5-qr-extract-wrap,
    .xu5-qr-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}
