/* ============================================================
   国考职位筛选 H5 — 样式
   设计参考: 华图/中公职位库的"政务蓝"风格 + 移动端抽屉式筛选
   布局: 桌面端 左侧筛选栏 + 右侧结果列表; 移动端 单列 + 底部抽屉
   ============================================================ */

:root {
  --brand: #1256b8;
  --brand-dark: #0d418c;
  --brand-light: #e8f0fb;
  --brand-lighter: #f4f8fe;
  --accent: #c8102e;
  --accent-light: #fdecef;
  --green: #0f8a5f;
  --green-light: #e6f6f0;
  --orange: #b45f06;
  --orange-light: #fdf3e5;
  --text: #1a1d24;
  --text-2: #4a5262;
  --text-3: #838c9d;
  --line: #e3e7ee;
  --line-2: #eef1f6;
  --bg: #f2f4f8;
  --card: #ffffff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(18, 32, 60, .07), 0 6px 20px rgba(18, 32, 60, .06);
  --shadow-lg: 0 8px 40px rgba(18, 32, 60, .18);
  --topbar-h: 56px;
  --fs: 14px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: var(--fs);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

button { font-family: inherit; font-size: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  height: var(--topbar-h);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  position: relative;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(13, 65, 140, .25);
}

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255, 255, 255, .18);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.brand-sub { font-size: 11px; opacity: .8; }

.search-wrap { flex: 1; max-width: 560px; position: relative; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .96);
  border-radius: 20px;
  padding: 0 14px;
  height: 38px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}
.search-box svg { width: 16px; height: 16px; fill: var(--text-3); flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 14px; color: var(--text); min-width: 0;
}
.search-box input::placeholder { color: var(--text-3); }
.search-clear {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--line); color: var(--text-2);
  display: none; place-items: center; font-size: 13px; line-height: 1;
  flex-shrink: 0;
}
.search-clear.on { display: grid; }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.tb-btn {
  height: 34px; padding: 0 12px; border-radius: 17px;
  background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background .15s;
  white-space: nowrap;
}
.tb-btn:hover { background: rgba(255, 255, 255, .28); }
.tb-btn .badge {
  background: var(--accent); color: #fff;
  border-radius: 9px; min-width: 17px; height: 17px;
  font-size: 11px; padding: 0 5px;
  display: none; place-items: center; font-weight: 600;
}
.tb-btn .badge.on { display: inline-grid; }

/* ---------------- 主体布局 ---------------- */
.layout {
  display: flex;
  height: calc(100% - var(--topbar-h));
  height: calc(100dvh - var(--topbar-h));
}

/* ---------------- 筛选侧栏 ---------------- */
.sidebar {
  width: 296px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.link-btn { color: var(--brand); font-size: 13px; padding: 4px 6px; border-radius: 5px; }
.link-btn:hover { background: var(--brand-light); }
.link-btn:disabled { color: var(--text-3); cursor: default; background: none; }

.filters { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }

.fgroup { border-bottom: 1px solid var(--line-2); }
.fgroup-head {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  text-align: left;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.fgroup-head:hover { background: var(--brand-lighter); }
.fgroup-title { flex: 1; display: flex; align-items: center; gap: 7px; }
.fgroup-icon {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--brand-light); color: var(--brand);
  display: grid; place-items: center; font-size: 11px; flex-shrink: 0;
}
.fgroup-count {
  font-size: 11px; font-weight: 600; color: #fff; background: var(--brand);
  border-radius: 8px; padding: 1px 6px;
}
.fgroup-arrow { color: var(--text-3); font-size: 11px; transition: transform .18s; }
.fgroup.open .fgroup-arrow { transform: rotate(180deg); }
.fgroup-body { display: none; padding: 0 14px 14px; }
.fgroup.open .fgroup-body { display: block; }

/* 选项: 多选胶囊 */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  font-size: 12.5px;
  color: var(--text-2);
  transition: all .13s;
  display: inline-flex; align-items: center; gap: 5px;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip .n { font-size: 11px; color: var(--text-3); }
.chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500;
}
.chip.on .n { color: rgba(255, 255, 255, .82); }
.chip.zero { opacity: .38; }

