/* 充值页(按设计稿):余额卡 → 支付通道1(天使)/支付通道2(星野) → 选择充值金额 → 立即支付
   每个通道三格竖排:图标 + 名称,下面不写说明文字。整体大小按网站自身比例。 */
#pageRecharge.rc3 {
  --rc-blue: #1d8cf0;
  --rc-blue-2: #3aa2ff;
  --rc-blue-soft: #eef6ff;
  --rc-text: #0f1419;
  --rc-sub: #8b95a3;
  --rc-line: #e6ebf1;
  --rc-card: #ffffff;
  --rc-bg: #f4f7fb;
  background: var(--rc-bg) !important;
  color: var(--rc-text);
  -webkit-font-smoothing: antialiased;
}
#pageRecharge.rc3 .page-header {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 92px 1fr 92px; align-items: center;
  height: 52px; min-height: 52px; padding: 0 8px; margin: 0;
  background: #fff !important; border-bottom: 1px solid var(--rc-line); box-shadow: none !important;
}
#pageRecharge.rc3 .page-header .title { text-align: center; font-size: 17px; font-weight: 800; color: #17212b; }
.rc3-history-btn {
  justify-self: end; display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; border: 0; background: transparent;
  color: #3a4552; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.rc3-history-btn svg { width: 17px; height: 17px; }
#pageRecharge.rc3 .rc3-body { width: 100%; max-width: 600px; margin: 0 auto; padding: 10px 14px 100px; box-sizing: border-box; background: transparent !important; }

/* 余额卡 */
.rc3-wallet {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px 11px 14px; border: 1px solid var(--rc-line); border-radius: 14px;
  background: linear-gradient(120deg, #ffffff 0%, #f2f8ff 100%);
}
.rc3-wallet-label { font-size: 12px; color: var(--rc-sub); line-height: 1.2; }
.rc3-wallet-balance { margin-top: 5px; font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.01em; color: var(--rc-text); font-variant-numeric: tabular-nums; }
.rc3-wallet-foot { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 12px; color: #5b6573; }
.rc3-wallet-art {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f2f8ff 0%, #e1effd 70%);
  display: flex; align-items: center; justify-content: center;
}
.rc3-wallet-art svg { width: 26px; height: 26px; }

/* 支付通道卡片 */
.rc3-channel-groups { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.rc3-channel, .rc3-amount-card { padding: 10px; border: 1px solid var(--rc-line); border-radius: 14px; background: var(--rc-card); }
.rc3-channel-head { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; }
.rc3-channel-head div b { display: block; font-size: 15px; font-weight: 700; color: var(--rc-text); line-height: 1.25; }
.rc3-channel-head div span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--rc-sub); line-height: 1.3; }
.rc3-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc3-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  height: 62px; padding: 0; border: 1px solid var(--rc-line); border-radius: 10px; background: #fff; color: inherit;
  cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; transition: border-color .15s ease, background .15s ease;
}
.rc3-tile-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.rc3-tile-icon img, .rc3-tile-icon svg { width: 28px; height: 28px; display: block; border-radius: 8px; }
.rc3-tile-name { font-size: 13px; font-weight: 600; color: var(--rc-text); line-height: 1; }
.rc3-tile.active { border-color: var(--rc-blue); background: var(--rc-blue-soft); box-shadow: inset 0 0 0 .5px var(--rc-blue); }
.rc3-tile.active .rc3-tile-name { color: var(--rc-blue); }
.rc3-tile.off .rc3-tile-icon { opacity: .4; filter: grayscale(1); }
.rc3-tile.off .rc3-tile-name { color: #a3aab5; }
/* 「即将上线」「维护中」角标压在格子上边框上,不再盖住图标;即将上线的图标保持原色 */
.rc3-tag { position: absolute; z-index: 1; top: -7px; right: 6px; box-shadow: 0 0 0 2px #fff; padding: 1px 5px; border-radius: 999px; background: #dff5ea; color: #16a36a; font-size: 9px; font-weight: 600; line-height: 1.4; }
.rc3-tag.off { background: #eef1f5; color: #8b95a3; }
.rc3-check {
  position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--rc-blue); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff;
}
.rc3-check svg { width: 10px; height: 10px; }
.rc3-tile.active .rc3-check { display: flex; }

/* 选择充值金额 */
.rc3-amount-card { margin-top: 8px; }
.rc3-card-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--rc-text); }
.rc3-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 8px; }
.rc3-amount {
  position: relative; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--rc-line); border-radius: 10px; background: #fff; color: inherit; cursor: pointer; font: inherit; padding: 0;
  -webkit-tap-highlight-color: transparent; transition: border-color .15s ease, background .15s ease;
}
.rc3-amount b { font-size: 18px; font-weight: 700; line-height: 1; color: var(--rc-text); font-variant-numeric: tabular-nums; }
.rc3-amount span { font-size: 11px; color: var(--rc-sub); line-height: 1; }
.rc3-amount.selected { border-color: var(--rc-blue); background: var(--rc-blue-soft); box-shadow: inset 0 0 0 .5px var(--rc-blue); }
.rc3-amount.selected b { color: var(--rc-blue); }
.rc3-badge {
  position: absolute; top: -7px; right: 4px; padding: 1px 7px; border-radius: 7px 7px 7px 2px;
  background: linear-gradient(90deg, #f5222d, #ff3b47); color: #fff !important; font-size: 10px !important; font-weight: 700; line-height: 1.35 !important;
  box-shadow: 0 2px 6px rgba(245, 34, 45, .35);
}

/* 立即支付 */
#pageRecharge.rc3 .rc3-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--rc-bg) 75%, rgba(244, 247, 251, 0));
}
.rc3-confirm {
  display: block; width: 100%; max-width: 572px; height: 44px; margin: 0 auto; padding: 0 20px; border: 0; border-radius: 23px; cursor: pointer;
  background: linear-gradient(90deg, var(--rc-blue-2), var(--rc-blue)); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(29, 140, 240, .26);
}
.rc3-confirm b { font-weight: 700; margin-left: 4px; font-variant-numeric: tabular-nums; }
.rc3-confirm:disabled { opacity: .65; cursor: default; }
.rc3-secure { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 7px; font-size: 11px; color: var(--rc-sub); }
.rc3-secure svg { width: 13px; height: 13px; }

