/* /user/referrals 推荐中心与提现演示页。所有选择器以 rc- 为前缀。 */
.rc-page {
  padding-top: 44px;
}
.us-page > .rc-wrap {
  max-width: 1040px;
}
.rc-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: rc-page-enter 0.22s cubic-bezier(0.2, 0, 0, 1);
}
@keyframes rc-page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rc-wrap {
    animation: none;
  }
}
.rc-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 0 8px;
}
.rc-heading {
  min-width: 0;
}
.rc-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rc-heading h1 {
  margin: 0;
  color: #1d1d1f;
  font-size: 25px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.rc-heading p {
  margin: 5px 0 0;
  color: #86868b;
  font-size: 14px;
  line-height: 1.5;
}
.rc-demo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ececef;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.rc-demo-banner {
  padding: 12px 16px;
  border-radius: 12px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.5;
}
.rc-balance-card {
  overflow: hidden;
  border-radius: 24px;
  background: #1d1d1f;
  color: #ffffff;
}
.rc-balance-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
}
.rc-eyebrow {
  margin: 0 0 10px;
  color: #b9b9bf;
  font-size: 13px;
  line-height: 1.4;
}
.rc-balance {
  margin: 0;
  color: #ffffff;
  font-size: 44px;
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.rc-balance span {
  margin-right: 6px;
  font-size: 22px;
  font-weight: 450;
  vertical-align: 7px;
}
.rc-balance-note {
  margin: 12px 0 0;
  color: #a1a1a6;
  font-size: 13px;
  line-height: 1.5;
}
.rc-primary-btn,
.rc-secondary-btn {
  appearance: none;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}
.rc-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #1d1d1f;
  background: #1d1d1f;
  color: #ffffff;
}
.rc-balance-card .rc-primary-btn {
  border-color: #ffffff;
  background: #ffffff;
  color: #1d1d1f;
}
.rc-primary-btn:hover:not(:disabled),
.rc-secondary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.rc-balance-card .rc-primary-btn:hover:not(:disabled) {
  background: #f5f5f7;
}
.rc-balance-error {
  margin: -16px 32px 20px;
  color: #ff9f9f;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}
.rc-primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.rc-secondary-btn {
  border: 1px solid #d1d1d6;
  background: #ffffff;
  color: #1d1d1f;
}
.rc-secondary-btn:hover:not(:disabled) {
  background: #f5f5f7;
}
.rc-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 22px 32px 26px;
  background: #2c2c2e;
}
.rc-metrics > div {
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid #48484a;
}
.rc-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.rc-metrics dt {
  color: #a1a1a6;
  font-size: 12px;
  line-height: 1.4;
}
.rc-metrics dd {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.rc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 20px;
}
.rc-grid.rc-grid-single {
  grid-template-columns: minmax(0, 1fr);
}
.rc-panel {
  padding: 24px;
  border: 1px solid #ececef;
  border-radius: 20px;
  background: #ffffff;
}
.rc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.rc-panel-head h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.rc-panel-head p {
  margin: 4px 0 0;
  color: #86868b;
  font-size: 13px;
  line-height: 1.5;
}
.rc-panel-meta {
  flex: 0 0 auto;
  color: #a1a1a6;
  font-size: 12px;
  line-height: 1.5;
}
.rc-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rc-link-row > span {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}
.rc-link-row button {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #1d1d1f;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.rc-link-row button:hover {
  background: #f5f5f7;
}
.rc-link-state {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  background: #f5f5f7;
  color: #86868b;
  font-size: 13px;
}
.rc-link-state a {
  color: #1d1d1f;
}
.rc-account-state {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #86868b;
  font-size: 11px;
}
.rc-account-state.is-ready {
  background: #eaf7ee;
  color: #248a3d;
}
.rc-account-row {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rc-account-row:hover .rc-account-view {
  color: #1d1d1f;
}
.rc-account-row:focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 5px;
  border-radius: 10px;
}
.rc-account-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1677ff;
  color: #ffffff;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}
