/* ===== 记账本 V1.3 ===== */
.ledger-cards{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;}
.ledger-card{flex:1;min-width:130px;background:var(--card-bg,#fff);border:1px solid var(--border);border-radius:12px;padding:12px 14px;box-shadow:0 1px 3px rgba(0,0,0,.04);}
.ledger-card .lc-label{font-size:12px;color:var(--text-sub,#64748b);margin-bottom:6px;}
.ledger-card .lc-num{font-size:20px;font-weight:800;}
.ledger-card.income .lc-num{color:#16a34a;}
.ledger-card.expense .lc-num{color:#dc2626;}
.ledger-card.balance .lc-num{color:var(--primary,#2563eb);}
.lg-type-income{color:#16a34a;font-weight:700;}
.lg-type-expense{color:#dc2626;font-weight:700;}
.lg-thumb{width:40px;height:40px;object-fit:cover;border-radius:6px;cursor:pointer;border:1px solid var(--border);}
.lg-thumb-empty{width:40px;height:40px;border:1px dashed var(--border);border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:#cbd5e1;font-size:18px;background:var(--bg-soft,#f8fafc);}
.img-slot{width:88px;height:88px;border:1.5px dashed var(--primary-border,#bfdbfe);border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;overflow:hidden;background:var(--bg-soft,#f8fafc);}
.img-slot img{width:100%;height:100%;object-fit:cover;}
.img-slot .plus{color:var(--primary,#2563eb);font-size:26px;}
.img-slot .x{position:absolute;top:2px;right:4px;color:#fff;background:rgba(0,0,0,.55);border-radius:50%;width:18px;height:18px;line-height:18px;text-align:center;font-size:11px;cursor:pointer;}
#imgView{position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:9999;display:none;align-items:center;justify-content:center;}
#imgView.show{display:flex;}
#imgView img{max-width:92vw;max-height:88vh;border-radius:8px;}
@media(max-width:640px){.ledger-card{min-width:42%;}.ledger-card .lc-num{font-size:17px;}}
