/* 钱包仅调整自身布局，沿用前台固定背景与字体。 */
/* 长明细页使用普通跳转，避免部分 WebKit 在跨页截图过渡时崩溃。 */
@view-transition { navigation: none; }
body.user-wallet-page .user-page-shell {
  padding-bottom: 34px;
}
.user-wallet-page .wallet-overview {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 24px 12px 12px;
  border-radius: 18px;
  background: linear-gradient(115deg, #e1f8ee, #fff0da);
  color: #293038;
}
.wallet-balance-label { font-size: 12px; }
.wallet-overview > strong { font-size: 34px; font-weight: 780; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wallet-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-top: 12px; padding: 14px 8px; border-radius: 13px; background: linear-gradient(105deg, #fff4dc, #ffe0ad); }
.wallet-totals > div { display: grid; grid-template-columns: 16px auto minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; padding: 0 8px; }
.wallet-totals > div + div { border-left: 1px solid rgba(125, 86, 32, .16); }
.wallet-totals svg, .wallet-recharge-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wallet-totals span { color: #80602f; font-size: 11px; white-space: nowrap; }
.wallet-totals b { min-width: 0; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.user-wallet-page .wallet-panel { margin-top: 12px; padding: 16px; border: 0; border-radius: 15px; background: #fff; box-shadow: none; }
.wallet-panel h2 { margin: 0; font-size: 14px; font-weight: 750; line-height: 1.4; color: #293038; }
.wallet-recharge form { display: grid; gap: 12px; margin-top: 12px; }
.wallet-quick-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wallet-quick-amounts button { min-height: 36px; padding: 7px 2px; border: 1px solid transparent; border-radius: 9px; background: #f5f6f8; color: #333b45; font: inherit; font-size: 13px; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.wallet-quick-amounts button.active { border-color: #65bea7; background: #edf8f3; color: #367c69; }
.wallet-amount-field { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border: 1px solid #e4e7eb; border-radius: 9px; background: #f5f6f8; color: #5b6672; box-shadow: none; }
.wallet-amount-field:focus-within { border-color: #65bea7; }
/* 金额区域只保留一层边框，覆盖全站聚焦光圈及移动端原生输入阴影。 */
body.front-frame-page > .front-app-frame.user-wallet-page .wallet-amount-field input,
body.front-frame-page > .front-app-frame.user-wallet-page .wallet-amount-field input:focus,
body.front-frame-page > .front-app-frame.user-wallet-page .wallet-amount-field input:focus-visible {
  width: 100%; min-width: 0; height: 42px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: #293038; box-shadow: none; appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px;
}
.wallet-amount-field > span:last-child { font-size: 12px; }
.wallet-pay-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-pay-channels button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 10px; border: 1px solid #eceef0; border-radius: 9px; background: #fff; color: #606a76; font: inherit; font-size: 12px; cursor: pointer; }
.wallet-pay-channels button.active { border-color: #65bea7; background: #f2faf6; color: #367c69; }
.wallet-pay-channels img { width: 17px; height: 17px; }
.wallet-channel-status { color: #89909a; font-size: 12px; }
.wallet-pay-button { width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 999px; background: #2d2229; color: #ffe3ae; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; transition: opacity .18s, transform .18s; }
.wallet-pay-button:active:not(:disabled) { transform: scale(.99); }
.wallet-pay-button:disabled { opacity: .55; cursor: default; }
.wallet-recharge-hint { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; color: #9299a4; font-size: 10px; }
.wallet-recharge-hint svg { width: 13px; height: 13px; color: #e6a252; }
.wallet-form-error { margin: 0; color: #df4c64; font-size: 12px; line-height: 1.5; }
.wallet-records-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.wallet-record-tabs { display: flex; gap: 5px; }
.wallet-record-tabs button { min-height: 27px; padding: 4px 10px; border: 0; border-radius: 999px; background: #f5f6f8; color: #5e6672; font: inherit; font-size: 11px; cursor: pointer; transition: background .18s, color .18s; }
.wallet-record-tabs button.active { background: #2d2229; color: #ffe3ae; }
.wallet-record-list { display: grid; }
.wallet-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid #eff0f3; }
.wallet-record:last-child { border-bottom: 0; }
.wallet-record-copy { display: grid; min-width: 0; gap: 7px; }
.wallet-record-copy strong { overflow-wrap: anywhere; color: #303844; font-size: 13px; font-weight: 600; line-height: 1.5; }
.wallet-record-copy :is(p, small, time) { margin: 0; overflow-wrap: anywhere; color: #989ea8; font-size: 10px; line-height: 1.5; }
.wallet-record-amount { display: grid; justify-items: end; gap: 6px; }
.wallet-record-amount b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wallet-record-amount .income { color: #329e73; }
.wallet-record-amount .expense { color: #ff5368; }
.wallet-record-amount .neutral { color: #9299a4; }
.wallet-record-amount span { color: #a0a5ad; font-size: 9px; }
.wallet-empty-state { display: grid; justify-items: center; gap: 12px; padding: 38px 8px; color: #9299a4; font-size: 12px; text-align: center; }
.wallet-empty-state button, .wallet-load-more { min-height: 34px; padding: 7px 14px; border: 0; border-radius: 8px; background: #f5f6f8; color: #606a76; font: inherit; font-size: 12px; cursor: pointer; }
.wallet-load-more { width: 100%; margin-top: 10px; }
.wallet-load-more[hidden], .wallet-form-error[hidden] { display: none; }
html.front-night .user-wallet-page .wallet-panel { background: #252a32; }
html.front-night .user-wallet-page :is(.wallet-panel h2, .wallet-record-copy strong) { color: #e0e5ec; }
html.front-night .user-wallet-page .wallet-record { border-color: #373d47; }
@media (max-width: 360px) {
  .user-wallet-page .wallet-panel { padding: 13px; }
  .wallet-record-tabs { gap: 3px; }
  .wallet-record-tabs button { padding-inline: 8px; }
  .wallet-totals > div { padding-inline: 5px; }
  .wallet-totals { padding-inline: 4px; }
  .wallet-totals > div { grid-template-columns: 13px auto minmax(0, 1fr); gap: 4px; }
  .wallet-totals svg { width: 13px; height: 13px; }
  .wallet-totals span { font-size: 10px; }
  .wallet-totals b { font-size: 12px; }
}
