.rs-main { padding-top: 42px; padding-bottom: 64px; }
.rs-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.rs-heading h1 { font-size: 28px; line-height: 1.3; letter-spacing: -.03em; overflow-wrap: anywhere; }
.rs-eyebrow { color: var(--ink-3); font-size: 13px; margin-bottom: 6px; }
.rs-account-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 14px; }
.rs-account-nav a { color: var(--ink-3); text-decoration: none; }
.rs-account-nav a[aria-current] { color: var(--ink); font-weight: 650; }
.rs-account-nav form { margin: 0; }
.rs-card { background: var(--card); padding: 28px; border: 1px solid var(--line); border-radius: 18px; min-width: 0; }
.rs-card h2 { font-size: 18px; font-weight: 650; }
.rs-entry { max-width: 900px; }
.rs-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.rs-form { margin-top: 22px; }
.rs-form .btn { margin-top: 24px; }
.rs-intro { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.rs-error { margin: 0 0 20px; }
.rs-state { padding: 40px; }
.rs-state h2 { margin: 18px 0 8px; }
.rs-state p { color: var(--ink-3); }
.rs-state .btn { margin-top: 24px; }
.rs-badge { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--ink-2); }
.rs-buy { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rs-options { display: grid; gap: 12px; margin-top: 22px; }
.rs-option { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.rs-option:has(input:checked) { border-color: var(--ink); background: #faf9f6; }
.rs-option input, .rs-channel input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.rs-option-main { display: grid; gap: 3px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rs-option-main strong { font-weight: 600; }
.rs-option-main > span { font-size: 13px; color: var(--ink-3); }
.rs-option-diff { font-size: 12px; color: var(--ink-3); }
.rs-option-diff b { color: #1f7a3a; font-weight: 700; }
.rs-option-price { display: grid; text-align: right; flex: none; }
.rs-option-price small { font-size: 11px; color: var(--ink-3); }
.rs-option-price b { font-size: 19px; font-variant-numeric: tabular-nums; }
.rs-checkout { position: sticky; top: 84px; }
.rs-channels { display: grid; gap: 8px; border: 0; padding: 0; margin: 20px 0 0; }
.rs-channel { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.rs-channel:has(input:checked) { border-color: var(--ink); }
.rs-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 26px 0 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.rs-total > span { color: var(--ink-3); font-size: 13px; }
.rs-total b { font-size: 27px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rs-checkout .btn { margin-top: 20px; }
.rs-submit-error { margin-top: 14px; font-size: 13px; }
.rs-recent { margin-top: 24px; }
.rs-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rs-section-heading > a { font-size: 13px; color: var(--ink-3); }
.rs-empty { padding: 36px 0; text-align: center; color: var(--ink-3); }
.rs-orders { margin-top: 12px; }
.rs-orders > li + li { border-top: 1px solid var(--line-2); }
.rs-order { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 18px 0; text-decoration: none; }
.rs-order-main, .rs-order-side { display: grid; gap: 3px; }
.rs-order-main { min-width: 0; overflow-wrap: anywhere; }
.rs-order-main > span, .rs-order-main > time, .rs-order-side > span { font-size: 12px; color: var(--ink-3); }
.rs-order-side { text-align: right; flex: none; }
.rs-order .rs-order-open { margin-top: 4px; color: var(--ink); }
.rs-order:hover .rs-order-open { text-decoration: underline; }
.rs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rs-admin-panel .rs-admin-note { margin: -2px 0 16px; color: var(--ink-3); font-size: 13px; }
.rs-account-actions, .rs-price-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-price-form { min-width: 240px; }
.rs-money-input { display: flex; align-items: center; gap: 6px; }
.rs-money-input .input { width: 108px; }
.rs-override-form { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(200px, 2fr) 130px auto; gap: 12px; align-items: end; margin: 16px 0 0; }
.rs-override-form .label { display: grid; gap: 6px; margin: 0; font-size: 13px; color: var(--ink-2); }
.rs-override-form .btn { height: 46px; }
.rs-admin-panel .rs-overrides { margin-top: 22px; }
@media (max-width: 900px) {
  .rs-buy { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
  .rs-card { padding: 22px; }
  .rs-override-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .rs-main { padding-top: 26px; padding-bottom: 36px; }
  .rs-heading { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .rs-heading h1 { font-size: 25px; }
  .rs-account-nav { gap: 22px; }
  .rs-entry-grid, .rs-buy { grid-template-columns: 1fr; }
  .rs-card { padding: 20px; border-radius: 14px; }
  .rs-checkout { position: static; }
  .rs-option { padding: 14px 12px; gap: 10px; }
  .rs-option-main strong { font-size: 14px; }
  .rs-option-price b { font-size: 17px; }
  .rs-total { margin-top: 20px; }
  .rs-override-form { grid-template-columns: 1fr; }
  .rs-order { gap: 12px; }
  .rs-order-main > strong { font-size: 14px; }
}
/* 代理线 A / B（2026-10-28）：推广链接、数据、余额、提现 */
.rs-flash { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f6f5f0; font-size: 14px; }
.rs-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.rs-side { display: grid; gap: 20px; }
.rs-link-card .rs-intro { margin-bottom: 18px; }
.rs-link-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.rs-link-row .input { flex: 1; min-width: 0; font-size: 13px; }
.rs-link-qr { display: flex; gap: 16px; align-items: center; margin: 18px 0 6px; }
.rs-link-qr .qr-svg { width: 132px; height: 132px; flex: none; border: 1px solid var(--line); border-radius: 10px; }
.rs-product-link { margin-top: 18px; }
.rs-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.rs-inline-form .input { width: 140px; }
.rs-money { display: grid; gap: 0; padding: 8px 28px; }
.rs-money > div { display: grid; gap: 2px; padding: 16px 0; }
.rs-money > div + div { border-top: 1px solid var(--line-2); }
.rs-money span { font-size: 13px; color: var(--ink-3); }
.rs-money b { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rs-money small { font-size: 12px; color: var(--ink-3); }
.rs-money-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 20px; }
.rs-money-wide > div + div { border-top: 0; }
.rs-tg p { margin: 10px 0; font-size: 14px; }
.rs-stats, .rs-recent { margin-top: 20px; }
.rs-stats-table td, .rs-stats-table th { text-align: right; font-variant-numeric: tabular-nums; }
.rs-stats-table th[scope="row"], .rs-stats-table thead th:first-child { text-align: left; font-weight: 500; color: var(--ink-2); }
.rs-wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.rs-wallet-grid .rs-form .btn { margin-top: 18px; }
.rs-wallet-grid .table-wrap { margin-top: 20px; }
.rs-topups { margin-top: 18px; }
.rs-topups a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 13px; text-decoration: none; }
.rs-plus { color: #1d7a3e; }
.rs-minus { color: var(--ink-2); }
.rs-fields { display: grid; gap: 4px; margin-bottom: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.rs-fields-title { font-size: 13px; color: var(--ink-3); }
.rs-buyer-tg { margin-bottom: 22px; }
.rs-claim { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 0 0 16px; font-size: 12px; color: var(--ink-3); }
.rs-topup-card { max-width: 760px; }
.rs-topup-card h2 { font-size: 24px; margin: 6px 0 10px; }
.rs-topup-nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 18px; }
.rs-topup-net h3 { font-size: 14px; font-weight: 600; }
.rs-address { word-break: break-all; font-size: 12px; }
.rs-settle { margin-top: 16px; }
.rs-admin-more { margin-top: 14px; font-size: 13px; }
@media (max-width: 820px) {
  .rs-home-grid, .rs-wallet-grid, .rs-money-wide { grid-template-columns: 1fr; }
  .rs-money-wide > div + div { border-top: 1px solid var(--line-2); }
  .rs-link-qr .qr-svg { width: 112px; height: 112px; }
}
/* 代理中心是前台页面，没有后台的表格样式 */
.reseller-page .table-wrap { overflow-x: auto; margin-top: 14px; }
.reseller-page .table { width: 100%; border-collapse: collapse; font-size: 14px; }
.reseller-page .table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.reseller-page .table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.reseller-page .table tbody tr:last-child td { border-bottom: 0; }
.reseller-page .table th:first-child, .reseller-page .table td:first-child { padding-left: 0; }
.reseller-page .rs-stats-table th, .reseller-page .rs-stats-table td { text-align: right; font-variant-numeric: tabular-nums; }
.reseller-page .rs-stats-table th[scope="row"] { text-align: left; font-size: 14px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.reseller-page .rs-stats-table thead th:first-child { text-align: left; }
.reseller-page .nowrap { white-space: nowrap; }
.reseller-page .input.sm { height: 36px; font-size: 14px; border-radius: 9px; padding: 0 12px; }
.reseller-page .rs-stats-table tbody tr:last-child th { border-bottom: 0; }
.rs-checkout { max-height: calc(100vh - 100px); overflow-y: auto; }
@media (max-width: 680px) { .rs-checkout { max-height: none; overflow: visible; } }

/* 代理怎么做（SOP）+ 免费一对一：登录页、未开通页、代理中心「怎么做」页 */
.rs-heading-links { display: flex; gap: 10px; flex-wrap: wrap; }
.rs-guide { margin-top: 18px; }
.rs-guide h2 small { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.rs-steps { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 14px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.rs-steps > li::marker { font-weight: 650; color: var(--ink); }
.rs-steps > li > b { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }
.rs-steps ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.rs-steps ul b { color: var(--ink); font-weight: 600; }
.rs-coaching { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 12px; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.rs-coaching .rs-eyebrow { color: var(--ink); font-weight: 650; margin: 0; }
.rs-coaching p { margin: 0; }
.rs-coaching .hint { color: var(--ink-3); }

/* 代理价目表（登录页、未开通页，付费前就能看） */
.rs-prices { margin-top: 18px; }
.rs-prices h2 small { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.rs-prices .rs-intro { margin-bottom: 14px; }
.rs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rs-prices-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rs-prices-table th, .rs-prices-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rs-prices-table td:first-child { white-space: normal; min-width: 180px; }
.rs-prices-table th { font-weight: 600; color: var(--ink-3); font-size: 12px; }
.rs-prices-table td:nth-child(n+2), .rs-prices-table th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.rs-diff { color: var(--ok, #1f8a4c); font-weight: 650; }
.rs-muted { color: var(--ink-3); }
.rs-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* 推广返佣关着（10-30）：余额页只剩余额一格、充值一张卡 */
.rs-money-wide.rs-money-one, .rs-wallet-grid.rs-wallet-one { grid-template-columns: minmax(0, 1fr); }
