:root {
  --brand: #4f46e5;
}
body {
  background: #f5f6fa;
  padding-bottom: 0;
  overflow-x: hidden;
}
a { text-decoration: none; }

/* 顶部品牌色微调 */
.bg-primary { background-color: var(--brand) !important; }
.btn-primary { background-color: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background-color: #4338ca; border-color: #4338ca; }

/* 统计卡片 */
.stat-card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  color: #fff;
  overflow: hidden;
}
.stat-card .card-body { padding: 1rem 1.1rem; }
.stat-card .label { opacity: .9; font-size: .85rem; }
.stat-card .value { font-size: 1.5rem; font-weight: 700; }
.card-panel {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* 金额颜色 */
.amount-income { color: #10b981; font-weight: 600; }
.amount-expense { color: #ef4444; font-weight: 600; }
.amount-transfer { color: #6b7280; font-weight: 600; }

/* 进度条 */
.progress { height: 10px; border-radius: 6px; background: #e5e7eb; }
.progress-bar { background-color: #10b981; }
.progress-bar.over { background-color: #ef4444; }
.progress-bar.warn { background-color: #f59e0b; }

/* 分类色块 */
.cat-dot { display:inline-block; width:14px; height:14px; border-radius:50%; margin-right:6px; vertical-align:middle; }

/* 移动端底部导航 */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: center;
  background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  height: 60px; z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; text-align: center; color: #6b7280; font-size: .72rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bottom-nav a i { font-size: 1.15rem; }
.bottom-nav a.bn-add {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff; margin-top: -24px;
  box-shadow: 0 4px 12px rgba(79,70,229,.4);
  justify-content: center; font-size: 1.4rem;
}
.bottom-nav a.bn-add span { font-size: .7rem; }

/* 主内容在移动端给底部导航留位 */
@media (max-width: 767.98px) {
  main.container { padding-bottom: 76px !important; }
  .hide-mobile { display: none !important; }
  .stat-card .value { font-size: 1.25rem; }
  .table thead th { font-size: .8rem; }

  /* 流水表：给最小宽度，避免被压缩换行，可在 .table-responsive 内左右滑动 */
  .tx-table { min-width: 560px; }
  .tx-table th,
  .tx-table td { white-space: nowrap; }
  .tx-table td.tx-note { white-space: normal; }
}
