/* ============================================================
   工作台 · 数据概览
   ============================================================ */

.dash {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 46px;
}

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dash-kicker {
  font-size: 10.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 3px;
}

.dash-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: .5px;
  color: var(--navy);
}

.dash-meta {
  color: #98a1ad;
  font-size: 11.5px;
  white-space: nowrap;
  padding-bottom: 4px;
}

.dash-meta span { color: var(--muted); font-weight: 600; }

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 18px;
}

.dash-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.dash-card.wide { grid-column: 1 / -1; }

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-card-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: .3px;
}

.dash-card-head h2::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.dash-card-head a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .18s, background .18s;
}

.dash-card-head a:hover { color: #fff; background: var(--navy); }

/* ---------------- KPI ---------------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}

.kpi {
  background: #f7f9fc;
  border: 1px solid #edf1f6;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  min-width: 0;
}

.kpi b {
  display: block;
  font-size: 23px;
  line-height: 1.15;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}

.kpi span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- 进度条 ---------------- */
.dash-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 7px;
  color: #8a95a3;
  font-size: 11px;
}

.dash-subhead span:first-child { color: #5b6878; font-weight: 600; }

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bar-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 62px;
  gap: 9px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.bar-list.compact .bar-row { grid-template-columns: 58px minmax(0, 1fr) 48px; }

/* 学科分布：两列展示全部学科，避免只显示前几项 */
.bar-list.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
}

.bar-list.two-col .bar-row {
  grid-template-columns: 76px minmax(0, 1fr) 40px;
  gap: 7px;
}

.bar-list.two-col .bar-label { font-size: 11.5px; }

.bar-label {
  color: var(--ink);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-2), var(--navy));
  transition: width .45s ease;
}

.bar-value {
  color: var(--muted);
  font-size: 11.5px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bar-row:hover .bar-label { color: var(--navy); }
.bar-row:hover .bar-fill { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }

/* ---------------- 招聘进度表 ---------------- */
.dash-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dash-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.dash-table th {
  background: #f5f7fa;
  color: #5b6878;
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.dash-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f5;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover { background: #f8fafc; }

.dash-table th:nth-child(n+2),
.dash-table td:nth-child(n+2) { text-align: right; }

.dash-table th:first-child,
.dash-table td:first-child { text-align: left; }

.dash-table tbody td:first-child { font-weight: 600; color: var(--navy); }

.dash-table tfoot th,
.dash-table tfoot td {
  background: #f9fbfd;
  font-weight: 600;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 8px 12px;
}

.progress {
  width: 112px;
  height: 7px;
  margin-left: auto;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-2), var(--navy));
}

.dash-empty {
  text-align: center !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
  padding: 20px 10px !important;
}

/* ---------------- 页脚 ---------------- */
.dash-foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #98a1ad;
  font-size: 11.5px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card.wide { grid-column: auto; }
}

@media (max-width: 760px) {
  .dash { padding: 20px 14px 36px; }
  .dash-head h1 { font-size: 24px; }
  .dash-meta { font-size: 10.5px; }
  .dash-card { padding: 14px; border-radius: 14px; }
  .dash-card-head h2 { font-size: 15.5px; }
  .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { padding: 8px 9px; }
  .kpi b { font-size: 20px; }
  .bar-row { grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 7px; }
  .bar-list.compact .bar-row { grid-template-columns: 52px minmax(0, 1fr) 42px; }
  .bar-list.two-col { grid-template-columns: 1fr; }
  .bar-list.two-col .bar-row { grid-template-columns: 76px minmax(0, 1fr) 42px; }
  .bar-label { font-size: 12px; }
  .bar-list.two-col .bar-label { font-size: 11.5px; }
  .bar-value { font-size: 10.5px; }
  .dash-table { min-width: 560px; }
  .dash-table th, .dash-table td { padding: 7px 6px; font-size: 11.5px; }
  .dash-foot { padding: 0 14px 22px; }
}

@media (max-width: 420px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 加载骨架 ===== */
.skeleton-line {
  height: 12px;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: skeleton 1.2s ease infinite;
}
.skeleton-line.short { width: 58%; }
@keyframes skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
