/* ==========================================================================
   豫建人才通 · 后台视觉升级 v2（2026-10-31）

   用法：这是覆盖层，加载在 styles.css 之后。
   1. 旧规则一行没动；出问题把 index.html 里这一行 <link> 删掉即可完整回退。
   2. 只改视觉：不新增字段、不改业务判断、不动权限相关的显示规则
      （手机号打码、姓名隐藏、按角色过滤都由服务端和 app.js 决定，这里只管样子）。
   3. 侧栏和页头的功能图标由 app.js 输出，这里只管样式。
   ========================================================================== */

/* ---------------- 侧栏：保留深蓝，加一点纵深 ---------------- */
.side {
  background: linear-gradient(180deg, #112c46 0%, #0c2035 62%, #0a1b2c 100%);
  padding: 18px 12px 22px;
}
.side .brand { padding: 2px 10px 18px; }
.side nav { gap: 2px; }

.side nav button {
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
}
.side nav button.on {
  background: linear-gradient(90deg, rgba(77, 163, 255, 0.22), rgba(77, 163, 255, 0.07));
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--side-accent);
}

/* ---------------- 侧栏功能图标 ---------------- */
.side nav button .nav-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.68;
  transition: opacity 0.15s, color 0.15s;
}
.side nav button:hover .nav-ic { opacity: 0.95; }
.side nav button.on .nav-ic { opacity: 1; color: var(--side-accent); }

/* 图标不吃点击：点到图标上也要能切页面（app.js 里已用 closest 兜底，这里是双保险） */
.nav-ic { pointer-events: none; }

/* ---------------- 页头：标题前也带同一枚图标，和侧栏呼应 ---------------- */
.page-head { padding: 20px 0 15px; }
.page-head h1 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
}
.page-head h1 .nav-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}
.page-head h1 .nav-ic svg { width: 17px; height: 17px; }

/* ---------------- 卡片：标题加一条主色竖条，层次更清楚 ---------------- */
.card {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px rgba(16, 24, 40, 0.03);
}
.card h2 {
  position: relative;
  padding-left: 13px;
  margin-bottom: 17px;
}
.card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------------- 表格：表头更实，行高放宽一点 ---------------- */
th {
  font-weight: 600;
  color: var(--ink-2);
  background: #f6f8fb;
  letter-spacing: 0.2px;
}
td { padding: 13px 12px; }
tr:hover td { background: #f7fafd; }

/* ---------------- 统计卡：数字用主色，重点更突出 ---------------- */
.stat {
  border-radius: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fdfefe, #f8fafc);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}
.stat b {
  font-size: 28px;
  line-height: 38px;
  color: var(--brand-dark);
}

/* ---------------- 主按钮：加一点厚度 ---------------- */
.btn-primary {
  background: linear-gradient(180deg, #1668b8, var(--brand));
  border-color: #0a4e93;
  box-shadow: 0 1px 2px rgba(11, 87, 164, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #12599f, var(--brand-dark));
  border-color: #084077;
}

/* ---------------- 空状态／加载中：虚线框，一眼看出是"这里会有内容" ---------------- */
.empty {
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fcfdfe;
}