.rc-account-mark.is-bank {
  background: #1d1d1f;
}
.rc-account-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rc-account-row strong {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 500;
}
.rc-account-row span:not(.rc-account-mark) {
  color: #86868b;
  font-size: 12px;
}
.rc-account-row .rc-account-view {
  flex: 0 0 auto;
  margin-left: auto;
  transition: color 0.15s;
}
.rc-success-count {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 14px;
  background: #f5f5f7;
}
.rc-success-count strong {
  color: #1d1d1f;
  font-size: 28px;
  font-weight: 550;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rc-success-count span {
  color: #86868b;
  font-size: 13px;
}
.rc-table-wrap {
  overflow-x: auto;
}
.rc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.rc-table th {
  padding: 0 14px 10px;
  color: #a1a1a6;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.rc-table th:first-child,
.rc-table td:first-child {
  padding-left: 0;
}
.rc-table th:last-child,
.rc-table td:last-child {
  padding-right: 0;
}
.rc-table td {
  padding: 15px 14px;
  border-top: 1px solid #f0f0f2;
  color: #6e6e73;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rc-table td:first-child {
  min-width: 132px;
}
.rc-table td strong,
.rc-table td span {
  display: block;
}
.rc-table td strong {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
}
.rc-table td > span:not(.rc-status-chip) {
  margin-top: 3px;
  color: #a1a1a6;
  font-size: 11px;
}
.rc-table .rc-money-cell {
  color: #1d1d1f;
  font-weight: 500;
}
.rc-status-chip {
  display: inline-flex !important;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 11px;
  line-height: 1;
}
.rc-status-chip.is-paid {
  background: #eaf7ee;
  color: #248a3d;
}
.rc-withdraw-list {
  display: flex;
  flex-direction: column;
}
.rc-withdraw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid #f0f0f2;
}
.rc-withdraw-row:first-child {
  padding-top: 0;
  border-top: 0;
}
.rc-withdraw-row:last-child {
  padding-bottom: 0;
}
.rc-withdraw-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rc-withdraw-row > div:last-child {
  align-items: flex-end;
}
.rc-withdraw-row strong {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rc-withdraw-row span,
.rc-withdraw-row small {
  color: #86868b;
  font-size: 11px;
}
.rc-empty {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 14px;
  background: #f8f8fa;
  color: #a1a1a6;
  font-size: 13px;
  text-align: center;
}
.rc-rule-note {
  margin: 0;
  padding: 2px 8px 0;
  color: #a1a1a6;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.rc-modal-backdrop {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rc-modal {
  width: min(100%, 500px);
  max-height: min(760px, calc(100dvh - 40px));
  overflow-y: auto;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}
.rc-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 18px;
}
.rc-modal-head h2,
.rc-success h2 {
  margin: 12px 0 0;
  color: #1d1d1f;
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.rc-modal-head h2 {
  margin-top: 0;
}
.rc-modal-head p,
.rc-success > p {
  margin: 5px 0 0;
  color: #86868b;
  font-size: 13px;
  line-height: 1.5;
}
.rc-modal-close {
  appearance: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.rc-modal-close:hover {
  background: #ececef;
}
.rc-modal-body {
  padding: 0 28px;
}
.rc-identity-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rc-identity-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #1d1d1f;
  font-size: 13px;
}
.rc-identity-field > input,
.rc-identity-code-row {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid #d1d1d6;
  border-radius: 12px;
  background: #ffffff;
}
.rc-identity-field > input {
  padding: 10px 12px;
  outline: 0;
  color: #1d1d1f;
  font: inherit;
}
.rc-identity-field > input:focus,
.rc-identity-code-row:focus-within {
  border-color: #1d1d1f;
}
.rc-identity-field > input[aria-invalid="true"],
.rc-identity-code-row:has(input[aria-invalid="true"]) {
  border-color: #c9342f;
}
.rc-identity-field > small {
  min-height: 16px;
  color: #86868b;
  font-size: 11px;
  line-height: 1.45;
}
.rc-identity-field > small[role="alert"] {
  color: #c9342f;
}
.rc-identity-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}
.rc-identity-code-row input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d1d1f;
  font: inherit;
  letter-spacing: 0.08em;
}
.rc-identity-code-row button {
  align-self: stretch;
  padding: 0 13px;
  border: 0;
  border-left: 1px solid #ececef;
  background: #f8f8fa;
  color: #1d1d1f;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.rc-identity-code-row button:disabled {
  color: #a1a1a6;
  cursor: not-allowed;
}
.rc-identity-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}
.rc-identity-consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #1d1d1f;
}
.rc-identity-consent-error {
  margin: -10px 0 0 25px;
  color: #c9342f;
  font-size: 11px;
}
.rc-form-error {
  margin: 0;
  color: #c9342f;
  font-size: 12px;
  line-height: 1.5;
}
.rc-identity-detail {
  margin: 0;
  padding: 4px 0;
}
.rc-identity-detail > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
}
.rc-identity-detail > div + div {
  border-top: 1px solid #f0f0f2;
}
.rc-identity-detail dt,
.rc-identity-detail dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.rc-identity-detail dt {
  color: #86868b;
}
.rc-identity-detail dd {
  color: #1d1d1f;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rc-identity-note {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: #f8f8fa;
  color: #86868b;
  font-size: 11px;
  line-height: 1.6;
}
.rc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1d1d1f;
  font-size: 13px;
}
.rc-amount-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #d1d1d6;
  border-radius: 14px;
}
.rc-amount-input:focus-within {
  border-color: #1d1d1f;
}
.rc-amount-input b {
  font-size: 18px;
  font-weight: 500;
}
.rc-amount-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #1d1d1f;
  background: transparent;
  font: inherit;
  font-size: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rc-amount-input button {
  padding: 6px 0 6px 10px;
  border: 0;
  background: transparent;
  color: #1d1d1f;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.rc-field > small {
  min-height: 18px;
  color: #86868b;
  font-size: 11px;
}
.rc-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}
.rc-methods legend {
  margin-bottom: 10px;
  color: #1d1d1f;
  font-size: 13px;
}
.rc-methods label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ececef;
  border-radius: 14px;
  cursor: pointer;
}
.rc-methods label.is-selected {
  border-color: #1d1d1f;
}
.rc-methods input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.rc-methods label > span:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rc-methods strong {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 500;
}
.rc-methods small {
  color: #86868b;
  font-size: 11px;
}
.rc-methods i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ececef;
  color: transparent;
  font-style: normal;
}
.rc-methods label.is-selected i {
  background: #1d1d1f;
  color: #ffffff;
}
.rc-withdraw-summary {
  margin: 22px 0 0;
  padding: 16px;
  border-radius: 14px;
  background: #f5f5f7;
}
.rc-withdraw-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}
.rc-withdraw-summary > div:first-child {
  margin-top: 0;
}
.rc-withdraw-summary dt,
.rc-withdraw-summary dd {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
}
.rc-withdraw-summary > div:last-child dt,
.rc-withdraw-summary > div:last-child dd {
  color: #1d1d1f;
  font-weight: 500;
}
.rc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px 28px 28px;
}
.rc-success {
  padding: 42px 32px 32px;
  text-align: center;
}
.rc-success-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf7ee;
  color: #248a3d;
}
.rc-success h2 {
  margin-top: 18px;
}
.rc-success dl {
  margin: 26px 0;
  padding: 16px;
  border-radius: 14px;
  background: #f5f5f7;
  text-align: left;
}
.rc-success dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}
.rc-success dl > div:first-child {
  margin-top: 0;
}
.rc-success dt,
.rc-success dd {
  margin: 0;
  color: #6e6e73;
  font-size: 12px;
}
.rc-success dd {
  color: #1d1d1f;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rc-success .rc-primary-btn {
  width: 100%;
}

