:root {
  --rt-bg: linear-gradient(180deg, #86EFAC 0%, #BEF264 20%, #FDE047 40%, #FEF3C7 60%, #FFFBEB 80%, #FFFBF0 100%);
  --rt-card-bg: linear-gradient(145deg, rgba(255,255,255,.94) 0%, rgba(240,253,244,.9) 100%);
  --rt-border: rgba(134, 239, 172, .62);
  --rt-text: #166534;
  --rt-text-soft: rgba(22, 101, 52, .72);
  --rt-primary: linear-gradient(135deg, #4ade80 0%, #10b981 100%);
  --rt-amber: linear-gradient(135deg, #fde68a 0%, #fdba74 100%);
  --rt-danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--rt-text);
  background: var(--rt-bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.rt-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 14px 14px 102px;
}

.rt-wave-top {
  position: relative;
  height: 66px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.rt-wave-top::before,
.rt-wave-top::after {
  content: "";
  position: absolute;
  left: -20%;
  width: 140%;
  border-radius: 40%;
}

.rt-wave-top::before {
  top: 6px;
  height: 54px;
  background: rgba(255, 255, 255, .26);
}

.rt-wave-top::after {
  top: 14px;
  height: 50px;
  background: rgba(255, 255, 255, .18);
}

.rt-page-title {
  margin: 0 0 14px;
  font-size: 23px;
  font-weight: 800;
  color: var(--rt-text);
}

.rt-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--rt-text-soft);
}

.rt-card {
  background: var(--rt-card-bg);
  border: 2px solid var(--rt-border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(34, 197, 94, .16);
  backdrop-filter: blur(2px);
}

.rt-card + .rt-card {
  margin-top: 12px;
}

.rt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  border: 2px solid #fde68a;
  background: var(--rt-amber);
  color: #92400e;
  font-weight: 700;
}

.rt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rt-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rt-stat {
  border-radius: 16px;
  border: 2px solid rgba(134, 239, 172, .7);
  background: rgba(255, 255, 255, .78);
  padding: 12px;
  text-align: center;
}

.rt-stat-value {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #166534;
}

.rt-stat-label {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(22, 101, 52, .72);
}

.rt-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
}

.rt-input,
.rt-select,
.rt-textarea {
  width: 100%;
  border: 2px solid rgba(134, 239, 172, .75);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  color: #14532d;
  font-size: 14px;
  padding: 10px 12px;
}

.rt-textarea {
  min-height: 100px;
  resize: vertical;
}

.rt-input:focus,
.rt-select:focus,
.rt-textarea:focus {
  outline: none;
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .22);
}

.rt-btn,
.rt-btn:link,
.rt-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.rt-btn-full {
  width: 100%;
}

.rt-btn-primary {
  background: var(--rt-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 185, 129, .24);
}

.rt-btn-primary:hover {
  transform: translateY(-1px);
}

.rt-btn-secondary {
  background: rgba(255, 255, 255, .8);
  color: #166534;
  border-color: rgba(134, 239, 172, .95);
}

.rt-btn-warn {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

.rt-btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.rt-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #65a30d;
}

.rt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rt-item {
  display: block;
  border-radius: 16px;
  border: 2px solid rgba(187, 247, 208, .85);
  background: rgba(255,255,255,.88);
  padding: 12px;
}

.rt-item-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #14532d;
}

.rt-item-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #4d7c0f;
}

.rt-empty {
  text-align: center;
  padding: 36px 16px;
  color: #65a30d;
}

.rt-loading {
  text-align: center;
  color: #4d7c0f;
  padding: 28px 12px;
  font-size: 14px;
}

.rt-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #ecfccb;
  color: #3f6212;
}

.rt-note {
  border-left: 3px solid #34d399;
  background: #f7fee7;
  border-radius: 10px;
  padding: 10px;
  color: #4d7c0f;
  font-size: 12px;
}

.rt-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 440px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  border: 2px solid rgba(134, 239, 172, .82);
  box-shadow: 0 16px 28px rgba(22, 101, 52, .2);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  z-index: 1000;
}

.rt-tab,
.rt-tab:link,
.rt-tab:visited {
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  color: #166534;
  padding: 10px 10px;
  border-radius: 999px;
}

.rt-tab span {
  margin-right: 4px;
}

.rt-tab.active {
  background: var(--rt-primary);
  color: #ffffff;
}

.rt-top-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  text-decoration: none;
  margin-bottom: 10px;
}

.rt-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, .68);
  display: none;
}

.rt-modal-inner {
  width: min(92vw, 820px);
  height: min(90vh, 760px);
  margin: 5vh auto;
  border-radius: 14px;
  background: #0f172a;
  padding: 10px;
}

.rt-modal-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rt-kv {
  display: grid;
  gap: 8px;
}

.rt-kv-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #bbf7d0;
}

