:root {
    --brand: #2a6df4;
    --brand-dark: #1b4fc0;
    --bg: #f4f6fb;
}
body { background: var(--bg); font-family: -apple-system, "Microsoft YaHei", sans-serif; }

.topbar { background: linear-gradient(90deg, var(--brand), var(--brand-dark)); }

.layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
    width: 200px; background: #fff; border-right: 1px solid #e5e9f2;
    padding: 16px 0; flex-shrink: 0;
}
.menu-item {
    display: block; padding: 11px 22px; color: #43506b; text-decoration: none;
    font-size: 15px; border-left: 3px solid transparent;
}
.menu-item:hover { background: #f0f4ff; color: var(--brand); }
.menu-item.active { background: #eaf1ff; color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.content { flex: 1; padding: 24px 30px; overflow-x: auto; }

/* 登录页 */
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2a6df4, #1b4fc0);
}
.login-card {
    background: #fff; border-radius: 14px; padding: 38px 34px; width: 360px;
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.login-card h3 { text-align: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: #8893a8; font-size: 13px; margin-bottom: 24px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(20,40,90,.05); }
.stat-card .label { color: #8893a8; font-size: 13px; }
.stat-card .value { font-size: 26px; font-weight: 700; color: #1f2a44; margin-top: 6px; }
.stat-card .value.money::before { content: "¥"; font-size: 16px; margin-right: 2px; }
.stat-card.hl { background: linear-gradient(135deg, #2a6df4, #1b4fc0); color: #fff; }
.stat-card.hl .label, .stat-card.hl .value { color: #fff; }

.card-panel { background: #fff; border-radius: 12px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(20,40,90,.05); margin-bottom: 20px; }
.page-title { font-size: 20px; font-weight: 700; color: #1f2a44; margin-bottom: 18px; }
.table thead th { background: #f7f9fe; color: #5a6a8a; font-size: 13px; }
.badge-eff { background: #e6f7ee; color: #1a9d57; }
.badge-ref { background: #fdeaea; color: #d64545; }
.badge-pending { background: #fff4e5; color: #d08700; }
.badge-settled { background: #e6f7ee; color: #1a9d57; }
.badge-reached { background: #eaf1ff; color: #2a6df4; }