/* 列表式复选 */
.opt-list { display: flex; flex-direction: column; gap: 1px; max-height: 232px; overflow-y: auto; }
.opt-list.searchable { max-height: 260px; }
.opt {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-2); text-align: left; width: 100%;
  transition: background .12s;
}
.opt:hover { background: var(--brand-lighter); }
.opt .box {
  width: 15px; height: 15px; border: 1.5px solid #c3cad6; border-radius: 4px;
  flex-shrink: 0; display: grid; place-items: center;
  font-size: 10px; color: #fff; transition: all .12s;
}
.opt.on .box { background: var(--brand); border-color: var(--brand); }
.opt.on { color: var(--brand); font-weight: 500; }
.opt .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt .n { font-size: 11px; color: var(--text-3); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.opt.on .n { color: var(--brand); }
.opt.zero { opacity: .4; }
.opt.zero .n { color: var(--text-3); }

.mini-search {
  width: 100%; height: 32px; padding: 0 10px; margin-bottom: 7px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  outline: none; font-size: 13px; background: #fafbfd;
}
.mini-search:focus { border-color: var(--brand); background: #fff; }

/* 区间 */
.range-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.range-row input {
  width: 62px; height: 32px; padding: 0 8px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none;
}
.range-row input:focus { border-color: var(--brand); }

.hint { font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin-top: 8px; }
.hint.warn { color: var(--orange); background: var(--orange-light); padding: 7px 9px; border-radius: var(--radius-sm); }

/* 专业搜索 */
.major-input-wrap { position: relative; }
.major-sug {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 240px; overflow-y: auto; z-index: 30; display: none;
}
.major-sug.on { display: block; }
.sug-item {
  width: 100%; text-align: left; padding: 8px 11px;
  font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.sug-item:hover, .sug-item.active { background: var(--brand-light); }
.sug-item .code {
  font-size: 11px; color: var(--brand); background: var(--brand-light);
  padding: 1px 5px; border-radius: 4px; font-variant-numeric: tabular-nums;
}
.sug-item .m { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-item .n { font-size: 11px; color: var(--text-3); }

.selected-majors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.smajor {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-light); color: var(--brand-dark);
  border-radius: 14px; padding: 4px 8px 4px 10px; font-size: 12.5px;
}
.smajor button { color: var(--brand); font-size: 14px; line-height: 1; padding: 0 2px; }

/* 侧栏底部 */
.sidebar-foot {
  padding: 10px 14px; border-top: 1px solid var(--line-2);
  display: flex; gap: 8px; background: var(--card);
}
.btn {
  height: 36px; border-radius: 18px; font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 16px; transition: all .14s; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; flex: 1; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--line); color: var(--text-2); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------- 结果区 ---------------- */
.results { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.results-head {
  padding: 11px 16px; background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.stat { font-size: 14px; color: var(--text-2); }
.stat b { color: var(--brand); font-size: 17px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--text-3); }

.spacer { flex: 1; }
.sort-wrap { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.sort-wrap select {
  height: 30px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 6px; background: #fff; outline: none; font-size: 12.5px;
}

/* 已选条件 */
.active-bar {
  padding: 9px 16px; background: var(--brand-lighter);
  border-bottom: 1px solid var(--line);
  display: none; flex-wrap: wrap; gap: 7px; align-items: center;
}
.active-bar.on { display: flex; }
.abar-label { font-size: 12.5px; color: var(--text-3); }
.atag {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid #cfdcef; color: var(--brand-dark);
  border-radius: 14px; padding: 3px 9px; font-size: 12.5px;
}
.atag button { color: var(--brand); font-size: 14px; line-height: 1; }
.atag:hover { border-color: var(--brand); }

/* 列表 */
.list-wrap { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 90px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 10px;
  transition: box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow); border-color: #cdd8e8; }
.card.expanded { border-color: var(--brand); }

.card-main { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.card-check {
  width: 18px; height: 18px; border: 1.5px solid #c3cad6; border-radius: 4px;
  flex-shrink: 0; margin-top: 3px; display: grid; place-items: center;
  font-size: 11px; color: #fff; transition: all .12s;
}
.card-check.on { background: var(--brand); border-color: var(--brand); }
.card-body { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

.card-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-dept {
  font-size: 13px; color: var(--text-2); min-width: 0;
  overflow-wrap: anywhere;
}
.card-level {
  font-size: 11px; color: var(--brand); background: var(--brand-light);
  padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
}
.card-title {
  font-size: 15.5px; font-weight: 600; color: var(--text);
  margin: 3px 0 6px; line-height: 1.4;
  overflow-wrap: anywhere;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.tag {
  font-size: 12px; padding: 2px 8px; border-radius: 4px;
  background: #f4f6fa; color: var(--text-2); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.tag.hl { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.tag.edu { background: var(--brand-light); color: var(--brand-dark); }
.tag.major { background: var(--green-light); color: var(--green); max-width: 100%; }
.tag.warn { background: var(--orange-light); color: var(--orange); }
.card-major {
  margin-top: 7px; font-size: 12.5px; color: var(--text-3); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere; word-break: break-word;
}
.card-major b { color: var(--text-2); font-weight: 500; }

.card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.hc { text-align: right; }
.hc b { font-size: 21px; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.hc span { font-size: 11px; color: var(--text-3); display: block; }
.ratio { font-size: 11.5px; color: var(--text-3); }
.card-toggle {
  font-size: 12.5px; color: var(--brand); padding: 3px 6px; border-radius: 5px;
  display: inline-flex; align-items: center; gap: 3px;
}
.card-toggle:hover { background: var(--brand-light); }

/* 详情 */
.card-detail { display: none; border-top: 1px dashed var(--line); padding: 12px 14px; background: #fbfcfe; }
.card.expanded .card-detail { display: block; }
.dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 13px; }
.dl dt { color: var(--text-3); }
.dl dd { margin: 0; color: var(--text); word-break: break-word; }
.dl dd.pre { white-space: pre-wrap; line-height: 1.6; }
.dl dd a { color: var(--brand); text-decoration: none; border-bottom: 1px solid #b9cdea; }
.detail-actions { margin-top: 11px; display: flex; gap: 8px; flex-wrap: wrap; }

/* 空状态 */
.empty { padding: 70px 20px; text-align: center; color: var(--text-3); }
.empty .ico { font-size: 40px; opacity: .35; margin-bottom: 10px; }
.empty h3 { margin: 0 0 6px; font-size: 15px; color: var(--text-2); font-weight: 600; }
.empty p { margin: 0 0 14px; font-size: 13px; }

/* 分页 */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 0 4px; flex-wrap: wrap;
}
.pager button {
  min-width: 33px; height: 33px; padding: 0 9px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--text-2);
}
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .info { font-size: 12.5px; color: var(--text-3); margin: 0 6px; }

/* ---------------- 移动端筛选开关 ---------------- */
.mobile-filter-btn {
  display: none;
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 16px; z-index: 45;
  height: 44px; padding: 0 22px; border-radius: 22px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 22px rgba(18, 86, 184, .42);
  align-items: center; gap: 8px;
}
.mobile-filter-btn .badge {
  background: #fff; color: var(--brand); border-radius: 9px;
  min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px;
  display: none; place-items: center; font-weight: 700;
}
.mobile-filter-btn .badge.on { display: inline-grid; }

.scrim {
  display: none; position: fixed; inset: 0; background: rgba(16, 24, 40, .45);
  z-index: 50; backdrop-filter: blur(1px);
}
.scrim.on { display: block; }

/* ---------------- 对比抽屉 ---------------- */
.cmp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(18, 32, 60, .12);
  padding: 9px 16px; display: none; align-items: center; gap: 12px;
}
.cmp-bar.on { display: flex; }
.cmp-items { display: flex; gap: 7px; flex: 1; overflow-x: auto; }
.cmp-item {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  background: var(--brand-light); color: var(--brand-dark);
  border-radius: 15px; padding: 4px 8px 4px 11px; font-size: 12.5px; max-width: 190px;
}
.cmp-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-item button { color: var(--brand); font-size: 14px; line-height: 1; }

.modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.modal.on { display: flex; }
.modal-box {
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 1080px; max-height: 88vh; display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.modal-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; flex: 1; }
.modal-body { overflow: auto; padding: 14px 18px 18px; }

.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td {
  border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top;
}
.cmp-table th { background: var(--brand-lighter); font-weight: 600; color: var(--text-2); width: 96px; white-space: nowrap; }
.cmp-table thead th { background: var(--brand-light); color: var(--brand-dark); }
.cmp-table td.pre { white-space: pre-wrap; }
.cmp-table tr.diff td { background: #fffbf0; }
.cmp-table tr.diff td:first-child { background: #fdf3e5; }

/* 加载 */
.loading { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 100; }
.loading .box { text-align: center; }
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--brand-light);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.loading .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
  background: rgba(26, 29, 36, .93); color: #fff; font-size: 13px;
  padding: 9px 18px; border-radius: 20px; z-index: 90;
  opacity: 0; pointer-events: none; transition: all .22s;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 响应式: 移动端 ---------------- */
@media (max-width: 900px) {
  :root { --topbar-h: 52px; }

  .topbar { padding: 0 10px; gap: 8px; }
  .brand-text { display: none; }
  .brand-logo { width: 28px; height: 28px; font-size: 14px; }
  .search-box { height: 34px; padding: 0 11px; }
  .search-box input { font-size: 13.5px; }
  .tb-btn { height: 31px; padding: 0 10px; font-size: 12px; }
  .tb-btn .txt { display: none; }
  .tb-desktop-only { display: none; }

  .layout { display: block; position: relative; }

  /* 侧栏变底部抽屉 */
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; max-height: 86vh; height: 86vh;
    border-right: none; border-radius: 16px 16px 0 0;
    z-index: 52;
    transform: translateY(101%);
    transition: transform .26s cubic-bezier(.32, .72, 0, 1);
    box-shadow: var(--shadow-lg);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .sidebar.open { transform: translateY(0); }
  .sidebar-head::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 38px; height: 4px; border-radius: 2px; background: var(--line);
  }
  .sidebar-head { padding-top: 16px; }

  .mobile-filter-btn { display: inline-flex; }
  .sidebar-foot { position: sticky; bottom: 0; }

  .results { height: 100%; }
  .results-head { padding: 9px 12px; }
  .stat { font-size: 13px; }
  .stat b { font-size: 16px; }
  .active-bar { padding: 8px 12px; flex-wrap: nowrap; overflow-x: auto; }
  .abar-label { display: none; }
  .atag { flex-shrink: 0; }
  .list-wrap { padding: 10px 12px 150px; }

  .card-main { padding: 12px 12px 11px; display: block; position: relative; }
  .card-check { position: absolute; left: 12px; top: 13px; margin: 0; }
  .card-body { padding-left: 27px; }
  .card-title { font-size: 15px; line-height: 1.42; margin: 2px 0 7px; }

  /* 移动端把"招考人数/详情"移到卡片底部一行, 给标题和专业让出宽度,
     避免窄屏下文字被挤成两行截断。 */
  .card-right {
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 10px; padding-top: 9px;
    border-top: 1px solid var(--line-2);
    width: auto; flex-shrink: 1;
  }
  .hc { display: flex; align-items: baseline; gap: 4px; text-align: left; }
  .hc b { font-size: 17px; }
  .hc span { display: inline; font-size: 11.5px; }
  .ratio { font-size: 11.5px; }
  .card-toggle { font-size: 13px; padding: 4px 8px; }

  .dl { grid-template-columns: 78px 1fr; font-size: 12.5px; gap: 5px 10px; }
  .card-major { -webkit-line-clamp: 3; }

  .cmp-bar { padding: 8px 12px; bottom: 0; }
  .modal { padding: 0; }
  .modal-box { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .cmp-table { font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 6px 7px; }
  .cmp-table th { width: 74px; }

  .toast { bottom: 120px; }
}

@media (max-width: 380px) {
  .card-title { font-size: 14.5px; }
  .hc b { font-size: 16px; }
}

/* 打印/导出时隐藏交互元素 */
@media print {
  .topbar, .sidebar, .mobile-filter-btn, .cmp-bar, .active-bar, .pager { display: none !important; }
  body { overflow: visible; }
  .layout { display: block; height: auto; }
  .list-wrap { overflow: visible; padding: 0; }
}
