.splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #f7f8fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f7f8fa; padding-bottom: 50px; }

.page-container { padding: 16px; }
.page-title { font-size: 18px; font-weight: bold; margin-bottom: 16px; }

.card { background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.stat-item { background: #fff; border-radius: 8px; padding: 10px; text-align: center; }
.stat-item .label { font-size: 12px; color: #969799; margin-bottom: 2px; }
.stat-item .value { font-size: 18px; font-weight: bold; color: #323233; }
.stat-item .value.positive { color: #07c160; }
.stat-item .value.negative { color: #ee0a24; }

.account-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f5f5f5; }
.account-item:last-child { border-bottom: none; }
.account-icon { width: 26px; height: 26px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; margin-right: 6px; flex-shrink: 0; }
.account-info { flex: 1; }
.account-name { font-size: 13px; font-weight: 500; }
.account-type { font-size: 11px; color: #969799; }
.account-balance { font-size: 13px; font-weight: bold; text-align: right; }

.amount { font-weight: bold; }
.amount.income { color: #07c160; }
.amount.expense { color: #ee0a24; }

.fab-button { position: fixed; right: 20px; bottom: 70px; z-index: 100; width: auto; }

.nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px 0; margin-bottom: 8px; }
.nav-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.nav-item-disabled { opacity: 0.4; cursor: default; }

/* ==================== 暗夜模式 ==================== */
.dark .splash-screen,
.dark { background: #1a1a1a; color: #e0e0e0; }

.dark .card { background: #2a2a2a; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.dark .stat-item { background: #2a2a2a; }
.dark .stat-item .value { color: #e0e0e0; }

.dark .account-item { border-bottom-color: #333; }

.dark .page-title { color: #e0e0e0; }

/* Vant 组件覆盖 */
.dark .van-tabbar { background: #2a2a2a; }
.dark .van-tabbar-item { color: #969799; }
.dark .van-tabbar-item--active { color: #1989fa; background-color: #2a2a2a; }

.dark .van-nav-bar { background: #2a2a2a; }
.dark .van-nav-bar__title { color: #e0e0e0; }
.dark .van-nav-bar__left .van-icon { color: #e0e0e0; }

.dark .van-cell { background: #2a2a2a; color: #e0e0e0; }
.dark .van-cell__label { color: #999; }
.dark .van-cell__value { color: #ccc; }
.dark .van-cell::after { border-bottom-color: #333; }

.dark .van-cell-group { background: #2a2a2a; }
.dark .van-cell-group--inset { background: #2a2a2a; }

.dark .van-field__label { color: #e0e0e0; }
.dark .van-field__control { color: #e0e0e0; }
.dark .van-field__control::placeholder { color: #666; }

.dark .van-dialog { background: #2a2a2a; }
.dark .van-dialog__header { color: #e0e0e0; }
.dark .van-dialog__message { color: #ccc; }

.dark .van-action-sheet { background: #2a2a2a; }
.dark .van-action-sheet__item { color: #e0e0e0; background: #2a2a2a; }
.dark .van-action-sheet__cancel { color: #999; background: #1a1a1a; }

.dark .van-tabs__nav { background: #2a2a2a; }
.dark .van-tab { color: #969799; }
.dark .van-tab--active { color: #e0e0e0; }
.dark .van-tabs__line { background: #1989fa; }

.dark .van-popup { background: #2a2a2a; }

.dark .van-empty__description { color: #999; }

.dark .van-progress__portion { background: #1989fa; }

.dark .van-radio__label { color: #e0e0e0; }
.dark .van-radio__icon--checked .van-icon { background: #1989fa; border-color: #1989fa; }

.dark .van-switch--on { background: #1989fa; }

.dark .van-toast { background: rgba(50,50,50,0.88); }

.dark .van-tabbar-item__icon { color: #969799; }
.dark .van-tabbar-item__icon .van-icon { color: inherit; }
.dark .van-tabbar-item--active .van-tabbar-item__icon { color: #1989fa; }

/* 夜间模式切换开关样式 */
.dark-mode-toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.dark-mode-toggle__label { font-size: 14px; color: #323233; }
.dark .dark-mode-toggle__label { color: #e0e0e0; }
