:root {
  --primary: #ff8f3c;
  --primary-2: #ffa64d;
  --primary-dark: #ff8f3c;
  --primary-deep: #f97316;
  --primary-light: #fff1e0;
  --income: #16a34a;
  --expense: #ff8f3c;
  --bg: #fdf6ee;
  --card: #ffffff;
  --text: #241a12;
  --text-2: #a08a6a;
  --border: #f2e6d8;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(120, 53, 15, 0.07);
  --shadow-lg: 0 14px 40px rgba(120, 53, 15, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(600px 380px at 90% -5%, rgba(255,166,77,.12), transparent 60%),
    radial-gradient(500px 320px at -10% 105%, rgba(255,166,77,.08), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.hidden { display: none !important; }
/* 登录验证码 */
.captcha-row { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; }
.captcha-field { flex: 1; margin: 0; }
.captcha-img {
  width: 108px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--border); object-fit: cover; flex-shrink: 0;
}
/* 明细账单缩略图 */
.tx-thumb {
  display: inline-block; width: 44px; height: 44px; object-fit: cover;
  border-radius: 8px; margin-top: 6px; vertical-align: top; border: 1px solid var(--border);
}
/* 大图查看器 */
.img-viewer {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.86);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.img-viewer img { max-width: 94vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.img-viewer-tip { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 14px; }
/* 加载更多 */
.load-more {
  width: 100%; margin: 12px 0 20px; padding: 11px; border-radius: 12px;
  border: 1.5px dashed var(--border); background: transparent; color: var(--text-2);
  font-size: 13.5px; cursor: pointer;
}
/* 网页版还款提醒条 */
.remind-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 260; margin: 10px 12px;
  padding: 11px 14px; border-radius: 14px; background: #fff7ed; color: #9a3412;
  border: 1px solid #fed7aa; font-size: 13px; line-height: 1.55;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 6px 24px rgba(154,52,18,.14);
}
.remind-bar button {
  flex-shrink: 0; border: none; background: #ffedd5; color: #9a3412;
  border-radius: 999px; padding: 5px 13px; font-size: 12px; cursor: pointer;
}
body.dark .remind-bar { background: #2b1c0e; color: #fdba74; border-color: #78350f; }
body.dark .remind-bar button { background: #3b2413; color: #fdba74; }

button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, select { font-family: inherit; }

/* ---------- 认证页 ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 380px; background: var(--card);
  border-radius: 24px; padding: 34px 26px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,143,60,.06);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ffa64d, #f97316, #fcd34d);
}
.auth-logo { text-align: center; margin-bottom: 26px; }
.logo-icon {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 20px;
  background: linear-gradient(135deg, #ffa64d, #f97316); color: #fff; font-size: 34px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(255,143,60,.35);
}
.auth-logo h1 { font-size: 24px; letter-spacing: 1px; }
.auth-logo p { color: var(--text-2); font-size: 13px; margin-top: 8px; }
.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.seg-btn { flex: 1; padding: 11px; border-radius: 9px; font-size: 15px; color: var(--text-2); transition: all .2s; }
.seg-btn.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.field { margin-bottom: 13px; }
.field input {
  width: 100%; padding: 14px 15px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 15px; outline: none; background: #fafcfb; transition: all .2s;
}
.field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(255,143,60,.10); }
.msg { color: #16a34a; font-size: 13px; min-height: 18px; margin-bottom: 10px; }
.auth-forgot { text-align: center; margin-top: 10px; }
.auth-forgot a { font-size: 12.5px; color: var(--primary); text-decoration: none; cursor: pointer; }
.ep-select {
  width: 100%; padding: 12px 12px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 14px; outline: none; background: transparent; color: var(--text); margin: 4px 0 2px;
}
.ep-select:focus { border-color: var(--primary); }

.btn-primary {
  width: 100%; padding: 15px; color: #fff; font-size: 16px; font-weight: 600; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-deep));
  box-shadow: 0 8px 20px rgba(255,143,60,.32);
  transition: all .2s;
}
.btn-primary:active { transform: scale(.98); filter: brightness(.94); }
.btn-danger {
  width: 100%; margin-top: 10px; padding: 13px 0; border: none; border-radius: 14px;
  background: #fdecec; color: #e74c3c; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn-danger:active { transform: scale(.96); background: #f9dcdc; }
.ed-att { font-size: 12px; color: var(--text-2); padding: 8px 0 4px; display: flex; align-items: center; gap: 4px; }

/* 明细页：导出按钮 */
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px 8px; }
.btn-export {
  font-size: 13px; font-weight: 700; color: var(--primary-deep);
  background: var(--card); border: 1.5px solid rgba(255,143,60,.3); border-radius: 18px;
  padding: 7px 15px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s;
}
.btn-export:active { transform: scale(.94); }

/* 账单海报 */
.poster-btn {
  width: 100%; margin-top: 14px; padding: 14px 0; border: none; border-radius: 18px;
  background: linear-gradient(135deg, #ffb366, #f97316 55%, #ea580c); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 1px; cursor: pointer;
  box-shadow: 0 10px 22px rgba(249,115,22,.32); transition: transform .15s;
}
.poster-btn:active { transform: scale(.97); }
.poster-mask {
  position: fixed; inset: 0; background: rgba(15,10,5,.82); z-index: 90;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.poster-box { width: 82vw; max-width: 430px; display: flex; flex-direction: column; gap: 12px; }
.poster-box img { width: 100%; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.poster-tip { text-align: center; font-size: 12px; color: #ffd9b3; }
.poster-close {
  padding: 13px 0; border: 1.5px solid rgba(255,255,255,.35); border-radius: 14px;
  background: rgba(255,255,255,.08); color: #fff; font-size: 15px; cursor: pointer;
}

/* ---------- 主框架 ---------- */
.app { padding-bottom: 86px; }
.page { display: none; padding: 0 16px; }
.page.active { display: block; animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { padding: 16px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.home-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 14px; }
.ledger-sel { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.ledger-sel .chev { color: var(--text-2); font-style: normal; font-size: 12px; }
.month-sel {
  color: var(--text-2); font-size: 14px; padding: 6px 14px; border-radius: 22px;
  border: 1px solid var(--border); background: rgba(255,255,255,.8);
}
.month-sel.big { font-size: 15px; font-weight: 600; color: var(--text); align-self: flex-start; }

/* 首页结余卡片 */
.balance-card {
  background: linear-gradient(135deg, #ffab5a 0%, #ff8f3c 48%, #f97316 100%);
  border-radius: 20px; padding: 16px 18px 14px; color: #fff;
  box-shadow: 0 14px 30px rgba(255,143,60,.26);
  position: relative; overflow: hidden;
}
.balance-card::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.20), transparent 70%);
  pointer-events: none;
}
.balance-card::before {
  content: ''; position: absolute; left: -30px; bottom: -50px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  pointer-events: none;
}
.bc-label-row { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.bc-label { font-size: 12px; opacity: .85; letter-spacing: 1px; }
.bc-report {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; color: rgba(255,255,255,.96); font-weight: 500;
  padding: 4px 12px 4px 13px; border-radius: 20px;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.65);
  position: relative; z-index: 2; cursor: pointer;
}
.bc-report:active { background: rgba(255,255,255,.3); }
.bc-report-arrow { font-size: 14px; line-height: 1; margin-top: -1px; }
.bc-amount-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.bc-amount { font-size: 26px; font-weight: 700; color: #1f1f1f; font-variant-numeric: tabular-nums; }
.hide-btn {
  width: 26px; height: 26px; border-radius: 50%; font-size: 14px; color: #fff;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hide-btn:active { background: rgba(255,255,255,.32); }
.bc-row { display: flex; justify-content: flex-start; gap: 22px; }
.bc-pair { display: flex; align-items: baseline; gap: 6px; }
.bc-sub { font-size: 12px; opacity: .8; }
.bc-income { font-size: 12px; font-weight: 500; color: #d9f7e5; font-variant-numeric: tabular-nums; }
.bc-expense { font-size: 12px; font-weight: 500; color: #fff3e2; font-variant-numeric: tabular-nums; }
.budget-bar { margin-top: 14px; }
.budget-info { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }
.budget-info b { color: var(--text); }
.b-over-tag { color: #e74c3c; font-weight: 700; }
.b-pct { color: #e74c3c; font-weight: 800; }
.b-used { font-variant-numeric: tabular-nums; }
.budget-info { display: flex; justify-content: space-between; font-size: 12px; opacity: .9; margin-bottom: 6px; }
.bar { height: 6px; background: rgba(255,255,255,.22); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #fcd34d, #ffffff); border-radius: 4px; width: 0; transition: width .4s ease; box-shadow: 0 0 10px rgba(255,255,255,.4); }
.bar-fill.warn { background: linear-gradient(90deg, #fde68a, #fbbf24); }
.bar-fill.over { background: linear-gradient(90deg, #fca5a5, #ef4444); }

/* 星期条（卡片下方 · 参考图样式：周日至周六，今天高亮+小箭头） */
.week-bar {
  display: flex; margin-top: 12px; position: relative;
  background: var(--card); border-radius: 16px; padding: 10px 6px 12px;
  box-shadow: var(--shadow); border: 1px solid rgba(255,143,60,.08);
}
.wday {
  flex: 1; text-align: center; font-size: 13px; color: var(--text-2);
  padding: 5px 0 7px; border-radius: 10px; position: relative; transition: all .18s;
}
.wday.active { color: #fff; font-weight: 700; background: linear-gradient(135deg, #ffa64d, #f97316); box-shadow: 0 4px 10px rgba(249,115,22,.32); }
.wday.active::after {
  content: '▼'; position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%);
  font-size: 9px; color: var(--primary);
}

/* 还款提醒卡片 */
.remind-card {
  background: var(--card); border-radius: 16px; padding: 14px 16px;
  margin-top: 12px; box-shadow: var(--shadow); border: 1px solid rgba(255,143,60,.08);
}
.remind-manage {
  font-size: 12px; color: var(--primary); font-weight: 600; padding: 3px 10px;
  border-radius: 13px; background: var(--primary-light);
}
.remind-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.remind-item:last-child { border-bottom: none; }
.remind-item .r-icon {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(150deg, #fff7ed, #ffedd5); border: 1px solid rgba(255,143,60,.14);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.remind-item .r-mid { flex: 1; min-width: 0; }
.remind-item .r-name { font-size: 14px; font-weight: 600; }
.remind-item .r-note { font-size: 11px; color: var(--text-2); margin-top: 1px; }
.remind-item .r-days { font-size: 12px; font-weight: 600; color: var(--primary); flex-shrink: 0; }
.remind-item .r-days.today { color: #e74c3c; font-weight: 700; }
.remind-item .r-amt { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* 通用卡片 */
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.assets-card, .recent-card, .chart-card, .menu-card {
  background: var(--card); border-radius: 18px; padding: 18px;
  margin-top: 14px; box-shadow: var(--shadow); border: 1px solid rgba(255,143,60,.05);
}
.assets-total { font-size: 13px; color: var(--text-2); font-weight: 400; }
.assets-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.asset-chip {
  flex-shrink: 0; border-radius: 13px; padding: 10px 14px;
  background: linear-gradient(150deg, #fff7ed, #ffe9d6);
  border: 1px solid rgba(255,143,60,.14); min-width: 76px;
}
.asset-chip .a-name { font-size: 12px; color: var(--text-2); }
.asset-chip .a-bal { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* 账单列表 */
.tx-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; border-radius: 10px; }
.tx-item:active { background: #faf5ef; }
.tx-item:last-child { border-bottom: none; }
.tx-time { width: 42px; flex-shrink: 0; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.tx-icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(150deg, #fff7ed, #ffedd5); border: 1px solid rgba(255,143,60,.10);
  display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
}
.tx-mid { flex: 1; min-width: 0; }
.tx-cat { font-size: 15px; font-weight: 600; }
.tx-note { font-size: 12px; color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-amt { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-amt.expense { color: var(--text); }
.tx-amt.income { color: var(--income); }
.tx-account { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.tx-group-title { font-size: 15px; color: var(--text); padding: 12px 0 6px; font-weight: 700; letter-spacing: .5px; }
.load-more {
  width: 100%; margin-top: 10px; padding: 12px; border-radius: 13px;
  background: var(--primary-light); color: var(--primary); font-size: 14px; font-weight: 600;
  border: 1.5px solid rgba(255,143,60,.16);
}
.load-more:active { filter: brightness(.94); }
.filter-row { display: flex; gap: 8px; }
.filter-row select, .filter-row input {
  flex: 1; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 13px; background: rgba(255,255,255,.85); outline: none; color: var(--text);
}
.filter-row select:focus, .filter-row input:focus { border-color: var(--primary); }
.empty { text-align: center; color: var(--text-2); padding: 42px 0; font-size: 14px; }

/* 记账面板（参考图排版：切换→分类→账户/日期→金额→备注→键盘→完成） */
.add-type { display: flex; gap: 8px; }
.type-btn {
  flex: 1; padding: 8px 0; border-radius: 18px; background: var(--bg);
  border: 1.5px solid transparent; font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .2s;
}
.type-btn.active[data-type="expense"] {
  border-color: var(--expense); color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-deep));
  box-shadow: 0 4px 12px rgba(255,143,60,.25);
}
.type-btn.active[data-type="income"] {
  border-color: var(--income); color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 12px rgba(231,76,60,.20);
}
.category-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  height: 162px; overflow-y: auto; margin: 8px 0 6px;
  padding-right: 2px; align-content: start;
}
.cat-item {
  border-radius: 12px; padding: 10px 2px; text-align: center;
  border: 1.5px solid transparent; transition: all .18s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 63px;
}
.cat-item.active { border-color: var(--primary); box-shadow: 0 6px 16px rgba(255,143,60,.20); transform: translateY(-1px); }
.cat-item .c-icon { font-size: 20px; display: block; line-height: 1; }
.cat-item .c-name { font-size: 10px; color: #8a6f52; display: block; font-weight: 500; }
.cat-item.active .c-name { color: var(--primary); font-weight: 700; }
.tx-meta-row { display: flex; gap: 6px; margin: 4px 0 0; }
.tx-meta-row select, .tx-meta-row input {
  flex: 1; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 12px; background: #fafcfb; outline: none; color: var(--text);
}
.tx-meta-row select:focus, .tx-meta-row input:focus { border-color: var(--primary); background: #fff; }
.amount-input {
  text-align: left; font-size: 30px; font-weight: 800; padding: 4px 2px 0;
  font-variant-numeric: tabular-nums; letter-spacing: 1px;
  color: #f59e0b; text-shadow: 0 0 18px rgba(245,158,11,.18);
}
.amount-input .cur { font-size: 18px; margin-right: 3px; color: #d97706; font-weight: 700; }
.note-row { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; flex-wrap: wrap; }
.note-row input {
  flex: 1; min-width: 120px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 12px; background: #fafcfb; outline: none; color: var(--text);
}
.note-row input:focus { border-color: var(--primary); background: #fff; }
.note-icon {
  width: 34px; height: 34px; border-radius: 10px; font-size: 16px; flex-shrink: 0;
  background: linear-gradient(150deg, #fff7ed, #ffedd5); border: 1px solid rgba(255,143,60,.15);
}
.note-icon:active { filter: brightness(.94); }
.attach-preview { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 4px; }
.attach-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--border); }
.attach-preview #attach-remove {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(20,30,25,.72); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.tx-photo { font-size: 11px; }

/* 统计：彩色高级卡片 */
.stats-cards { display: flex; gap: 10px; margin-top: 14px; }
.stat-card {
  flex: 1; border-radius: 18px; padding: 15px 12px 13px; color: #fff;
  position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(80,60,30,.16);
}
.stat-card::after {
  content: ''; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px;
  border-radius: 50%; background: rgba(255,255,255,.14); pointer-events: none;
}
.sc-income { background: linear-gradient(150deg, #34c88a, #0fa968); }
.sc-expense { background: linear-gradient(150deg, #ff8f6b, #f4573c); }
.sc-balance { background: linear-gradient(150deg, #5aa8ff, #2f6bff); }
.sc-label { font-size: 12px; opacity: .92; display: flex; align-items: center; gap: 4px; }
.sc-num { font-size: 18px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pie-wrap { height: 210px; display: flex; align-items: center; justify-content: center; }
.pie-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.legend-item {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text);
  background: #faf7f3; border: 1px solid var(--border); border-radius: 10px; padding: 4px 9px;
}
.legend-item b { color: var(--text-2); font-weight: 600; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.trend-wrap { height: 215px; }

/* 我的 */
.mine-head { display: flex; align-items: center; gap: 14px; padding: 22px 4px 10px; }
.avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(150deg, #fff7ed, #ffedd5);
  border: 2px solid #fff; box-shadow: 0 4px 14px rgba(255,143,60,.22);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  flex-shrink: 0;
}
.mine-info { flex: 1; min-width: 0; }
.mine-name { font-size: 19px; font-weight: 700; }
.mine-user { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.mine-since { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.mine-edit {
  width: 38px; height: 38px; border-radius: 13px; flex-shrink: 0;
  background: var(--card); border: 1px solid rgba(255,143,60,.14);
  box-shadow: var(--shadow); color: var(--text-2); font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: transform .12s;
}
.mine-edit:active { transform: scale(.92); }
/* 我的页 · 核心数据卡 */
.mine-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px;
}
.ms-item {
  background: var(--card); border-radius: 18px; padding: 16px 10px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid rgba(255,143,60,.05);
}
.ms-num { font-size: 24px; font-weight: 800; color: var(--primary-deep); font-variant-numeric: tabular-nums; }
.ms-label { font-size: 12px; color: var(--text-2); margin-top: 5px; }
/* 我的页 · 功能宫格 */
.mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }.mg-cell {
  background: var(--card); border-radius: 18px; padding: 15px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow); border: 1px solid rgba(255,143,60,.05);
  transition: transform .12s;
}
.mg-cell:active { transform: scale(.94); }
.mg-ic {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(150deg, #fff1e4, #ffdcc0);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.mg-tx { font-size: 12px; color: var(--text); font-weight: 500; }
.mine-block-title { font-size: 13px; color: var(--text-2); margin: 22px 4px 0; font-weight: 600; letter-spacing: .5px; }

/* 账本管理 · 新建/编辑（参考「修改账本」表单） */
.lg-icon {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(150deg, #fff1e4, #ffdcc0);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.row-tag {
  font-size: 12px; font-weight: 600; color: var(--primary-deep);
  background: var(--primary-light); border-radius: 20px; padding: 4px 10px; flex-shrink: 0;
}
.lg-covers { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-cover {
  width: 46px; height: 46px; border-radius: 14px; font-size: 22px;
  background: linear-gradient(150deg, #fff7ed, #ffedd5);
  border: 2px solid transparent; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.lg-cover.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,143,60,.18); transform: scale(1.05); }
.lg-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500;
}
.lg-switch-row:last-of-type { border-bottom: none; }
.switch {
  width: 46px; height: 26px; border-radius: 20px; background: #e5e0da;
  position: relative; transition: background .2s; flex-shrink: 0;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: left .2s;
}
.switch.on { background: linear-gradient(135deg, #ffa64d, #f97316); }
.switch.on::after { left: 23px; }
.lg-lock {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary-deep);
  font-size: 12px; font-weight: 500;
}
.lg-tip { margin-top: 12px; font-size: 12px; color: var(--text-2); line-height: 1.7; }
body.dark .lg-cover { background: linear-gradient(150deg, #33251a, #452f1d); }
body.dark .switch { background: #4a3b2d; }
body.dark .lg-icon { background: linear-gradient(150deg, #33251a, #452f1d); }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 500; }
.menu-item:last-child { border-bottom: none; }
.menu-item i { color: var(--text-2); font-style: normal; }
.btn-ghost { width: 100%; margin-top: 20px; padding: 14px; border-radius: 14px; background: #fff; color: #f97316; border: 1.5px solid #ffd9bf; font-size: 15px; font-weight: 500; }

/* ---------- 深色模式 ---------- */
body.dark {
  --bg: #16110c;
  --card: #241b13;
  --text: #f2e8db;
  --text-2: #b3a088;
  --border: #3d2f21;
  --primary-light: #3b2a1a;
  background:
    radial-gradient(600px 380px at 90% -5%, rgba(255,166,77,.09), transparent 60%),
    radial-gradient(500px 320px at -10% 105%, rgba(255,166,77,.05), transparent 60%),
    var(--bg);
}
body.dark .avatar, body.dark .mg-ic {
  background: linear-gradient(150deg, #33251a, #452f1d);
  border-color: #4a3422;
}
body.dark .tabbar {
  background: rgba(36,27,19,.82); border-color: rgba(255,255,255,.08);
  box-shadow: 0 12px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05);
}
body.dark .tab { color: #9a8a77; }
body.dark .tab.active { color: #ffb066; }
body.dark .tab.active .tab-ic {
  background: linear-gradient(150deg, #3b2a1a, #4a3420);
  box-shadow: inset 0 -2px 0 rgba(255,143,60,.3), 0 3px 10px rgba(0,0,0,.35);
}
body.dark .tab-plus { box-shadow: 0 10px 22px rgba(249,115,22,.4), 0 0 0 4px #241b13; }
body.dark input, body.dark select { background: #2b2017; color: var(--text); border-color: var(--border); }
body.dark .field input { background: #2b2017; color: var(--text); }
body.dark .filter-row select, body.dark .filter-row input { background: #2b2017; color: var(--text); }
body.dark .btn-ghost { background: var(--card); color: #ef7d6d; border-color: #4d3a33; }
body.dark .panel { background: var(--card); }
body.dark .num-keypad { background: #1e1711; }
body.dark .key { background: #2b2017; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
body.dark .key:active { background: #3a2c1e; }
body.dark .seg { background: #241b13; }
body.dark .seg-btn.active { background: #3b2a1a; color: #ffb066; }
body.dark .legend-item { background: #2b2017; }
body.dark .tx-item:active { background: #2b2017; }
body.dark .asset-chip { background: linear-gradient(150deg, #2a1f15, #3a2a1c); border-color: rgba(255,143,60,.16); }
body.dark .tx-icon { background: linear-gradient(150deg, #2a2017, #3a2c1e); border-color: rgba(255,143,60,.12); }
body.dark .load-more { border-color: rgba(255,143,60,.22); }

/* 底部导航：悬浮玻璃条 · 高大上版 */
.tabbar {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 470px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(120,53,15,.14), 0 2px 8px rgba(120,53,15,.06), inset 0 1px 0 rgba(255,255,255,.8);
  display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom) / 2);
  z-index: 50;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; color: #9aa3ad; padding: 5px 0 3px; border: none; background: none;
  transition: color .2s; cursor: pointer; position: relative;
}
.tab-ic { width: 40px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 13px; transition: all .22s cubic-bezier(.4,0,.2,1); }
.tab-ic svg { width: 22px; height: 22px; }
.tab-tx { font-weight: 500; letter-spacing: .3px; }
.tab.active { color: var(--primary-deep); font-weight: 700; }
.tab.active .tab-ic {
  background: linear-gradient(150deg, #fff1e4, #ffdcc0);
  box-shadow: inset 0 -2px 0 rgba(255,143,60,.18), 0 3px 10px rgba(255,143,60,.22);
}
.tab.active .tab-ic svg { transform: translateY(-1px); stroke-width: 2.1; }
.tab.active .tab-tx { transform: translateY(0); }
.tab-add { }
.tab-plus {
  width: 50px; height: 50px; border-radius: 50%; margin-top: -26px;
  background: linear-gradient(135deg, #ffc24b, #ff8f3c 45%, #f97316);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(249,115,22,.42), 0 0 0 4px rgba(255,255,255,.9), inset 0 -3px 6px rgba(180,52,8,.35);
  border: none; transition: transform .2s;
}
.tab-plus svg { width: 25px; height: 25px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
.tab-add:active .tab-plus { transform: scale(.94); }

/* 统计页头部：返回 + 右侧月份 */
.stats-head { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 2px 10px; }
.head-back {
  display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--card); border: 1px solid rgba(255,143,60,.14); border-radius: 22px;
  padding: 7px 16px 7px 12px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s;
}
.head-back:active { transform: scale(.95); }
.stats-head .month-sel { align-self: auto; margin: 0; }

/* 发现页 */
.page-title { font-size: 22px; font-weight: 800; padding: 18px 2px 14px; letter-spacing: .5px; }
.checkin-card {
  position: relative; overflow: hidden; border-radius: 22px; padding: 20px 18px 18px;
  background: linear-gradient(160deg, #fdf3e7, #fbe6cf 60%, #f8d8b6);
  border: 1px solid rgba(255,255,255,.7); box-shadow: 0 14px 34px rgba(180,120,50,.18);
}
.ci-glow {
  position: absolute; top: -46px; right: -46px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,120,.55), transparent 70%);
  pointer-events: none;
}
.ci-head { display: flex; justify-content: space-around; padding: 6px 0 14px; position: relative; }
.ci-box { text-align: center; }
.ci-num { font-size: 34px; font-weight: 800; color: var(--primary-deep); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ci-num.gold { color: #f59e0b; }
.ci-cap { font-size: 12px; color: #8a6a48; margin-top: 4px; }
.ci-week { display: flex; justify-content: space-between; align-items: flex-start; position: relative; padding: 4px 2px 0; }
.ci-day {
  flex: 1; max-width: 48px; display: flex; flex-direction: column; align-items: center;
  gap: 5px; position: relative; transition: all .2s;
}
.ci-day::after {               /* 圆点间连接线 */
  content: ''; position: absolute; top: 22px; left: calc(50% + 26px); width: calc(100% - 52px); height: 2.5px;
  background: linear-gradient(90deg, #f3d9b5, #eecb9a); border-radius: 2px; z-index: 0;
}
.ci-day:last-child::after { display: none; }
.ci-day.done::after { background: linear-gradient(90deg, #ffb366, #f97316); }
.ci-circle {
  width: 44px; height: 44px; border-radius: 50%; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #efd8b8;
  font-size: 16px; font-weight: 800; color: #b9976a;
  box-shadow: 0 3px 8px rgba(180,120,50,.1); transition: all .2s;
}
.ci-day .d-p { font-size: 10.5px; color: #c2803b; font-weight: 700; }
.ci-day.done .ci-circle {
  background: linear-gradient(150deg, #ffb366, #f97316); border-color: transparent; color: #fff;
  box-shadow: 0 5px 12px rgba(249,115,22,.4);
}
.ci-day.done .d-p { color: #f97316; }
.ci-day.today .ci-circle {
  border-color: var(--primary); transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(255,143,60,.2), 0 6px 16px rgba(255,143,60,.35);
  color: var(--primary-deep);
}
.ci-day.today::before {
  content: '今日'; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ffb366, #f97316);
  border-radius: 9px; padding: 2px 7px; z-index: 2; box-shadow: 0 2px 6px rgba(249,115,22,.4);
}
.ci-day.big-day .ci-circle {                 /* 第 7 天大奖格 */
  border-color: #f5c24a; background: linear-gradient(150deg, #fff7e0, #ffe9b0);
  color: #c98d1b;
}
.ci-day.big-day.done .ci-circle {
  background: linear-gradient(150deg, #ffcf6b, #f5a623); border-color: transparent; color: #fff;
  box-shadow: 0 5px 14px rgba(245,166,35,.5);
}
.ci-day.big-day .d-p { color: #d99a1f; font-weight: 800; }
.ci-btn {
  width: 100%; margin-top: 16px; padding: 13px 0; border-radius: 18px; border: none;
  background: linear-gradient(135deg, #ffb366, #f97316 55%, #ea580c);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 2px;
  box-shadow: 0 10px 22px rgba(249,115,22,.35), inset 0 -3px 6px rgba(180,52,8,.3);
  cursor: pointer; transition: transform .15s, opacity .2s;
}
.ci-btn:active { transform: scale(.96); }
.ci-btn.done-btn { background: linear-gradient(135deg, #b9c1c9, #98a2ab); box-shadow: 0 8px 18px rgba(120,130,140,.3); }
.ci-tip { text-align: center; font-size: 12px; color: #a0703a; margin-top: 10px; }
.points-card { background: var(--card); border-radius: 18px; padding: 16px; margin-top: 14px; box-shadow: var(--shadow); border: 1px solid rgba(255,143,60,.08); }
.ci-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ci-row:last-child { border-bottom: none; }
.ci-row .d-date { color: var(--text-2); flex: 1; }
.ci-row .d-pts { font-weight: 700; color: #f59e0b; }

/* 弹层面板 */
.panel-mask { position: fixed; inset: 0; background: rgba(10,30,22,.45); z-index: 80; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.panel {
  width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0;
  max-height: 82vh; display: flex; flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
}
.panel-head { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.panel-head span { flex: 1; text-align: center; }
.panel-close { font-size: 16px; color: var(--text-2); width: 28px; }
.panel-body { overflow-y: auto; padding: 18px; }
.panel-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.panel-row:last-child { border-bottom: none; }
.panel-row .grow { flex: 1; }
.row-btn { color: var(--primary); font-size: 13px; padding: 4px 8px; font-weight: 600; }
.row-del { color: #16a34a; font-size: 13px; }
.input-row { display: flex; gap: 8px; margin: 8px 0; }
.input-row input, .input-row select { flex: 1; padding: 12px 12px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 14px; outline: none; }
.input-row input:focus, .input-row select:focus { border-color: var(--primary); }
.form-label { font-size: 13px; color: var(--text-2); margin: 14px 0 8px; font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 20px; background: var(--bg); font-size: 13px; }
.chip.active { background: var(--primary); color: #fff; }

/* 数字键盘（内嵌于记一笔面板底部 · 4列：含×/+ /−/再记/完成） */
.num-keypad {
  background: #f7faf8; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom) / 2);
  flex-shrink: 0; margin-top: 4px;
}
.key {
  padding: 13px 4px; text-align: center; font-size: 19px; background: #fff;
  border-radius: 10px; box-shadow: 0 2px 6px rgba(120,53,15,.06); transition: all .12s;
  font-variant-numeric: tabular-nums;
}
.key:active { transform: scale(.96); background: #eef7f1; }
.key-del { font-size: 16px; color: var(--text-2); }
.key-op { font-size: 17px; color: var(--text-2); font-weight: 700; }
.key-more { font-size: 13px; color: var(--primary); font-weight: 600; background: #fff7ed; }
.key-done {
  font-size: 14px; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-deep));
  box-shadow: 0 4px 12px rgba(255,143,60,.30);
}
.key-done:active { background: linear-gradient(135deg, var(--primary-2), var(--primary-deep)); filter: brightness(.94); }

/* 下拉刷新指示器 */
.pull-ind {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -100%);
  z-index: 90; min-width: 130px; justify-content: center;
  background: rgba(255,255,255,.96); border-radius: 0 0 18px 18px;
  padding: 12px 20px 14px; font-size: 12px; color: var(--text-2);
  box-shadow: 0 6px 20px rgba(120,53,15,.12); border: 1px solid rgba(255,143,60,.14);
  transition: transform .28s cubic-bezier(.33,.72,.32,1);
  display: flex; align-items: center; gap: 8px;
}
.pull-spin {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--primary-light); border-top-color: var(--primary);
  display: inline-block; animation: pullSpin .8s linear infinite;
}
@keyframes pullSpin { to { transform: rotate(360deg); } }

/* 月份选择弹层（参考图样式：标题+回本月+年份+12月网格） */
.month-mask {
  position: fixed; inset: 0; background: rgba(30, 20, 10, .45); backdrop-filter: blur(4px);
  z-index: 85; display: flex; align-items: center; justify-content: center;
  animation: maskIn .2s ease;
}
.month-panel {
  width: calc(100% - 56px); max-width: 400px; background: #fff;
  border-radius: 24px; padding: 20px 18px 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.2); animation: sheetUp .3s cubic-bezier(.33,.72,.32,1);
}
.month-head { display: flex; align-items: center; gap: 10px; }
.month-head > span { flex: 1; font-size: 16px; font-weight: 700; }
.month-today {
  font-size: 12px; color: var(--primary); font-weight: 600; padding: 5px 12px;
  border-radius: 14px; background: var(--primary-light); border: 1px solid rgba(255,143,60,.18);
}
.month-close { width: 26px; height: 26px; border-radius: 50%; background: #f3f0ec; color: var(--text-2); font-size: 13px; }
.month-year {
  display: flex; align-items: center; justify-content: center; gap: 22px; margin: 16px 0 12px;
}
.year-btn {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); font-size: 18px; font-weight: 700;
}
.year-btn:active { filter: brightness(.93); }
.year-display { font-size: 17px; font-weight: 700; min-width: 76px; text-align: center; }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.month-cell {
  padding: 12px 4px; border-radius: 14px; text-align: center; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1.5px solid transparent; transition: all .15s; position: relative;
}
.month-cell:active { filter: brightness(.94); }
.month-cell.active {
  background: linear-gradient(135deg, #ffa64d, #ff8f3c); color: #fff; font-weight: 700;
  box-shadow: 0 8px 20px rgba(255,143,60,.28); border-color: transparent;
}
.month-cell .m-sub { display: block; font-size: 9.5px; font-weight: 400; margin-top: 2px; opacity: .92; font-variant-numeric: tabular-nums; }
.month-cell:not(.active) .m-sub { color: var(--text-2); }

/* 记一笔 · 底部弹出面板（清爽薄荷绿） */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(14, 44, 33, .42); backdrop-filter: blur(4px);
  z-index: 80; display: flex; align-items: flex-end; justify-content: center;
  animation: maskIn .2s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  width: 100%; max-width: 480px; background: #fff;
  border-radius: 26px 26px 0 0; max-height: 96vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -10px 44px rgba(0,0,0,.18);
  animation: sheetUp .3s cubic-bezier(.33,.72,.32,1);
  padding-bottom: calc(env(safe-area-inset-bottom) / 2);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-bar { width: 40px; height: 4px; border-radius: 4px; background: #dcebe3; margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 0; position: relative; }
.head-type { flex: 1; }
.sheet-close { width: 28px; height: 28px; border-radius: 50%; color: #93a99f; font-size: 14px; background: #f1f6f3; flex-shrink: 0; }
.sheet-close:active { background: #e5efe9; }
.sheet-body { overflow-y: auto; padding: 10px 14px 6px; }

@media (min-width: 480px) {
  .app { max-width: 460px; margin: 0 auto; }
  .page { padding: 0 16px; }
}

/* ---------- 8项新增：金额区间筛选 / 记账人 / 快捷模板 / 年度报告 ---------- */
.filter-row.amount-row { margin-top: 6px; gap: 6px; }
.amount-row input { flex: 1; min-width: 0; }
.amount-sep { color: var(--text-2, #93a99f); font-size: 13px; }
.filter-clear { flex-shrink: 0; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border, #e5efe9); background: transparent; color: var(--text-2, #7a8f86); font-size: 12px; }
.tx-rec { color: var(--text-2, #93a99f); font-size: 10px; margin-left: 2px; }
.tmpl-save { flex-shrink: 0; padding: 7px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #f97316; border: 1px solid #ffd6b3; background: #fff3e6; }
.tmpl-save:active { background: #ffe8d2; }
.template-bar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.template-bar::-webkit-scrollbar { display: none; }
.tmpl-label { flex-shrink: 0; font-size: 12px; color: var(--text-2, #93a99f); }
.tmpl-chip { flex-shrink: 0; padding: 6px 10px; border-radius: 999px; background: #f1f6f3; color: #33463c; font-size: 13px; font-weight: 600; }
.tmpl-chip:active { background: #e5efe9; }
.tmpl-del { flex-shrink: 0; margin-left: -10px; color: #c9d6cf; font-size: 10px; }
.tmpl-del:active { color: #e11d48; }
.annual-mask { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.62); display: flex; align-items: flex-end; justify-content: center; }
.annual-mask.hidden, .poster-mask.hidden { display: none; }
.annual-box { width: 100%; max-width: 480px; max-height: 92vh; background: #f7f5f2; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: sheetUp .28s cubic-bezier(.33,.72,.32,1); }
.annual-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.annual-title { font-size: 18px; font-weight: 800; color: #4c2f8f; }
.annual-body { overflow-y: auto; padding: 4px 16px 22px; }
.an-cards { display: flex; gap: 10px; margin-bottom: 14px; }
.an-card { flex: 1; background: #fff; border-radius: 14px; padding: 12px 10px; text-align: center; }
.an-label { font-size: 12px; color: #93a99f; }
.an-num { font-size: 18px; font-weight: 800; margin: 6px 0 2px; }
.an-inc { color: #0fa968; }
.an-exp { color: #f4573c; }
.an-sub { font-size: 11px; color: #b0bcb6; }
.an-trend { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.an-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.an-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; width: 100%; }
.an-bar { width: 6px; border-radius: 3px 3px 0 0; }
.an-bar-inc { background: #34c88a; }
.an-bar-exp { background: #f4573c; }
.an-m { font-size: 10px; color: #93a99f; }
.an-cat-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.an-cat-icon { font-size: 18px; width: 24px; text-align: center; }
.an-cat-name { font-size: 13px; color: #33463c; width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-cat-bar { flex: 1; height: 8px; border-radius: 4px; background: #ece2ff; overflow: hidden; }
.an-cat-fill { height: 100%; background: #9b59b6; border-radius: 4px; }
.an-cat-amt { font-size: 13px; font-weight: 700; color: #4c2f8f; }
.an-best { background: #fff; border-radius: 12px; padding: 12px 14px; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.an-best span { font-size: 12px; color: #93a99f; }
.an-best b { font-size: 18px; color: #4c2f8f; }
.an-best-sub { font-size: 12px; color: #7a8f86; }
.role-sel { padding: 4px 6px; border-radius: 8px; border: 1px solid #e5efe9; font-size: 12px; color: #33463c; background: #fff; }
