/* 视觉规格取自目标站实测静态资源（style.css / app.js），按参数重写，不拷原文件。
   令牌：蓝 #2563c7 / 描边 #e0e6ef / 次要字 #7a8596 / 正文 #253349 / 底 #f4f6fa */
:root {
  --blue: #2f5aa8;
  --blue-d: #26478a;
  --blue-l: #eef3fb;
  --line: #e3e7ed;
  --muted: #7a8596;
  --text: #253349;
  --bg: #f7f8fa;
  --white: #fff;
  --red: #d8392b;
  --green: #1a9a5b;
  --radius: 8px;
  --topbar: 60px;
  --side: 150px;
}
@media (min-width: 1680px) { :root { --side: 170px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---------------------------------------------------------------- 顶栏 */
.topbar {
  height: var(--topbar);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; letter-spacing: .3px;
  color: var(--text); white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 199, .14);
}
.tabs { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; }
.tab {
  padding: 6px 13px; border-radius: var(--radius);
  color: #4a5768; white-space: nowrap; font-size: 13.5px;
}
.tab:hover { background: var(--bg); text-decoration: none; }
.tab.on { background: var(--blue-l); color: var(--blue); font-weight: 600; }
.tab .n { color: var(--muted); font-size: 11.5px; margin-left: 3px; }

.searchbox { display: flex; align-items: center; gap: 6px; }
.searchbox input {
  width: 230px; height: 34px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); outline: none;
}
.searchbox input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 199, .1); }
.btn {
  height: 34px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); color: var(--text);
  white-space: nowrap;      /* 窄屏下「搜索」不能被挤成两行 */
}
.btn:hover { border-color: #c3cddd; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.me { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.me .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue-l);
  color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

/* ---------------------------------------------------------------- 布局 */
.workspace {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  gap: 16px;
  padding: 16px 20px 40px;
  align-items: start;
  max-width: 1920px;
}
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-panel { padding: 14px 16px 10px; position: sticky; top: calc(var(--topbar) + 16px); }
.filter-panel h3 {
  margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 500;
  letter-spacing: .5px;
}
.fgroup { border-top: 1px solid var(--line); padding: 10px 0 8px; }
.fgroup:first-of-type { border-top: 0; }
.fgroup .ft { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.fitem {
  display: flex; justify-content: space-between; gap: 6px;
  padding: 5px 7px; margin: 0 -7px; border-radius: 4px; color: #3b485c; font-size: 13px;
}
.fitem:hover { background: var(--bg); text-decoration: none; }
.fitem.on { background: var(--blue-l); color: var(--blue); font-weight: 600; }
.fitem .n { color: var(--muted); font-size: 11.5px; font-weight: 400; }

.main { min-width: 0; }
.toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--white); border-radius: var(--radius) var(--radius) 0 0;
}
.toolbar .count { color: var(--muted); font-size: 13px; }
.toolbar .count b { color: var(--text); font-size: 15px; }
.toolbar .spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 9px; border-radius: 13px;
  background: var(--blue-l); color: var(--blue); font-size: 12.5px;
}
.chip a { color: var(--blue); font-weight: 700; }

