/* pay-modal.css — 支付弹窗样式 (配套 pay-modal.js) */
.pay-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
    animation: pm-fade-in 0.18s ease-out;
}
@keyframes pm-fade-in { from { opacity: 0; } to { opacity: 1; } }

.pay-modal-card {
    background: #fff; border-radius: 14px;
    width: 420px; max-width: 92vw;
    padding: 24px 28px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: pm-slide-up 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes pm-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pay-modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 28px; height: 28px;
    background: transparent; border: 0;
    font-size: 22px; color: #999; cursor: pointer;
    line-height: 1;
    border-radius: 6px;
    transition: background 0.15s;
}
.pay-modal-close:hover { background: #f3f4f6; color: #333; }

.pay-modal-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 6px;
}
.pay-modal-title { font-size: 16px; font-weight: 600; color: #111827; }
.pay-modal-amount {
    font-size: 22px; font-weight: 700; color: #0052CC;
    font-variant-numeric: tabular-nums;
}
.pay-modal-subject {
    font-size: 13px; color: #6b7280; margin-bottom: 18px;
    word-break: break-all;
}

.pay-modal-body {
    min-height: 220px;
    display: flex; align-items: center; justify-content: center;
    padding: 14px 0;
}
.pay-modal-qrcode {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px;
    background: #f9fafb;
    border-radius: 10px;
}
.pay-modal-info {
    text-align: center; padding: 28px 16px;
}
.pay-modal-info-icon { font-size: 42px; margin-bottom: 12px; }
.pay-modal-info-text { font-size: 15px; color: #374151; font-weight: 500; }
.pay-modal-info-sub { font-size: 12px; color: #9ca3af; margin-top: 8px; }

.pay-modal-status {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin: 14px 0 12px;
}
.pay-modal-status-icon { font-size: 20px; }
.pay-modal-status-text { font-size: 13px; color: #92400e; flex: 1; }
.pay-modal-status-paid { background: #ecfdf5; border-color: #a7f3d0; }
.pay-modal-status-paid .pay-modal-status-text { color: #065f46; }
.pay-modal-status-failed,
.pay-modal-status-closed,
.pay-modal-status-timeout { background: #fef2f2; border-color: #fecaca; }
.pay-modal-status-failed .pay-modal-status-text,
.pay-modal-status-closed .pay-modal-status-text,
.pay-modal-status-timeout .pay-modal-status-text { color: #991b1b; }

.pay-modal-hint {
    font-size: 11px; color: #9ca3af; margin: 8px 0 14px;
    line-height: 1.6;
}
.pay-modal-hint code {
    background: #f3f4f6; padding: 1px 6px;
    border-radius: 4px; font-family: ui-monospace, monospace;
}

.pay-modal-actions { display: flex; gap: 10px; }
.pay-modal-btn {
    flex: 1; padding: 10px 14px;
    font-size: 13px; font-weight: 500;
    border-radius: 8px; border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}
.pay-modal-btn-ghost {
    background: #fff; border-color: #e5e7eb; color: #374151;
}
.pay-modal-btn-ghost:hover { background: #f9fafb; }
.pay-modal-btn-primary {
    background: #0052CC; color: #fff;
}
.pay-modal-btn-primary:hover { background: #0747A6; }

@media (max-width: 480px) {
    .pay-modal-card { width: 96vw; padding: 20px 18px; }
    .pay-modal-amount { font-size: 18px; }
}