@charset "UTF-8";
/* =====================================================================
   充值页（/recharge）专属样式
   ---------------------------------------------------------------------
   只放这个页面自己用的东西，不改 custom.css / page.css。
   配色沿用 custom.css 里已经定义的 --dl-primary 等变量，保证和落地页一致。
   ===================================================================== */

/* 顶部返回条：< 图标 + 标题 + 返回首页 */
.rc-topbar {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem .1rem .5rem;
}
.rc-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: 0 0 auto;
  border-radius: 50%; border: 1px solid var(--dl-orange-bd, #ffe4cc);
  background: #fff; color: #333; text-decoration: none; font-size: 1rem;
  transition: color .15s, border-color .15s;
}
.rc-back:hover { color: var(--dl-primary, #fe8900); border-color: var(--dl-primary, #fe8900); }
.rc-topbar-title {
  flex: 1; min-width: 0;
  font-size: 1.02rem; font-weight: 700; color: #222;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-home-link {
  flex: 0 0 auto; font-size: .8rem; color: var(--dl-primary, #fe8900); text-decoration: none;
}
.rc-home-link:hover { text-decoration: underline; }

/* 内容卡片通用外壳 */
.rc-card {
  background: #fff; border: 1px solid #eee;
  border-radius: var(--dl-radius, 12px);
  padding: 1rem 1.05rem; margin-bottom: .9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.rc-card-title {
  display: flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 700; color: #333; margin-bottom: .65rem;
}
.rc-card-title i { color: var(--dl-primary, #fe8900); }

/* 账号输入 */
.rc-field { margin-bottom: .1rem; }
.rc-input {
  width: 100%; box-sizing: border-box;
  padding: .62rem .8rem; font-size: .92rem;
  border: 1px solid #ddd; border-radius: 8px;
  outline: none; font-family: inherit;
  transition: border-color .15s;
}
.rc-input:focus { border-color: var(--dl-primary, #fe8900); }
.rc-hint { margin: .45rem 0 0; font-size: .76rem; color: #999; line-height: 1.5; }

/* 充值档位网格：手机 2 列，宽屏 3 列 */
.rc-products {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
}
@media (min-width: 560px) {
  .rc-products { grid-template-columns: repeat(3, 1fr); }
}
.rc-product { position: relative; display: block; cursor: pointer; }
.rc-product-input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  margin: 0; pointer-events: none;
}
.rc-product-card {
  display: flex; flex-direction: column; gap: .3rem;
  padding: .8rem .7rem;
  border: 1.5px solid #ddd; border-radius: 10px; background: #fafafa;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.rc-product-name { font-size: .78rem; color: #666; font-weight: 600; }
.rc-product-price { font-size: 1.15rem; color: #222; font-weight: 800; }
.rc-product-desc { font-size: .7rem; color: #999; line-height: 1.45; min-height: 2em; }

.rc-product-input:checked + .rc-product-card {
  border-color: var(--dl-primary, #fe8900);
  background: var(--dl-orange-lite, #fff5eb);
  box-shadow: 0 0 0 1px var(--dl-primary, #fe8900) inset;
}
.rc-product-input:checked + .rc-product-card .rc-product-price { color: var(--dl-primary-dark, #e67800); }
.rc-product-input:focus-visible + .rc-product-card { outline: 2px solid var(--dl-primary, #fe8900); outline-offset: 1px; }

.rc-empty { color: #999; font-size: .85rem; padding: .4rem 0; }

/* 提交按钮区：复用 custom.css 的 .dl-btn，这里只撑满宽度 */
.rc-actions { margin-top: .95rem; }
.rc-actions .dl-btn { width: 100%; }

/* 结果展示（下单成功 / 查询结果都用这套） */
.rc-result { margin-top: .9rem; }
.rc-result[hidden] { display: none !important; }
.rc-result-box {
  background: var(--dl-orange-lite, #fff5eb);
  border: 1px solid var(--dl-orange-bd, #ffe4cc);
  border-radius: 10px; padding: .85rem .95rem;
  font-size: .84rem; color: #7a4a12; line-height: 1.95;
}
.rc-result-box b { color: #222; }

.rc-cs-note { margin: 0; font-size: .8rem; color: #a35800; line-height: 1.6; }

/* 订单查询：输入框 + 紧凑按钮 一行（旧版单档位页面留用的样式，新页面未使用，
   保留不删以防其它地方还有引用） */
.rc-query-row { display: flex; gap: .5rem; }
.rc-query-row .rc-input { flex: 1; }
.rc-query-btn {
  flex: 0 0 auto; border: 0; border-radius: 8px; padding: 0 1.1rem;
  background: linear-gradient(180deg, var(--dl-primary, #fe8900), var(--dl-primary-dark, #e67800));
  color: #fff; font-size: .85rem; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.rc-query-btn:hover { background: var(--dl-primary-dark, #e67800); }

/* =====================================================================
   2026-09-05 重写：两级货币充值中心新增样式
   ---------------------------------------------------------------------
   上面这些 .rc-topbar / .rc-card / .rc-input / .rc-hint / .rc-products /
   .rc-product* 都还在用（充值档位卡片直接复用 .rc-product* 那一套：同样是
   「卡片网格 + radio 选中橙色高亮」，样式完全对得上，没必要另起一套）。
   这里只新增新页面独有的组件：顶部橙色 Hero 条 / 支付方式卡片 / 礼包详情框 /
   购物车 / 消费记录弹窗内文本。
   ===================================================================== */

/* 顶部橙色 Hero 条：左边标题+副标题，右边余额+两个按钮 */
.rc-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem;
  background: linear-gradient(135deg, var(--dl-primary, #fe8900), var(--dl-primary-dark, #e67800));
  border-radius: var(--dl-radius, 12px);
  padding: .9rem 1.05rem; margin-bottom: .9rem; color: #fff;
  box-shadow: 0 4px 14px rgba(254, 137, 0, .25);
}
.rc-hero-title { font-size: 1.02rem; font-weight: 800; }
.rc-hero-sub { font-size: .74rem; opacity: .92; margin-top: .15rem; }
.rc-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.rc-hero-balance { font-size: .82rem; white-space: nowrap; }
.rc-hero-balance b { font-size: 1.08rem; margin-left: .25rem; }
.rc-hero-btns { display: flex; gap: .5rem; }
.rc-hero-btn {
  border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12);
  color: #fff; border-radius: 8px; padding: .32rem .65rem; font-size: .74rem;
  font-family: inherit; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.rc-hero-btn:hover { background: rgba(255, 255, 255, .26); }

/* 卡片副标题 / 标题行（带右上角小按钮） */
.rc-subtitle { margin: -.35rem 0 .85rem; font-size: .78rem; color: #999; }
.rc-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.rc-card-title-row .rc-card-title { margin-bottom: 0; }
.rc-mini-btn {
  border: 1px solid var(--dl-orange-bd, #ffe4cc); border-radius: 7px; padding: .3rem .7rem;
  font-size: .74rem; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap;
  background: var(--dl-orange-lite, #fff5eb); color: var(--dl-primary-dark, #e67800);
  transition: background .15s;
}
.rc-mini-btn:hover { background: var(--dl-orange-bd, #ffe4cc); }

.rc-label { font-size: .78rem; color: #666; font-weight: 600; margin-bottom: .35rem; display: block; }
.rc-label--red { color: #e01414; }

/* 两列并排字段（窄屏自动堆叠） */
.rc-row2 { display: grid; grid-template-columns: 1fr; gap: .7rem; }
@media (min-width: 480px) { .rc-row2 { grid-template-columns: 1fr 1fr; } }
.rc-row2 .rc-field { margin-bottom: 0; }

/* 输入框 + 紧凑按钮同一行（角色获取 / 礼包搜索都用它） */
.rc-inline { display: flex; gap: .5rem; }
.rc-inline .rc-input { flex: 1; min-width: 0; }

select.rc-input { background: #fff; }
select.rc-input:disabled { background: #f5f5f5; color: #aaa; }
input.rc-input[readonly] { background: #f5f5f5; color: #888; }

/* 支付方式卡片（充值用两张可选，礼包购买用一张固定展示） */
.rc-pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.rc-pay-methods--single { grid-template-columns: 1fr; }
.rc-pay { position: relative; display: block; cursor: pointer; }
.rc-pay-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.rc-pay-card {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: .75rem .6rem; border: 1.5px solid #ddd; border-radius: 10px; background: #fafafa; text-align: center;
  transition: border-color .15s, background .15s;
}
.rc-pay-card i { font-size: 1.3rem; color: #666; }
.rc-pay-card b { font-size: .85rem; color: #333; }
.rc-pay-card small { font-size: .7rem; color: #999; }
.rc-pay-input:checked + .rc-pay-card {
  border-color: var(--dl-primary, #fe8900); background: var(--dl-orange-lite, #fff5eb);
  box-shadow: 0 0 0 1px var(--dl-primary, #fe8900) inset;
}
.rc-pay-input:checked + .rc-pay-card i,
.rc-pay-input:checked + .rc-pay-card b { color: var(--dl-primary-dark, #e67800); }
.rc-pay-card--fixed { cursor: default; }
.rc-pay-desc { font-size: .7rem; color: #b97; margin-top: .1rem; }

/* 礼包详情说明框（灰底，保留换行） */
.rc-detail-box {
  background: #f7f7f7; border: 1px solid #eee; border-radius: 8px;
  padding: .7rem .8rem; margin: .3rem 0 .9rem;
  font-size: .78rem; color: #666; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
}

/* 添加到购物车：绿色按钮 */
.rc-btn-green {
  border: 0; border-radius: var(--dl-btn-radius, 14px); padding: .62rem 1rem;
  background: linear-gradient(180deg, #4caf50, #3d8b40); color: #fff;
  font-size: .85rem; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.rc-btn-green:hover { background: #3d8b40; }

/* 购物车 */
.rc-cart { border: 1px solid #eee; border-radius: 8px; margin-top: .4rem; overflow: hidden; }
.rc-cart-empty { padding: .9rem; text-align: center; color: #999; font-size: .8rem; }
.rc-cart-item {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .55rem .75rem; border-top: 1px solid #f2f2f2; font-size: .82rem; color: #333; flex-wrap: wrap;
}
.rc-cart-item:first-child { border-top: 0; }
.rc-cart-info { flex: 1; min-width: 0; }
.rc-cart-remove { border: 0; background: transparent; color: #c45656; cursor: pointer; font-size: .95rem; padding: .2rem .3rem; }
.rc-cart-remove:hover { color: #a33; }
.rc-cart-err { flex: 0 0 100%; color: #c45656; font-size: .72rem; }

/* 消费记录弹窗内容（外壳复用 custom.css 里已有的 .modal / .modal__* 通用弹窗类，
   这里只补 .modal__bd 内部两段列表自己的排版） */
.rc-order-section { margin-bottom: .9rem; }
.rc-order-section:last-child { margin-bottom: 0; }
.rc-order-h { font-size: .82rem; font-weight: 700; color: var(--dl-primary-dark, #e67800); margin-bottom: .4rem; }
.rc-order-row {
  font-size: .76rem; color: #555; padding: .4rem .5rem; border-top: 1px solid #f2f2f2; line-height: 1.6;
  word-break: break-all;
}
.rc-order-row:first-child { border-top: 0; }
.rc-order-empty { font-size: .78rem; color: #999; padding: .3rem .5rem; }
