* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f4f5fa; }
#app { min-height: 100vh; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%); }
.login-card { width: 400px; background: #fff; border-radius: 14px; padding: 40px 36px; box-shadow: 0 16px 50px rgba(0,0,0,.35); }
.login-card .logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.login-card .logo .badge { width: 42px; height: 42px; border-radius: 10px; background: #4338ca; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.login-card h1 { font-size: 20px; color: #1e1b4b; }
.login-card .sub { text-align: center; color: #94a3b8; font-size: 13px; margin: 8px 0 26px; }
.login-card .tip { margin-top: 16px; text-align: center; color: #94a3b8; font-size: 12px; line-height: 1.8; }

/* 布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 210px; background: #1e1b4b; color: #c7d2fe; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; font-weight: 700; font-size: 15px; }
.sidebar .brand .badge { width: 30px; height: 30px; border-radius: 8px; background: #4338ca; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.sidebar .menu-item { display: flex; align-items: center; gap: 10px; padding: 13px 22px; cursor: pointer; font-size: 14px; transition: all .15s; }
.sidebar .menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .menu-item.active { background: #4338ca; color: #fff; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; }
.topbar .title { font-weight: 600; color: #1f2937; }
.topbar .user { display: flex; align-items: center; gap: 12px; color: #475569; font-size: 14px; }
.content { padding: 22px; flex: 1; }

/* 通用卡片 */
.card { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 4px rgba(15,23,42,.06); }
.card .card-title { font-weight: 600; color: #1f2937; margin-bottom: 16px; font-size: 15px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(15,23,42,.06); }
.stat-card .label { color: #64748b; font-size: 13px; }
.stat-card .value { font-size: 26px; font-weight: 700; color: #1e1b4b; margin-top: 8px; }
.stat-card .value.money { color: #4338ca; }
.chart { width: 100%; height: 320px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
