/* 充值中心、订单页、钱包、支付测试页专用样式（叠加在 site.css 之上） */
.rc .rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rc .rc-head h1 { margin: 0 0 4px; font-size: 26px; }
.rc .rc-head h1 { color: #f6e7c1; }
.rc .muted { color: #cbbda6; }
.rc .small { font-size: 13px; }
.rc .center { text-align: center; }
.rc-balance { background: rgba(22,18,12,.92); color: #f6e7c1; border: 1px solid rgba(240,212,138,.45); border-radius: 16px; padding: 14px 18px; min-width: 180px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; }
.rc-balance span { font-size: 13px; opacity: .9; }
.rc-balance b { font-size: 30px; line-height: 1; grid-row: 2; color: #e2b657; }
.rc-balance a { color: #f0d48a; font-size: 13px; text-decoration: underline; grid-column: 2; grid-row: 2; align-self: end; }
.rc-balance .vip { grid-column: 1 / -1; font-style: normal; font-size: 12px; background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 10px; justify-self: start; margin-top: 6px; }
.rc-notice { background: #2a2112; border: 1px solid rgba(240,212,138,.35); color: #f0d48a; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }
.rc-form h2, .rc-items h2, .rc-recent h2 { font-size: 17px; margin: 22px 0 10px; }

.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tier { position: relative; display: block; background: rgba(22,18,12,.92); border: 1px solid rgba(240,212,138,.28); border-radius: 14px; padding: 14px 10px 12px; text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s; color: #f6e7c1; }
.tier input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tier:has(input[type="radio"]:checked), .tier.on { border-color: #e2b657; box-shadow: 0 0 0 3px rgba(226,182,87,.2); }
.tier-hot { grid-column: span 2; border-color: #e2b657; border-width: 2px; }
.tier-yuan { display: block; font-size: 26px; font-weight: 700; color: #f6e7c1; line-height: 1.1; }
.tier-yuan small { font-size: 13px; font-weight: 500; margin-left: 2px; color: #6b7a90; }
.tier-coins { display: block; font-size: 13px; color: #cbbda6; margin-top: 6px; }
.tier-coins i { font-style: normal; color: #e2b657; font-weight: 700; margin-left: 2px; }
.tier-tag { position: absolute; top: -11px; right: 10px; background: #e2b657; color: #1a1204; font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; border: 1.5px solid #1a1204; box-shadow: 0 3px 0 #6b4a16; line-height: 1.3; }
/* 档位卡顶部色带：三种暖金轮换，68 元那张用最亮的一档 */
.tier { border-top-width: 6px; border-top-color: #f0c860; }
.tier-grid > .tier:nth-child(3n+2) { border-top-color: #d9a441; }
.tier-grid > .tier:nth-child(3n) { border-top-color: #b5782c; }
.tier-hot { border-top-color: #f0d48a; }
.item { border-top: 6px solid #d9a441; }
.tier-custom .tier-yuan input { width: 92px; font-size: 22px; font-weight: 700; text-align: center; border: 0; border-bottom: 2px dashed rgba(240,212,138,.45); background: transparent; outline: none; color: #f6e7c1; -moz-appearance: textfield; }
.tier-custom .tier-yuan input::-webkit-outer-spin-button, .tier-custom .tier-yuan input::-webkit-inner-spin-button { -webkit-appearance: none; }
.coin-rules { margin: 14px 0 4px; font-size: 14px; line-height: 1.7; color: #334155; }
.coin-rules ul { margin: 6px 0 0; padding-left: 1.2em; }
.coin-rules li { margin: 2px 0; }
.pay-custom { margin-top: 16px; }
.pay-custom-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-custom-line label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pay-custom-line input { width: 148px; font-size: 22px; font-weight: 700; text-align: center; padding: 6px 10px; border-radius: 10px; border: 1px solid rgba(240,212,138,.45); background: #120f0c; color: #f6e7c1; -moz-appearance: textfield; appearance: textfield; }
.pay-custom-line input::-webkit-outer-spin-button, .pay-custom-line input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-custom .preview { font-weight: 700; color: #f0d48a; }
/* 未登录充值首页的 68 元「常选」角标：card-body 是纵向 flex，不收缩会被拉成通栏，这里收回成小胶囊 */
.tier-show .tier-hot .badge { align-self: flex-start; margin-left: 0; }
body.portal .coin-rules { color: #efe7d6; }

.method-list { display: grid; gap: 10px; }
.method-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: rgba(22,18,12,.92); border: 1px solid rgba(240,212,138,.28); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.method-row input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.method-row:has(input:checked), .method-row.on { border-color: #e2b657; }
.method-row:has(input:checked) .method-check, .method-row.on .method-check { background: #e2b657; border-color: #e2b657; }
.method-row:has(input:checked) .method-check::after, .method-row.on .method-check::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.method-logos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.method-logos .plus { font-style: normal; color: #9aa7ba; font-weight: 700; }
.method-name { font-size: 15px; color: #f6e7c1; }
.method-check { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; }
.demo-tag { font-style: normal; font-size: 11px; color: #874d00; background: #fff7e6; border: 1px solid #ffd591; border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }

.paylogo { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.paylogo b { font-size: 13px; font-weight: 600; color: #1f2937; white-space: nowrap; }
.paylogo.acq { padding: 3px 8px 3px 6px; border: 1px solid #e3e8f0; border-radius: 8px; background: #fff; }

.rc-summary { margin-top: 20px; background: rgba(22,18,12,.92); border-radius: 16px; padding: 16px; border: 1px solid rgba(240,212,138,.28); color: #efe7d6; }
.rc-summary > div:first-child { font-size: 16px; margin-bottom: 10px; }
.rc-summary b { color: #e2b657; font-size: 22px; }
.rc-summary .agree { display: block; font-size: 13px; color: #cbbda6; margin-bottom: 12px; }
.rc-summary .agree a { color: #e2b657; }
.form-msg { color: #d93025; font-size: 14px; margin: 0 0 10px; }
.form-msg.ok { color: #0f9d58; }

.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.item { background: rgba(22,18,12,.92); border: 1px solid rgba(240,212,138,.28); border-radius: 14px; padding: 14px; color: #f6e7c1; }
.item b { display: block; font-size: 15px; }
.item span { display: inline-block; margin: 6px 0; color: #e2b657; font-weight: 700; }
.item p { margin: 0; font-size: 13px; color: #6b7a90; line-height: 1.5; }

.tbl { width: 100%; border-collapse: collapse; background: rgba(22,18,12,.92); border-radius: 14px; overflow: hidden; border: 1px solid rgba(240,212,138,.28); font-size: 14px; color: #efe7d6; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(240,212,138,.18); }
.tbl th { background: transparent; font-weight: 600; color: #e2b657; font-size: 13px; }
.tbl a { color: #e2b657; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .mono { font-family: Consolas, Menlo, monospace; font-size: 12px; }
.tbl .plus { color: #0f9d58; font-weight: 600; }
.tbl .minus { color: #d93025; font-weight: 600; }
.st { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: #4a5568; }
.st-paid { background: #e6f7f1; color: #0f9d58; }
.st-pending { background: #fff7e6; color: #874d00; }
.st-closed, .st-failed { background: #fdecec; color: #d93025; }

.rc-order .order-card { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid #e3e8f0; border-radius: 20px; padding: 24px 20px; text-align: center; }
.order-no { font-size: 12px; color: #9aa7ba; margin: 0 0 8px; font-family: Consolas, Menlo, monospace; }
.order-amount b { font-size: 40px; color: #0e1626; }
.order-amount span { color: #6b7a90; font-size: 15px; margin-left: 6px; }
.order-method { margin: 10px 0 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.order-state p { margin: 10px 0; }
.qr-box { display: inline-block; padding: 12px; background: #fff; border: 1px solid #e3e8f0; border-radius: 16px; margin: 6px auto 10px; }
.qr-box img, .qr-box canvas { display: block; width: 220px; height: 220px; }
.big-ok { width: 64px; height: 64px; border-radius: 50%; background: #e6f7f1; color: #0f9d58; font-size: 36px; line-height: 64px; margin: 0 auto 8px; }
.order-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.polling { margin-top: 12px !important; }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 12px; }
.stat span { display: block; font-size: 12px; color: #6b7a90; }
.stat b { font-size: 20px; }

@media (max-width: 760px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-balance { width: 100%; }
  .method-row { gap: 10px; padding: 12px; }
  .paylogo b { font-size: 12px; }
  .tbl { font-size: 13px; }
  .tbl th, .tbl td { padding: 8px; }
}

/* ---------- 支付测试页（单独一页，白底黑字细边框；版式同云初 /pay/custom） ---------- */
body.paytest { margin: 0; background: #fff; color: #111; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.pt-wrap { max-width: 460px; margin: 0 auto; padding: 24px 16px 48px; }
.pt-title { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 0 0 10px; }
.pt-meta { margin: 2px 0; font-size: 12px; color: #555; line-height: 1.6; word-break: break-all; }
.pt-error { border: 1px solid #d93025; color: #d93025; padding: 10px 12px; margin: 14px 0 0; font-size: 13px; border-radius: 4px; }
.pt-preview { border: 1px dashed #999; color: #555; padding: 8px 12px; margin: 14px 0 0; font-size: 12px; border-radius: 4px; }
.pt-form { margin-top: 18px; display: grid; gap: 16px; }
.pt-field { display: grid; gap: 6px; font-size: 12px; color: #333; }
.pt-field-label { font-size: 12px; color: #333; }
.pt-field input[type="number"] { width: 100%; box-sizing: border-box; border: 1px solid #d9d9d9; border-radius: 4px; padding: 11px 12px; font-size: 16px; color: #111; background: #fff; -moz-appearance: textfield; }
.pt-field input[type="number"]::-webkit-outer-spin-button, .pt-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.pt-field input[type="number"]:focus { outline: none; border-color: #111; }
.pt-rows { display: grid; gap: 8px; }
.pt-row { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; border: 1px solid #d9d9d9; border-radius: 4px; padding: 10px 12px; background: #fff; cursor: pointer; min-height: 44px; }
.pt-row input { position: absolute; opacity: 0; pointer-events: none; }
.pt-row:has(input:checked), .pt-row.on { border-color: #111; box-shadow: 0 0 0 1px #111 inset; }
.pt-logos { display: inline-flex; align-items: center; gap: 6px; }
.pt-logos .paylogo.acq { padding: 0; border: 0; background: transparent; }
.pt-logos svg { display: block; }
.pt-label { font-size: 14px; color: #111; }
.pt-empty { border: 1px solid #d9d9d9; border-radius: 4px; padding: 14px 12px; font-size: 13px; color: #555; margin: 0; }
.pt-pay { display: block; width: 100%; box-sizing: border-box; text-align: center; background: #111; color: #fff; border: 0; padding: 13px; font-size: 15px; border-radius: 4px; text-decoration: none; cursor: pointer; }
.pt-pay:active { background: #000; }
.pt-foot { margin-top: 14px; font-size: 12px; color: #666; line-height: 1.6; }
.pt-order { margin-top: 18px; border: 1px solid #d9d9d9; border-radius: 4px; padding: 16px; text-align: center; }
.pt-order p { margin: 6px 0; font-size: 14px; }
.pt-amount { font-size: 32px; font-weight: 700; margin: 4px 0 !important; }
.pt-method { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-method span { font-size: 13px; color: #333; }
.pt-ok { color: #0f9d58; font-size: 22px; font-weight: 700; }
.pt-link { color: #111; font-size: 13px; }
.paytest .qr-box { border-radius: 4px; border-color: #d9d9d9; }