@media (max-width: 760px) {
  .rc-page {
    padding-top: 64px;
  }
  .rc-head > .ua-back {
    display: none;
  }
  .rc-heading h1 {
    font-size: 22px;
  }
  .rc-balance-top {
    align-items: stretch;
    flex-direction: column;
    padding: 24px;
  }
  .rc-balance {
    font-size: 38px;
  }
  .rc-balance-card .rc-primary-btn {
    align-self: flex-start;
  }
  .rc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
    padding: 20px 24px 24px;
  }
  .rc-metrics > div {
    padding: 0 16px;
  }
  .rc-metrics > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .rc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .rc-wrap {
    gap: 16px;
  }
  .rc-panel {
    padding: 20px;
    border-radius: 16px;
  }
  .rc-panel-head {
    margin-bottom: 16px;
  }
  .rc-link-row {
    align-items: stretch;
    flex-direction: column;
  }
  .rc-link-row button {
    align-self: flex-start;
  }
  .rc-table th:nth-child(3),
  .rc-table td:nth-child(3),
  .rc-table th:nth-child(4),
  .rc-table td:nth-child(4) {
    display: none;
  }
  .rc-modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .rc-modal {
    width: 100%;
    max-height: 88dvh;
    border-radius: 24px 24px 0 0;
  }
  .rc-modal-head {
    padding: 24px 20px 16px;
  }
  .rc-modal-body {
    padding: 0 20px;
  }
  .rc-modal-actions {
    padding: 20px;
  }
  .rc-modal-actions > * {
    flex: 1 1 0;
  }
  .rc-success {
    padding: 36px 24px 28px;
  }
}
