/* =========================================================
   充值中心 · 微信扫码支付弹层
   浅色方角体系，微信绿仅用于扫码提示与成功态点缀
   ========================================================= */

.recharge-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 29, 31, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rechargePayFadeIn 0.18s var(--ease, ease) both;
}

body.recharge-pay-open {
  overflow: hidden;
}

.recharge-pay-card {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg, #fff);
  border: 1px solid var(--line, #e5e5ea);
  border-radius: var(--radius-sm, 2px);
  box-shadow: 0 24px 64px rgba(29, 29, 31, 0.18);
  padding: 30px 32px 26px;
  text-align: center;
  animation: rechargePayRise 0.24s var(--ease-out, ease-out) both;
}

.recharge-pay-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--ink-4, #86868b);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.recharge-pay-close:hover {
  color: var(--ink, #1d1d1f);
}

.recharge-pay-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4, #86868b);
}

.recharge-pay-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--ink, #1d1d1f);
}

.recharge-pay-amount-value {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.recharge-pay-amount-unit {
  font-size: 15px;
  color: var(--ink-3, #6e6e73);
}

.recharge-pay-points {
  margin: 10px 0 18px;
  font-size: 13px;
  color: var(--ink-3, #6e6e73);
}

.recharge-pay-points strong {
  color: var(--ink, #1d1d1f);
  font-weight: 600;
}

.recharge-pay-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.recharge-pay-qr {
  width: 208px;
  height: 208px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line, #e5e5ea);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recharge-pay-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.recharge-pay-qr-fallback {
  margin: 0;
  font-size: 12px;
  color: #c0392b;
  line-height: 1.6;
}

.recharge-pay-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  color: #07c160;
  font-weight: 500;
}

.recharge-pay-hint-icon {
  width: 17px;
  height: 17px;
}

.recharge-pay-status {
  margin: 12px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--ink-3, #6e6e73);
}

.recharge-pay-status.is-ok {
  color: #07c160;
  font-weight: 500;
}

.recharge-pay-status.is-err {
  color: #c0392b;
}

.recharge-pay-expire {
  margin: 8px 0 16px;
  font-size: 11px;
  color: var(--ink-4, #86868b);
  letter-spacing: 0.01em;
}

.recharge-pay-cancel-btn {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--line, #e5e5ea);
  border-radius: var(--radius-sm, 2px);
  background: transparent;
  color: var(--ink-2, #494951);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.recharge-pay-cancel-btn:hover {
  border-color: var(--ink-3, #6e6e73);
  color: var(--ink, #1d1d1f);
}

@keyframes rechargePayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rechargePayRise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 560px) {
  .recharge-pay-card {
    padding: 26px 20px 22px;
  }

  .recharge-pay-qr {
    width: 184px;
    height: 184px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recharge-pay-overlay,
  .recharge-pay-card {
    animation: none;
  }
}
