/* 钱包明细 UI v3：浅蓝玻璃风，跟站内其他页统一（不再用深蓝大块） */
#walletPage { background: linear-gradient(180deg, #F7FCFF 0%, #EAF4FD 55%, #E2EFF9 100%); }

/* 余额卡：浅色水蓝，文字用深蓝，不再压一块深蓝 */
.wh-hero {
  margin: 14px 14px 12px;
  border-radius: 22px;
  padding: 20px 20px 16px;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 58%),
    radial-gradient(90% 70% at 4% 100%, rgba(124,195,238,.32) 0%, rgba(124,195,238,0) 62%),
    linear-gradient(140deg, #F2FAFF 0%, #E3F2FD 55%, #D6EBFA 100%);
  box-shadow: 0 10px 28px rgba(70,130,180,.12);
  border: 1px solid rgba(255,255,255,.95);
  position: relative;
  overflow: hidden;
}
.wh-hero::after {
  content: '';
  position: absolute; right: -40px; top: -48px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(124,195,238,.16);
}
.wh-hero-label { font-size: 12px; color: #6E8A9E; letter-spacing: 1.2px; font-weight: 700; }
.wh-hero-bal {
  margin-top: 6px;
  font-size: 36px; font-weight: 800; color: #12303F;
  letter-spacing: -1px; font-variant-numeric: tabular-nums;
}
.wh-hero-bal small { font-size: 20px; margin-right: 2px; font-weight: 700; color: #2E7DB2; }
.wh-hero-stats { margin-top: 16px; display: flex; gap: 8px; }
.wh-hs {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 13px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 3px 10px rgba(70,130,180,.05);
}
.wh-hs b {
  font-size: 13.5px; font-weight: 800; color: #12303F;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wh-hs b.in { color: #2E9E6B; }
.wh-hs b.out { color: #C1483F; }
.wh-hs span { font-size: 10px; color: #93A8B8; letter-spacing: .4px; }

/* 卖 / 充 按钮：都是白卡，用图标底色区分 */
.wh-acts { display: flex; gap: 10px; margin: 0 14px 12px; }
.wh-act {
  flex: 1; align-items: flex-start; gap: 2px;
  padding: 14px 14px 13px;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(70,130,180,.07);
}
.wh-act:active { transform: scale(.985); }
.wh-act.sell { background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.92); }
.wh-act.buy  { background: rgba(255,255,255,.86); border: 1px solid rgba(255,255,255,.92); box-shadow: 0 6px 18px rgba(70,130,180,.07); }
.wh-act.sell .wh-act-ico { background: rgba(201,138,60,.14); color: #A9701F; }
.wh-act.buy  .wh-act-ico { background: rgba(74,159,216,.14); color: #2E7DB2; }
.wh-act-t { font-size: 14.5px; font-weight: 800; color: #12303F; }
.wh-act-s { font-size: 11px; color: #93A8B8; }

/* 筛选：跟交易大厅同一套分段 */
.wh-seg {
  margin: 4px 14px 10px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(74,159,216,.14);
  box-shadow: 0 2px 10px rgba(70,130,180,.06);
}
.wh-sg { color: #7E97A8; font-weight: 700; }
.wh-sg.on {
  background: #fff; color: #2E7DB2;
  box-shadow: 0 3px 10px rgba(70,130,180,.12);
}
.wh-sg em { color: inherit; opacity: .6; }
.wh-sg.on em { opacity: .8; }

/* 分组标题 */
.wh-gsec { color: #8AA2B3; }
.wh-gsec em.plus { color: #2E9E6B; }
.wh-gsec em.minus { color: #C1483F; }

/* 明细列表 */
.wh-glist {
  margin: 0 12px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(70,130,180,.07);
  overflow: hidden;
}
.wh-row2 { padding: 13px 14px; border-bottom: 1px solid rgba(74,159,216,.09); }
.wh-row2:active { background: rgba(74,159,216,.05); }
.wh-ic { width: 38px; height: 38px; border-radius: 12px; }
.wh-ic.in  { background: rgba(46,158,107,.10); color: #2E9E6B; }
.wh-ic.out { background: rgba(226,87,76,.08); color: #C1483F; }
.wh-ic.k-int_earn { background: rgba(201,138,60,.12); color: #A9701F; }
.wh-ic.k-int_in, .wh-ic.k-int_out { background: rgba(74,159,216,.10); color: #2E7DB2; }
.wh-t2 { font-size: 14px; font-weight: 700; color: #12303F; }
.wh-m2 { font-size: 11px; color: #93A8B8; }
.wh-amt2 { font-size: 15px; font-weight: 800; }
.wh-amt2.plus { color: #2E9E6B; }
.wh-amt2.minus { color: #C1483F; }
.wh-auto { color: #A9701F; background: rgba(201,138,60,.14); }
.wh-chev { width: 14px; height: 14px; color: #B6C8D6; flex: none; margin-left: 2px; }

/* 利息宝卡：跟钱包卡片统一 */
.ib-card {
  margin: 0 14px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 6px 20px rgba(70,130,180,.07);
}
.ib-btn { border-radius: 12px; }

/* 头像兜底 */
#content > .row .avatar, #content > .row .av { background: linear-gradient(135deg, #A9DBF6, #5FB0E4); }
  .wh-act.buy .wh-act-t { color: #12303F; }
  .wh-act.buy .wh-act-s { color: #93A8B8; }
  .wh-act.sell .wh-act-t { color: #12303F; }
  .wh-act.sell .wh-act-s { color: #93A8B8; }

/* ===== 钱包细节 v4 ===== */
.wh-hero-label { letter-spacing: 1.6px; font-size: 11.5px; }
.wh-hero-bal { font-size: 37px; }
.wh-hs { border-radius: 14px; }
.wh-hs b { font-size: 14px; }
.ib-card .ib-est { font-size: 11.5px; }
.wh-gsec { margin: 16px 18px 8px; }
.wh-row2 .wh-t2 { letter-spacing: .1px; }
.wh-glist { border-radius: 20px; }

/* ===== 钱包 v5：余额卡加今日行、利息宝加结息倒计时 ===== */
.wh-hero-today {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: #93A8B8;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.85);
  padding: 5px 11px; border-radius: 999px;
}
.wh-hero-today b { font-weight: 800; font-variant-numeric: tabular-nums; }
.wh-hero-today b.in { color: #2E9E6B; }
.wh-hero-today b.out { color: #C1483F; }

.ib-next {
  margin-top: 8px;
  font-size: 11.5px; color: #A9701F;
  background: rgba(201,138,60,.10);
  border: 1px solid rgba(201,138,60,.16);
  border-radius: 10px;
  padding: 7px 10px;
}
.ib-next b { color: #8A5A08; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 明细列表：分组标题更轻，行分隔更淡 */
.wh-gsec span { font-size: 11.5px; letter-spacing: .8px; }
.wh-row2 + .wh-row2 { border-top: 1px solid rgba(74,159,216,.08); }
.wh-row2:last-child { border-bottom: 0; }

/* ===== v7：结息倒计时不要卡片，就一行小字贴在「预计每小时收益」下面 ===== */
.ib-next {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font-size: 11.5px !important;
  color: #A2B6C4 !important;
  line-height: 1.5;
}
.ib-next b {
  color: #C8871F !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}

/* ===== v8：结息倒计时横排居中，和下面的存取按钮留点空 ===== */
.ib-next {
  text-align: center !important;
  margin: 6px 0 10px !important;
}
#walletBody .ib-btns { margin-top: 2px; }

/* ==================================================================
   收支明细 v2：钱包页只留「最近三笔」，详细记录单开一整页（可搜索）
   ================================================================== */
.wh-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 4px 9px; }
.wh-sec-head span { font-size: 13px; font-weight: 800; color: #2C4C63; letter-spacing: .2px; }
.wh-more { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: #2E7DB2; cursor: pointer; }
.wh-more .ico-svg { width: 12px; height: 12px; }

/* 一条收支记录 */
.wl-list { display: flex; flex-direction: column; gap: 8px; }
.wl-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 15px; background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 2px rgba(16,52,74,.03), 0 4px 14px rgba(24,68,102,.05);
  transition: transform .12s ease, box-shadow .16s ease;
}
.wl-row:active { transform: scale(.994); box-shadow: 0 2px 9px rgba(24,68,102,.08); }
.wl-ic { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.wl-ic .ico-svg { width: 19px; height: 19px; }
.wl-ic.in { color: #2E8B57; background: linear-gradient(135deg,#E8F7EF,#D3EEDF); }
.wl-ic.out { color: #C1483F; background: linear-gradient(135deg,#FCEDEC,#F8DCDA); }
.wl-mid { flex: 1; min-width: 0; }
.wl-t { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: #1B3A4D; }
.wl-s { margin-top: 3px; font-size: 11px; color: #93A8B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-dot { font-style: normal; margin: 0 3px; opacity: .55; }
.wl-amt { flex: none; font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; }
.wl-amt.in { color: #2E8B57; }
.wl-amt.out { color: #C1483F; }
.wl-chev { width: 13px; height: 13px; color: #B7C9D6; flex: none; }
.wl-tag { font-size: 10px; font-weight: 700; color: #B07A12; background: rgba(217,154,43,.14); border-radius: 6px; padding: 1px 5px; }
.wl-tag.soft { color: #55788F; background: rgba(120,150,170,.14); }

/* ---------- 明细整页 ---------- */
#walletLedgerPage { background: linear-gradient(178deg,#F3F9FE 0%,#E8F2FA 60%,#E3EFF9 100%); }
#walletLedgerPage .wl-top { padding: 10px 12px 0; }
.wl-search {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(24,68,102,.05);
}
.wl-search-ico { width: 16px; height: 16px; color: #9BB2C2; flex: none; }
.wl-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 13.5px; color: #1B3A4D; }
.wl-search input::-webkit-search-cancel-button { display: none; }
.wl-qclear { width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(140,165,185,.18); color: #5C7A90; font-size: 14px; line-height: 1; cursor: pointer; }
.wl-sum { display: flex; gap: 8px; margin-top: 10px; }
.wl-sum-cell {
  flex: 1; padding: 10px 6px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(24,68,102,.05);
}
.wl-sum-cell b { display: block; font-size: 14px; font-weight: 800; color: #1B3A4D; }
.wl-sum-cell b.in { color: #2E8B57; }
.wl-sum-cell b.out { color: #C1483F; }
.wl-sum-cell span { display: block; margin-top: 2px; font-size: 10.5px; color: #93A8B8; }
.wl-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 8px; scrollbar-width: none; }
.wl-chips::-webkit-scrollbar { display: none; }
.wl-chip {
  flex: none; font-size: 12px; font-weight: 650; color: #4A728C;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1px solid rgba(74,159,216,.14);
  cursor: pointer; transition: background .16s, color .16s, transform .1s;
}
.wl-chip em { font-style: normal; margin-left: 4px; font-size: 10.5px; opacity: .6; }
.wl-chip.on { color: #fff; border-color: transparent; background: linear-gradient(135deg,#63B4E6,#2F80D2); box-shadow: 0 5px 12px rgba(47,128,210,.22); }
.wl-chip:active { transform: scale(.97); }
#wlContent { padding: 2px 12px calc(30px + env(safe-area-inset-bottom,0px)); }
.wl-gsec { display: flex; align-items: center; justify-content: space-between; margin: 12px 4px 8px; font-size: 11.5px; font-weight: 700; color: #7C99AD; }
.wl-gsec em { font-style: normal; display: flex; gap: 8px; font-size: 11px; }
.wl-gsec b.in { color: #2E8B57; }
.wl-gsec b.out { color: #C1483F; }

/* 空态 / 加载 */
.wl-empty { text-align: center; padding: 56px 20px; color: #8FA5B5; }
.wl-empty-ico {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg,#EAF4FC,#D8EAF8); color: #7FB2D4;
}
.wl-empty-ico svg { width: 28px; height: 28px; }
.wl-empty-t { font-size: 13.5px; font-weight: 600; color: #6E8CA0; }
.wl-empty-s { margin-top: 6px; font-size: 11.5px; }
.wl-loading { display: flex; gap: 6px; justify-content: center; padding: 60px 0; }
.wl-loading span { width: 7px; height: 7px; border-radius: 50%; background: #8FC3E4; animation: wlB 1s infinite ease-in-out; }
.wl-loading span:nth-child(2) { animation-delay: .15s; }
.wl-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes wlB { 0%,80%,100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* 明细弹层 */
.wl-deta { background: rgba(244,250,255,.92); border: 1px solid rgba(74,159,216,.12); border-radius: 16px; padding: 14px; }
.wl-deta-amt { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.wl-deta-amt.in { color: #2E8B57; }
.wl-deta-amt.out { color: #C1483F; }
.wl-deta-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid rgba(74,159,216,.10); font-size: 12.5px; }
.wl-deta-row:first-of-type { border-top: none; }
.wl-deta-row span { color: #8FA5B5; flex: none; }
.wl-deta-row b { color: #1B3A4D; font-weight: 600; text-align: right; word-break: break-word; }

/* ==================================================================
   钱包明细 v9 · 细腻化：卡片基线对齐、数字排版、发丝分隔、柔和光影
   （只在原有类名上覆盖样式，不动 JS）
   ================================================================== */
:root {
  --wl-ink: #16374A;
  --wl-ink2: #1A3A4D;
  --wl-muted: #8CA2B2;
  --wl-line: rgba(74,159,216,.12);
  --wl-blue: #2E7DB2;
  --wl-up: #1F8A5B;
  --wl-down: #C4473E;
  --wl-card-shadow: 0 1px 2px rgba(16,52,74,.035), 0 10px 22px -16px rgba(24,68,102,.55);
}

/* 两页共用的底：极淡的径向光，不再是平铺渐变 */
#walletPage, #walletLedgerPage {
  background:
    radial-gradient(90% 46% at 50% -14%, #FFFFFF 0%, rgba(255,255,255,0) 62%),
    radial-gradient(52% 38% at 104% 2%, rgba(148,205,244,.22) 0%, rgba(148,205,244,0) 74%),
    radial-gradient(68% 42% at -8% 98%, rgba(188,220,243,.28) 0%, rgba(188,220,243,0) 72%),
    linear-gradient(180deg, #F8FCFF 0%, #EEF7FE 52%, #E5F1FA 100%);
}

/* ---------- 余额卡 ---------- */
.wh-hero {
  margin: 12px 14px;
  padding: 18px 18px 14px;
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 102% -18%, rgba(255,255,255,.98) 0%, rgba(255,255,255,0) 58%),
    radial-gradient(85% 70% at -8% 108%, rgba(105,180,230,.24) 0%, rgba(105,180,230,0) 62%),
    linear-gradient(152deg, #F8FCFF 0%, #E8F4FD 54%, #D9ECFB 100%);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(74,159,216,.07),
    0 14px 30px -16px rgba(45,105,150,.42),
    0 2px 6px rgba(45,105,150,.05);
}
.wh-hero::before {
  left: -18%; top: -80%; width: 148%; height: 180%;
  background: linear-gradient(104deg, transparent 41%, rgba(255,255,255,.46) 50%, transparent 59%);
  transform: rotate(6deg);
}
.wh-hero::after {
  right: -52px; top: -62px; width: 190px; height: 190px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.78) 0%, rgba(255,255,255,.18) 60%, rgba(255,255,255,0) 74%);
  border: 1px solid rgba(255,255,255,.55);
}
.wh-hero-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 1.8px; color: #7C97AA;
}
.wh-hero-label::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #8FD0F2, #3F8ED2);
  box-shadow: 0 0 0 3px rgba(79,158,214,.10);
}
.wh-hero-bal {
  margin-top: 10px; font-size: 38px; line-height: 1.05;
  letter-spacing: -1.4px; color: #0E2C3D;
  font-variant-numeric: tabular-nums;
}
.wh-hero-bal small { font-size: 19px; letter-spacing: 0; margin-right: 3px; color: #3A8CC4; }
.wh-hero-today {
  margin-top: 12px; gap: 7px; padding: 5px 12px 5px 10px;
  font-size: 11px; letter-spacing: .3px; color: #8299AA;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.wh-hero-today b { font-size: 11.5px; letter-spacing: 0; }
.wh-hero-today b.out {
  margin-left: 2px; padding-left: 9px;
  border-left: 1px solid rgba(74,159,216,.20);
}

/* 三个小统计：两列金额等分、笔数按内容收窄，手机窄屏也不会把金额切掉 */
.wh-hero-stats {
  margin-top: 15px; gap: 8px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
  align-items: stretch;
}
.wh-hs {
  min-width: 0; padding: 7px 11px 6px;
  border-radius: 13px; gap: 1px; align-items: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.60));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 12px -8px rgba(45,105,150,.5);
}
.wh-hs b {
  font-size: clamp(11px, 3vw, 12.5px); letter-spacing: -.25px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.wh-hs span { font-size: 9.5px; letter-spacing: .6px; color: #9BAFBE; }

/* 支付密码入口：原来按深色卡写的白字，在浅色卡上几乎看不见，改回墨蓝 */
.wh-hero-pay2 {
  margin-top: 13px; padding-top: 11px;
  border-top: 1px solid var(--wl-line);
  font-size: 11px; color: #8CA3B4; letter-spacing: .2px;
}
.wh-hero-pay2 .ico-svg { opacity: .55; }
.wh-hero-pay2 b { color: var(--wl-blue); font-weight: 700; }
.wh-pay-setup {
  margin-top: 13px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(74,159,216,.22);
  color: #2F7CB0; font-size: 13px; font-weight: 700;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 3px 10px -6px rgba(45,105,150,.5);
}
.wh-pay-setup:active { background: rgba(255,255,255,.95); }

/* ---------- 会员条 ---------- */
.walet-vip {
  margin: 0 14px 12px; padding: 11px 13px; gap: 10px;
  border-radius: 18px;
  background: linear-gradient(118deg, #FFFCF3 0%, #FFF4DA 55%, #FFECC4 100%);
  border: 1px solid rgba(219,166,52,.24);
  box-shadow: 0 10px 22px -18px rgba(190,140,40,.65), inset 0 1px 0 rgba(255,255,255,.85);
}
.walet-vip .wl-vip-ico {
  width: 34px; height: 34px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(214,160,45,.12);
  box-shadow: inset 0 0 0 1px rgba(214,160,45,.12);
  color: #C08A1B;
}
.walet-vip .wl-vip-ico svg { width: 17px; height: 17px; }
.walet-vip .wl-vip-t { font-size: 13px; line-height: 1.2; letter-spacing: .3px; }
.walet-vip .wl-vip-s {
  display: block; margin-top: 3px;
  font-size: 10.5px; letter-spacing: 0; color: #A08344;
}
.walet-vip .wl-vip-go {
  height: 28px; padding: 0 14px; border-radius: 14px;
  font-size: 12px; letter-spacing: .5px;
  background: linear-gradient(160deg, #F6CB63, #D99C24);
  box-shadow: 0 5px 12px -6px rgba(190,140,40,.9), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ---------- 利息宝卡 ---------- */
#walletBody .ib-card {
  margin: 0 14px 12px; padding: 15px 16px 13px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFCF5 100%);
  border: 1px solid rgba(216,190,140,.34);
  box-shadow: 0 12px 26px -20px rgba(150,110,40,.7), inset 0 1px 0 #FFFFFF;
}
#walletBody .ib-title { font-size: 13px; letter-spacing: .2px; color: #6E5220; }
#walletBody .ib-rate {
  font-size: 9.5px; letter-spacing: .2px; padding: 2px 6px;
  color: #A9701F; background: rgba(201,143,58,.12);
}
#walletBody .ib-days { font-size: 10.5px; color: #B0A188; letter-spacing: .1px; }
#walletBody .ib-nums { gap: 26px; margin-top: 11px; }
#walletBody .ib-n b { font-size: 21px; letter-spacing: -.6px; }
#walletBody .ib-n span { font-size: 10px; letter-spacing: .4px; color: #B0A188; }
#walletBody .ib-est { margin: 10px 0 0; font-size: 11px; line-height: 1.55; color: #8C7A5A; }
#walletBody .ib-est b { font-size: 12.5px; }
#walletBody .ib-est i {
  display: block; margin: 2px 0 0;
  font-size: 10px; letter-spacing: .1px; color: #AD9E84;
}
#walletBody .ib-next {
  margin: 9px 0 10px !important;
  font-size: 10.5px !important; letter-spacing: .2px;
  color: #A7BBC8 !important;
}
#walletBody .ib-next b { font-size: 11px; letter-spacing: .2px; }
#walletBody .ib-btn { height: 38px; border-radius: 12px; font-size: 13px; letter-spacing: .6px; }
#walletBody .ib-btn.in {
  background: linear-gradient(180deg, #F0C767, #D79B2A);
  box-shadow: 0 7px 16px -10px rgba(190,140,40,.95), inset 0 1px 0 rgba(255,255,255,.45);
}
#walletBody .ib-btn.out {
  background: #FFFFFF; color: #8A6224;
  border: 1px solid rgba(206,166,90,.36);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 8px -6px rgba(150,110,40,.6);
}
#walletBody .ib-note {
  margin-top: 9px; font-size: 9.5px; letter-spacing: .3px;
  color: #B6A88E; text-align: center;
}

/* ---------- 卖 / 充 按钮：改成左图标 + 右两行，别再上下一大块空白 ---------- */
.wh-acts { margin: 0 14px 14px; gap: 10px; }
.wh-act, .wh-act.sell, .wh-act.buy {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px; row-gap: 1px;
  align-items: center; padding: 12px; border-radius: 18px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.76));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 10px 22px -18px rgba(45,105,150,.75);
}
.wh-act .wh-act-ico {
  grid-row: 1 / span 2; grid-column: 1;
  width: 34px; height: 34px; border-radius: 11px; margin: 0;
  display: flex; align-items: center; justify-content: center;
}
.wh-act .wh-act-ico .ico-svg { width: 16px; height: 16px; }
.wh-act .wh-act-t { grid-column: 2; font-size: 13.5px; letter-spacing: .2px; }
.wh-act .wh-act-s { grid-column: 2; font-size: 10px; letter-spacing: .2px; color: #9BB0BF; }
.wh-act:active { transform: scale(.985); box-shadow: inset 0 1px 0 #FFFFFF; }

/* ---------- 「最近收支」标题 ---------- */
.wh-sec-head { margin: 18px 14px 10px; }
.wh-sec-head span {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; color: var(--wl-ink2); letter-spacing: .3px;
}
.wh-sec-head span::before {
  content: ''; width: 3px; height: 12px; border-radius: 2px;
  background: linear-gradient(180deg, #8FD2F4, #3F8CCE);
}
.wh-more { font-size: 11.5px; font-weight: 700; color: #6C93AE; gap: 3px; padding: 4px 0 4px 6px; }
.wh-more .ico-svg { width: 11px; height: 11px; }
#whRecent { padding: 0 14px; }

/* ---------- 收支行（两页共用）：更薄的分隔、更稳的数字 ---------- */
.wl-list { gap: 8px; }
.wl-row {
  gap: 11px; padding: 12px 13px; border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFEFF 100%);
  border: 1px solid rgba(214,231,244,.9);
  box-shadow: var(--wl-card-shadow);
}
.wl-row:active { background: #FFFFFF; box-shadow: 0 1px 2px rgba(16,52,74,.05); }
.wl-ic {
  width: 38px; height: 38px; border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.wl-ic .ico-svg { width: 18px; height: 18px; }
.wl-ic.in { color: var(--wl-up); background: linear-gradient(150deg, #EDFAF3, #D3EFE0); }
.wl-ic.out { color: var(--wl-down); background: linear-gradient(150deg, #FDF1F0, #F9DFDC); }
.wl-t { font-size: 13.5px; color: var(--wl-ink); gap: 6px; }
.wl-s { margin-top: 3px; font-size: 10.5px; letter-spacing: .1px; color: #93A8B8; }
.wl-amt {
  font-size: 15px; letter-spacing: -.3px;
  font-variant-numeric: tabular-nums;
}
.wl-amt.in { color: var(--wl-up); }
.wl-amt.out { color: var(--wl-down); }
.wl-chev { width: 12px; height: 12px; color: #C4D5E1; }
.wl-tag { font-size: 9.5px; padding: 1.5px 6px; border-radius: 5px; letter-spacing: .2px; }
.wl-tag.soft { color: #5E8098; background: rgba(120,150,170,.13); }

/* ---------- 收支明细整页 ---------- */
#walletLedgerPage .wl-top { padding: 10px 14px 0; }
.wl-search {
  height: 42px; padding: 0 13px; border-radius: 13px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(208,228,243,.95);
  box-shadow: 0 1px 2px rgba(16,52,74,.03), 0 8px 18px -16px rgba(24,68,102,.8);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.wl-search:focus-within {
  border-color: rgba(76,166,226,.55);
  box-shadow: 0 0 0 3px rgba(76,166,226,.13), 0 8px 18px -16px rgba(24,68,102,.8);
}
.wl-search-ico { width: 15px; height: 15px; color: #A2B7C6; }
.wl-search input { font-size: 13px; letter-spacing: .1px; }
.wl-search input::placeholder { color: #A9BECC; }
.wl-qclear { width: 18px; height: 18px; font-size: 13px; background: rgba(140,165,185,.16); }

.wl-sum {
  margin-top: 12px; padding: 11px 2px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(212,230,244,.92);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,52,74,.03), 0 10px 20px -18px rgba(24,68,102,.8);
}
.wl-sum-cell {
  position: relative; flex: 1; padding: 0; border-radius: 0; background: none; box-shadow: none;
}
.wl-sum-cell + .wl-sum-cell::before {
  content: ''; position: absolute; left: 0; top: 1px; bottom: 1px; width: 1px;
  background: rgba(74,159,216,.13);
}
.wl-sum-cell b { font-size: 15px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.wl-sum-cell span { margin-top: 3px; font-size: 10px; letter-spacing: .6px; color: #9BB0BF; }

.wl-chips {
  margin: 0 -14px; padding: 11px 14px 9px; gap: 7px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), rgba(0,0,0,0) 100%);
}
.wl-chip {
  height: 30px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px; color: #567F9A;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(210,229,243,.95);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 6px -4px rgba(24,68,102,.5);
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .1s ease;
}
.wl-chip em {
  margin-left: 5px; font-size: 10px; opacity: 1;
  font-variant-numeric: tabular-nums;
}
.wl-chip.on {
  color: #FFFFFF; border-color: transparent;
  background: linear-gradient(150deg, #6CB8E9, #2F80D2);
  box-shadow: 0 6px 14px -6px rgba(47,128,210,.8), inset 0 1px 0 rgba(255,255,255,.28);
}
.wl-chip.on em { opacity: .85; }
.wl-chip:active { transform: scale(.97); }

#wlContent { padding: 2px 14px calc(28px + env(safe-area-inset-bottom,0px)); }

/* 月份组头：小圆点 + 发丝线，金额等宽 */
.wl-gsec {
  gap: 8px; margin: 18px 2px 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .3px; color: #7C99AD;
}
.wl-gsec span {
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-gsec em { flex: 0 0 auto; }
.wl-gsec span::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #8ECAF0, #3E8FD6);
  box-shadow: 0 0 0 3px rgba(62,143,214,.10);
}
.wl-gsec em { gap: 10px; color: #8FA5B5; font-variant-numeric: tabular-nums; }
.wl-gsec b { font-weight: 800; letter-spacing: -.2px; }

/* 空态 / 加载 */
.wl-empty { padding: 64px 20px; color: #8FA5B5; }
.wl-empty-ico {
  width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(160deg, #F1F9FF, #DEEDFA);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 14px 26px -20px rgba(45,105,150,.9);
  color: #7FB6DA;
}
.wl-empty-t { font-size: 13px; font-weight: 600; color: #6E8CA0; }
.wl-empty-s { margin-top: 6px; font-size: 11px; color: #9DB1C0; }
.wl-loading span { width: 6px; height: 6px; background: #9AC9E7; }

/* 明细弹层 */
.wl-deta {
  padding: 16px 16px 4px; border-radius: 18px;
  background: linear-gradient(180deg, #F8FCFF, #F0F8FE);
  border: 1px solid rgba(74,159,216,.13);
  box-shadow: inset 0 1px 0 #FFFFFF;
}
.wl-deta-amt {
  font-size: 27px; letter-spacing: -1px; margin-bottom: 6px;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #FFFFFF;
}
.wl-deta-row {
  padding: 9px 0; border-top: 1px solid rgba(74,159,216,.10);
  font-size: 12px; letter-spacing: .1px;
}
.wl-deta-row span { color: #94A9B8; }
.wl-deta-row b { font-weight: 600; color: #17394C; letter-spacing: .1px; }

@media (prefers-reduced-motion: reduce) {
  .wl-row, .wl-chip, .wl-act, .wl-search { transition: none !important; }
}

/* 窄屏（iPhone SE 这类 320px）收一收，别让数字和标签挤成两行 */
@media (max-width: 374px) {
  #walletBody .ib-top { gap: 6px; }
  #walletBody .ib-title { gap: 5px; flex: 1 1 auto; min-width: 0; }
  #walletBody .ib-rate { font-size: 8.5px; padding: 2px 5px; letter-spacing: 0; white-space: nowrap; }
  #walletBody .ib-days { flex: none; white-space: nowrap; font-size: 10px; }
}
@media (max-width: 344px) {
  .wh-hero { padding: 16px 14px 12px; }
  .wh-hero-bal { font-size: 34px; letter-spacing: -1.1px; }
  .wh-hero-stats { gap: 6px; }
  .wh-hs { padding: 6px 9px 5px; }
  .wh-hs b { font-size: 10.5px; }
  .wh-act { column-gap: 8px; padding: 11px 10px; }
  .wh-act .wh-act-s { font-size: 9.5px; }
  #walletBody .ib-title { font-size: 12px; gap: 4px; }
  #walletBody .ib-rate { font-size: 8px; }
  #walletBody .ib-n b { font-size: 19px; }
}
