/* ============================================================
 * front.css · 订单页的支付宝扫码弹层（由核心前台扩展位注入）
 * 版式照子比收银弹窗：一张竖版卡片从上到下是「渠道名 + 剩余时间 / 订单号 / 实付 / 码 / 状态条」，
 * 状态条铺满卡片底边（支付宝蓝白字），不再拆成标题带 + 正文 + 底栏三段。
 * 码的底块固定白、状态条固定蓝：浅底深码是支付宝扫码的硬要求，蓝色是渠道身份，皮肤不跟着反色。
 * ============================================================ */

.ao-card {
  --ao-blue: #1677ff;
  position: relative;
  width: min(100%, 348px);
  max-height: none;
  padding: 20px 20px 0;
}

.ao-close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%; font-size: 15px;
}

.ao-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding-right: 26px; }
.ao-logo {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 9px; background: var(--ao-blue); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1;
}
.ao-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ao-count {
  flex: none; padding: 2px 8px; border: 1px solid var(--border-soft); border-radius: 99px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-faint);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

.ao-orderno {
  margin: 10px 0 0; text-align: center;
  font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums;
}
.ao-price { margin: 2px 0 0; text-align: center; white-space: nowrap; }
.ao-price em { font-style: normal; margin-right: 6px; font-size: 12px; color: var(--ink-faint); }
.ao-price b { font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.ao-qr {
  display: grid; place-items: center;
  margin: 14px auto 0; padding: 12px; width: max-content; max-width: 100%;
  border-radius: 14px; background: #fff;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--theme-secondary) 18%, transparent);
}
.ao-qr svg { display: block; width: min(208px, 56vw); height: auto; }

.ao-tip { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-faint); }
.ao-app { margin: 8px 0 0; text-align: center; }
.ao-app a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ao-blue);
}
.ao-app i { font-size: 14px; }

/* 状态条：支付宝蓝铺到卡片底边，等款时转圈、到账后换勾，文字始终是同一句位置 */
.ao-band {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 16px -20px 0; padding: 13px 16px;
  font-size: 13px; font-weight: 600; color: #fff; background: var(--ao-blue);
}
.ao-band i { flex: none; font-size: 15px; }
.ao-band.is-live i { animation: ao-spin 1.1s linear infinite; }
.ao-band.is-ok { background: #0f9d58; }
@keyframes ao-spin { to { transform: rotate(360deg); } }

/* 关掉弹层后留在页面上的重新入口 */
.ao-scan-btn { align-self: flex-start; }

@media (max-width: 480px) {
  .ao-card { padding: 18px 16px 0; }
  .ao-band { margin: 14px -16px 0; }
  .ao-qr { padding: 10px; }
  .ao-qr svg { width: min(208px, 62vw); }
}

@media (prefers-reduced-motion: reduce) {
  .ao-card { animation: none; }
  .ao-band.is-live i { animation: none; }
}
