/* =========================================================================
 * 58-job.css —— 找工作（58 招聘列表）复刻
 * 依赖：58-tokens.css / 58-home.css
 * ========================================================================= */

.page--j58 { background: #F5F5F5; }
.page--j58 .page__scroll { background: #F5F5F5; }
.page--j58 button { font-family: inherit; }

/* 图标基线 */
.j58-i {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}
.j58-i--sm { width: 11px; height: 11px; }

/* ---------------- 顶部 ---------------- */
.j58-top {
  flex: 0 0 auto;
  padding-top: 2px;
  background: linear-gradient(180deg, #FF8038 0%, #FF5E25 62%, #FF552E 100%);
  color: #fff;
}

.j58-nav {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
}

.j58-nav__back {
  width: 30px;
  height: 32px;
  margin-left: -6px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 28px;
  line-height: 26px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.j58-nav__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}

.j58-nav__recruit {
  margin-left: auto;
  height: 26px;
  padding: 0 10px;
  border: .5px solid rgba(255, 255, 255, .8);
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.j58-nav__recruit:active { background: rgba(255, 255, 255, .28); }

.j58-searchrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px 12px;
}

.j58-city {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: none;
  color: #fff;
  padding: 0;
  max-width: 76px;
  min-width: 0;
}
.j58-city .j58-i { width: 13px; height: 13px; opacity: .95; }
.j58-city__name {
  font-size: 14px;
  font-weight: 500;
  max-width: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j58-city__caret {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 3.4px solid transparent;
  border-right: 3.4px solid transparent;
  border-top: 4px solid rgba(255, 255, 255, .95);
}

.j58-search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 4px 0 10px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(180, 50, 0, .08);
}
.j58-search .j58-i { width: 15px; height: 15px; color: #ADADAD; }
.j58-search__ph {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 6px;
  font-size: 13px;
  color: #9B9B9B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.j58-search__go {
  flex: 0 0 auto;
  height: 26px;
  margin-right: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: #FF552E;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
}
.j58-search__go:active { background: #E8481F; }

/* ---------------- 热门导航 ---------------- */
.j58-hot {
  padding: 13px 8px 10px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .03);
}

.j58-hot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  margin-bottom: 11px;
}
.j58-hot__title {
  position: relative;
  padding-left: 9px;
  font-size: 15.5px;
  font-weight: 600;
  color: #1A1A1A;
}
.j58-hot__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FF8A3D, #FF552E);
}
.j58-hot__more {
  display: flex;
  align-items: center;
  gap: 1px;
  border: 0;
  background: none;
  padding: 0;
  font-size: 11.5px;
  color: #999;
}
.j58-hot__arrow { font-style: normal; font-size: 13px; line-height: 12px; }

.j58-hot__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.j58-hot__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 2px 0;
}
.j58-hot__item:active { opacity: .72; }
.j58-hot__ico {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.j58-hot__ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.j58-hot__label {
  font-size: 11.5px;
  line-height: 13px;
  color: #333;
  white-space: nowrap;
}

/* ---------------- 排序条 ---------------- */
.j58-sortbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 8px 0 10px;
  margin-top: 8px;
  background: #fff;
  border-bottom: .5px solid #F1F1F1;
}

.j58-intent {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  padding: 0 9px 0 5px;
  border: 0;
  border-radius: 13px;
  background: #FFF2EF;
  color: #FF552E;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
}
.j58-intent .j58-i { width: 13px; height: 13px; }
.j58-intent span {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 已填意向：隐藏「+」，改为描边胶囊 */
.j58-intent.is-set {
  padding-left: 9px;
  background: #F5F6F8;
  color: #333;
}
.j58-intent.is-set .j58-i { display: none; }

.j58-sort {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
}
.j58-sort__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 9px;
  border: 0;
  background: none;
  font-size: 13px;
  color: #333;
}
.j58-sort__item.is-on { color: #FF552E; font-weight: 600; }
.j58-sort__item.is-on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: #FF552E;
  transform: translateX(-50%);
}
.j58-sort__item--filter.is-on::after { display: none; }
.j58-sort__item--filter .j58-i { color: #999; }
.j58-sort__item--filter.is-on .j58-i { color: #FF552E; }

/* ---------------- 职位卡 ---------------- */
.j58-list { padding: 8px 10px 0; }

.j58-card {
  padding: 12px 12px 11px;
  margin-bottom: 9px;
  border-radius: 10px;
  background: #fff;
}
.j58-card:active { background: #FAFAFA; }

.j58-card__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.j58-card__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 23px;
  color: #141414;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.j58-card__salary {
  flex: 0 0 auto;
  max-width: 46%;
  font-size: 16.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 23px;
  color: #FF552E;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.j58-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.j58-card__tag {
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  border-radius: 3px;
  background: #F5F6F8;
  color: #666;
  font-size: 11px;
  white-space: nowrap;
}

.j58-card__co {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  overflow: hidden;
}
.j58-card__coname {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  font-size: 12.5px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.j58-card__badge {
  flex: 0 0 auto;
  height: 16px;
  line-height: 16px;
  padding: 0 3px;
  border-radius: 2px;
  background: #F2F6FF;
  color: #4C7BFF;
  font-size: 10px;
  white-space: nowrap;
}
.j58-card__badge.is-gazelle { background: #FFF4E6; color: #FF8B00; }
.j58-card__badge.is-vip { background: #FFF2EF; color: #FF552E; }

.j58-card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: .5px solid #F4F4F4;
  font-size: 11.5px;
  color: #999;
}
.j58-card__hr {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.j58-card__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #35C15B;
  flex: 0 0 auto;
}
.j58-card__right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  color: #A6A6A6;
}
.j58-card__sep {
  width: .5px;
  height: 9px;
  background: #E2E2E2;
}

.j58-empty {
  padding: 56px 20px 60px;
  text-align: center;
  color: #999;
}
.j58-empty b { display: block; font-size: 14px; color: #444; margin-bottom: 6px; }
.j58-empty p { margin: 0; font-size: 12px; }

.j58-end {
  padding: 12px 0 18px;
  text-align: center;
  font-size: 11px;
  color: #BFBFBF;
}

/* ---------------- 温馨提示 ---------------- */
.j58-tip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  padding: 13px 13px 11px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  animation: j58-tip-in .26s cubic-bezier(.2, .8, .2, 1);
}
@keyframes j58-tip-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.j58-tip__x {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 24px;
  height: 24px;
  padding: 5px;
  border: 0;
  background: none;
  color: #C4C4C4;
}
.j58-tip__head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1A1A1A;
}
.j58-tip__head .j58-i { width: 15px; height: 15px; color: #FF8A00; }
.j58-tip p {
  margin: 7px 0 10px;
  font-size: 12px;
  line-height: 18px;
  color: #666;
}
.j58-tip__acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.j58-tip__btn {
  height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  font-size: 12px;
}
.j58-tip__btn--ghost { background: #F5F6F8; color: #666; }
.j58-tip__btn--ok { background: #FF552E; color: #fff; }

/* ---------------- 招聘版底栏 ---------------- */
.j58-tabbar {
  flex: 0 0 auto;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: .5px solid #EFEFEF;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, .03);
  overflow: visible;
}

.j58-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #333;
}
.j58-tab .j58-i { width: 22px; height: 22px; }
.j58-tab > span:not(.j58-tab__fab) {
  font-size: 10px;
  line-height: 11px;
}
.j58-tab.is-on { color: #FF552E; }
.j58-tab.is-on .j58-i { stroke-width: 2; }

.j58-tab--fab { justify-content: flex-start; }
.j58-tab__fab {
  width: 46px;
  height: 46px;
  margin-top: -13px;
  border-radius: 50%;
  background: linear-gradient(160deg, #FF8A3D 0%, #FF552E 62%, #FF4200 100%);
  box-shadow: 0 3px 10px rgba(255, 85, 46, .38);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 46px;
  text-align: center;
}
.j58-tab--fab:active .j58-tab__fab { transform: scale(.96); }

.j58-tab__badge {
  position: absolute;
  top: 6px;
  left: calc(50% + 5px);
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  padding: 0 4px;
  border-radius: 7px;
  background: #FF3B30;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  text-align: center;
}

/* ---------------- 底部面板（筛选 / 城市） ---------------- */
.j58-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.j58-sheet__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  animation: j58-fade .18s ease;
}
@keyframes j58-fade { from { opacity: 0; } to { opacity: 1; } }

.j58-sheet__panel {
  position: relative;
  max-height: 80%;
  overflow-y: auto;
  padding: 15px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 14px 14px 0 0;
  background: #fff;
  animation: j58-up .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes j58-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.j58-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.j58-sheet__head b { font-size: 16px; color: #141414; }
.j58-sheet__x {
  width: 26px;
  height: 26px;
  padding: 6px;
  border: 0;
  background: none;
  color: #B5B5B5;
}

.j58-fgroup { padding-top: 14px; }
.j58-fgroup__title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 9px;
}
.j58-fgroup__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.j58-fopt {
  height: 30px;
  padding: 0 13px;
  border: .5px solid #EBEBEB;
  border-radius: 15px;
  background: #F7F8FA;
  color: #444;
  font-size: 12.5px;
}
.j58-fopt.is-on {
  border-color: #FF552E;
  background: #FFF2EF;
  color: #FF552E;
  font-weight: 600;
}

.j58-sheet__foot {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.j58-sheet__reset,
.j58-sheet__ok {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 21px;
  font-size: 15px;
}
.j58-sheet__reset { background: #F5F6F8; color: #555; }
.j58-sheet__ok { background: #FF552E; color: #fff; font-weight: 600; }

.j58-citygrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.j58-citygrid__item {
  height: 36px;
  border: .5px solid #EEE;
  border-radius: 8px;
  background: #F7F8FA;
  color: #333;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j58-citygrid__item.is-on {
  border-color: #FF552E;
  background: #FFF2EF;
  color: #FF552E;
  font-weight: 600;
}
.j58-sheet__cancel {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 21px;
  background: #F5F6F8;
  color: #555;
  font-size: 15px;
}

/* 竖屏小屏兜底 */
@media (max-width: 360px) {
  .j58-card__title { font-size: 15.5px; }
  .j58-card__salary { font-size: 15.5px; }
  .j58-hot__label { font-size: 11px; }
  .j58-sort__item { padding: 0 7px; }
}
