/* 资金入账 · LZW 红金主题 */

.rc-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(env(safe-area-inset-bottom) + 88px);
  background: var(--app-bg, #f5f0eb);
}

/* ── 顶部红金 Hero ── */
.rc-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 70% at 92% 8%, rgba(212, 160, 23, 0.32), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(200, 16, 46, 0.35), transparent 50%),
    linear-gradient(155deg, #7a1020 0%, #8b1a2a 52%, #8b1528 100%);
}
.rc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}
.rc-hero-glow {
  position: absolute;
  top: -50px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 215, 110, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: rc-glow-pulse 4s ease-in-out infinite;
}
.rc-hero-coin {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: 24px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: rgba(245, 215, 110, 0.1);
  pointer-events: none;
  font-family: var(--app-display, serif);
}
@keyframes rc-glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.rc-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
}
.rc-nav .back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.rc-nav .back:active { opacity: 0.85; }
.rc-nav .meta { flex: 1; min-width: 0; }
.rc-nav .meta .k {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(232, 176, 106, 0.9);
  font-weight: 600;
}
.rc-nav .meta .t {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  line-height: 1.2;
  color: #fff;
}

.rc-hero-body {
  position: relative;
  z-index: 1;
  padding: 4px 20px 0;
}
.rc-hero-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(232, 176, 106, 0.85);
  font-weight: 600;
}
.rc-hero-body h1 {
  margin: 6px 0 8px;
  font-family: var(--app-display, serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.rc-hero-body p {
  margin: 0;
  max-width: 22em;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* 余额 + 本次入账汇总条 */
.rc-balance-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  margin: 16px 16px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rc-balance-cell { flex: 1; min-width: 0; }
.rc-balance-cell.align-right { text-align: right; }
.rc-balance-sep {
  width: 1px;
  margin: 4px 14px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.rc-balance-cell .lab {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}
.rc-balance-cell .val {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--app-display, serif);
  line-height: 1;
  color: #fff;
}
.rc-balance-cell .val.highlight { color: #f5d76e; }
.rc-balance-cell .val small {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 2px;
}

/* ── 主体内容区 ── */
.rc-body {
  position: relative;
  z-index: 2;
  margin-top: -14px;
  padding: 0 16px 12px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #f8f2f3 0%, var(--app-bg, #f5f0eb) 120px);
  box-shadow: 0 -10px 30px rgba(122, 16, 32, 0.1);
}
.rc-body::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  margin: 10px auto 12px;
  border-radius: 2px;
  background: rgba(122, 16, 32, 0.12);
}

.rc-card {
  margin-bottom: 12px;
  padding: 16px 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--app-line, #eadfe1);
  box-shadow: var(--app-shadow-sm, 0 1px 6px rgba(0, 0, 0, 0.05));
}
.rc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.rc-section-title {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  color: var(--app-ink, #7a1020);
}
.rc-section-hint {
  font-size: 12px;
  color: var(--app-muted, #9a8a8e);
}

/* 金额档位 */
.rc-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rc-chip {
  position: relative;
  height: 52px;
  border-radius: 14px;
  background: #f8f4f5;
  color: var(--app-ink, #7a1020);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.rc-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 215, 110, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.rc-chip:active { transform: scale(0.97); }
.rc-chip-num {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--app-display, serif);
  line-height: 1;
}
.rc-chip-unit {
  margin-top: 2px;
  font-size: 10px;
  color: var(--app-muted, #9a8a8e);
  font-weight: 600;
}
.rc-chip.on {
  background: linear-gradient(135deg, var(--app-primary, #c8102e) 0%, var(--app-primary-2, #e33845) 100%);
  color: #fff;
  border-color: rgba(245, 215, 110, 0.55);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.32), 0 0 0 1px rgba(245, 215, 110, 0.25);
}
.rc-chip.on::before { opacity: 1; }
.rc-chip.on .rc-chip-unit { color: rgba(255, 255, 255, 0.75); }

/* 自定义金额 */
.rc-custom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--app-line, #eadfe1);
}
.rc-custom-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--app-sub, #5c4a4e);
  margin-bottom: 8px;
  font-weight: 600;
}
.rc-custom-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--app-primary, #c8102e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.rc-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 52px;
  border-radius: 14px;
  background: #f8f4f5;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.rc-input-row:focus-within {
  border-color: rgba(245, 215, 110, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 215, 110, 0.18);
}
.rc-input-prefix {
  font-size: 20px;
  font-weight: 700;
  color: var(--app-primary, #c8102e);
  font-family: var(--app-display, serif);
  flex-shrink: 0;
}
.rc-input-row input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  font-family: var(--app-display, serif);
  color: var(--app-ink, #7a1020);
  -webkit-appearance: none;
}
.rc-input-row input::placeholder {
  font-size: 15px;
  font-weight: 400;
  color: #bbb;
}
.rc-input-row .unit {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--app-muted, #9a8a8e);
  font-weight: 600;
}

/* 入账汇总 */
.rc-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff9e8 0%, #fff 55%, #fff5f5 100%);
  border: 1.5px solid rgba(245, 215, 110, 0.55);
  box-shadow: 0 4px 16px rgba(245, 215, 110, 0.15);
}
.rc-total-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rc-total-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.rc-total-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--app-sub, #5c4a4e);
}
.rc-total-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.rc-total-val .num {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--app-display, serif);
  color: #c89600;
  line-height: 1;
}
.rc-total-val .unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--app-muted, #9a8a8e);
}

/* 提示 */
.rc-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--app-line, #eadfe1);
  border-left: 3px solid var(--app-primary, #c8102e);
  font-size: 13px;
  line-height: 1.65;
  color: var(--app-sub, #5c4a4e);
}
.rc-tip-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.1);
  color: var(--app-primary, #c8102e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* 底部按钮 */
.rc-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--app-line, #eadfe1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rc-submit {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--app-primary, #c8102e) 0%, var(--app-primary-2, #e33845) 100%);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
  transition: transform 0.12s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rc-submit:active:not(.disabled) {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.28);
}
.rc-submit.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.rc-submit--sm {
  min-height: 46px;
  font-size: 15px;
}

/* ── 支付弹层 ── */
.rc-pay-mask {
  position: fixed;
  inset: 0;
  background: rgba(40, 10, 16, 0.55);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rc-fade-enter-active,
.rc-fade-leave-active {
  transition: opacity 0.2s ease;
}
.rc-fade-enter-active .rc-pay-modal,
.rc-fade-leave-active .rc-pay-modal {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.rc-fade-enter-from,
.rc-fade-leave-to {
  opacity: 0;
}
.rc-fade-enter-from .rc-pay-modal,
.rc-fade-leave-to .rc-pay-modal {
  transform: scale(0.94);
  opacity: 0;
}

.rc-pay-modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 20px;
  padding: 16px 0 14px;
  box-shadow: 0 20px 50px rgba(122, 16, 32, 0.22);
  overflow: hidden;
}
.rc-pay-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--app-primary, #c8102e), #f5d76e, var(--app-primary, #c8102e));
}
.rc-pay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: #f8f4f5;
  color: var(--app-muted, #9a8a8e);
  font-size: 20px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.rc-pay-head {
  padding: 8px 18px 14px;
  border-bottom: 1px solid var(--app-line, #eadfe1);
}
.rc-pay-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--app-primary, #c8102e);
  font-weight: 700;
  margin-bottom: 4px;
}
.rc-pay-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--app-display, serif);
  color: var(--app-ink, #7a1020);
}
.rc-pay-head em {
  font-style: normal;
  font-weight: 800;
  color: #c89600;
}
.rc-pay-sub {
  padding: 12px 18px 8px;
  font-size: 13px;
  color: var(--app-muted, #9a8a8e);
  font-weight: 600;
}
.rc-pay-list {
  max-height: 240px;
  overflow: auto;
  padding: 0 12px;
}
.rc-pay-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid var(--app-line, #eadfe1);
  background: #faf8f9;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}
.rc-pay-item .logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}
.rc-pay-item .name {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--app-ink, #7a1020);
}
.rc-pay-item .pay-rec {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--app-primary, #c8102e);
  background: rgba(200, 16, 46, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.22);
  box-shadow: none;
  pointer-events: auto;
}
.rc-pay-item .pay-rec::after {
  display: none;
}
.rc-pay-item .radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.rc-pay-item.is-on {
  border-color: var(--app-primary, #c8102e);
  background: rgba(200, 16, 46, 0.04);
}
.rc-pay-item.is-on .radio {
  border-color: var(--app-primary, #c8102e);
  background: var(--app-primary, #c8102e);
  box-shadow: inset 0 0 0 4px #fff;
}
.rc-pay-confirm {
  margin: 12px 16px 4px;
}
