:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-deep: #1e40af;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1e293b;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --green: #047857;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ========== 头部 ========== */
.site-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  padding: 30px 0 76px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}

.header-stats {
  display: flex;
}

.stat {
  padding: 0 22px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.stat:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

/* ========== 主体 ========== */
.container {
  max-width: 1200px;
  margin: -48px auto 0;
  padding: 0 24px 24px;
  position: relative;
}

.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 6px 20px rgba(15, 23, 42, 0.05);
}

/* ========== 筛选区 ========== */
.filter-card {
  padding: 18px 20px;
}

.filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-field {
  display: flex;
  flex-direction: column;
}

.filter-grow {
  flex: 1;
  min-width: 220px;
}

.filter-label {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
  font-weight: 500;
}

.select,
.input {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  min-width: 150px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.select:focus,
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input::placeholder {
  color: var(--text-3);
}

.segmented {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 5px 16px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.seg-btn.active {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.btn-reset {
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.btn-reset:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-50);
}

.subject-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

/* 学段筛选行（位于学科筛选上方） */
.grade-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.grade-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.grade-label::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
}

/* 学科筛选收起态：只显示第一行 */
.subject-row.collapsed .chip-list {
  max-height: 38px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.subject-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  padding: 5px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.subject-label::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: #f8fafc;
  color: #475569;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.subject-toggle {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-2);
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.subject-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-50);
}

.subject-toggle .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

/* 收起时箭头朝下（展开），展开时朝上（收起） */
.subject-row.collapsed .subject-toggle .chevron {
  transform: rotate(180deg);
}

/* ========== 列表区 ========== */
.table-card {
  margin-top: 16px;
  overflow: hidden;
}

