/* =========================================================================
 * 58-job-ext.css —— 求职意向页 / 消息页 / 我的页（求职者）复刻
 * 依赖：58-tokens.css / 58-home.css / 58-job.css
 * ========================================================================= */

/* =========================================================
 * 一、想找的工作（单选）
 * ========================================================= */
.page--ji { background: #fff; }
.page--ji .page__scroll { background: #fff; }

.ji-top {
  flex: 0 0 auto;
  background: #fff;
  border-bottom: .5px solid #F0F0F0;
}

.ji-nav {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 12px;
}
.ji-nav__back {
  width: 30px;
  height: 32px;
  margin-left: -8px;
  border: 0;
  background: none;
  color: #222;
  font-size: 28px;
  line-height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ji-nav__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  font-weight: 600;
  color: #1A1A1A;
  white-space: nowrap;
}
.ji-nav__title i {
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  color: #666;
  margin-left: 2px;
}
.ji-nav__hold { width: 22px; margin-left: auto; }

.ji-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  margin: 0 14px 10px;
  padding: 0 10px;
  border-radius: 17px;
  background: #F5F5F5;
}
.ji-search .ji-i { width: 15px; height: 15px; color: #A8A8A8; flex: 0 0 auto; }
.ji-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin-left: 6px;
  border: 0;
  background: none;
  outline: none;
  font-size: 13.5px;
  color: #222;
  font-family: inherit;
}
.ji-search__input::placeholder { color: #A6A6A6; }
.ji-search__input::-webkit-search-cancel-button { display: none; }
.ji-search__clear {
  display: none;
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 0;
  background: none;
  color: #9D9D9D;
}
.ji-top.is-filled .ji-search__clear { display: block; }

/* 主体：左栏 + 右栏 */
.ji-body {
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

/* 左栏：真机 108px 左右，能容下「人事/行政/财务」等长分类名 */
.ji-side {
  flex: 0 0 108px;
  width: 108px;
  background: #F7F7F7;
  padding-bottom: 24px;
}
.ji-side__item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 8px 4px 8px 12px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12.5px;
  line-height: 16px;
  color: #333;
  /* 长分类名（人事/行政/财务）不满一行再断，禁止在「/」处提前折行 */
  word-break: break-word;
}
.ji-side__item.is-on {
  background: #fff;
  color: #FF552E;
  font-weight: 600;
}

.ji-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 12px 30px;
  background: #fff;
}

.ji-group { padding-top: 12px; }
.ji-group__title {
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.ji-group__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ji-chip {
  height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: #F7F7F7;
  color: #333;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ji-chip.is-on {
  background: #FFF2EF;
  color: #FF552E;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #FF552E;
}

.ji-empty {
  padding: 50px 10px;
  text-align: center;
  color: #999;
}
.ji-empty b { display: block; font-size: 14px; color: #333; margin-bottom: 6px; }
.ji-empty p { margin: 0 0 14px; font-size: 12px; line-height: 18px; }
.ji-empty__btn {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: #FFF2EF;
  color: #FF552E;
  font-size: 12.5px;
  font-weight: 600;
}

/* =========================================================
 * 二、消息页
 * ========================================================= */
.page--jm { background: #F5F5F5; }
.page--jm .page__scroll { background: #F5F5F5; }

.jm-top {
  flex: 0 0 auto;
  background: #fff;
}

.jm-nav {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 12px;
}
.jm-nav__back {
  width: 28px;
  height: 32px;
  margin-left: -8px;
  border: 0;
  background: none;
  color: #222;
  font-size: 28px;
  line-height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jm-nav__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  font-weight: 600;
  color: #1A1A1A;
}
.jm-nav__who {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 4px 6px;
  font-size: 13px;
  color: #333;
}
.jm-nav__gear {
  width: 26px;
  height: 26px;
  margin-left: 2px;
  padding: 3px;
  border: 0;
  background: none;
  color: #444;
}
.jm-nav__gear .j58-i { width: 20px; height: 20px; }

.jm-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-bottom: .5px solid #F0F0F0;
}
.jm-tab {
  position: relative;
  height: 38px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 13.5px;
  color: #666;
}
.jm-tab.is-on {
  color: #1A1A1A;
  font-weight: 600;
}
.jm-tab.is-on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 16px;
  height: 2.5px;
  border-radius: 2px;
  background: #FF552E;
  transform: translateX(-50%);
}

.jm-list { padding-top: 2px; }

.jm-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  background: #fff;
}
.jm-row:active { background: #FAFAFA; }
.jm-row + .jm-row { border-top: .5px solid #F4F4F4; }

.jm-row__ava { position: relative; flex: 0 0 auto; }

.jm-ava {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.jm-ava--double {
  position: relative;
  background: #EDEDED;
}
.jm-ava__a,
.jm-ava__b {
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #C9D4E0;
}
.jm-ava__a { left: 4px; top: 12px; background: #7C8B9C; }
.jm-ava__b { right: 4px; top: 9px; background: #B99B86; }

.jm-ava--h1 { background: linear-gradient(150deg, #FFA06B, #F0623C); }
.jm-ava--h2 { background: linear-gradient(150deg, #8FB4FF, #5B7CE0); }
.jm-ava--h3 { background: linear-gradient(150deg, #7FD3A8, #3FA97A); }
.jm-ava--h4 { background: linear-gradient(150deg, #C6A6F0, #8E64CF); }

.jm-row__dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #FF3B30;
  box-sizing: content-box;
}

.jm-row__main { flex: 1 1 auto; min-width: 0; }
.jm-row__top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.jm-row__name {
  font-size: 15.5px;
  font-weight: 600;
  color: #141414;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jm-row__badge {
  height: 15px;
  line-height: 15px;
  padding: 0 3px;
  border-radius: 2px;
  background: #FFEDEA;
  color: #FF3C00;
  font-size: 10px;
  flex: 0 0 auto;
}
.jm-row__time {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #B5B5B5;
}
.jm-row__msg {
  margin-top: 5px;
  font-size: 13px;
  line-height: 18px;
  color: #8A8A8A;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.jm-row.is-notice .jm-row__msg { color: #8A8A8A; }

.jm-empty {
  padding: 70px 0;
  text-align: center;
  font-size: 13px;
  color: #A6A6A6;
}

/* ---- 微信通知引导 ---- */
.jm-guide {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.jm-guide__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  animation: j58-fade .2s ease;
}
.jm-guide__panel {
  position: relative;
  padding: 18px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #FFF9F6 0%, #FFFFFF 32%);
  animation: j58-up .26s cubic-bezier(.2, .8, .2, 1);
  text-align: center;
  overflow: hidden;
}
.jm-guide__panel::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -28px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 226, 214, .9), rgba(255, 240, 234, 0) 70%);
  pointer-events: none;
}
/* 关闭按钮：抬高 z-index，避免被文案/气泡挡住点击热区 */
.jm-guide__x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 30px;
  height: 30px;
  padding: 7px;
  border: 0;
  background: none;
  color: #9C9C9C;
}
.jm-guide__sub,
.jm-guide__title,
.jm-guide__safe,
.jm-guide__cards,
.jm-guide__hint,
.jm-guide__cta,
.jm-guide__later {
  position: relative;
  z-index: 2;
}
/* 右上角水印气泡（真机是一枚浅色微信气泡，弱化处理不抢主视觉） */
.jm-guide__bubble {
  position: absolute;
  right: 26px;
  top: 40px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE9DE, #FFD9C8 70%, #FFD2BE);
  color: #FFB59A;
  z-index: 1;
  pointer-events: none;
}
.jm-guide__bubble .j58-i { width: 26px; height: 26px; }
.jm-guide__sub {
  margin: 4px 0 8px;
  font-size: 14px;
  color: #444;
}
.jm-guide__title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: #1A1A1A;
}
.jm-guide__title b { color: #FF3C00; font-weight: 700; }
.jm-guide__safe {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #6DBE7C;
  margin-bottom: 14px;
}
.jm-guide__safe .j58-i { width: 14px; height: 14px; }

.jm-guide__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.jm-guide__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 6px 11px;
  border-radius: 10px;
  background: #F6F7F9;
  font-size: 13.5px;
  font-weight: 600;
  color: #1A1A1A;
}
.jm-guide__ico {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.jm-guide__ico--bag { background: linear-gradient(160deg, #FFC24B, #FF9A00); }
.jm-guide__ico--doc { background: linear-gradient(160deg, #6FB4FF, #2E7BE8); }
.jm-guide__ico--mail { background: linear-gradient(160deg, #FFB05C, #FF7A22); }
/* 公文包：包体 + 提手 */
.jm-guide__ico--bag::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 15px;
  width: 20px;
  height: 14px;
  border-radius: 2.5px;
  background: rgba(255, 255, 255, .96);
}
.jm-guide__ico--bag::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 10px;
  width: 8px;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, .96);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
/* 文档：纸 + 折角 */
.jm-guide__ico--doc::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 9px;
  width: 15px;
  height: 20px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .96);
}
.jm-guide__ico--doc::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 0 2px 0 0;
  background: rgba(255, 255, 255, .62);
}
/* 信封：信封 + 折线 */
.jm-guide__ico--mail::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 24px;
  height: 17px;
  border-radius: 2.5px;
  background: rgba(255, 255, 255, .96);
}
.jm-guide__ico--mail::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 24px;
  height: 10px;
  background: linear-gradient(160deg, rgba(255, 122, 34, .0) 44%, rgba(255, 122, 34, .5) 45%, rgba(255, 122, 34, .0) 56%);
  border-radius: 2.5px 2.5px 0 0;
}
.jm-guide__ok {
  position: absolute;
  left: -5px;
  bottom: -5px;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2FC46B;
  box-sizing: content-box;
}
.jm-guide__ok::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 3.5px;
  width: 6px;
  height: 3.4px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg);
}

/* 提示气泡：右对齐并指向下方按钮（真机为灰色小标签 + 下方三角） */
.jm-guide__hint {
  position: relative;
  display: block;
  width: max-content;
  margin: 18px 0 12px auto;
  margin-right: 2px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #6E6E6E;
  color: #fff;
  font-size: 11.5px;
  white-space: nowrap;
}
.jm-guide__caret {
  position: absolute;
  right: 18px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: #6E6E6E;
  transform: rotate(45deg);
}

.jm-guide__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #FF6A2C, #FF4A18);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.jm-guide__cta .j58-i { width: 20px; height: 20px; }
.jm-guide__later {
  width: 100%;
  height: 42px;
  margin-top: 2px;
  border: 0;
  background: none;
  color: #333;
  font-size: 14px;
}

/* =========================================================
 * 三、我的（求职者）
 * ========================================================= */
.page--jmine { background: #F5F5F5; }
.page--jmine .page__scroll {
  background: #F5F5F5;
  padding-bottom: 12px;
}

.jmine-head {
  position: relative;
  padding-bottom: 12px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 214, 190, .55) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(120% 90% at 100% 8%, rgba(196, 228, 255, .65) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #FFF7F2 0%, #F7FBFF 46%, #FFFFFF 100%);
}
.jmine-head__bar {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
}
.jmine-head__back {
  width: 28px;
  height: 32px;
  margin-left: -8px;
  border: 0;
  background: none;
  color: #333;
  font-size: 28px;
  line-height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jmine-head__recruit {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  height: 28px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #222;
  font-size: 13.5px;
}
.jmine-head__recruit .j58-i { width: 18px; height: 18px; }

.jmine-head__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 16px 0;
}
/* 头像：无接口头像时用暖色渐变色块兜底（不暴露任何真实照片） */
.jmine-ava {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    radial-gradient(60% 55% at 50% 34%, rgba(255, 240, 230, .95) 0%, rgba(255, 240, 230, 0) 62%),
    linear-gradient(160deg, #8C7A6B 0%, #4A3D34 52%, #241C17 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
  overflow: hidden;
}
.jmine-ava::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 38px;
  height: 22px;
  border-radius: 19px 19px 0 0;
  background: rgba(255, 255, 255, .16);
  transform: translateX(-50%);
}
.jmine-head__main { flex: 1 1 auto; min-width: 0; }
.jmine-head__name {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: .2px;
}
.jmine-head__sub {
  margin-top: 5px;
  font-size: 12.5px;
  color: #8A8A8A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jmine-head__edit {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  background: none;
  color: #555;
}

/* ---- 简历优化横幅 ---- */
.jmine-power {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 12px 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: linear-gradient(100deg, #FFF6E8 0%, #FFFBF4 48%, #FFFFFF 100%);
  box-shadow: 0 1px 3px rgba(200, 140, 60, .08);
}
.jmine-power__lv {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 15px;
  color: #E9930F;
  text-align: center;
  letter-spacing: 1px;
}
.jmine-power__main { flex: 1 1 auto; min-width: 0; }
.jmine-power__title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1A1A1A;
}
.jmine-power__sub {
  margin-top: 3px;
  font-size: 12px;
  color: #9A9A9A;
}
.jmine-power__btn {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 15px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(90deg, #FF7A34, #FF4A18);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255, 88, 30, .28);
}

/* ---- 快捷四宫格 ---- */
.jmine-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 10px 12px 0;
  padding: 14px 4px 12px;
  border-radius: 10px;
  background: #fff;
}
.jmine-quick__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border: 0;
  background: none;
  padding: 0 2px;
}
.jmine-quick__item:active { opacity: .75; }
.jmine-quick__ico {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jmine-quick__ico .j58-i { width: 30px; height: 30px; }
.jmine-quick__ico--orange { color: #FFA51F; }
.jmine-quick__ico--blue { color: #3B82F6; }
.jmine-quick__ico--red { color: #FF5A34; }
.jmine-quick__ico--green { color: #34C759; }
.jmine-quick__t {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1A1A1A;
}
.jmine-quick__s {
  margin-top: 4px;
  max-width: 100%;
  font-size: 11px;
  color: #A3A3A3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 卡片（求职进程 / 常用功能） ---- */
.jmine-card {
  margin: 10px 12px 0;
  padding: 14px 6px 6px;
  border-radius: 10px;
  background: #fff;
}
.jmine-card__title {
  padding: 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
}
.jmine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}
.jmine-grid__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 2px 10px;
  border: 0;
  background: none;
}
.jmine-grid__item:active { opacity: .7; }
.jmine-grid__ico {
  position: relative;
  width: 30px;
  height: 30px;
  color: #3A3A3A;
}
.jmine-grid__ico .j58-i { width: 30px; height: 30px; }
.jmine-grid__t {
  font-size: 12.5px;
  color: #333;
  white-space: nowrap;
}
.jmine-grid__free {
  position: absolute;
  top: -5px;
  right: -15px;
  height: 14px;
  line-height: 14px;
  padding: 0 3px;
  border-radius: 7px 7px 7px 2px;
  background: linear-gradient(90deg, #FF6A2C, #FF3C00);
  color: #fff;
  font-size: 9px;
  font-style: normal;
}

/* ---- 客服电话 ---- */
.jmine-tel {
  padding: 22px 16px 8px;
  text-align: center;
}
.jmine-tel p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #B0B0B0;
  letter-spacing: .1px;
}

/* 小屏兜底 */
@media (max-width: 360px) {
  .ji-side { flex-basis: 84px; width: 84px; }
  .ji-side__item { padding-left: 10px; font-size: 12.5px; }
  .jmine-quick__t { font-size: 12.5px; }
  .jmine-quick__s { font-size: 10.5px; }
  .jmine-grid__t { font-size: 11.5px; }
}
