/* ============ 钱包：仿微信「服务 → 钱包」原生版式 ============ */
.wallet{position:absolute;inset:var(--status-h) 0 0;z-index:14;background:#ededed;display:flex;flex-direction:column;overflow:hidden;color:#191919}
.wlt-page{position:absolute;inset:0;display:none;flex-direction:column;min-height:0;background:#ededed}
.wlt-page.is-active{display:flex}
.wlt-nav{height:47px;flex:0 0 47px;background:#f7f7f7;border-bottom:1px solid #dcdcdc;display:flex;align-items:center;gap:6px;padding:0 16px;position:relative;z-index:2}
.wlt-nav h2{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:center;margin:0;font-size:17px;font-weight:600;letter-spacing:.5px;pointer-events:none}
.wlt-back{width:34px;height:34px;display:grid;place-items:center;color:#191919;padding:0;margin-right:auto;z-index:1;border:0;background:none}
.wlt-back svg{width:23px;height:23px;stroke-width:1.8}
.wlt-nav-act{width:34px;height:34px;display:grid;place-items:center;color:#191919;padding:0;z-index:1;border:0;background:none;font-size:14px}
.wlt-nav-act svg{width:21px;height:21px;stroke-width:1.8}
.wlt-scroll{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.wlt-scroll::-webkit-scrollbar{display:none}

/* 钱包主页：绿色余额区 */
.wlt-hero{background:linear-gradient(160deg,#0fbd6b,#07a85c 60%,#069a54);padding:26px 20px 58px;color:#fff;position:relative;overflow:hidden}
.wlt-hero::after{content:'';position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.06);right:-70px;top:-90px}
.wlt-hero-label{font-size:13px;opacity:.9;display:flex;align-items:center;gap:7px}
.wlt-hero-label svg{width:17px;height:17px;stroke-width:1.8}
.wlt-hero-amount{font-size:40px;font-weight:600;letter-spacing:-1px;margin-top:8px;line-height:1.1}
.wlt-hero-amount small{font-size:20px;font-weight:500;margin-right:3px}
.wlt-hero-hint{font-size:11px;opacity:.75;margin-top:8px}
.wlt-hero-btn{position:absolute;right:18px;top:26px;border:1px solid rgba(255,255,255,.5);color:#fff;background:rgba(255,255,255,.12);border-radius:15px;font-size:12px;padding:5px 12px;z-index:1}
.wlt-hero-card{position:relative;margin:-42px 12px 0;background:#fff;border-radius:12px;box-shadow:0 3px 14px rgba(0,0,0,.06);padding:4px 0}
.wlt-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:14px 2px}
.wlt-grid-item{display:flex;flex-direction:column;align-items:center;gap:7px;padding:2px 0;border:0;background:none;font-size:12px;color:#191919;position:relative}
.wlt-grid-item i{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-style:normal}
.wlt-grid-item i svg{width:23px;height:23px;stroke-width:1.7}
.wlt-grid-item i.c-green{background:#e6f8ee;color:#07a85c}
.wlt-grid-item i.c-blue{background:#e7f0ff;color:#4a7fd0}
.wlt-grid-item i.c-orange{background:#fff1e3;color:#e8963c}
.wlt-grid-item i.c-purple{background:#f0eaff;color:#8b6ad6}

/* 通用分组白卡 */
.wlt-group{background:#fff;margin:12px;border-radius:10px;overflow:hidden}
.wlt-group-title{padding:13px 15px 8px;font-size:13px;color:#8a8a8a;background:#fff}
.wlt-row{display:flex;align-items:center;gap:11px;min-height:52px;padding:9px 15px;border:0;border-bottom:1px solid #f0f0f0;background:#fff;width:100%;text-align:left;font-size:15px;color:#191919}
.wlt-row:last-child{border-bottom:0}
.wlt-row:active{background:#f7f7f7}
.wlt-row-ico{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:0 0 34px;font-style:normal}
.wlt-row-ico svg{width:20px;height:20px;stroke-width:1.7}
.wlt-row-ico.c-green{background:#e6f8ee;color:#07a85c}
.wlt-row-ico.c-blue{background:#e7f0ff;color:#4a7fd0}
.wlt-row-ico.c-orange{background:#fff1e3;color:#e8963c}
.wlt-row-ico.c-purple{background:#f0eaff;color:#8b6ad6}
.wlt-row-ico.c-red{background:#ffeceb;color:#e64340}
.wlt-row-main{flex:1;min-width:0}
.wlt-row-main b{display:block;font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wlt-row-main i{display:block;font-size:11px;color:#9a9a9a;font-style:normal;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wlt-row-val{font-size:15px;font-variant-numeric:tabular-nums;color:#191919}
.wlt-row-val.income{color:#07a85c}
.wlt-row-arrow{color:#c8c8c8;display:grid;place-items:center}
.wlt-row-arrow svg{width:15px;height:15px;stroke-width:2}
.wlt-tip{font-size:11px;color:#9a9a9a;line-height:1.6;margin:8px 18px 18px}

/* 金额大卡（零钱 / 银行卡详情） */
.wlt-amount-card{margin:16px 12px 10px;background:#fff;border-radius:12px;padding:24px 18px;text-align:center}
.wlt-amount-card .lb{font-size:13px;color:#8a8a8a}
.wlt-amount-card .num{font-size:38px;font-weight:600;letter-spacing:-1px;margin-top:6px;font-variant-numeric:tabular-nums}
.wlt-amount-card .num small{font-size:19px;font-weight:500;margin-right:3px}
.wlt-two-btn{display:flex;gap:10px;margin:0 12px 12px}
.wlt-two-btn button{flex:1;height:42px;border-radius:9px;border:1px solid #dcdcdc;background:#fff;font-size:15px;color:#191919}
.wlt-two-btn button.primary{background:#07c160;border-color:#07c160;color:#fff}

/* 银行卡卡片 */
.wlt-bank-card{display:block;width:calc(100% - 24px);margin:12px;border-radius:12px;padding:18px;color:#fff;position:relative;overflow:hidden;min-height:112px;text-align:left;box-sizing:border-box}
.wlt-bank-card::after{content:'';position:absolute;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.08);right:-50px;bottom:-90px}
.wlt-bank-cmb{background:linear-gradient(135deg,#e8453c,#c9302c)}
.wlt-bank-icbc{background:linear-gradient(135deg,#e64545,#b92727)}
.wlt-bank-ccb{background:linear-gradient(135deg,#3d78c8,#2b5596)}
.wlt-bank-boc{background:linear-gradient(135deg,#d8463e,#a52e2a)}
.wlt-bank-other{background:linear-gradient(135deg,#5a6b82,#374357)}
.wlt-bank-top{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:500}
.wlt-bank-mark{width:26px;height:26px;border-radius:7px;background:rgba(255,255,255,.22);display:grid;place-items:center;font-size:13px;font-weight:600}
.wlt-bank-tail{font-size:12px;opacity:.85;margin-left:auto;font-variant-numeric:tabular-nums}
.wlt-bank-bal{font-size:28px;font-weight:600;margin-top:18px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.wlt-bank-bal small{font-size:14px;font-weight:500;margin-right:3px}
.wlt-bank-foot{font-size:11px;opacity:.75;margin-top:4px}
.wlt-bank-custom{background:linear-gradient(135deg,#5a6b82,#374357)}
/* 编辑银行卡：色板 + 实时预览 */
#wltCardPreview .wlt-bank-card{width:100%;margin:0 0 16px}
.wlt-swatches{display:flex;flex-wrap:wrap;gap:11px;padding:2px 0}
.wlt-swatches button{width:30px;height:30px;border-radius:50%;border:2px solid #fff;background:var(--sw);box-shadow:0 0 0 1px rgba(0,0,0,.1);padding:0;cursor:pointer}
.wlt-swatches button.is-on{box-shadow:0 0 0 2px #07c160}
.wlt-field-inline{display:flex;align-items:center;justify-content:space-between}
.wlt-field-inline label{margin:0}
.wlt-field-inline input[type=color]{width:46px;height:30px;border:1px solid #e6e6e6;border-radius:7px;padding:2px;background:#fff;cursor:pointer}
.wlt-empty-mini{background:#fff;padding:14px 16px;color:#a8a8a8;font-size:12px}

/* 亲属卡：卡片横向撑满屏幕 */
.wlt-kn-card{display:block;width:calc(100% - 16px);margin:8px;background:#fff;border-radius:12px;overflow:hidden;box-sizing:border-box;text-align:left}
.wlt-kn-head{background:linear-gradient(135deg,#12be70,#08a55e);padding:18px 18px 46px;color:#fff;display:flex;align-items:center;gap:12px;position:relative}
.wlt-kn-head.is-in{background:linear-gradient(135deg,#5aa9e6,#3d7fc4)}
.wlt-kn-ava{width:46px;height:46px;border-radius:11px;background:rgba(255,255,255,.22);display:grid;place-items:center;overflow:hidden;flex:0 0 46px}
.wlt-kn-ava img{width:100%;height:100%;object-fit:cover}
.wlt-kn-head b{display:block;font-size:17px;font-weight:600}
.wlt-kn-head i{display:block;font-size:12px;opacity:.85;font-style:normal;margin-top:5px}
.wlt-kn-stats{display:flex;margin:-34px 12px 14px;background:#fff;border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.07);padding:16px 0;position:relative}
.wlt-kn-stats div{flex:1;text-align:center;position:relative;min-width:0;padding:0 4px}
.wlt-kn-stats div+div::before{content:'';position:absolute;left:0;top:4px;bottom:4px;width:1px;background:#f0f0f0}
.wlt-kn-stats span{display:block;font-size:11px;color:#9a9a9a}
.wlt-kn-stats b{display:block;font-size:16px;font-weight:600;margin-top:5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.wlt-kn-bar{height:5px;border-radius:3px;background:#eef0f2;margin:0 18px 16px;overflow:hidden}
.wlt-kn-bar i{display:block;height:100%;background:#07c160;border-radius:3px}
.wlt-kn-bar.is-in i{background:#4a7fd0}

/* 筛选 chips */
.wlt-filter{display:flex;gap:8px;padding:12px 15px 4px}
.wlt-filter button{border:1px solid #e2e2e2;background:#fff;color:#7d7d7d;border-radius:15px;padding:5px 14px;font-size:12px}
.wlt-filter button.is-on{background:#e6f8ee;border-color:#9ad9b7;color:#07a85c}
.wlt-date-head{padding:16px 16px 7px;font-size:12px;color:#9a9a9a}

/* 记一笔 */
.wlt-sheet{position:absolute;inset:0 0 var(--kb,0px) 0;z-index:20;background:rgba(0,0,0,.35);display:flex;align-items:flex-end}
.wlt-sheet[hidden]{display:none}
.wlt-sheet-card{width:100%;background:#fff;border-radius:16px 16px 0 0;padding-bottom:6px;max-height:88vh;overflow-y:auto}
.wlt-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid #f0f0f0;font-size:16px;font-weight:600}
.wlt-sheet-head button{border:0;background:none;font-size:15px;color:#07a85c;padding:0}
.wlt-sheet-body{padding:14px 16px}
.wlt-field{margin-bottom:14px}
.wlt-field label{display:block;font-size:12px;color:#8a8a8a;margin-bottom:7px}
.wlt-field input{width:100%;height:44px;border:1px solid #e6e6e6;border-radius:9px;padding:0 12px;font-size:16px;box-sizing:border-box;font-family:inherit}
.wlt-chips{display:flex;flex-wrap:wrap;gap:8px}
.wlt-chips button{border:1px solid #e6e6e6;background:#fff;color:#5a5a5a;border-radius:16px;padding:7px 13px;font-size:13px}
.wlt-chips button.is-on{background:#e6f8ee;border-color:#9ad9b7;color:#07a85c}
.wlt-sheet-foot{position:sticky;bottom:0;z-index:2;background:#fff;padding:10px 16px 20px}   /* 固定底部 + 安全区：内容再长保存键也可见，且避开 home-indicator */
.wlt-sheet-foot button{width:100%;height:46px;border:0;border-radius:10px;background:#07c160;color:#fff;font-size:16px}
.wlt-empty{text-align:center;color:#9a9a9a;font-size:13px;padding:38px 20px;line-height:1.7}
