/* 健康宝 V4.6 · 微信扫码支付页
   只负责版式；二维码由本机 qrcodegen.js 生成，不调用任何外部二维码服务。 */
.qrpay-head { padding: 26px 20px 8px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.qrpay-head .eyebrow { color: rgba(255,255,255,.62); letter-spacing: .14em; font-size: 10.5px; font-weight: 700; }
.qrpay-head h2 { font-size: 22px; margin: 8px 0 6px; letter-spacing: .01em; }
.qrpay-head p { font-size: 12px; color: rgba(255,255,255,.72); margin: 0; }

.qrpay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 18px; box-shadow: var(--shadow); }
.qp-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.qp-badge.native { background: #e8f7ec; color: #1a7f37; }
.qp-badge.static { background: var(--brand-soft); color: var(--brand-deep); }
.qp-badge.demo { background: var(--accent-soft); color: var(--accent); }
.qp-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 收款通道切换：微信 / 支付宝（V4.8） */
.qp-channels { display: flex; gap: 6px; padding: 4px; background: #f2f5fa; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 16px; }
.qp-ch { flex: 1; height: 38px; font-size: 13px; font-weight: 700; color: var(--ink-2); border-radius: 9px; background: transparent; display: inline-flex; align-items: center; justify-content: center; transition: background .18s, color .18s, box-shadow .18s; }
.qp-ch.is-on { background: #fff; color: var(--brand-deep); box-shadow: 0 2px 8px rgba(11,31,58,.09); }

.qp-amount { text-align: center; margin-bottom: 4px; }
.qp-amount .cur { font-size: 17px; font-weight: 700; color: var(--navy); vertical-align: 6px; }
.qp-amount .num { font-size: 38px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.qp-plan { text-align: center; font-size: 12.5px; color: var(--ink-2); margin-bottom: 16px; }

.qp-frame { width: 218px; max-width: 78vw; margin: 0 auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 26px rgba(11,31,58,.08); position: relative; }
.qp-frame img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qp-frame .qp-corner { position: absolute; width: 13px; height: 13px; border: 2.5px solid var(--brand); }
.qp-frame .c1 { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 15px 0 0 0; }
.qp-frame .c2 { top: -1px; right: -1px; border-left: 0; border-bottom: 0; border-radius: 0 15px 0 0; }
.qp-frame .c3 { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 15px; }
.qp-frame .c4 { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 15px 0; }
.qp-missing { padding: 30px 12px; text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); background: #f7f9fc; border-radius: 10px; }

.qp-scan-tip { text-align: center; font-size: 13px; font-weight: 700; color: var(--navy); margin: 16px 0 4px; }
.qp-scan-sub { text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.qp-wx-hint { margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); font-size: 11.5px; line-height: 1.65; }

.qp-status { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #f6f9fc; border: 1px solid var(--line); }
.qp-status .ps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; animation: qpPulse 1.4s infinite; }
.qp-status.is-paid { background: #f2fbf5; border-color: #b8e2c4; }
.qp-status.is-paid .ps-dot { background: #1aad19; animation: none; }
@keyframes qpPulse { 0%,100% { opacity: 1; } 50% { opacity: .28; } }
.qp-status b { font-size: 12.5px; color: var(--ink); }
.qp-status span.t { font-size: 11px; color: var(--ink-3); margin-left: auto; white-space: nowrap; }

.qp-order { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 13px; border: 1px dashed var(--line); border-radius: 12px; }
.qp-order div { flex: 1; min-width: 0; }
.qp-order small { display: block; font-size: 10.5px; color: var(--ink-3); }
.qp-order b { display: block; font-size: 12.5px; letter-spacing: .02em; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-order button { flex: none; font-size: 11.5px; font-weight: 700; color: var(--brand); padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.qp-note { font-size: 11.5px; color: var(--ink-2); line-height: 1.75; margin-top: 14px; }
.qp-note b { color: var(--ink); }
.qp-contact { margin-top: 10px; padding: 10px 13px; border-radius: 11px; background: var(--gold-soft); color: #7a6027; font-size: 11.5px; line-height: 1.6; display: flex; align-items: center; gap: 10px; }
.qp-contact div { flex: 1; min-width: 0; }
.qp-contact small { display: block; font-size: 10.5px; opacity: .82; }
.qp-contact b { display: block; font-size: 13.5px; letter-spacing: .03em; color: #6b5320; -webkit-user-select: all; user-select: all; }
.qp-contact button { flex: none; font-size: 11.5px; font-weight: 700; color: #7a6027; padding: 7px 11px; border: 1px solid rgba(122,96,39,.30); border-radius: 8px; background: rgba(255,255,255,.6); }
.qp-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.qp-actions .btn { height: 44px; font-size: 13px; }
.qp-demo-unlock { margin-top: 10px; }
.qp-legal { font-size: 10.5px; color: var(--ink-3); line-height: 1.7; text-align: center; margin-top: 18px; padding: 0 6px; }
@media print { #view-qrpay, .qp-actions, .bottom-cta { display: none !important; } }
