/* 网页端共用样式。Element Plus 只提供组件，页面骨架自己撑。 */
:root {
  --brand: #e02e24;
  --ink: #1f2329;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
}

* { box-sizing: border-box; }

[v-cloak] { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

.page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.page.wide { align-items: flex-start; justify-content: center; }

.card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(31, 35, 41, .06);
}

.wrap { width: 100%; max-width: 880px; }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.brand i { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-style: normal; display: grid; place-items: center; font-weight: 700; }
.brand b { font-size: 18px; }

h1.title { font-size: 20px; margin: 0 0 4px; }
p.sub { color: var(--muted); margin: 0 0 22px; font-size: 13px; }

.row { display: flex; gap: 10px; }
.grow { flex: 1; }
.mt16 { margin-top: 16px; }
.mt22 { margin-top: 22px; }
.tip { color: var(--muted); font-size: 12px; margin-top: 14px; }
.tip a { color: var(--brand); text-decoration: none; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.panel h2 { font-size: 15px; margin: 0 0 14px; }
.kpi { font-size: 30px; font-weight: 700; line-height: 1.2; }
.kpi small { font-size: 14px; font-weight: 400; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: #eceef1; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--brand); }
.dl { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.dl:last-child { border-bottom: 0; }
.dl span:first-child { color: var(--muted); }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.topbar .who { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ 管理后台 */
.wrap.admin { max-width: 1180px; }
.mb16 { margin-bottom: 16px; }
.who { color: var(--muted); font-size: 13px; }

/* 纯 CSS 柱状图：为了少引一个图表库，也免得后台多一条外部依赖。 */
.vchart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.vcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.vbar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #f26a5f, var(--brand)); }
.vnum { font-size: 12px; color: var(--muted); }
.vlbl { font-size: 11px; color: var(--muted); }
