/* ==========================================================================
   p-join.css — 关于我们 · 加入我们（几何数值取自 07_加入我们.psd）
   1rem = 100 设计 px；内容区 1442（x 239→1681）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. banner：PSD 已把压暗层合进图里，去掉 CSS 叠加遮罩；标题 80px，红块压在字后
   -------------------------------------------------------------------------- */
/* banner 压暗交给 sub.css 的统一遮罩（30.2% 纯黑），素材本身不含压暗与文字 *//* banner 标题块（80px + 红斜块压在字后）统一由 sub.css 定义，本页不再覆写 */

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   3. 内容区骨架
   -------------------------------------------------------------------------- */
.job {
  width: min(14.42rem, calc(100% - 0.4rem));
  margin-inline: auto;
  padding: 1.2rem 0.01rem 1.18rem;
}
.job-title {
  position: relative;
  top: -0.02rem;
  font-size: 0.48rem;
  line-height: 0.48rem;
  font-weight: 500;
  text-align: center;
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   4. 筛选行：4.22 / 4.23 / 自适应 / 1.43，间距 7 / 18 / 7
   -------------------------------------------------------------------------- */
.job-filter {
  display: flex;
  align-items: stretch;
  height: 0.6rem;
  margin-top: 0.77rem;
}
.job-filter__sel,
.job-filter__q {
  height: 100%;
  border: 1px solid #efefef;
  border-radius: 0.04rem;
  background-color: #f9fafb;
  font-size: 0.18rem;
  color: var(--c-ink-2);
}
.job-filter__sel {
  -webkit-appearance: none;
  appearance: none;
  width: 4.2rem;
  padding-inline: 0.4rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9'%3E%3Cpath d='M0 0h16L8 9z' fill='%23999999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  cursor: pointer;
}
.job-filter__sel ~ .job-filter__sel {
  margin-left: 0.1rem;
}
.job-filter__q {
  flex: none;
  width: 4.2rem;
  margin-left: 0.2rem;
  padding-inline: 0.4rem;
}
.job-filter__q::placeholder { color: var(--c-ink-3); }
.job-filter__q:focus,
.job-filter__sel:focus { outline: none; border-color: var(--c-primary); }
.job-filter__btn {
  flex: none;
  width: 1.4rem;
  margin-left: 0.1rem;
  border-radius: 0.04rem;
  background: var(--c-primary);
  font-size: 0.16rem;
  color: var(--c-white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.job-filter__btn:hover { background: var(--c-primary-deep); }

/* --------------------------------------------------------------------------
   5. 职位区：左详情 710 + 间距 20 + 右列表 710
   -------------------------------------------------------------------------- */
.jobs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.2rem;
  align-items: start;
  margin-top: 0.4rem;
}
.job-detail {
  display: flex;
  flex-direction: column;
  /* 高度改为「不低于设计稿的 940」：详情由 data 渲染，换职位时文案长短不一，
     写死 9.4rem 会让长文案溢出、短文案留一大块空白。
     投递按钮靠 margin-top:auto 贴底，用到的高度始终 ≥ min-height，行为不变。 */
  height: auto;
  min-height: 9.4rem;
  padding: 0.48rem 0.49rem 0.94rem 0.5rem;
  border: 1px solid #eaeaea;
  border-top: 3px solid var(--c-primary);
  background: var(--c-card);
}
.job-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.2rem;
}
.job-detail__title {
  font-size: 0.24rem;
  line-height: 0.27rem;
  font-weight: 500;
  color: var(--c-primary);
}
.job-loc {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  flex: none;
  font-size: 0.18rem;
  line-height: 0.24rem;
  color: var(--c-ink-2);
}
.job-loc img {
  flex: none;
  width: 0.26rem;
  height: 0.24rem;
}
.job-meta {
  display: flex;
  gap: 0.18rem;
  margin-top: 0.24rem;
  font-size: 0.18rem;
  line-height: 0.24rem;
  color: var(--c-ink-2);
}
.job-meta__sep { color: inherit; }
.job-detail__label {
  margin-top: 0.49rem;
  font-size: 0.18rem;
  line-height: 0.18rem;
  font-weight: 500;
  color: var(--c-ink);
}
.job-detail .job-meta { margin-top: 0.22rem; }
.job-detail .job-meta + .job-detail__label { margin-top: 0.57rem; }
.job-detail__body {
  margin-top: 0.21rem;
  font-size: 0.16rem;
  line-height: 0.36rem;
  color: var(--c-ink-2);
}
.job-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  align-self: flex-start;
  width: 1.62rem;
  height: 0.59rem;
  margin-top: auto;
  border-radius: 0.04rem;
  background: var(--c-primary);
  font-size: 0.16rem;
  color: var(--c-white);
  transition: background-color 0.2s ease;
}
.job-apply:hover { background: var(--c-primary-deep); }
.job-apply img { flex: none; width: 0.2rem; height: 0.19rem; }

/* 右侧职位卡 */
.job-list {
  display: grid;
  row-gap: 0.2rem;
}
.job-card {
  position: relative;
  display: block;
  height: 1.72rem;
  padding: 0.48rem 0.49rem 0 0.5rem;
  border: 1px solid #eaeaea;
  background: var(--c-card);
  transition: box-shadow 0.25s ease;
}
.job-card:hover { box-shadow: 0 0.1rem 0.26rem rgba(0, 0, 0, 0.07); }
/* 当前选中的职位：顶上压一条 3px 蓝条（用 inset 阴影，不占高度、不推内容），标题转蓝。
   放在 :hover 之后，同特异度时以它为准，避免 hover 一下选中态就没了 */
