* { box-sizing: border-box; }
:root {
  --brand: #2b6ef2;
  --brand-dark: #1b4dbb;
  --side-bg: #141c2b;
  --side-bg2: #1b2537;
  --text: #1f2733;
  --muted: #8b96a8;
  --line: #e7ebf3;
  --bg: #f4f6fb;
}
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px;
}
[v-cloak] { display: none; }
.boot { padding: 40px; color: var(--muted); text-align: center; }

/* ---------- 登录 ---------- */
.login-wrap {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 15% 10%, #264a8f 0%, #101827 55%, #0b111c 100%);
  padding: 20px;
}
.login-card {
  width: 400px; background: #fff; border-radius: 18px; padding: 38px 34px 30px;
  box-shadow: 0 30px 80px rgba(4, 12, 30, .45);
}
.login-logo {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3a7bff, #1b4dbb); color: #fff; font-size: 24px; margin-bottom: 18px;
}
.login-title { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.login-sub { color: var(--muted); margin: 8px 0 26px; font-size: 13px; line-height: 1.7; }
.login-tip { margin-top: 16px; font-size: 12px; color: #a2abba; line-height: 1.8; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.side {
  width: 216px; flex: 0 0 216px; background: linear-gradient(180deg, var(--side-bg), var(--side-bg2));
  color: #c7d0e0; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,#3a7bff,#1b4dbb);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px;
}
.brand-name { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.brand-name small { display: block; font-size: 11px; color: #7f8ca4; font-weight: 400; margin-top: 2px; }
.menu { padding: 12px 10px; overflow-y: auto; flex: 1; }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer;
  color: #aab6ca; font-size: 13.5px; margin-bottom: 2px; transition: all .15s; user-select: none;
}
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item.active { background: linear-gradient(90deg, rgba(43,110,242,.95), rgba(43,110,242,.55)); color: #fff; box-shadow: 0 6px 16px rgba(43,110,242,.35); }
.menu-item .mi { width: 18px; text-align: center; font-size: 14px; opacity: .9; }
.side-foot { padding: 14px 18px; font-size: 11px; color: #5f6c82; border-top: 1px solid rgba(255,255,255,.06); }

.main { flex: 1; margin-left: 216px; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; padding: 0 22px; position: sticky; top: 0; z-index: 9;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 600; }
.topbar .sub { color: var(--muted); font-size: 12px; margin-left: 10px; }
.user-box { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #eaf1ff; color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px;
}
.content { padding: 20px 22px 40px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-head h2 { font-size: 18px; margin: 0; font-weight: 600; }
.page-head .desc { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

.card { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 16px 18px; }
.card + .card { margin-top: 16px; }
.card-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filter-bar .el-input, .filter-bar .el-select { width: 180px; }
.filter-bar .el-date-editor { width: 240px; }
.grow { flex: 1; }

/* ---------- 仪表盘 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; position: relative; overflow: hidden;
}
.stat .label { color: var(--muted); font-size: 12.5px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 8px; letter-spacing: .5px; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat .foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat .ico {
  position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 17px; background: #eef4ff; color: var(--brand);
}
.stat.blue .ico { background: #eef4ff; color: #2b6ef2; }
.stat.green .ico { background: #e9f9f1; color: #12a461; }
.stat.orange .ico { background: #fff3e6; color: #e4791b; }
.stat.purple .ico { background: #f1edff; color: #6e4cf0; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 10px 4px 0; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 34px; background: linear-gradient(180deg, #6fa0ff, #2b6ef2); border-radius: 6px 6px 2px 2px; min-height: 3px; transition: height .4s; }
.chart .bar.amount { background: linear-gradient(180deg, #6ee7b7, #12a461); }
.chart .x { font-size: 11px; color: var(--muted); }
.chart .v { font-size: 11px; color: #4a5668; }

.progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.progress-row .pname { width: 84px; font-size: 13px; }
.progress-row .pbar { flex: 1; height: 8px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.progress-row .pbar i { display: block; height: 100%; border-radius: 6px; }
.progress-row .pnum { width: 108px; text-align: right; font-size: 12px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 1180px) { .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .two-col { grid-template-columns: 1fr; } }

/* ---------- 详情 ---------- */
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--text); word-break: break-all; }
.detail-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.detail-head .no { font-size: 15px; font-weight: 600; }
.detail-head .no small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 8px; }
.task-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fcfdff; }
.task-card .tc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.task-card .tc-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 78px; height: 78px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.timeline-box { max-height: 300px; overflow-y: auto; padding-right: 6px; }
.log-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef1f6; font-size: 13px; }
.log-item:last-child { border-bottom: 0; }
.log-item .lt { color: var(--muted); font-size: 12px; width: 132px; flex: 0 0 132px; }
.log-item .lc { flex: 1; line-height: 1.6; }
.log-item .la { font-weight: 600; margin-right: 6px; }

.plat-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; color: #fff; margin-right: 4px; }

.empty { padding: 26px; text-align: center; color: #a6b0c0; font-size: 13px; }
.table-actions { white-space: nowrap; }
.table-actions .el-button + .el-button { margin-left: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
.el-table th.el-table__cell { background: #fafbfe !important; color: #5b6678; font-weight: 600; }
.pager { display: flex; justify-content: flex-end; padding-top: 14px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.7; }
.section-title { font-size: 13px; font-weight: 600; margin: 18px 0 10px; padding-left: 8px; border-left: 3px solid var(--brand); }
.form-tip { font-size: 12px; color: var(--muted); margin-top: 4px; }
.up-box { display: flex; align-items: center; gap: 12px; }
.up-box img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.price-tag { font-weight: 700; color: #e4791b; }
.price-tag small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; text-decoration: line-through; }
.code-block { background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; color: #45505f; }