/* 底部行政区柱状图 */
.chart-card {
  margin-top: 16px;
  padding: 18px 20px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.chart-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.chart-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-city {
  flex-shrink: 0;
  width: 84px;
  text-align: right;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.chart-bar-track {
  flex: 1;
  background: #f1f5f9;
  border-radius: 6px;
  height: 22px;
  overflow: hidden;
}

.chart-bar {
  display: flex;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  min-width: 2px;
}

.bar-seg {
  height: 100%;
  display: inline-block;
}

.chart-total {
  flex-shrink: 0;
  width: 64px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.summary-bar {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-bar strong {
  color: var(--primary);
  font-size: 15px;
  padding: 0 2px;
  font-variant-numeric: tabular-nums;
}

.summary-hint {
  font-size: 12px;
  color: var(--text-3);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1020px;
}

.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  padding: 11px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- 分页条 --- */
.pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 4px;
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
}

.pager-bar[hidden] {
  display: none;
}

.pager-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.pager-size .select {
  height: 32px;
  min-width: 92px;
}

.pager-info {
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.pager-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text-2);
  font-size: 12.5px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary-100);
  color: var(--primary);
  background: var(--primary-50);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-btn-disabled {
  pointer-events: none;
}

.page-nav-btn {
  padding: 0 13px;
}

.page-ellipsis {
  color: var(--text-3);
  font-size: 12px;
  padding: 0 3px;
  line-height: 30px;
}

.th-city { width: 110px; }
.th-nature { width: 88px; }
.th-date { width: 100px; }
.th-count { width: 92px; }
.th-positions { width: 300px; }
.th-detail { width: 84px; }
.th-origin { width: 100px; }

.city {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.district {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  max-width: 400px;
}

.salary {
  font-size: 12px;
  color: var(--green);
  margin-top: 4px;
}

.nature-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-campus {
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary-100);
}

.tag-social {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
}

.td-date {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.td-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.td-count .unit {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 2px;
}

.pos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pos-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  white-space: nowrap;
}

.pos-pill-active {
  background: var(--primary-100);
  color: var(--primary-deep);
  font-weight: 600;
}

.btn-detail {
  padding: 6px 15px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-detail:hover {
  background: var(--primary);
  color: #fff;
}

.link-origin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.link-origin:hover {
  text-decoration: underline;
}

.link-origin svg {
  width: 11px;
  height: 11px;
}

.link-disabled {
  color: #cbd5e1;
  font-size: 13px;
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-2);
}

.empty-tip {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

/* ========== 详情弹窗 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  border-radius: 14px;
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  animation: slideUp 0.22s ease;
}

.modal-header {
  padding: 18px 20px 14px;
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 65%);
  border-bottom: 1px solid var(--border-light);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.modal-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.area-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--border);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  padding-right: 40px;
}

.modal-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- 小节标题 --- */
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-title svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

.section-meta {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 2px;
}

/* --- 板块一：公告详情 --- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-item {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 0;
}

.detail-label {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 1px;
}

.detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.detail-item-salary .detail-value {
  color: var(--green);
}

/* --- 板块二：岗位明细（按学段分组） --- */
.pos-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-group {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: #fff;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.level-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 2px;
}

.level-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-deep);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 1px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.lv-kindergarten {
  color: #9d174d;
  background: #fdf2f8;
  border-color: #fbcfe8;
}

.lv-primary {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #dbeafe;
}

.lv-junior {
  color: #047857;
  background: #ecfdf5;
  border-color: #d1fae5;
}

.lv-senior {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.lv-vocational {
  color: #6d28d9;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.lv-directed {
  color: #0e7490;
  background: #ecfeff;
  border-color: #a5f3fc;
}

.lv-other {
  color: #475569;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.level-total {
  font-size: 11px;
  color: var(--text-3);
}

.pos-row {
  display: grid;
  grid-template-columns: 96px 1fr 46px 16px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
}

.pos-row-head {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pos-row-head:hover {
  border-color: var(--primary-100);
  background: #eff6ff;
}

.pos-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.pos-chevron svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.pos-item {
  display: flex;
  flex-direction: column;
}

.pos-item.expanded > .pos-row-head {
  background: var(--primary-50);
  border-color: var(--primary-100);
}

.pos-item.expanded .pos-chevron svg {
  transform: rotate(90deg);
}

.pos-item.expanded .pos-chevron {
  color: var(--primary);
}

.pos-detail-list {
  display: none;
  margin-top: 3px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.pos-item.expanded .pos-detail-list {
  display: block;
  animation: fadeIn 0.18s ease;
}

.pos-detail-head,
.pos-detail-row {
  display: grid;
  grid-template-columns: 1.35fr 1.05fr 1.35fr 62px 50px;
  gap: 10px;
  align-items: center;
  padding: 5px 12px;
}

.pos-detail-head {
  background: #f1f5f9;
  font-size: 11px;
  color: var(--text-3);
}

.pos-detail-row {
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}

.pd-school {
  font-weight: 600;
}

.pd-job {
  color: var(--text-2);
}

.pd-major {
  color: var(--text-2);
}

.pd-ratio,
.pd-count {
  text-align: right;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pos-row-active {
  background: var(--primary-50);
  border-color: var(--primary-100);
}

.pos-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.pos-row-active .pos-name {
  color: var(--primary-deep);
}

.pos-filter-tag {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.pos-bar-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.pos-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd, var(--primary));
  animation: growBar 0.4s ease;
}

.pos-row-active .pos-bar {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.pos-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- 板块三：原公告入口 --- */
.origin-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--primary-100);
  background: var(--primary-50);
  border-radius: 10px;
  flex-wrap: wrap;
}

.origin-text {
  min-width: 0;
}

.origin-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-deep);
}

.origin-url {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
  word-break: break-all;
}

.origin-empty {
  justify-content: center;
  border-color: var(--border);
  background: #f8fafc;
  color: var(--text-3);
  font-size: 13px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary svg {
  width: 12px;
  height: 12px;
}

/* --- 弹窗移动端：底部抽屉 --- */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    border-radius: 14px 14px 0 0;
    max-height: 90vh;
    max-height: 90dvh;
    animation: sheetUp 0.26s ease;
  }

  .modal-header {
    padding: 14px 16px 11px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .modal-title {
    font-size: 15px;
    padding-right: 36px;
  }

  .modal-body {
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
    gap: 14px;
  }

  .section-title {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-item {
    padding: 7px 11px;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .detail-label {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .detail-value {
    font-size: 12.5px;
  }

  .level-group {
    padding: 8px;
    gap: 5px;
  }

  .pos-row {
    grid-template-columns: 76px 1fr 42px 14px;
    gap: 8px;
    padding: 5px 9px;
  }

  .pos-name {
    font-size: 12.5px;
  }

  .pos-count {
    font-size: 11.5px;
  }

  .pos-detail-head {
    display: none;
  }

  .pos-detail-row {
    grid-template-columns: 1fr 1fr;
    gap: 3px 10px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .pd-cell::before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--text-3);
    margin-right: 4px;
  }

  .pd-school {
    grid-column: 1 / -1;
  }

  .pd-ratio,
  .pd-count {
    text-align: left;
  }

  .origin-box {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .btn-primary {
    justify-content: center;
    padding: 10px 16px;
  }
}

/* --- 小屏手机 --- */
@media (max-width: 420px) {
  .pos-row {
    grid-template-columns: 62px 1fr 38px 12px;
    gap: 6px;
    padding: 5px 7px;
  }

  .pos-filter-tag {
    display: none;
  }

  .modal-title {
    font-size: 14px;
  }

  .level-total {
    font-size: 10px;
  }
}

/* ========== 页脚 ========== */
.site-footer {
  text-align: center;
  padding: 20px 0 32px;
  color: var(--text-3);
  font-size: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes growBar {
  from { width: 0; }
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-stats {
    flex-wrap: wrap;
    gap: 10px 0;
  }

  .title {
    max-width: none;
  }

  .filter-row {
    gap: 10px;
  }

  .pager-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pager-info {
    order: 3;
    text-align: center;
  }

  .pager-nav {
    justify-content: center;
  }
}