.job-card.is-active { box-shadow: inset 0 3px 0 var(--c-primary); }
.job-card.is-active:hover {
  box-shadow: inset 0 3px 0 var(--c-primary), 0 0.1rem 0.26rem rgba(0, 0, 0, 0.07);
}
.job-card.is-active .job-card__title { color: var(--c-primary); }
.job-card__title {
  font-size: 0.24rem;
  line-height: 0.27rem;
  font-weight: 500;
  color: var(--c-ink);
}
.job-card .job-loc {
  position: absolute;
  right: 0.53rem;
  top: 0.51rem;
}

/* --------------------------------------------------------------------------
   6. 分页：58 圆形，浅灰底；当前页红描边红字；下一页红底白箭头
   -------------------------------------------------------------------------- */
.pager {
  gap: 0.16rem;
  margin-top: 1rem;
}
.pager button,
.pager a {
  width: 0.58rem;
  height: 0.58rem;
  border: 0;
  background: var(--c-card);
  font-size: 0.16rem;
  color: var(--c-ink-2);
}
/* 
.pager button:disabled {
  background: var(--c-white);
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.pager button:hover:not(:disabled) { background: var(--c-primary); }
.pager .pager-dots {
  display: grid;
  place-items: center;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--c-card);
  font-size: 0.16rem;
  color: var(--c-ink-2);
}
.pager .pager-dots:hover { background: var(--c-card); color: var(--c-ink-2); }
.pager .is-active {
  background: var(--c-white);
  box-shadow: inset 0 0 0 2px var(--c-accent);
  color: var(--c-accent);
}
.pager .is-active:hover { background: var(--c-white); color: var(--c-accent); }
.pager .pager-next { background: var(--c-accent); }
.pager .pager-next:hover { background: #b8080e; } */

/* --------------------------------------------------------------------------
   7. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .job { padding-block: 0.8rem 0.9rem; }
  .job-filter { height: 0.68rem; margin-top: 0.5rem; }
  .job-filter__sel { width: 3.4rem; padding-inline: 0.24rem; background-position: right 0.24rem center; }
  .job-filter__sel ~ .job-filter__sel { width: 3.2rem; }
  .job-filter__q { padding-inline: 0.24rem; }
  .job-filter__btn { width: 1.3rem; }
  .job-detail { height: auto; min-height: 0; padding: 0.4rem 0.36rem 0.4rem; }
  .job-card { padding: 0.34rem 0.36rem 0; height: auto; min-height: 1.5rem; }
  .job-card .job-loc { top: 0.36rem; right: 0.36rem; }
}

@media (max-width: 768px) {
  .job { padding-block: 0.6rem 0.7rem; }
  .job-title { font-size: 0.4rem; line-height: 0.44rem; }
  .job-filter {
    flex-wrap: wrap;
    height: auto;
    gap: 0.18rem;
    margin-top: 0.44rem;
  }
  .job-filter__sel,
  .job-filter__sel ~ .job-filter__sel {
    width: calc(50% - 0.09rem);
    height: 0.8rem;
    margin-left: 0;
    font-size: 0.24rem;
    padding-inline: 0.24rem;
    background-position: right 0.24rem center;
  }
  .job-filter__q {
    width: 100%;
    height: 0.8rem;
    margin-left: 0;
    font-size: 0.24rem;
    padding-inline: 0.24rem;
  }
  .job-filter__btn { width: 100%; height: 0.8rem; margin-left: 0; font-size: 0.24rem; }
  .jobs { grid-template-columns: 1fr; row-gap: 0.36rem; margin-top: 0.36rem; }
  .job-detail { height: auto; min-height: 0; padding: 0.4rem 0.3rem; }
  .job-detail__title,
  .job-card__title { font-size: 0.3rem; line-height: 0.4rem; }
  .job-detail__label { margin-top: 0.36rem; font-size: 0.24rem; line-height: 0.3rem; }
  .job-detail .job-meta + .job-detail__label { margin-top: 0.4rem; }
  .job-detail__body { margin-top: 0.16rem; font-size: 0.24rem; line-height: 0.44rem; }
  .job-meta { flex-wrap: wrap; gap: 0.1rem 0.16rem; font-size: 0.24rem; line-height: 0.34rem; }
  .job-loc { font-size: 0.24rem; line-height: 0.3rem; }
  .job-loc img { width: 0.32rem; height: 0.3rem; }
  .job-apply { height: 0.8rem; width: 2rem; margin-top: 0.36rem; font-size: 0.24rem; }
  .job-apply img { width: 0.28rem; height: 0.27rem; }
  .job-list { row-gap: 0.24rem; }
  .job-card { min-height: 0; padding: 0.3rem 0.3rem 0.34rem; }
  .job-card .job-loc { position: static; margin-top: 0.12rem; }
  /* 窄屏下详情卡被脚本挪到当前职位卡下面（p-join.js 的 place()），
     职位名 / 城市 / 学历 / 人数 / 日期 卡片上已经有了，再抄一遍像是两个标题 */
  .job-list .job-detail { padding-top: 0.3rem; }
  .job-list .job-detail__head,
  .job-list .job-detail__head + .job-meta { display: none; }
  .job-list .job-detail__label:first-of-type { margin-top: 0; }
  .pager { margin-top: 0.5rem; gap: 0.12rem; }
  .pager button,
  .pager a,
  .pager .pager-dots { width: 0.6rem; height: 0.6rem; font-size: 0.22rem; }
}