/* ---------------------------------------------------------------- 表格 */
.tablewrap { overflow-x: auto; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  position: sticky; top: 0; z-index: 5;
  background: #f7f9fc; color: #5b6779; font-weight: 600; text-align: left;
  padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.grid th a { color: inherit; display: inline-flex; align-items: center; gap: 3px; }
table.grid th a:hover { color: var(--blue); text-decoration: none; }
table.grid th .arrow { color: var(--blue); font-size: 11px; }
table.grid td {
  padding: 9px 10px; border-bottom: 1px solid #eef2f8; vertical-align: top;
}
table.grid tbody tr:hover { background: #fafcff; }
table.grid tr:last-child td { border-bottom: 0; }
.c-title { min-width: 290px; max-width: 460px; }
.c-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45; }
.c-title a { color: var(--text); font-weight: 500; }
.c-title a:hover { color: var(--blue); }
.c-title .org { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nowrap { white-space: nowrap; }
.cat {
  display: inline-block; padding: 1px 7px; border-radius: 3px;
  font-size: 12px; white-space: nowrap;
  background: #eef2f8; color: #4d5b70;
}
.cat.public { background: #eaf1fc; color: #2563c7; }
.cat.civil { background: #fdeceb; color: #c33b2c; }
.cat.schools { background: #e9f6ee; color: #1a7f4b; }
.cat.colleges { background: #f0ebfd; color: #6b45c4; }
.cat.medical { background: #e6f6f8; color: #158091; }
.cat.soe { background: #fdf3e3; color: #a76a12; }
.tag { white-space: nowrap;
  display: inline-block; padding: 1px 6px; margin: 1px 3px 1px 0;
  border-radius: 3px; background: #f2f5fa; color: #4d5b70; font-size: 12px; white-space: nowrap;
}
.tag.edu { background: #eaf1fc; color: #2563c7; }
/* 专业名可能长达 20 字，逐个限宽，否则一列撑满整屏 */
.c-major .tag { white-space: nowrap; max-width: 132px; overflow: hidden; text-overflow: ellipsis;
  vertical-align: bottom; }
/* 最右列固定，横向滚动时不丢来源信息 */
table.grid th:last-child, table.grid td:last-child {
  position: sticky; right: 0; background: var(--white);
  box-shadow: -1px 0 0 var(--line);
}
table.grid thead th:last-child { background: #f7f9fc; }
.tag.staff { background: #f0ebfd; color: #6b45c4; }
.dl { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl.hot { color: var(--red); font-weight: 600; }
.dl.soon { color: #b8791b; }
.dl.done { color: var(--muted); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.src { color: var(--muted); font-size: 12px; display: inline-block; max-width: 92px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

.pager { display: flex; align-items: center; gap: 8px; padding: 14px 4px; justify-content: flex-end; }
.pager a, .pager span {
  min-width: 32px; height: 32px; padding: 0 10px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  color: var(--text); font-size: 13px;
}
.pager .on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager .off { color: #c3cddd; }

/* ---------------------------------------------------------------- 详情 */
.detail { max-width: 1080px; margin: 0 auto; padding: 20px 20px 60px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.detail h1 { font-size: 21px; line-height: 1.45; margin: 0 0 6px; }
.detail .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv .cell { background: var(--white); padding: 11px 14px; }
.kv .k { color: var(--muted); font-size: 12.5px; margin-bottom: 3px; }
.kv .v { font-size: 14px; word-break: break-word; }
.section { margin-top: 20px; }
.section h2 { font-size: 15px; margin: 0 0 10px; }
.note {
  background: #fffbea; border: 1px solid #f3e2b3; color: #8a6a1c;
  padding: 11px 14px; border-radius: var(--radius); font-size: 13px;
}
.actions { display: flex; gap: 10px; margin-top: 22px; }

/* ---------------------------------------------------------------- 表单 */
.authwrap { min-height: calc(100vh - var(--topbar)); display: grid; place-items: center; padding: 40px 20px; }
.authcard { width: 100%; max-width: 400px; padding: 28px 26px; }
.authcard h1 { font-size: 19px; margin: 0 0 4px; }
.authcard p.hint { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #4a5768; margin-bottom: 5px; }
.field input {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: var(--radius); outline: none; background: var(--white);
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 199, .1); }
.err { background: #fdeceb; border: 1px solid #f6c8c3; color: #b32d20; padding: 9px 12px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; }
.ok { background: #e9f6ee; border: 1px solid #bfe5cf; color: #14603a; padding: 9px 12px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; }
.authfoot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.full { width: 100%; height: 38px; }

/* ---------------------------------------------------------------- 后台 */
.admin { padding: 20px; max-width: 1600px; }
.admin h1 { font-size: 20px; margin: 0 0 16px; }
.statrow { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; min-width: 120px; }
.stat b { display: block; font-size: 22px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 12.5px; }
.var { display: inline-block; max-width: 168px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.warn { color: #b8791b; }

/* ------------------------------------------------ 岗位匹配器 */
.navlink { flex: 0 0 auto; margin-left: 10px; padding: 5px 11px; font-size: 13px;
  color: #2563c7; border: 1px solid #cfdffa; background: #f2f7ff; border-radius: 5px; }
.navlink:hover { background: #e6f0ff; }

.match { max-width: 1080px; margin: 0 auto; padding: 18px 20px 40px; }
.mt-form { padding: 18px 20px; margin-bottom: 16px; }
.mt-form h1 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.mt-form .sub { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 14px;
  max-width: 780px; }
.mt-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.mt-row label { display: flex; flex-direction: column; gap: 5px; }
.mt-row label > span { font-size: 12px; color: var(--muted); }
.mt-row label.wide { flex: 1 1 260px; }
.mt-row select, .mt-row input { height: 34px; padding: 0 9px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 5px; background: #fff;
  color: var(--text); font-family: inherit; }
.mt-row select { min-width: 118px; }
.mt-row input { width: 100%; }
.mt-row input:focus, .mt-row select:focus { outline: none; border-color: #9dbdf0;
  box-shadow: 0 0 0 3px rgba(37,99,199,.10); }
.btn.lg { height: 34px; padding: 0 20px; font-size: 13px; }

.mt-sum { background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 13px 16px; font-size: 13.5px; margin-bottom: 14px; }
.mt-sum b { color: #2563c7; }
.mt-sum b.ok { color: #c0362c; font-size: 16px; }
.mt-sum .muted { margin-top: 6px; font-size: 12.5px; line-height: 1.7; }

.mt-h2 { font-size: 15px; font-weight: 600; margin: 22px 0 10px;
  display: flex; align-items: center; gap: 8px; }
.mt-h2 .n { font-weight: 400; font-size: 12px; color: var(--muted);
  background: #eef2f8; border-radius: 9px; padding: 1px 8px; }
.mt-hint { font-size: 12.5px; color: var(--muted); line-height: 1.7;
  margin: -4px 0 12px; max-width: 820px; }

.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px; }
.mt-card { display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 12px 14px; color: var(--text); }
.mt-card:hover { border-color: #b9cfef; box-shadow: 0 2px 10px rgba(37,99,199,.08); }
.mt-top { display: flex; gap: 7px; align-items: center; margin-bottom: 8px; }
.fit { font-size: 11.5px; padding: 2px 7px; border-radius: 3px; }
.fit.sure { background: #fdeceb; color: #c0362c; }
.fit.maybe { background: #fdf5e3; color: #96702a; }
.mt-title { font-size: 13.5px; line-height: 1.5; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-org { font-size: 12px; color: var(--muted); margin-top: 5px; }
.mt-meta { font-size: 12px; color: #55627a; margin-top: 7px; line-height: 1.6; }
.mt-major { font-size: 12px; color: var(--muted); margin-top: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-why { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.mt-why .why { font-size: 11.5px; color: #2b6a4b; background: #eef7f1;
  border-radius: 3px; padding: 2px 6px; }
.mt-card .mt-why .why:last-child { color: #55627a; background: #f2f4f8; }
.mt-foot { font-size: 12px; line-height: 1.8; margin-top: 28px;
  border-top: 1px solid var(--line); padding-top: 12px; }

/* 详情页相关公告 */
.related ul { list-style: none; margin: 8px 0 0; padding: 0; }
.related li { padding: 7px 0; border-bottom: 1px solid #eef1f6; font-size: 13px; line-height: 1.6; }
.related li:last-child { border-bottom: 0; }
.related li a { color: var(--text); }
.related li a:hover { color: #2563c7; }
.related .muted { font-size: 12px; }

/* 后台批量操作条 */
.bulkbar { display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-bottom: 1px solid var(--line); font-size: 12.5px; background: #fafcff; }
.bulkbar .spacer { flex: 1; }

.mt-gate { background: #fff8e8; border: 1px solid #f2e2bb; border-radius: 6px;
  padding: 11px 15px; font-size: 13px; color: #7a5c1e; margin-bottom: 6px; }
.mt-gate b { color: #a8621a; }
.mt-gate a { color: #2563c7; }

/* ------------------------------------------------ 移动端 */
@media (max-width: 760px) {
  body { font-size: 13.5px; }
  .topbar { height: auto; flex-wrap: wrap; gap: 8px; padding: 9px 12px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; white-space: nowrap; }
  .searchbox { flex: 1 1 180px; }
  .searchbox input { width: 100%; }
  .navlink { margin-left: 0; }
  .match { padding: 12px 12px 32px; }
  .mt-row { gap: 8px; }
  .mt-row label { flex: 1 1 calc(50% - 8px); }
  .mt-row label.wide { flex: 1 1 100%; }
  .mt-row .btn.lg { width: 100%; }
  .mt-grid { grid-template-columns: 1fr; }
  .detail { padding: 14px 12px; }
  .admin { padding: 12px; }
  .statrow { flex-wrap: wrap; }
  table.grid { font-size: 12.5px; }
  /* 移动端最右列固定会挡住内容，取消 */
  table.grid th:last-child, table.grid td:last-child { position: static; box-shadow: none; }
}

/* 页脚免责声明（合规） */
.foot { max-width: 1240px; margin: 26px auto 34px; padding: 16px 20px 0;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
  line-height: 1.9; }
.foot .sub { font-size: 11.5px; color: #98a2b3; }
@media (max-width: 760px) { .foot { padding: 14px 12px 0; } }

/* ---------------------------------------------------------------- 数据看板 */
.stats { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.stats-h h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: .3px; }
.stats-h p { margin: 0 0 20px; font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.kpi-v { font-size: 26px; font-weight: 700; color: var(--blue); line-height: 1.2; letter-spacing: -.5px; }
.kpi-u { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi-l { font-size: 13px; color: #4a5768; margin-top: 6px; }
.kpi-n { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px 18px; margin-bottom: 12px; }
.panels .panel { margin-bottom: 0; }
.panel h2 { font-size: 14px; margin: 0 0 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel h2 .n { font-size: 12px; color: var(--muted); font-weight: 400; }

.row { margin-bottom: 11px; }
.row:last-child { margin-bottom: 0; }
.row-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; margin-bottom: 4px; }
.row-l { color: var(--text); }
.row-l a { color: var(--text); }
.row-l a:hover { color: var(--blue); text-decoration: none; }
.row-n { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-n .sub { margin-left: 8px; font-size: 11.5px; color: #9aa4b2; }
.bar { height: 6px; background: #eef2f8; border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #4d8ae8); border-radius: 3px; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.chart .col i { display: block; width: 100%; max-width: 34px; background: linear-gradient(180deg, #4d8ae8, var(--blue)); border-radius: 3px 3px 0 0; min-height: 3px; transition: opacity .15s; }
.chart .col:hover i { opacity: .75; }
.chart .col span { font-size: 10.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; transform: scale(.92); }

table.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.mini th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); }
table.mini td { padding: 8px 8px 8px 0; border-bottom: 1px solid #f1f4f9; vertical-align: top; }
table.mini tr:last-child td { border-bottom: 0; }
table.mini td.num { font-variant-numeric: tabular-nums; color: #4a5768; }
table.mini td.urgent { color: var(--red); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--blue-l); color: var(--blue-d); border-radius: 20px; padding: 4px 12px; font-size: 12.5px; }
.chip b { margin-left: 6px; font-weight: 700; }
.muted.tiny { font-size: 11.5px; margin: 10px 0 0; }

@media (max-width: 760px) {
  .panels { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .chart { height: 100px; gap: 3px; }
  .chart .col span { transform: scale(.82); }
}

/* 首页标题区（SEO 用 H1，视觉上保持克制，不跟表格抢注意力） */
.pagehead { max-width: 1920px; padding: 18px 20px 2px; }
.pagehead h1 { font-size: 19px; font-weight: 600; margin: 0 0 5px; letter-spacing: .2px; }
.pagehead p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .pagehead { padding: 14px 14px 2px; } .pagehead h1 { font-size: 17px; } }

/* ---------------------------------------------------------------- 数据来源页 */
.srcpage { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.srcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.src-prov { margin-bottom: 0; }
.src-prov h2 { font-size: 13.5px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.src-prov h2 .n { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.src-item { font-size: 12.5px; line-height: 1.9; display: flex; align-items: center; gap: 6px; }
.src-item a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-item a:hover { color: var(--blue); }
.src-item.off a { color: var(--muted); }
.s-tag { flex: 0 0 auto; font-size: 10.5px; color: var(--blue); background: var(--blue-l); border-radius: 3px; padding: 0 5px; line-height: 1.6; }
.s-state { flex: 0 0 auto; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
@media (max-width: 760px) { .srcgrid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 用户中心 */
.me-page { max-width: 1100px; margin: 0 auto; padding: 22px 20px 60px; }
.me-page .pagehead { padding: 0 0 4px; }
.me-page .panel { margin-bottom: 14px; }
.me-page .panel h2 { font-size: 14px; margin: 0 0 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.me-page .panel h2 .n { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.me-page .crumb { margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }

.kpis.three { grid-template-columns: repeat(3, 1fr); }

/* 顶栏角标 */
.btn.mine { position: relative; }
.badge {
  display: inline-block; min-width: 15px; height: 15px; padding: 0 4px; margin-left: 5px;
  font-size: 10.5px; font-style: normal; line-height: 15px; text-align: center;
  color: #fff; background: var(--red); border-radius: 8px; vertical-align: 1px;
}
.sub-name .badge, .sub-name .badge { vertical-align: 2px; }

/* 收藏按钮 */
.favform { display: inline; }
.btn.fav { border-color: #f0d9a8; color: #a9761a; background: #fffdf6; }
.btn.fav .star { font-size: 14px; line-height: 1; margin-right: 2px; }
.btn.fav.on { background: #fff7e3; border-color: #eccf8c; color: #96660f; font-weight: 600; }
.star.on { color: #e0a020; margin-right: 5px; }
.btn.ghost { background: #fff; color: var(--muted); border-color: var(--line); }
.btn.ghost:hover { color: var(--text); border-color: #cbd5e3; }
.btn.ghost.danger:hover { color: var(--red); border-color: #f0c2bd; }

/* 订阅列表 */
.sublist { list-style: none; margin: 0 0 12px; padding: 0; }
.subrow { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0;
  border-bottom: 1px dashed var(--line); }
.subrow:last-child { border-bottom: 0; }
.subrow.off { opacity: .62; }
.sub-main { flex: 1; min-width: 0; }
.sub-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.sub-name:hover { color: var(--blue); text-decoration: none; }
.sub-cond { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.sub-act { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.chip.sm { font-size: 11px; padding: 1px 7px; }
.chip.sm b { margin-left: 4px; }

/* 新建订阅表单 */
.subnew { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.subnew summary { cursor: pointer; font-size: 13px; color: var(--blue); list-style: none; }
.subnew summary::-webkit-details-marker { display: none; }
.subnew[open] summary { margin-bottom: 12px; }
.subform { display: flex; flex-direction: column; gap: 10px; }
.sf-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sf-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.sf-row label.wide { flex: 1 1 220px; }
.sf-row label.chk { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
.sf-row input, .sf-row select { padding: 6px 9px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; min-width: 120px; }
.sf-row input:focus, .sf-row select:focus { outline: 2px solid var(--blue-l); border-color: var(--blue); }

/* 账号设置 */
.mini-form { display: flex; flex-direction: column; gap: 8px; }
.mini-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.mini-form input { padding: 6px 9px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; }
.mini-form .btn { align-self: flex-start; }

/* 紧凑列表 */
.mini-grid td { padding: 8px 10px; }
.mini-grid th { padding: 8px 10px; }

/* ---------------------------------------------------------------- 移动端
   窄屏下 12 列表格没法横向滑着看（手指要在 1500px 宽度里找准第 9 列），
   改成「卡片式」：每行折叠成一块，标题在上、关键字段两列并排，
   单元格用 data-l 前缀显示字段名。 */
@media (max-width: 900px) {
  :root { --topbar: auto; }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; position: static; }
  .brand { font-size: 16px; }
  .tabs { order: 3; flex: 1 0 100%; overflow-x: auto; padding-bottom: 2px; }
  .searchbox { order: 4; flex: 1 0 100%; }
  .searchbox input { width: 100%; }
  .navlink { display: none; }
  .me { margin-left: auto; }
  .me .muted { display: none; }
  .avatar { display: none; }
  .workspace { flex-direction: column; }
  .filter-panel { width: auto; position: static; }
  .filter-panel .fgroup { display: flex; flex-wrap: wrap; gap: 6px; }
  .filter-panel .ft { flex: 1 0 100%; }
  .filter-panel .fitem {
    flex: 0 0 auto;
    /* 窄屏改成独立胶囊：原来的负边距 + space-between 会让「湖南 127」和
       紧跟其后的「江苏 89」粘成一串，数字到底属于谁全靠猜 */
    margin: 0; padding: 4px 10px; gap: 5px; border-radius: 999px;
    background: var(--bg); font-size: 12.5px;
  }
  .filter-panel .fitem.on { background: var(--blue-l); }
  .me-page, .stats, .srcpage, .match { padding: 16px 14px 44px; }
  .kpis.three { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* 表格转卡片 */
  .tablewrap { overflow-x: visible; }
  table.grid { display: block; }
  table.grid thead { display: none; }
  table.grid tbody { display: block; }
  table.grid tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px;
    padding: 11px 12px; border-bottom: 1px solid var(--line); background: #fff;
  }
  table.grid td {
    display: block; padding: 0; border: 0; font-size: 12.5px;
    white-space: normal !important; overflow: visible; text-overflow: clip;
  }
  table.grid td.c-title { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; }
  table.grid td.c-title .org { display: block; font-weight: 400; margin-top: 3px; }
  table.grid td.c-major { grid-column: 1 / -1; }
  table.grid td.num:empty, table.grid td:empty { display: none; }
  table.grid td::before {
    content: attr(data-l) " "; color: var(--muted); font-size: 11px; font-weight: 400;
  }
  table.grid td.c-title::before, table.grid td.c-major::before { content: ""; }
  .mini-grid tr { grid-template-columns: 1fr 1fr; }
  .pager { padding: 12px 6px; }
  .pager a, .pager span { padding: 5px 9px; font-size: 12.5px; }
  .detail { padding: 16px 14px 50px; }
  .detail h1 { font-size: 17px; }
  .detail .kv { grid-template-columns: 1fr; }
  .detail .actions, .actions { flex-wrap: wrap; }
  .actions .btn { flex: 1 1 44%; text-align: center; }
  .pagehead { padding: 14px 14px 2px; }
  .pagehead h1 { font-size: 16.5px; line-height: 1.4; }
  .authwrap { padding: 24px 14px; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .sf-row { flex-direction: column; align-items: stretch; }
  .sf-row label, .sf-row label.wide { flex: 1 1 auto; }
  .sf-row input, .sf-row select { width: 100%; }
  .subrow { flex-direction: column; gap: 8px; }
  .sub-act { width: 100%; }
  .sub-act .btn, .sub-act form { flex: 1; }
  .sub-act form .btn { width: 100%; }
}

/* ---------------------------------------------------------------- 后台四块 */
.admintabs { margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.admintabs .tab { border-radius: var(--radius) var(--radius) 0 0; }
.admin .panel h2 { font-size: 13.5px; margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.admin .panel h2 .n { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.admin .kpis { margin-bottom: 14px; }
tr.row-off td { color: var(--muted); background: #fbfcfe; }
.tinysel { padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; font-size: 12px; }
.inlineform { display: flex; align-items: center; gap: 6px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.mini th { text-align: left; font-weight: 500; color: var(--muted);
  padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
table.mini td { padding: 6px 8px; border-bottom: 1px solid #f0f3f8; }
table.mini tr:last-child td { border-bottom: 0; }
table.mini td.urgent { color: var(--red); font-weight: 600; }
.admin code { background: #f2f5fa; padding: 1px 5px; border-radius: 3px; font-size: 11.5px; }

/* 命中高亮与排序切换 */
mark { background: #fff2b8; color: inherit; padding: 0 1px; border-radius: 2px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg a { padding: 4px 10px; font-size: 12.5px; color: var(--muted); background: #fff; }
.seg a:hover { text-decoration: none; background: #f6f9fe; }
.seg a.on { background: var(--blue); color: #fff; }

/* ---------------------------------------------------------------- 关于页 */
.about { max-width: 820px; margin: 0 auto; padding: 22px 20px 60px; }
.about .panel { margin-bottom: 14px; }
.about h2 { font-size: 15px; margin: 0 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.about p { margin: 0 0 10px; line-height: 1.85; color: #3a4759; }
.about ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.9; color: #3a4759; }
.about li { margin-bottom: 3px; }
.about code { background: #f2f5fa; padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }
@media (max-width: 760px) { .about { padding: 16px 14px 44px; } .about h2 { font-size: 14px; } }


/* 单位索引页（/org） */
.orgpanel { padding: 16px 18px; }
.ogroup { margin-bottom: 20px; }
.ogroup:last-child { margin-bottom: 4px; }
.ogroup .ft { font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--text); }
.ogroup .ft .muted { font-weight: 400; font-size: 12px; }
.orgcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.orgcloud a.tag { text-decoration: none; padding: 4px 9px; font-size: 13px;
  background: #f2f5fa; color: #3d4a5e; }
.orgcloud a.tag:hover { background: #e6eefb; color: var(--blue); }
.orgcloud .n2 { color: var(--muted); margin-left: 5px; font-variant-numeric: tabular-nums; }

/* 已截止公告的视觉降级：整行降饱和，但保持可读、可点、可复制 */
tr.row-expired td { opacity: .55; }
tr.row-expired:hover td { opacity: .8; }
tr.row-expired .c-title a { color: var(--muted); }

/* 详情页顶部的截止提示 */
.expired-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  margin: 10px 0 16px; padding: 11px 14px; border-radius: 8px;
  background: #fdf3ea; border: 1px solid #f3d9c0; color: #8a5a25;
  font-size: 13.5px;
}
.expired-bar b { color: #a2531a; }
.expired-bar span { color: #97703f; }
.expired-bar a { color: #a2531a; text-decoration: underline; }

/* 手机端卡片（_mt_card）里的过期态 */
.mt-card.expired { opacity: .62; }

/* ================================================================
   A 站式首页（招聘信息库）：搜索条 + 筛选胶囊弹层 + 表格可选列
   这一段的类名统一用 .lib/.topcard/.frow 前缀，避免和详情页/后台的老样式打架
   ================================================================ */
.lib { max-width: 1920px; margin: 0 auto; padding: 14px 20px 30px; }
.pagehead.slim { padding: 4px 2px 10px; max-width: none; }
.pagehead.slim h1 { font-size: 18px; margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pagehead.slim .h1n { font-size: 12px; color: var(--muted); font-weight: 400; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.topcard { margin-bottom: 14px; }
.searchrow {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.searchrow .spacer, .filterrow .spacer { flex: 1; }
.sbox { position: relative; flex: 0 1 340px; min-width: 210px; }
.sbox .mag { position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: #9aa3b5; font-size: 15px; line-height: 1; }
.sbox input {
  width: 100%; height: 34px; padding: 0 10px 0 30px; border: 1px solid var(--line);
  border-radius: 8px; background: #fbfcfe; font-size: 13px;
}
.sbox input:focus { outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 199, .08); }
.qchip {
  font-size: 12.5px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: #4a5468; white-space: nowrap; background: #fff;
}
.qchip:hover { border-color: #c3cfe4; text-decoration: none; }
.qchip.on { background: var(--blue-l); border-color: #c6d4ec; color: var(--blue-d); font-weight: 600; }
.ck { font-size: 12.5px; color: #4a5468; display: inline-flex; align-items: center;
  gap: 5px; white-space: nowrap; cursor: pointer; }
.ck input { accent-color: var(--blue); }
.clearall { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.clearall:hover { color: var(--blue); }
.cnt { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cnt b { color: var(--text); font-size: 14px; }
.sortsel, .sizesel {
  height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  padding: 0 6px; font-size: 12.5px; color: #3a455c;
}
.filterrow { display: flex; align-items: center; gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
.pw { position: relative; }
.pill {
  height: 30px; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 11px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; font-size: 12.5px; color: #3a455c; white-space: nowrap;
}
.pill:hover { border-color: #c3cfe4; }
.pill.on { border-color: #b9c9e6; background: var(--blue-l); color: var(--blue-d); font-weight: 600; }
.pill i {
  font-style: normal; background: var(--blue); color: #fff; border-radius: 999px;
  font-size: 11px; min-width: 16px; height: 16px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 4px;
}
.pill .car { color: #9aa3b5; font-size: 10px; }
.pop {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(24, 36, 64, .14); text-align: left;
}
.pop[hidden] { display: none; }
.pop.right { right: 0; left: auto; }
.pop.wide { width: 372px; }
.pophead { padding: 10px 12px 3px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.optlist { max-height: 258px; overflow: auto; padding: 3px 6px 8px; }
.opt {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  border-radius: 7px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.opt:hover { background: #f5f7fb; }
.opt input { accent-color: var(--blue); flex: none; }
.opt span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.opt em { font-style: normal; color: #9aa3b5; font-size: 11.5px; }
.optgroup > b { display: block; padding: 8px 12px 2px; font-size: 12px; color: #6b7488; }
.optgroup .optlist { max-height: 170px; }
.popbody { padding: 4px 12px 10px; }
.popbody .in, .qrow .in {
  width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 7px;
  padding: 0 9px; font-size: 13px;
}
.qrow { display: flex; align-items: center; gap: 8px; }
.qrow .btn { flex: none; }
.qrow .muted { font-size: 12px; }
.popfoot { display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  border-top: 1px solid #eff1f6; }
.popfoot .spacer { flex: 1; }
.popfoot .hint { font-size: 11.5px; color: #9aa3b5; }
.lnk { background: none; border: 0; color: var(--blue); font-size: 12.5px; padding: 4px 2px; }
.hint.pad { padding: 10px 12px; font-size: 12px; color: #9aa3b5; line-height: 1.6; }
.scheme { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.scheme a { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 14px 0; }
.chips .chip { font-size: 12px; padding: 3px 10px; display: inline-flex; gap: 6px;
  align-items: center; }
.guesttip { margin: 11px 14px 0; background: #fffaf0; border: 1px solid #f4e3bd;
  color: #8a6a1f; padding: 8px 12px; border-radius: 8px; font-size: 12.5px; }

.tablecard { overflow: hidden; }
.gridwrap { overflow-x: auto; }
table.grid.v2 th { background: #fbfcfe; }
table.grid.v2 th .grip { position: absolute; right: 0; top: 0; bottom: 0; width: 6px;
  cursor: col-resize; z-index: 6; }
table.grid.v2 th .grip:hover { background: #e3ebf8; }
table.grid.v2 tr.row-expired td { color: #98a1b1; }
table.grid.v2 tr.row-expired .c-title a { color: #8b94a4; }

/* 紧凑 / 舒适 */
.gridwrap.compact table.grid td { padding: 6px 10px; }
.gridwrap.compact .c-title a { -webkit-line-clamp: 1; }
.gridwrap.compact .c-title .org { display: none; }

/* 列表模式：一行一条，只留「省份 标题 编制 人数 截止 学历 日期」，
   技术型列（类别/地点/岗位/专业/来源）收起，读起来像一份清单 */
.gridwrap.listmode table.grid thead { display: none; }
.gridwrap.listmode table.grid tbody tr {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 12px 14px; border-bottom: 1px solid #f0f2f7;
}
.gridwrap.listmode table.grid tbody tr:hover { background: #fafcff; }
.gridwrap.listmode table.grid td {
  display: none; border: 0; padding: 0; font-size: 12.5px; color: #5c6577;
}
.gridwrap.listmode table.grid td[data-col="title"] {
  display: block; flex: 1 1 100%; order: 1; font-size: 14.5px;
  font-weight: 600; line-height: 1.5;
}
.gridwrap.listmode td[data-col="title"] a { -webkit-line-clamp: 2; color: var(--text); }
.gridwrap.listmode td[data-col="title"] .org { display: inline; margin-left: 6px; }
.gridwrap.listmode table.grid td[data-col="province"] { display: inline-block; order: 2; color: #6b7488; }
.gridwrap.listmode table.grid td[data-col="staffing"] { display: inline-block; order: 3; }
.gridwrap.listmode table.grid td[data-col="headcount"] { display: inline-block; order: 4; }
.gridwrap.listmode table.grid td[data-col="deadline"] { display: inline-block; order: 5; }
.gridwrap.listmode table.grid td[data-col="education"] { display: inline-block; order: 6; }
.gridwrap.listmode table.grid td[data-col="recorded"] { display: inline-block; order: 7; margin-left: auto; }

.pager { flex-wrap: wrap; }
.pager .sizesel { margin-left: 4px; }
.pager .jump { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--muted); border: 0; background: none; height: auto; min-width: 0; }
.pager .jump .in { width: 52px; height: 30px; text-align: center;
  border: 1px solid var(--line); border-radius: 7px; }
.pager .jump .btn { height: 30px; padding: 0 10px; }

@media (max-width: 900px) {
  .lib { padding: 10px 10px 24px; }
  .searchrow { gap: 7px; padding: 10px; }
  .sbox { flex: 1 1 100%; }
  .searchrow .spacer { display: none; }
  .sortsel { margin-left: auto; }
  .filterrow { padding: 8px 10px; }
  .pop, .pop.wide { width: min(88vw, 360px); }
  .pop.right { right: auto; left: 0; }
  .gridwrap.listmode table.grid tr { padding: 10px 10px; }
  .pagehead.slim h1 { font-size: 16px; }
}

/* 标题列要能读到完整标题：其余列都是短值，让标题拿最大的份额 */
table.grid.v2 .c-title { min-width: 340px; max-width: none; }
table.grid.v2 td[data-col="major"] { max-width: 190px; }
table.grid.v2 td[data-col="position"] { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }

/* 列宽配额：除标题外都是固定短值，把剩余宽度全给标题，避免 12 列平均分 */
table.grid.v2 th[data-col="province"] { width: 54px; }
table.grid.v2 th[data-col="category"] { width: 82px; }
table.grid.v2 th[data-col="staffing"] { width: 78px; }
table.grid.v2 th[data-col="city"] { width: 70px; }
table.grid.v2 th[data-col="headcount"] { width: 52px; }
table.grid.v2 th[data-col="deadline"] { width: 92px; }
table.grid.v2 th[data-col="education"] { width: 68px; }
table.grid.v2 th[data-col="position"] { width: 132px; }
table.grid.v2 th[data-col="major"] { width: 168px; }
table.grid.v2 th[data-col="recorded"] { width: 88px; }
table.grid.v2 th[data-col="source"] { width: 92px; }
table.grid.v2 { table-layout: auto; }

/* 固定布局：先按上面配额分列宽，剩下的全给标题（auto 布局下 td 的 min-width 不被当回事） */
table.grid.v2 { table-layout: fixed; }
table.grid.v2 th[data-col="title"] { width: auto; }
table.grid.v2 .c-title { min-width: 0; }
@media (max-width: 900px) {
  /* 手机上不锁最小宽度：老样式会把表格转成卡片式（td 带 data-l 标签） */
  table.grid.v2 { table-layout: auto; }
  table.grid.v2 .c-title { min-width: 0; }
}

/* 固定布局下不裁剪就会溢出到隔壁列：岗位/来源一律省略号 */
table.grid.v2 td[data-col="position"], table.grid.v2 td[data-col="major"],
table.grid.v2 td[data-col="source"] { overflow: hidden; text-overflow: ellipsis; }
table.grid.v2 td[data-col="position"] .var { display: block; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
table.grid.v2 td[data-col="major"] .tag { max-width: 100%; }
