/* 厦门职讯 · 用户浏览页 v5（单位性质大按钮 + 地区 + 学历/岗位 + 排序 + 卡片）
   PC 与手机共用一套样式，内容宽度收在 760px，手机上自然铺满。 */
:root {
  --ink: #14161a;
  --muted: #707784;
  --line: #e8eaee;
  --brand: #0d5c8a;
  --brand-soft: #e9f2f9;
  --brand-ink: #0b4f78;
  --red: #c2410c;
  --red-soft: #fdece4;
  --amber: #b45309;
  --amber-soft: #fdf4e5;
  --gray-soft: #f1f2f4;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: #f4f5f7;
  color: var(--ink);
  font: 15px/1.55 -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }

/* ── 顶部筛选区：随内容滚出屏幕，把纵向空间还给列表浏览 ── */
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 9px;
}
.bar { max-width: 760px; margin: 0 auto; }
.searchrow {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f2f4f7;
  border: 1px solid #e6e9ee;
  border-radius: 11px;
  padding: 8px 11px;
  margin-bottom: 9px;
}
.searchrow .mag { font-size: 14px; opacity: .55; }
.searchrow input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.brandrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 8px;
  margin: 0 2px 9px;
}
.brand { grid-area: 1 / 1; font-weight: 700; font-size: 15.5px; color: var(--brand); text-decoration: none; }
.slogan { grid-area: 2 / 1 / 3 / -1; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.brandrow .follow-btn { grid-area: 1 / 2; justify-self: end; align-self: center; }

.kinds { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 9px; scrollbar-width: none; }
.kinds::-webkit-scrollbar { display: none; }
.kind {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 68px;
  padding: 9px 10px;
  border-radius: 13px;
  background: #f1f3f6;
  border: 1.5px solid transparent;
  text-decoration: none;
}
.kind .ico { font-size: 19px; line-height: 1; }
.kind .lb { font-size: 12px; color: #3b4350; white-space: nowrap; }
.kind .n { font-size: 10.5px; color: #9aa3ae; }
.kind.on { background: #e8f2f9; border-color: var(--brand); }
.kind.on .lb { color: var(--brand); font-weight: 600; }
.kind.on .n { color: var(--brand); }

.chips { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 7px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #3b4350;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 学历 / 岗位类别下拉：常规单选下拉，选中即提交 */
.row2 { display: flex; gap: 8px; align-items: stretch; padding: 1px 0 9px; }
.row2 select {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  padding: 0 30px 0 11px;
  font: inherit;
  font-size: 13.5px;
  color: #2b3240;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background-color: #f7f9fb;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6 6 6.4 11 1.6' fill='none' stroke='%23707784' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 8px;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, background-color .15s;
}
.row2 select:focus,
.row2 select:active { border-color: var(--brand); background-color: #fff; }
.row2 select.filter-active {
  color: #fff;
  font-weight: 600;
  border-color: var(--brand);
  background-color: var(--brand);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6 6 6.4 11 1.6' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.row2 select.filter-active:focus,
.row2 select.filter-active:active { background-color: var(--brand-ink); }
.row2 button {
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.row2 button:active { background: var(--brand-ink); }

/* ── 列表区 ── */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 14px 70px; }
.sortbar {
  /* 滚动到顶部后只把「最新发布 / 即将截止」这一行吸住 */
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  margin: 0 -14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  /* 吸附后与下方卡片分层，避免白底粘连看不出边界 */
  box-shadow: 0 6px 12px -10px rgba(16, 24, 40, .45);
}
.sbtn {
  flex: 1;
  text-align: center;
  padding: 11px 0 9px;
  font-size: 13.5px;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.sbtn.on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
/* 「今日上线」是当天筛选而非排序，用暖色 + 小圆点区分 */
.sbtn-today::before { content: "•"; margin-right: 3px; color: var(--red); }
.sbtn-today.on { color: var(--red); border-bottom-color: var(--red); }
.countline { display: flex; justify-content: flex-end; margin: 7px 2px 9px; }
.cnt { font-size: 12.5px; color: var(--muted); }
.cnt b { color: var(--ink); font-weight: 600; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 11px;
  overflow: hidden;
}
.card:hover { border-color: #d5dae2; }
.band { display: flex; align-items: center; gap: 6px; padding: 7px 15px; font-size: 12.5px; font-weight: 600; }
.b-red { background: var(--red-soft); color: var(--red); }
.b-amber { background: var(--amber-soft); color: var(--amber); }
.b-gray { background: var(--brand-soft); color: var(--brand-ink); }
.b-closed { background: var(--gray-soft); color: #9aa3ae; }

.body { padding: 12px 15px 14px; }
.hd { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.hd h3 { margin: 0; font-size: 16.5px; line-height: 1.45; font-weight: 600; word-break: break-word; }
.hd h3 a { text-decoration: none; color: var(--ink); }
.hd h3 a:hover { color: var(--brand); }
.hd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11.5px;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
  background: #eef4fa;
  color: #0d5c8a;
}
.tag-cat { background: #f2f4f7; color: #55606f; }

.jobs { list-style: none; margin: 10px 0 0; padding: 0; }
.jobs li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid #f4f5f7; }
.jobs li:first-child { border-top: 0; }
.jn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jn a { color: var(--ink); text-decoration: none; }
.jn a:hover { color: var(--brand); }
.external-mark { color: var(--brand); font-size: 11px; }
.js { color: var(--amber); font-weight: 600; white-space: nowrap; font-size: 14px; }
.je { color: var(--muted); white-space: nowrap; font-size: 12.5px; }

.more { margin-top: 8px; }
.more summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  color: var(--brand);
  font-size: 13px;
  padding: 3px 0;
  opacity: .9;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { opacity: 1; text-decoration: underline; }

.foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.foot .go { color: var(--brand); text-decoration: none; font-weight: 500; }
.foot .go:hover { text-decoration: underline; }
.foot .go-official {
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.foot .go-official:hover { text-decoration: none; background: var(--brand-ink); }

.empty { text-align: center; color: var(--muted); padding: 50px 0; font-size: 14px; }
.empty a { color: var(--brand); }

/* ── 分页 ── */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 18px 0 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: #3b4350;
  text-decoration: none;
  font-size: 13px;
}
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .gap { border: 0; background: none; color: var(--muted); }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px 36px;
  font-size: 11.5px;
  color: #9aa3ae;
  line-height: 1.9;
  text-align: center;
}

.promo { max-width: 760px; margin: 8px auto 0; padding: 0 14px; }
.promo a {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
}
.notice-tip {
  max-width: 760px;
  margin: 12px auto 0;
  padding: 0 14px;
  font-size: 11.5px;
  color: #9aa3ae;
  line-height: 1.85;
  text-align: center;
}
.compliance {
  max-width: 760px;
  margin: 10px auto 0;
  padding: 0 14px 30px;
  font-size: 11.5px;
  color: #9aa3ae;
  line-height: 1.9;
  text-align: center;
}
.compliance p { margin: 2px 0; }
.compliance a { color: #8b93a1; }

@media (max-width: 420px) {
  .kind { min-width: 62px; padding: 8px 8px; }
  .hd h3 { font-size: 15.5px; }
}

/* ── 关注公众号按钮 + 二维码弹窗 ── */
.brandrow .follow-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(13, 92, 138, .28);
}
.brandrow .follow-btn:active { background: var(--brand-ink); }
.qr-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 24, .58);
}
.qr-mask[hidden] { display: none; }
.qr-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 20px 18px 18px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(10, 20, 30, .28);
}
.qr-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.qr-img { width: 200px; height: 200px; object-fit: contain; border-radius: 8px; }
.qr-tip { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.qr-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9aa3ae;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
