/* dm_panqr 网盘扫码按钮 / 弹窗 */
.dm-panqr-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    margin: 8px 0;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--dm-panqr-color, #2f6bff), rgba(15, 23, 42, .96));
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    cursor: pointer;
    vertical-align: middle;
}
.dm-panqr-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
    box-shadow: 0 12px 24px rgba(0,0,0,.28);
}
.dm-panqr-btn:active { transform: translateY(0); }
.dm-panqr-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    font-size: 18px;
    line-height: 1;
}
.dm-panqr-txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.dm-panqr-txt strong { font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; }
.dm-panqr-txt small { font-size: 11px; line-height: 1.3; color: rgba(255,255,255,.76); margin-top: 2px; }
.dm-panqr-arrow { font-size: 20px; line-height: 1; opacity: .8; margin-left: 2px; }

/* 电脑端仅二维码 */
.dm-panqr-pc {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    margin: 8px 0;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,23,42,.12);
    vertical-align: middle;
}
.dm-panqr-pc-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dm-panqr-pc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--dm-panqr-color, #2f6bff);
    color: #fff;
    font-size: 18px;
}
.dm-panqr-pc-info strong { display: block; color: #111827; font-size: 14px; line-height: 1.3; }
.dm-panqr-pc-info small { display: block; color: #6b7280; font-size: 11px; line-height: 1.3; margin-top: 2px; }
.dm-panqr-pc-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    background: #fff;
    image-rendering: pixelated;
}

/* 弹窗 */
.dm-panqr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99990;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.dm-panqr-modal.is-open { display: flex; }
.dm-panqr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 24, .72);
    backdrop-filter: blur(3px);
}
.dm-panqr-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 388px;
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    animation: dmPanqrIn .18s ease-out;
}
@keyframes dmPanqrIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dm-panqr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #eef2f7;
}
.dm-panqr-head-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dm-panqr-cloud { font-size: 18px; line-height: 1; }
.dm-panqr-head-title strong { font-size: 16px; line-height: 1.3; white-space: nowrap; }
.dm-panqr-name {
    font-size: 11px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 96px;
}
.dm-panqr-close {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 26px;
    cursor: pointer;
}
.dm-panqr-close:hover { background: #f1f5f9; color: #475569; }
.dm-panqr-body { padding: 14px 18px 18px; text-align: center; }
.dm-panqr-qrbox {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 238px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.dm-panqr-qrbox img {
    width: 220px;
    height: 220px;
    max-width: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}
.dm-panqr-url {
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    word-break: break-all;
    max-height: 54px;
    overflow: hidden;
}
.dm-panqr-actions { display: flex; gap: 10px; margin-top: 14px; }
.dm-panqr-actions a,
.dm-panqr-actions button {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff !important;
}
.dm-panqr-actions button { background: #fff; color: #2563eb !important; }
.dm-panqr-actions a:hover { background: #1d4ed8; border-color: #1d4ed8; }
.dm-panqr-actions button:hover { background: #eff6ff; }
.dm-panqr-tip { margin: 10px 0 0; color: #64748b; font-size: 11px; line-height: 1.4; }
body.dm-panqr-lock { overflow: hidden; }

@media (max-width: 520px) {
    .dm-panqr-dialog { max-width: 340px; }
    .dm-panqr-qrbox { min-height: 210px; }
    .dm-panqr-qrbox img { width: 190px; height: 190px; }
    .dm-panqr-pc { width: 100%; justify-content: center; }
    .dm-panqr-pc-img { width: 120px; height: 120px; }
}