.rt-kv-item:last-child {
  border-bottom: 0;
}

.rt-kv-label {
  color: #4d7c0f;
  font-size: 13px;
}

.rt-kv-value {
  color: #14532d;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.recharge-overlay,
.pay-method-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, .40);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.pay-method-overlay {
  z-index: 100000;
}

.recharge-dialog,
.pay-method-dialog {
  width: min(100%, 440px);
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 2px solid #fde68a;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
  box-shadow: 0 -16px 34px rgba(0, 0, 0, .16);
}

.recharge-header,
.pay-method-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.recharge-header h3,
.pay-method-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #92400e;
}

.recharge-header p,
.pay-method-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(180, 83, 9, .72);
}

.recharge-close,
.pay-method-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid #fde68a;
  background: #fef3c7;
  color: #b45309;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.recharge-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid #bbf7d0;
  background: linear-gradient(90deg, #ecfdf5 0%, #d1fae5 100%);
}

.recharge-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.recharge-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #bbf7d0 0%, #6ee7b7 100%);
  font-size: 20px;
}

.recharge-user-name {
  margin: 0;
  color: #166534;
  font-size: 14px;
  font-weight: 800;
}

.recharge-user-sub {
  margin: 2px 0 0;
  color: rgba(22, 101, 52, .72);
  font-size: 12px;
}

.recharge-user-count {
  border-radius: 12px;
  border: 2px solid #bbf7d0;
  background: #f0fdf4;
  color: #16a34a;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.recharge-section {
  margin-top: 12px;
}

.recharge-section-title {
  margin: 0 0 8px;
  color: #166534;
  font-size: 14px;
  font-weight: 800;
}

.recharge-package-list {
  display: grid;
  gap: 8px;
}

.recharge-package-btn {
  width: 100%;
  border-radius: 16px;
  border: 2px solid #bbf7d0;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
}

.recharge-package-btn:active {
  transform: scale(.98);
}

.recharge-package-btn.is-recommended {
  border-color: #34d399;
  background: linear-gradient(145deg, #ecfdf5 0%, #dcfce7 100%);
}

.recharge-package-main {
  min-width: 0;
}

.recharge-package-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recharge-package-name {
  color: #166534;
  font-size: 15px;
  font-weight: 800;
}

.recharge-package-tag {
  border-radius: 999px;
  background: #ecfccb;
  border: 1px solid #86efac;
  color: #166534;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.recharge-package-desc {
  margin: 3px 0 0;
  color: rgba(22, 101, 52, .72);
  font-size: 12px;
}

.recharge-package-right {
  text-align: right;
  flex-shrink: 0;
}

.recharge-package-price {
  color: #16a34a;
  font-size: 17px;
  font-weight: 800;
}

.recharge-package-point {
  margin-top: 2px;
  color: rgba(22, 101, 52, .76);
  font-size: 12px;
}

.pay-order-card {
  border-radius: 16px;
  border: 2px solid #bfdbfe;
  background: linear-gradient(145deg, #eff6ff 0%, #eef2ff 100%);
  padding: 12px;
  margin-bottom: 10px;
}

.pay-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #1d4ed8;
}

.pay-order-row + .pay-order-row {
  margin-top: 8px;
}

.pay-order-row.total {
  padding-top: 8px;
  border-top: 1px solid #bfdbfe;
}

.pay-order-row.total strong {
  font-size: 22px;
  color: #f97316;
}

.pay-method-list {
  display: grid;
  gap: 8px;
}

.pay-option-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  padding: 12px;
  cursor: pointer;
  transition: all .2s ease;
}

.pay-option-item[data-method="alipay"] {
  display: none !important;
}

.pay-option-item.active[data-method="wechat"] {
  border-color: #34d399;
  background: #ecfdf5;
}

.pay-option-item.active[data-method="alipay"] {
  border-color: #60a5fa;
  background: #eff6ff;
}

.pay-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.pay-option-icon.wechat {
  background: #22c55e;
}

.pay-option-icon.alipay {
  background: #3b82f6;
}

.pay-option-name {
  flex: 1;
  text-align: left;
  font-weight: 700;
  color: #1f2937;
}

.pay-option-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
}

.pay-option-item.active .pay-option-check {
  border-color: transparent;
  color: #fff;
  background: #22c55e;
}

.pay-option-item.active[data-method="alipay"] .pay-option-check {
  background: #3b82f6;
}

.pay-action-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-action-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.pay-action-back {
  background: #fef3c7;
  color: #b45309;
  border: 2px solid #fde68a;
}

.pay-action-confirm {
  background: linear-gradient(90deg, #fb923c 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(245, 158, 11, .22);
}

@media (max-width: 380px) {
  .rt-grid-2,
  .rt-grid-3 {
    grid-template-columns: 1fr;
  }
}
