/* 盯编网（dingbianwang.com）考生端公共样式
   统一视觉体系：深海蓝 #1E3A6E（专业信赖）+ 上岸橙 #FF6B2C（行动转化）+ 清爽灰白底 #F6F8FB */

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-soft: #eef2f6;
  --text: #0f172a;
  --text-sub: #64748b;
  --primary: #1e3a6e;
  --primary-hover: #2a4f8f;
  --primary-soft: #eef3fb;
  --accent: #ff6b2c;
  --accent-hover: #f05a1b;
  --accent-soft: #fff2eb;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 14px -6px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px -12px rgba(30, 58, 110, .18);
}

* { box-sizing: border-box; }

/* 固定预留垂直滚动条宽度：避免切换筛选时页面横向抖动 */
html { overflow-y: scroll; scroll-behavior: smooth; }
@supports (scrollbar-gutter: stable) {
  html { overflow-y: auto; scrollbar-gutter: stable; }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }

/* ===== 顶栏（毛玻璃吸顶） ===== */
.topbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1e3a6e 0%, #2d5aa0 60%, #ff6b2c 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(30, 58, 110, .45);
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--primary);
}
.brand-text small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 7px;
  border-radius: 999px;
}
.topbar nav { display: flex; gap: 6px; flex: 1; }
.topbar nav a {
  padding: 7px 16px;
  border-radius: 9px;
  color: var(--text-sub);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.topbar nav a:hover { background: var(--primary-soft); color: var(--primary); }
.topbar nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.nav-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b2c, #ff8547);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(255, 107, 44, .6);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(255, 107, 44, .7);
}

/* ===== 布局 ===== */
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 24px 64px; }
.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 24px; font-weight: 800; margin: 0; color: var(--text); letter-spacing: .3px; }
.page-head .sub {
  color: var(--text-sub);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.head-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.stat-pill b { font-weight: 800; }
.stat-pill.pill-live {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.stat-pill.pill-live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}
.stat-pill.pill-total {
  background: var(--primary-soft);
  border-color: #d4e1f7;
  color: var(--primary);
}
.stat-pill.pill-link {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--primary);
  font-weight: 600;
  transition: border-color .15s, background .15s, color .15s;
}
.stat-pill.pill-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.stat-pill.pill-muted {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 500;
}
.back:hover { color: var(--primary); }

.section { margin-top: 12px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 20px; font-weight: 800; margin: 0; color: var(--text); }
.section-head .more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  transition: background .15s, color .15s;
}
.section-head .more:hover { background: var(--primary); color: #fff; }

/* ===== 卡片 / 表格 ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #fbfcfe;
}
.card-head h2 { font-size: 15.5px; margin: 0; font-weight: 700; color: var(--text); }
.card-body { padding: 18px 20px; }
.card-body.flush { padding: 0; }

/* 移动端表格横向滚动兜底 */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 固定列宽算法：配合 colgroup，切换筛选时列位置恒定 */
table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13.5px; }
thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: 12.5px;
  letter-spacing: .3px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  overflow-wrap: break-word;
  word-break: break-word;
}
tbody tr:nth-child(even) { background: #fbfcfe; }
tbody tr { transition: background .12s; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--primary-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.unit-name { font-weight: 700; color: var(--text); font-size: 14px; line-height: 1.5; }
.unit-name .unit-parent { display: block; font-size: 12px; font-weight: 400; color: var(--text-sub); margin-top: 2px; }
.pos-name { font-weight: 600; color: var(--primary); }
.title-cell a { font-weight: 600; color: var(--text); line-height: 1.5; }
.title-cell a:hover { color: var(--accent); }
/* 岗位库里"所属公告"退居次级，让视线第一落点聚焦在"单位"列 */
.unit-name ~ .title-cell a { font-weight: 500; color: #475569; font-size: 13px; }
.unit-name ~ .title-cell a:hover { color: var(--accent); }
.title-cell .sub { display: block; font-size: 12px; color: var(--text-sub); margin-top: 3px; }

/* ===== 筛选栏（公告列表 & 岗位库共用） ===== */
.pos-filter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 20px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
}
.pos-filter .dd-wrap { flex: 0 1 168px; min-width: 148px; }
.pos-filter .dd-btn { padding: 9px 11px; font-size: 13px; }
.pos-filter .kw-wrap { flex: 1 1 190px; display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.pos-filter .kw-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  background: #f8fafc;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.pos-filter .kw-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.pos-filter .tg-wrap { flex: 0 1 128px; min-width: 118px; }
.pos-filter .tg-box { height: 38px; display: flex; align-items: center; }
.pos-filter .btn-filter { padding: 9px 22px; align-self: flex-end; border-radius: 10px; }
.pos-filter .dd-panel { left: 0; }
@media (max-width: 760px) {
  .pos-filter .dd-wrap, .pos-filter .kw-wrap, .pos-filter .tg-wrap { flex: 1 1 46%; }
  .pos-filter .btn-filter { flex: 1 1 100%; justify-content: center; display: flex; }
}

/* ===== 徽章 ===== */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.b-info { background: var(--primary-soft); color: var(--primary); border-color: #d4e1f7; }
.b-gray { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.b-targeted { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.b-edu { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.b-city { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.b-end { background: #f4f4f5; color: #94a3b8; border-color: #e4e4e7; }

/* 岗位表人数胶囊 */
.head-count {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ===== 输入与按钮 ===== */
.input {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 13.5px;
  background: #fff;
  min-width: 0;
}
.input:focus { outline: none; border-color: var(--accent); }
.input-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.inline-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-sub); cursor: pointer; }
.checkbox input { accent-color: var(--accent); }

.btn {
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: var(--card); color: var(--text-sub); border-color: var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }

/* ===== 分页 ===== */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  flex-wrap: wrap;
}
.pager .muted { font-size: 13px; }

/* ===== 详情页 ===== */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 12px;
  margin: 0;
}
.meta-item {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 14px;
}
.meta-item dt { font-size: 12px; color: var(--text-sub); margin-bottom: 4px; }
.meta-item dd { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); word-break: break-word; }
.tip-line {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: #b45309;
}
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 11px;
  border-radius: 999px;
}
.ext-link:hover { background: var(--primary); color: #fff; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--text-sub); }

.empty { padding: 44px 20px; text-align: center; color: var(--text-sub); font-size: 13.5px; }
.empty-page { text-align: center; padding: 80px 0; }
.empty-page h1 { font-size: 52px; color: var(--primary); margin: 0 0 8px; }

/* ===== 报名已截止横幅 ===== */
.flash-closed {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 13.5px;
  font-weight: 500;
}
.flash-closed a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ===== 截止倒计时徽章 + 呼吸点 ===== */
.deadline {
  display: inline-block;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.deadline.warn {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}
.deadline.danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: 8px;
  vertical-align: middle;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px 36px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-sub);
  background: var(--card);
}
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer p { margin: 5px 0; }
.footer-brand { font-weight: 700; color: var(--primary); font-size: 13.5px; margin-bottom: 8px !important; }

@media (max-width: 640px) {
  .topbar-inner { padding: 0 14px; gap: 12px; }
  .brand-text small { display: none; }
  .topbar nav a { padding: 6px 10px; font-size: 13.5px; }
  .nav-cta { padding: 6px 12px; font-size: 12.5px; }
  .wrap { padding: 18px 14px 44px; }
  .table-scroll table { min-width: 680px; }
  thead th, tbody td { padding: 9px 10px; }
}
