@import url('../features/recharge/activity.css?v=2f04e229-n20261201181345&build=c0e0869d-n20261201181345');

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

.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;
  color-scheme: only light;
  forced-color-adjust: none;
}

.recharge-pay-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.recharge-pay-qr-retry {
  margin: -4px 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink-3, #6e6e73);
  text-decoration: underline;
  cursor: pointer;
}

.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-jsapi-wait {
  margin: 4px 0 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-3, #6e6e73);
}

.recharge-pay-card.is-jsapi .recharge-pay-hint {
  margin-top: 0;
}

.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;
  }
}

.my-recharge-page {
  max-width: 640px;
}

.recharge-catalog-entry {
  margin: 0;
  padding: 0 22px 20px;
}

button.recharge-catalog-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #111);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}

button.recharge-catalog-open:hover {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.02);
}

/* 充值页：信息优先的高级浅色表面 */
.my-recharge-page { max-width: 680px; }
.recharge-card .recharge-tier-card.is-selected {
  border-color: #9acdad;
  outline: 1px solid #9acdad;
  outline-offset: 0;
  box-shadow: 0 0 18px 3px rgba(132, 145, 137, .22), 0 8px 24px rgba(105, 115, 109, .12);
  animation: rechargeChoicePulse 2.4s ease-in-out infinite;
}
.recharge-card .recharge-tier-card.is-selected::after {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(115deg, #81bb98, #d6efdc, #9ed0b2, #e5f6e9, #81bb98);
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: rechargeChoiceFlow 3.6s ease-in-out infinite;
}
@keyframes rechargeChoicePulse {
  0%, 100% { box-shadow: 0 0 18px 3px rgba(132, 145, 137, .18), 0 8px 24px rgba(105, 115, 109, .1); }
  50% { box-shadow: 0 0 32px 8px rgba(142, 151, 146, .32), 0 10px 30px rgba(105, 115, 109, .16); }
}
@keyframes rechargeChoiceFlow {
  0%, 100% { background-position: 0% 50%; opacity: .7; }
  50% { background-position: 100% 50%; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .recharge-card .recharge-tier-card.is-selected,
  .recharge-card .recharge-tier-card.is-selected::after { animation: none; }
}

.recharge-payment-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.recharge-payment-actions .recharge-submit { flex: 1 1 140px; width: auto; min-height: 48px; }
.recharge-payment-actions .recharge-submit[hidden] { display: none; }
.recharge-payment-actions .recharge-submit--wechat { background: #078c45; color: #fff; }
.recharge-payment-actions .recharge-submit--alipay { background: #1677ff; color: #fff; }
.recharge-payment-actions .recharge-submit:focus-visible { outline: 3px solid var(--ink, #111); outline-offset: 3px; }
.recharge-alipay-qr { position: relative; width: min(260px, 100%); height: 280px; margin: 16px auto; background: #fff; }
.recharge-alipay-qr iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.recharge-alipay-qr-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; color: #444; pointer-events: none; }
.recharge-alipay-qr-loading[hidden] { display: none; }
.recharge-alipay-fallback { display: block; margin-top: 12px; font-size: 13px; color: #1677ff; }
.recharge-return-status { margin: 0 20px 20px; padding: 16px; border: 1px solid var(--line, #ddd); border-radius: 12px; background: var(--bg-soft, #f6f8fa); }
.recharge-return-status[hidden] { display: none; }
.recharge-return-status h3 { margin: 0 0 8px; font-size: 17px; }
.recharge-return-status p { margin: 6px 0; line-height: 1.6; overflow-wrap: anywhere; }
.recharge-return-status.is-paid { border-color: #078c45; }
.recharge-alipay-link {
  display: block;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  background: #1677ff;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}
.recharge-card {
  border-color: var(--line-soft, #e9eef1);
  border-radius: var(--radius, 14px);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 40px rgba(35, 58, 68, .08);
}
.recharge-card-head { padding-top: 26px; }
.recharge-card .my-account-card-title { font-size: 20px; letter-spacing: -.02em; }
button.recharge-catalog-open {
  border-color: var(--line, #dce3e7);
  border-radius: 10px;
  color: var(--accent, #294b55);
  transition: border-color .16s var(--ease, ease), background .16s var(--ease, ease), transform .16s var(--ease, ease);
}
button.recharge-catalog-open:hover,
button.recharge-catalog-open:focus-visible { border-color: var(--accent-warm, #8aaab3); background: var(--bg-soft, #eef2f5); transform: translateY(-1px); outline: none; }
.recharge-catalog-dialog { border: 1px solid var(--line-soft, #e9eef1); border-radius: var(--radius, 14px); box-shadow: 0 22px 60px rgba(35, 58, 68, .16); }
@media (max-width: 720px) {
  .my-recharge-page { padding-inline: 12px; }
  .recharge-card-head { padding-top: 20px; }
  .recharge-card .my-account-card-title { font-size: 18px; }
}

.recharge-catalog-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: calc(var(--agent-z-confirm-modal, 9500) + 120);
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  background: rgba(29, 29, 31, 0.28);
}

.recharge-catalog-overlay[hidden] {
  display: none;
}

body.recharge-catalog-visible {
  overflow: hidden;
}

.recharge-catalog-dialog {
  position: relative;
  width: min(400px, 92vw);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg, #fff);
  border: 0;
  border-right: 1px solid var(--line, #e5e5ea);
  border-radius: 0;
  box-shadow: 16px 0 40px rgba(29, 29, 31, 0.12);
  animation: rechargeCatalogSlideIn 0.22s var(--ease-out, ease-out) both;
}

.recharge-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line, #e5e5ea);
}

.recharge-catalog-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line, #e5e5ea);
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #1d1d1f);
  font: 28px/1 sans-serif;
  cursor: pointer;
}

.recharge-catalog-close:hover {
  background: var(--bg-soft, #eef2f5);
}

.recharge-catalog-close:focus-visible {
  outline: 2px solid var(--ink, #1d1d1f);
  outline-offset: 2px;
}

.recharge-catalog-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

@keyframes rechargeCatalogSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.recharge-goods-head {
  margin-bottom: 8px;
  padding-right: 28px;
}

.recharge-catalog-dialog .my-account-card-title {
  margin: 0;
  font-size: 15px;
}

.recharge-page-url {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2, #555);
  word-break: break-all;
}

.recharge-page-url a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recharge-goods-meta {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
}

.recharge-goods-meta > div + div {
  margin-top: 6px;
}

.recharge-goods-meta dt {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2, #666);
  margin-bottom: 2px;
}

.recharge-goods-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink, #111);
}

.recharge-goods-subtitle {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink, #111);
}

.recharge-goods-intro,
.recharge-goods-aftersales {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2, #444);
}

.recharge-goods-aftersales a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recharge-catalog-list {
  margin-bottom: 8px;
}

.recharge-catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.35;
}

.recharge-catalog-table th,
.recharge-catalog-table td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.recharge-catalog-table th {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-2, #666);
}

.recharge-catalog-table td:nth-child(2) {
  white-space: nowrap;
  font-weight: 600;
}

.recharge-goods-aftersales {
  margin-top: 8px;
}

.recharge-goods-cs.site-cs-wechat {
  display: flex;
  align-items: flex-start;
  text-align: left;
  max-width: none;
  margin-top: 8px;
  min-height: 44px;
}

.recharge-tier-name {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink-2, #555);
}

@media (max-width: 720px) {
  .recharge-catalog-entry {
    padding-left: 16px;
    padding-right: 16px;
  }

  .recharge-catalog-overlay {
    background: rgba(29, 29, 31, 0.36);
  }

  .recharge-catalog-dialog {
    width: min(400px, 92vw);
  }

  .recharge-catalog-body {
    padding: 14px 14px calc(12px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  }

  .recharge-goods-card {
    padding: 18px 16px 16px;
  }

  .recharge-catalog-table th,
  .recharge-catalog-table td {
    padding: 5px 4px;
    font-size: 11px;
  }

  .recharge-goods-intro,
  .recharge-goods-aftersales,
  .recharge-goods-meta dd {
    font-size: 12px;
  }
}

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