/* 充值记录 */
.rc3-history[hidden] { display: none !important; }
.rc3-history { position: fixed; inset: 0; z-index: 9; background: rgba(15, 20, 25, .38); display: flex; align-items: flex-end; justify-content: center; }
.rc3-history-panel { width: 100%; max-width: 600px; max-height: 72vh; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; background: #fff; padding-bottom: env(safe-area-inset-bottom, 0px); }
.rc3-history-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--rc-line); }
.rc3-history-head b { font-size: 16px; }
.rc3-history-head button { width: 32px; height: 32px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: #6b7480; cursor: pointer; }
.rc3-history-list { overflow-y: auto; padding: 4px 16px 16px; }
.rc3-history-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f3f7; }
.rc3-history-row b { display: block; font-size: 15px; }
.rc3-history-row span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--rc-sub); }
.rc3-history-row .r { text-align: right; }
.rc3-history-row em { font-style: normal; font-size: 13px; font-weight: 600; }
.rc3-history-row em.ok { color: #16a36a; }
.rc3-history-row em.wait { color: #e08a00; }
.rc3-history-row em.off { color: #a3aab5; }
.rc3-history-empty { padding: 36px 0; text-align: center; font-size: 13px; color: var(--rc-sub); }

#pageRecharge.rc3 .method-toast { z-index: 7; }

@media (min-width: 600px) {
  #pageRecharge.rc3 .rc3-body { padding-top: 18px; }
  .rc3-wallet-balance { font-size: 30px; }
  .rc3-tile { height: 70px; }
  .rc3-amount { height: 56px; }
}

/* 付款页:不显示二维码,只有「打开支付宝/微信」与「取消支付」 */
#pagePay .pay-status-box { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px 6px; }
#pagePay .pay-status-box .payment-loading-state[hidden] { display: none !important; }
#pagePay .pay-status-text { margin: 0; font-size: 13px; line-height: 1.6; color: #6b7480; text-align: center; }
#pagePay .pay-status-text:empty { display: none; }
#pagePay .pay-open-btn { display: block; width: 100%; height: 44px !important; line-height: 44px !important; padding: 0 !important; margin: 0 !important; border-radius: 10px; text-align: center; font-size: 16px; font-weight: 600; text-decoration: none; box-sizing: border-box; }
#pagePay .pay-cancel-btn {
  display: block; width: 100%; height: 42px; margin: 10px 0 0; border: 1px solid #e4e9f0; border-radius: 10px;
  background: #fff; color: #4b5563; font-size: 15px; font-weight: 500; cursor: pointer; box-sizing: border-box;
}
#pagePay .pay-cancel-btn:disabled { opacity: .6; }

/* 安卓:关闭浏览器的字体自动放大(vivo/UC 等会放大文字),并整体再紧凑一档 */
html.is-android #pageRecharge.rc3, html.is-android #pageRecharge.rc3 *, html.is-android #pagePay, html.is-android #pagePay * { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }
html.is-android #pageRecharge.rc3 .rc3-body { padding-top: 8px; padding-bottom: 96px; }
html.is-android .rc3-wallet { padding: 9px 12px; }
html.is-android .rc3-wallet-balance { font-size: 22px; margin-top: 4px; }
html.is-android .rc3-wallet-foot { margin-top: 5px; font-size: 11.5px; }
html.is-android .rc3-wallet-art { width: 42px; height: 42px; flex-basis: 42px; }
html.is-android .rc3-channel-groups { gap: 7px; margin-top: 7px; }
html.is-android .rc3-channel, html.is-android .rc3-amount-card { padding: 9px; }
html.is-android .rc3-channel-head { margin-bottom: 7px; }
html.is-android .rc3-channel-head div b { font-size: 14px; }
html.is-android .rc3-channel-head div span { font-size: 11px; }
html.is-android .rc3-tile { height: 56px; gap: 4px; }
html.is-android .rc3-tile-icon, html.is-android .rc3-tile-icon img, html.is-android .rc3-tile-icon svg { width: 25px; height: 25px; }
html.is-android .rc3-tile-name { font-size: 12.5px; }
html.is-android .rc3-amount-card { margin-top: 7px; }
html.is-android .rc3-card-title { font-size: 14px; margin-bottom: 7px; }
html.is-android .rc3-amount { height: 48px; gap: 4px; }
html.is-android .rc3-amount b { font-size: 16px; }
html.is-android .rc3-amount span { font-size: 10.5px; }
html.is-android .rc3-confirm { height: 42px; font-size: 15px; }
html.is-android .rc3-secure { margin-top: 5px; }

/* 「推荐」火爆标签:火焰图标 + 红色渐变 + 轻微跳动 */
.rc3-badge.hot { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px 1px 5px; animation: rc3-hot 1.6s ease-in-out infinite; }
.rc3-badge.hot svg { width: 10px; height: 11px; flex: 0 0 auto; }
@keyframes rc3-hot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .rc3-badge.hot { animation: none; } }
