/* styles-recharge.css —— 充值弹窗 / 扫码支付页（对齐蓝猫样式）
 * 全部类名以 rc2- 前缀隔离，不影响站内其它弹窗。
 * 深色为默认，html[data-theme="light"] 下切换为浅色。 */

.rc2-mask {
  position: fixed; inset: 0; z-index: 340;
  background: rgba(4, 6, 12, .64);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: 18px; overflow: auto;
  animation: rc2Fade .16s ease-out;
}
@keyframes rc2Fade { from { opacity: 0; } to { opacity: 1; } }

.rc2-modal {
  width: 860px; max-width: 100%;
  box-sizing: border-box;
  max-height: calc(100vh - 36px); overflow-y: auto; overscroll-behavior: contain;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 26px 26px 22px;
  color: #e9eaee;
  font-size: 14px;
  box-shadow: 0 40px 110px -34px rgba(0, 0, 0, .92);
  scrollbar-width: thin; scrollbar-color: rgba(150, 160, 190, .3) transparent;
}
.rc2-modal::-webkit-scrollbar { width: 8px; }
.rc2-modal::-webkit-scrollbar-thumb { background: rgba(150, 160, 190, .28); border-radius: 8px; }

/* ---------- 头部 ---------- */
.rc2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rc2-head-t { display: flex; flex-direction: column; gap: 7px; }
.rc2-head-t b { font-size: 23px; font-weight: 800; letter-spacing: .2px; color: #fff; }
.rc2-head-t span { font-size: 13px; color: #8b8d97; }
.rc2-x {
  width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent;
  color: #7d7f89; font-size: 21px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.rc2-x:hover { background: rgba(255, 255, 255, .07); color: #fff; }

/* ---------- 标签页 ---------- */
.rc2-tabs { display: flex; gap: 34px; margin: 20px 0 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.rc2-tab {
  position: relative; border: 0; background: none; cursor: pointer;
  padding: 0 0 13px; font-size: 14px; color: #8b8d97;
}
.rc2-tab.is-on { color: #22c55e; font-weight: 600; }
.rc2-tab.is-on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px;
  border-radius: 2px; background: #22c55e;
}

.rc2-pane { padding-top: 20px; }
.rc2-hide { display: none !important; }
.rc2-label { font-size: 13px; color: #9a9cab; margin: 0 0 12px; }

/* ---------- 档次 ---------- */
.rc2-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .rc2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }

.rc2-tier {
  position: relative; display: flex; flex-direction: column;
  min-height: 100px; padding: 0; overflow: hidden;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, .08);
  background: #232327; cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.rc2-tier:hover { border-color: rgba(255, 255, 255, .18); }
.rc2-tier.is-on {
  border-color: #22c55e; background: rgba(34, 197, 94, .10);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .45), 0 8px 26px -10px rgba(34, 197, 94, .6);
}
.rc2-bolt {
  position: absolute; top: 10px; left: 10px; width: 14px; height: 14px;
  color: #63656e; display: flex;
}
.rc2-bolt svg { width: 14px; height: 14px; display: block; }
.rc2-tier.is-on .rc2-bolt { display: none; }
.rc2-badge {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 6px;
  background: #22c55e; color: #062313; display: none;
  align-items: center; justify-content: center;
}
.rc2-tier.is-on .rc2-badge { display: flex; }
.rc2-badge svg { width: 12px; height: 12px; display: block; }

.rc2-price {
  display: flex; align-items: baseline; justify-content: center; gap: 1px;
  margin: 26px 0 16px; padding: 0 10px;
}
.rc2-price i { font-style: normal; font-size: 13px; font-weight: 600; color: #d7d9e0; }
.rc2-price b { font-size: 27px; font-weight: 800; color: #fff; letter-spacing: -.6px; line-height: 1; }

.rc2-get {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 6px; padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .02);
  font-size: 12px;
}
.rc2-get em { font-style: normal; color: #8b8d97; }
.rc2-get u { text-decoration: none; font-weight: 700; color: #f5b83d; white-space: nowrap; }

.rc2-tier.is-off { opacity: .45; cursor: not-allowed; }

/* ---------- 首充礼提示 ---------- */
.rc2-gift { margin: 12px 0 0; font-size: 12.5px; color: #7fca9d; display: flex; align-items: center; gap: 6px; }
.rc2-gift b { color: #22c55e; font-weight: 700; }

/* ---------- 自定义金额 ---------- */
.rc2-custom { margin-top: 12px; }
.rc2-input {
  width: 100%; height: 42px; box-sizing: border-box;
  border-radius: 10px; border: 1px dashed rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .02); color: #e9eaee;
  padding: 0 14px; font-size: 13.5px; outline: none;
}
.rc2-input::placeholder { color: #6f727d; }
.rc2-input:focus { border-color: #22c55e; border-style: solid; }

/* ---------- 支付方式 ---------- */
.rc2-chans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .rc2-chans { grid-template-columns: 1fr; } }
.rc2-chan {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, .08);
  background: #232327; color: #e9eaee; font-size: 15px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.rc2-chan:hover { border-color: rgba(255, 255, 255, .18); }
.rc2-chan.is-on {
  border-color: #22c55e; background: rgba(34, 197, 94, .08);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .40);
}
.rc2-chan .ic {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rc2-chan .ic svg { width: 17px; height: 17px; display: block; }
.rc2-chan-ic { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.rc2-spinner {
  width: 13px; height: 13px; margin-right: 7px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  display: inline-block; vertical-align: -2px; animation: rc2spin .7s linear infinite;
}
@keyframes rc2spin { to { transform: rotate(360deg); } }
.rc2-chan .ic.wx { background: #22c55e; color: #062313; }
.rc2-chan .ic.ali { background: #1677ff; color: #fff; }
.rc2-chan .ic.ali b { font-size: 14px; font-weight: 800; line-height: 1; }
.rc2-chan-t { flex: 1; text-align: left; }
.rc2-radio {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 1.5px solid rgba(255, 255, 255, .25); position: relative;
}
.rc2-chan.is-on .rc2-radio { border-color: #22c55e; }
.rc2-chan.is-on .rc2-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #22c55e;
}

/* ---------- 协议与底部按钮 ---------- */
.rc2-agree { margin: 18px 0 0; font-size: 12.5px; color: #7c7f8a; }
.rc2-agree a { color: #a3a7b4; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rc2-agree a:hover { color: #cfd3dc; }

.rc2-foot { display: flex; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .07); }
.rc2-cancel {
  flex: 1; height: 50px; border-radius: 11px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .08); background: #26262b;
  color: #d5d7de; font-size: 15px; font-weight: 600;
}
.rc2-cancel:hover { background: #2d2d33; }
.rc2-confirm {
  flex: 2; height: 50px; border-radius: 11px; border: 0; cursor: pointer;
  font-size: 15.5px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  box-shadow: 0 12px 28px -12px rgba(34, 197, 94, .95);
  transition: filter .15s;
}
.rc2-confirm:hover { filter: brightness(1.05); }
.rc2-confirm:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; filter: none; }

/* ---------- 卡密充值 ---------- */
.rc2-field { margin-bottom: 14px; }
.rc2-field label { display: block; font-size: 13px; color: #9a9cab; margin-bottom: 8px; }
.rc2-code {
  width: 100%; height: 48px; box-sizing: border-box; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .10); background: #232327;
  color: #fff; padding: 0 14px; font-size: 15px; letter-spacing: 1px; outline: none;
}
.rc2-code:focus { border-color: #22c55e; }
.rc2-notice {
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02); padding: 12px 14px; font-size: 12.5px; color: #8b8d97;
}
.rc2-notice b { display: block; color: #b9bcc7; font-size: 13px; margin-bottom: 6px; }
.rc2-notice ul { margin: 0; padding-left: 16px; }
.rc2-notice li { margin: 3px 0; }

.rc2-result {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 10px 12px; border-radius: 9px; font-size: 13px;
}
.rc2-ok { background: rgba(34, 197, 94, .12); color: #4ade80; border: 1px solid rgba(34, 197, 94, .35); }
.rc2-err { background: rgba(239, 68, 68, .12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .35); }
.rc2-result-ic { font-weight: 800; }

.rc2-cardacts { display: flex; gap: 14px; margin-top: 16px; }

/* ---------- 扫码支付页 ---------- */
.rc2-modal.rc2-paymode { width: 520px; padding: 34px 26px 26px; position: relative; }
.rc2-x-abs { position: absolute; top: 14px; right: 14px; }
.rc2-pay { max-width: 470px; margin: 0 auto; text-align: center; padding: 10px 0 6px; }
.rc2-payic {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 12px;
  background: #163b32; color: #22c55e;
  display: flex; align-items: center; justify-content: center;
}
.rc2-payic svg { width: 24px; height: 24px; display: block; }
.rc2-pay-t { margin: 0 0 9px; font-size: 20px; font-weight: 800; color: #fff; }
.rc2-pay-sub { margin: 0 0 22px; font-size: 13px; color: #8b8d97; }

.rc2-qr {
  width: 300px; height: 300px; margin: 0 auto; box-sizing: border-box;
  background: #fff; border-radius: 20px; padding: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 60px -26px rgba(0, 0, 0, .9);
}
.rc2-qr img, .rc2-qr canvas, .rc2-qr table { display: block; width: 100% !important; height: 100% !important; }
.rc2-qr-holder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.rc2-qr-empty { color: #6b7280; font-size: 13px; text-align: center; padding: 0 16px; line-height: 1.6; }

.rc2-scan { margin: 15px 0 20px; font-size: 13px; color: #9aa0aa; }

.rc2-info {
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06);
  background: #232327; padding: 13px 16px; text-align: left;
}
.rc2-info-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 5px 0; }
.rc2-info-row span { font-size: 13px; color: #8b8d97; flex: 0 0 auto; }
.rc2-info-row b {
  font-size: 13.5px; font-weight: 600; color: #e9eaee; word-break: break-all; text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.rc2-info-row b.rc2-amt {
  font-family: inherit; font-size: 19px; font-weight: 800; color: #22d3ee;
}

.rc2-auto { margin: 18px 0 12px; font-size: 13px; color: #8b8d97; }

.rc2-warn {
  display: flex; gap: 9px; text-align: left; padding: 12px 14px;
  border-radius: 10px; border: 1px solid rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .10); color: #f0b45a; font-size: 13px; line-height: 1.6;
}
.rc2-warn-ic {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
  background: #f0b45a; color: #2a1a02; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

.rc2-altlink { margin: 14px 0 0; font-size: 12.5px; color: #7c7f8a; }
.rc2-altlink a { color: #22c55e; text-decoration: none; cursor: pointer; margin: 0 4px; }
.rc2-altlink a:hover { text-decoration: underline; }

/* ---------- 支付成功页（保留在弹窗内，等用户手动关闭） ---------- */
.rc2-done { max-width: 470px; margin: 0 auto; text-align: center; padding: 14px 0 8px; }
.rc2-done-ic {
  width: 74px; height: 74px; margin: 4px auto 16px; border-radius: 50%;
  background: rgba(34, 197, 94, .13); color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  animation: rc2Pop .3s cubic-bezier(.2, .9, .3, 1.25);
}
@keyframes rc2Pop { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rc2-done-ic svg { width: 40px; height: 40px; display: block; }
.rc2-done-t { margin: 0 0 7px; font-size: 21px; font-weight: 800; color: #fff; }
.rc2-done-sub { margin: 0 0 20px; font-size: 13px; color: #8b8d97; }
.rc2-done-box {
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06);
  background: #232327; padding: 4px 16px; text-align: left;
}
.rc2-done-box .rc2-info-row { padding: 9px 0; }
.rc2-done-btn {
  width: 100%; height: 48px; margin-top: 18px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #2fe06a, #16a34a); color: #04240f;
  font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 14px 34px -16px rgba(34, 197, 94, .85);
}
.rc2-done-btn:hover { filter: brightness(1.05); }

/* ---------- 浅色主题 ---------- */
html[data-theme="light"] .rc2-mask { background: rgba(15, 23, 42, .42); }
html[data-theme="light"] .rc2-modal { background: #fff; color: #1f2430; border-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .rc2-head-t b { color: #111827; }
html[data-theme="light"] .rc2-head-t span,
html[data-theme="light"] .rc2-label,
html[data-theme="light"] .rc2-pay-sub,
html[data-theme="light"] .rc2-auto,
html[data-theme="light"] .rc2-scan { color: #6b7280; }
html[data-theme="light"] .rc2-x { color: #6b7280; }
html[data-theme="light"] .rc2-tabs { border-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .rc2-tier { background: #f6f7f9; border-color: rgba(15, 23, 42, .08); }
html[data-theme="light"] .rc2-tier.is-on { background: rgba(34, 197, 94, .10); border-color: #16a34a; }
html[data-theme="light"] .rc2-price b { color: #111827; }
html[data-theme="light"] .rc2-price i { color: #4b5563; }
html[data-theme="light"] .rc2-get { border-color: rgba(15, 23, 42, .06); background: rgba(15, 23, 42, .02); }
html[data-theme="light"] .rc2-chan { background: #f6f7f9; border-color: rgba(15, 23, 42, .08); color: #1f2430; }
html[data-theme="light"] .rc2-chan.is-on { background: rgba(34, 197, 94, .10); border-color: #16a34a; }
html[data-theme="light"] .rc2-input { background: #f6f7f9; border-color: rgba(15, 23, 42, .14); color: #1f2430; }
html[data-theme="light"] .rc2-code { background: #f6f7f9; border-color: rgba(15, 23, 42, .12); color: #111827; }
html[data-theme="light"] .rc2-notice { background: #f6f7f9; border-color: rgba(15, 23, 42, .06); color: #6b7280; }
html[data-theme="light"] .rc2-notice b { color: #374151; }
html[data-theme="light"] .rc2-info { background: #f6f7f9; border-color: rgba(15, 23, 42, .06); }
html[data-theme="light"] .rc2-info-row b { color: #1f2430; }
html[data-theme="light"] .rc2-info-row b.rc2-amt { color: #0891b2; }
html[data-theme="light"] .rc2-cancel { background: #eef1f5; border-color: rgba(15, 23, 42, .06); color: #374151; }
html[data-theme="light"] .rc2-pay-t { color: #111827; }
html[data-theme="light"] .rc2-agree { color: #6b7280; }
html[data-theme="light"] .rc2-agree a { color: #374151; }
html[data-theme="light"] .rc2-done-t { color: #111827; }
html[data-theme="light"] .rc2-done-box { background: #f6f7f9; border-color: rgba(15, 23, 42, .06); }
html[data-theme="light"] .rc2-done-ic { background: rgba(22, 163, 74, .12); color: #16a34a; }
