/* 订单进度页 + 扫码支付弹窗 */

/* ---------- 订单状态页 ---------- */
.status-wrap { max-width: 860px; margin: 0 auto; padding: 30px 0 60px; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.status-hero { padding: 30px 30px 26px; border-bottom: 1px solid var(--line-soft); }
.status-badge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 800;
}
.status-badge.pending { background: #fff4d6; color: var(--warn); }
.status-badge.reviewing { background: #fff1e6; color: #b45309; }
.status-badge.processing { background: var(--brand-soft); color: var(--brand); }
.status-badge.done { background: #eaf7f2; color: var(--success); }
.status-badge.closed { background: #f1f3f7; color: #6b7688; }
.status-hero h1 { font-size: 25px; letter-spacing: -.02em; margin-top: 14px; }
.status-hero p { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.7; }
.progress-track { height: 8px; border-radius: 20px; background: #eef1f7; margin-top: 20px; overflow: hidden; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #13a2c4); transition: width .8s ease; }
.timeline { padding: 8px 30px 26px; }
.tl-item { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; padding: 16px 0; }
.tl-item::before { content: ""; position: absolute; left: 14px; top: 40px; bottom: -6px; width: 2px; background: #eef1f7; }
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #f1f4f9; color: #a9b2c0; font-size: 13px; font-weight: 800; z-index: 1;
}
.tl-item.done .tl-dot { background: #eaf7f2; color: var(--success); }
.tl-item.active .tl-dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(22,93,255,.12); }
.tl-item h3 { font-size: 13.5px; }
.tl-item p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.tl-item time { color: #a3adbb; font-size: 11.5px; white-space: nowrap; }
.status-body { padding: 24px 30px 30px; background: #fbfcfe; border-top: 1px solid var(--line-soft); }
.status-body h2 { font-size: 14px; margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.detail-grid div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.detail-grid span { color: var(--muted); }
.detail-grid b { font-weight: 700; word-break: break-all; text-align: right; }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.status-actions a, .status-actions button {
  min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; font-size: 13px; font-weight: 700; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
}
.status-actions .primary { width: auto; background: var(--ink); color: #fff; border-color: var(--ink); }
.status-actions .primary:hover { background: #000; }
.empty-state { text-align: center; padding: 70px 24px; }
.empty-state h1 { font-size: 20px; }
.empty-state p { color: var(--muted); margin: 10px 0 22px; font-size: 13px; }

/* ---------- 扫码支付弹窗 ---------- */
.pay-dialog {
  border: 0; padding: 0; border-radius: 20px; background: #fff;
  width: min(430px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto;
  box-shadow: 0 30px 80px rgba(21, 28, 41, .3);
}
.pay-dialog::backdrop { background: rgba(16, 24, 40, .55); backdrop-filter: blur(3px); }
.pay-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.pay-head h2 { font-size: 16px; }
.pay-head button {
  border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1;
  width: 30px; height: 30px; border-radius: 8px;
}
.pay-head button:hover { background: var(--surface-alt); color: var(--ink); }
.pay-body { padding: 8px 20px 18px; }

.pay-amount { text-align: center; padding: 2px 0 12px; }
.pay-amount small { display: block; color: var(--muted); font-size: 12px; }
.pay-amount strong { font-size: 32px; letter-spacing: -.03em; font-weight: 800; }
.pay-amount strong > span:first-child { font-size: 16px; vertical-align: 4px; margin-right: 2px; }

.pay-dialog .pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.pay-dialog .pay-methods button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; border: 1px solid #d9dee7; border-radius: 10px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.pay-dialog .pay-methods button[aria-pressed="true"] { border-color: var(--ink); background: #f7f9fd; color: var(--ink); }

.qr-card { display: grid; place-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.qr-frame { position: relative; width: 202px; height: 202px; display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 8px; box-shadow: inset 0 0 0 1px #eef1f7; }
.qr-frame img, .qr-frame canvas { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.qr-frame img[hidden], .qr-frame canvas[hidden] { display: none; }
.qr-empty {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px;
  padding: 10px; border: 1px dashed #d8dfea; border-radius: 8px; background: #fafbfe;
  text-align: center; color: var(--muted); font-size: 11.5px; line-height: 1.7;
}
.qr-empty[hidden] { display: none; }
.qr-empty b { display: block; color: var(--ink); font-size: 13px; }
.qr-empty code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; color: #4f5e78; background: #eef2f8; padding: 1px 4px; border-radius: 4px; }
.qr-hint { color: var(--muted); font-size: 12px; text-align: center; }
.qr-hint b { color: var(--ink); }

.pay-order-row {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px;
  border-radius: 9px; background: var(--surface-alt); font-size: 12.5px; color: var(--muted);
}
.pay-order-row b { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.pay-order-row button { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 8px; font-size: 11px; color: var(--muted); }
.pay-order-row button:hover { color: var(--ink); }

.pay-steps { display: grid; gap: 5px; margin: 12px 0 14px; padding: 0; list-style: none; counter-reset: ps; }
.pay-steps li { position: relative; padding-left: 22px; font-size: 12px; color: #4f5e78; line-height: 1.6; counter-increment: ps; }
.pay-steps li::before {
  content: counter(ps); position: absolute; left: 0; top: 1px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.pay-steps b { color: var(--ink); }

.pay-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 11.5px; color: #98a2b3; }
.pay-foot a { color: var(--brand); font-weight: 700; }
.pay-dialog .primary { min-height: 46px; }
.pay-dialog .primary:disabled { opacity: .45; }

@media (max-width: 880px) {
  .detail-grid { grid-template-columns: 1fr; }
  .status-hero, .timeline, .status-body { padding-left: 18px; padding-right: 18px; }
  .qr-frame { width: 196px; height: 196px; }
}
