/* ============================================================
 * 公开页（首页搜索框 / 岗位库 jobs.html / 岗位详情 job.html）共用样式。
 *
 * ⚠️ 命名空间纪律：index.html 自己有一整套 .auth-* / .cfm-* / .nav-* 样式，
 * 而它也要引入本文件（只为拿到 .ps-search 搜索框）。所以这里
 *   .pub-*  页面骨架    .ps-*  搜索框与下拉
 *   .pa-*   登录弹框    .pt-*  轻提示
 * 一律带前缀，且**绝不给 body / html / a / .container 这类裸选择器上样式**
 * —— 否则会把已定稿的首页改坏。页面级样式全部收在 body.pub-page 之下。
 * ============================================================ */
:root {
  --brand-blue: #0E9BD6;
  --brand-red: #E8485F;
  --ink: #1D1D1F;
  --ink-soft: #6E6E73;
  --ink-faint: #86868B;
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --hairline: #E5E5EA;
  --blue-tint: #E8F6FD;
  --red-tint: #FDECEF;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ============ ① 搜索框（首页导航 + 岗位库页共用） ============ */
.ps-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 460px;
  min-width: 180px;
  height: 40px;
  background: #fff;
  border: 1.5px solid rgba(14, 155, 214, 0.55);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ps-search:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(14, 155, 214, 0.14);
}
.ps-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px 0 14px;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.ps-input::placeholder { color: var(--ink-faint); }
/* 自己带了一个清空按钮，去掉浏览器原生的那个，免得出现两个 × */
.ps-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ps-clear {
  flex: none;
  width: 22px; height: 22px; margin-right: 2px;
  border: 0; border-radius: 50%; background: #ececf0; color: #86868b;
  font-size: 13px; line-height: 1; cursor: pointer; display: none;
}
.ps-clear.on { display: block; }
.ps-clear:hover { background: #e0e0e6; color: #1d1d1f; }
.ps-go {
  flex: none;
  height: 100%;
  padding: 0 20px;
  border: 0;
  border-left: 1.5px solid rgba(14, 155, 214, 0.35);
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--brand-blue);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ps-go:hover { background: var(--blue-tint); }

/* 大号变体：岗位库页顶部 */
.ps-search.ps-lg { flex: none; width: 100%; max-width: 660px; height: 52px; }
.ps-search.ps-lg .ps-input { font-size: 16px; padding-left: 18px; }
.ps-search.ps-lg .ps-go { padding: 0 30px; font-size: 16px; }

/* 下拉结果：可滚动，条数多了往下翻 */
.ps-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 900;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.ps-pop[hidden] { display: none; }
.ps-list {
  max-height: 336px;          /* ≈ 6 行，再多就滚动 */
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0; padding: 6px;
  list-style: none;
}
.ps-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.ps-row:hover, .ps-row.on { background: var(--surface); }
.ps-row-main { min-width: 0; flex: 1; }
.ps-row-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ps-row-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-hl { color: var(--brand-red); font-weight: 800; }
.ps-row-side {
  flex: none;
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-top: 2px;
}
.ps-empty { padding: 22px 14px; text-align: center; font-size: 13.5px; color: var(--ink-faint); }
.ps-more {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-top: 1px solid var(--hairline);
  background: #fbfbfd;
  color: var(--brand-blue);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ps-more:hover { background: var(--blue-tint); }

/* ============ ② 轻提示（分享复制成功等） ============ */
.pt-toast {
  position: fixed;
  left: 50%;
  bottom: 56px;
  z-index: 2000;
  transform: translate(-50%, 14px);
  max-width: 86vw;
  padding: 13px 24px;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.pt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============ ③ 公共页骨架（只在 body.pub-page 下生效） ============ */
body.pub-page {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--ink);
  background: linear-gradient(180deg, #EAF4FC 0%, #F6F8FC 260px, #FFFFFF 620px);
  background-repeat: no-repeat;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}
body.pub-page * { box-sizing: border-box; }
body.pub-page a { text-decoration: none; color: inherit; }
body.pub-page h1, body.pub-page h2, body.pub-page h3, body.pub-page p { margin: 0; }

.pub-header {
  position: sticky;
  top: 0;
  z-index: 800;
  height: 64px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.pub-header-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pub-logo { font-size: 21px; font-weight: 800; flex: none; }
.pub-logo .cy { color: var(--brand-blue); }
.pub-logo .jo { color: var(--brand-red); }
.pub-logo .en { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; color: var(--ink-faint); margin-left: 6px; vertical-align: 2px; }
.pub-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; flex: none; }
.pub-nav button, .pub-nav a {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  transition: opacity 0.2s ease;
}
.pub-nav button:hover, .pub-nav a:hover { opacity: 0.7; }
.pub-console { color: var(--brand-blue) !important; }

.pub-main { max-width: 1200px; margin: 0 auto; padding: 30px 32px 70px; }
.pub-crumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.pub-crumb a { color: var(--brand-blue); }
.pub-title { font-size: 26px; font-weight: 800; letter-spacing: 0.01em; }
.pub-sub { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

.pub-searchwrap { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; }
.pub-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pub-filters label { font-size: 13px; color: var(--ink-faint); }
.pub-filters select {
  height: 36px; padding: 0 30px 0 12px;
  border: 1px solid var(--hairline); border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2386868B'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.pub-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pub-chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--hairline);
  background: #fff; font-family: inherit; font-size: 13px; color: var(--ink-soft);
  cursor: pointer; transition: all 0.18s ease;
}
.pub-chip:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.pub-chip.on { background: var(--blue-tint); border-color: var(--brand-blue); color: var(--brand-blue); font-weight: 700; }

.pub-count { font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 14px; }
.pub-count b { color: var(--ink); }

/* 岗位卡片：每条岗位右边「查看 / 分享」 */
.pub-list { display: flex; flex-direction: column; gap: 12px; }
.pub-job {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--hairline); border-radius: 16px;
  padding: 18px 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pub-job:hover { border-color: #d6e9f5; box-shadow: 0 10px 26px rgba(14, 155, 214, 0.10); transform: translateY(-1px); }
.pub-job-main { min-width: 0; flex: 1; }
.pub-job-role { font-size: 17px; font-weight: 700; color: var(--ink); }
.pub-job-role:hover { color: var(--brand-blue); cursor: pointer; }
.pub-job-meta { margin-top: 7px; font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pub-job-meta .sep { color: #d2d2d7; }
.pub-job-tags { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.pub-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--surface); color: var(--ink-soft); font-size: 12px; white-space: nowrap;
}
.pub-pill.blue { background: var(--blue-tint); color: var(--brand-blue); }
.pub-pill.red { background: var(--red-tint); color: var(--brand-red); }
.pub-job-acts { flex: none; display: flex; align-items: center; gap: 8px; }
.pub-btn {
  height: 38px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--hairline);
  background: #fff; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all 0.18s ease;
}
.pub-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.pub-btn.primary {
  border: 0; color: #fff; font-weight: 700;
  background: linear-gradient(90deg, #E8485F 0%, #0E9BD6 100%);
  box-shadow: 0 6px 16px rgba(14, 155, 214, 0.26);
}
.pub-btn.primary:hover { color: #fff; opacity: 0.93; }
.pub-btn.lg { height: 48px; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.pub-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pub-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.pub-pager span { font-size: 13.5px; color: var(--ink-soft); }

.pub-empty {
  padding: 54px 20px; text-align: center;
  border: 1px dashed var(--hairline); border-radius: 16px; background: #fcfcfd;
}
.pub-empty h3 { font-size: 16px; font-weight: 700; }
.pub-empty p { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }

/* 详情页 */
.pub-card { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 26px 28px; }
.pub-detail-head { display: flex; align-items: flex-start; gap: 20px; }
.pub-detail-h1 { font-size: 24px; font-weight: 800; line-height: 1.3; }
.pub-detail-acts { flex: none; display: flex; gap: 8px; }
.pub-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 22px; margin-top: 20px; }
.pub-kv .k { font-size: 12.5px; color: var(--ink-faint); }
.pub-kv .v { font-size: 14.5px; color: var(--ink); margin-top: 4px; word-break: break-word; }
.pub-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.pub-sec h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.pub-jd { font-size: 14px; line-height: 1.85; color: #3a3a3c; white-space: pre-wrap; word-break: break-word; }
.pub-tips { font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.pub-cta {
  margin-top: 22px; padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(120deg, #FDECEF 0%, #E8F6FD 100%);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.pub-cta-txt { flex: 1; min-width: 220px; }
.pub-cta-txt b { font-size: 15px; }
.pub-cta-txt p { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }

.pub-foot { border-top: 1px solid var(--hairline); background: #fafafc; }
.pub-foot-in {
  max-width: 1200px; margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-faint);
}
.pub-foot-in a { color: var(--ink-soft); }
.pub-foot-in a:hover { color: var(--brand-blue); }
.pub-foot-in .sp { margin-left: auto; }

/* ============ ④ 登录 / 注册弹框（公共页用，视觉与首页一致） ============ */
.pa-overlay {
  position: fixed; inset: 0; z-index: 1500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 20px; overflow: auto;
}
.pa-overlay[hidden] { display: none; }
.pa-modal {
  position: relative; width: min(420px, 94vw); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 20px; padding: 34px 34px 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
.pa-close {
  position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: #f3f4f6; color: #6b7280; font-size: 20px; line-height: 1; cursor: pointer;
}
.pa-close:hover { background: #e5e7eb; color: #111827; }
.pa-title { font-size: 22px; font-weight: 800; text-align: center; color: var(--ink); }
.pa-sub { font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 6px; }
.pa-why {
  margin-top: 16px; padding: 11px 14px; border-radius: 12px;
  background: var(--blue-tint); color: #0b6f99; font-size: 12.5px; line-height: 1.7;
}
.pa-tabs { display: flex; margin: 18px 0 6px; background: #f3f4f6; border-radius: 14px; padding: 5px; gap: 5px; }
.pa-tab {
  flex: 1; padding: 11px 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 15px; color: var(--ink-soft); transition: all 0.2s ease;
}
.pa-tab.on { background: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.pa-tab.jobs.on { color: var(--brand-red); }
.pa-tab.talent.on { color: var(--brand-blue); }
.pa-tabdesc { font-size: 12.5px; color: var(--ink-faint); text-align: center; margin: 2px 0 16px; min-height: 1.2em; }
.pa-field { position: relative; margin-top: 14px; }
.pa-field input {
  width: 100%; height: 52px; padding: 0 16px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--hairline); border-radius: 14px; background: #fff; color: var(--ink);
  outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pa-field input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(14, 155, 214, 0.12); }
.pa-field input.invalid { border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(232, 72, 95, 0.10); }
.pa-send {
  position: absolute; top: 7px; right: 8px; height: 38px; padding: 0 16px;
  border: 0; border-radius: 10px; background: var(--blue-tint); color: var(--brand-blue);
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.pa-send:hover { opacity: 0.85; }
.pa-send:disabled { opacity: 0.45; cursor: not-allowed; }
.pa-err { font-size: 12.5px; color: var(--brand-red); margin: 6px 2px 0; }
.pa-hint { font-size: 12.5px; color: var(--ink-faint); margin: 8px 2px 0; line-height: 1.6; }
.pa-submit {
  width: 100%; height: 52px; margin-top: 20px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 0.06em;
  background: linear-gradient(90deg, #E8485F 0%, #0E9BD6 100%);
  box-shadow: 0 8px 20px rgba(14, 155, 214, 0.28);
}
.pa-submit:hover { opacity: 0.95; }
.pa-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.pa-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; cursor: pointer; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.pa-agree input { width: 15px; height: 15px; margin-top: 3px; flex: none; accent-color: #0E9BD6; cursor: pointer; }
.pa-agree a { color: var(--brand-blue); }
.pa-agree.err { color: var(--brand-red); }

/* 未勾选隐私协议的确认框（z-index 要压在登录框之上） */
.pa-cfm { position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.42); padding: 20px; }
.pa-cfm[hidden] { display: none; }
.pa-cfm-box { width: min(368px, 92vw); background: #fff; border-radius: 18px; padding: 26px 24px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26); }
.pa-cfm-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.pa-cfm-text { font-size: 13px; line-height: 1.75; color: var(--ink-soft); margin-top: 10px; }
.pa-cfm-text b { color: var(--ink); }
.pa-cfm-acts { display: flex; gap: 10px; margin-top: 22px; }
.pa-cfm-btn {
  flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--hairline); background: #fff;
  font-family: inherit; font-size: 14.5px; color: var(--ink-soft); cursor: pointer;
}
.pa-cfm-btn:hover { background: #f9fafb; }
.pa-cfm-btn.primary { border: 0; color: #fff; font-weight: 700; background: linear-gradient(90deg, #E8485F 0%, #0E9BD6 100%); }

/* ============ ⑤ 小屏适配 ============ */
@media (max-width: 1000px) {
  .pub-header-in { padding: 0 20px; gap: 10px; }
  .pub-nav { gap: 16px; }
  .ps-search { flex: 1 1 auto; min-width: 120px; }
}
@media (max-width: 760px) {
  .pub-main { padding: 22px 18px 60px; }
  .pub-job { flex-direction: column; align-items: stretch; gap: 14px; }
  .pub-job-acts { justify-content: flex-end; }
  .pub-detail-head { flex-direction: column; }
  .ps-go { padding: 0 12px; font-size: 14px; }
  .ps-search.ps-lg { height: 48px; }
  .pa-modal { padding: 28px 22px 22px; }
}
