/* ===========================================================
   首页改版稿 · proto.css
   目标：一个强调色（橙）+ 状态色（绿/灰），其余全中性。
   只覆盖首页用到的部分，详情弹窗/表单继续吃 style.css。
   =========================================================== */
:root {
  --ink: #111827;
  --sub: #6b7280;
  --line: #e8eaef;
  --bg: #f4f5f7;
  --accent: #e8641a;
  --accent-soft: #fff3ea;
  --green: #16a34a;
  --green-soft: #e9f9ef;
  --gray: #9ca3af;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05), 0 1px 3px rgba(17, 24, 39, .04);
  --shadow: 0 2px 8px rgba(17, 24, 39, .05);
  --shadow-lg: 0 10px 26px rgba(17, 24, 39, .10);
}

body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1140px; padding: 0 16px 40px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: static;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.topbar .inner { max-width: 1140px; padding: 11px 16px; gap: 14px; }
.logo .team {
  background: none; -webkit-text-fill-color: var(--ink); color: var(--ink);
  font-size: 18px; letter-spacing: .2px;
}
.logo .site {
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; padding: 2px 7px; letter-spacing: .3px;
}
.logo .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); box-shadow: none;
}
.search { max-width: 420px; margin-right: auto; }
.search input {
  padding: 9px 12px 9px 34px; font-size: 14px; border-radius: 10px;
  border-color: var(--line); background: #f7f8fa; box-shadow: none;
}
.search input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 100, 26, .12); }
.search svg { color: var(--gray); opacity: 1; left: 10px; }
.admin-link {
  font-size: 13px; font-weight: 600; color: var(--sub);
  padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line);
  white-space: nowrap; transition: .15s;
}
.admin-link:hover { color: var(--ink); border-color: #d6dae2; background: #fafbfc; }

/* ---------- 首屏：暖白底，橙色只用在关键词和按钮上 ---------- */
.hero {
  position: relative; overflow: hidden;
  margin: 16px 0 0; border-radius: 16px; padding: 20px 24px;
  background: linear-gradient(112deg, #fffaf5 0%, #fff3e8 52%, #ffe9d7 100%);
  border: 1px solid #f7dcc4;
  color: var(--ink); box-shadow: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* 右上角一团很淡的橙光，避免整块纯色太平 */
.hero::after {
  content: ''; position: absolute; right: -70px; top: -90px;
  width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 100, 26, .16) 0%, rgba(232, 100, 26, 0) 68%);
}
.hero-txt, .hero-btns { position: relative; z-index: 1; }
.hero-txt { min-width: 0; }
.hero h1 {
  margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .3px; line-height: 1.3;
  color: #1a2230;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
}
/* 主标题下的那句 slogan：跟着 h1 走，但小一号灰色，保持主次 */
.hero h1 .h1sub {
  display: block; margin-top: 3px;
  font-size: 15px; font-weight: 600; letter-spacing: .2px; line-height: 1.35;
  color: #6b5a4c;
}
.hero p { margin: 6px 0 0; font-size: 13px; color: #8a7565; }
.hero p b { color: #1a2230; font-weight: 700; }

.hero-btns { display: flex; gap: 10px; flex: none; }
.cta {
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: #fff; cursor: pointer; text-align: left;
  font-family: inherit; transition: .15s;
}
.cta:hover { background: #d95a12; transform: translateY(-1px); }
.cta b { font-size: 14px; font-weight: 700; line-height: 1.25; }
.cta i { font-style: normal; font-size: 11px; opacity: .82; font-weight: 400; }
.cta.ghost {
  background: #fff; border-color: #f2d5bd; color: #9c4a12;
}
.cta.ghost:hover { background: #fffdfb; border-color: #e9bd9b; }
.cta.ghost i { opacity: .68; }
.ent-badge {
  display: inline-block; margin-top: 2px; font-size: 11px;
  color: #fff; font-weight: 600; opacity: .88;
}
.cta.ghost .ent-badge { color: #9c4a12; opacity: .9; }

/* ---------- 一行统计 ---------- */
.statline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 7px;
  margin: 14px 2px 12px; font-size: 13px; color: var(--sub);
}
.statline b { color: var(--ink); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.statline .sep { color: #cfd4dc; }
.statline .live { margin-left: auto; font-size: 12px; color: #b0b6c0; }

/* ---------- 吸顶筛选栏：工种 / 地域 / 细分 三行 ----------
   用 grid 而不是 flex：桌面把「含暂停/排序」拎到第一行右侧，
   手机上让它自然掉到第四行右对齐（flex 里跨父级挪不动）。 */
.toolbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; column-gap: 12px; row-gap: 2px;
  padding: 8px 16px; margin: 0 -16px 14px;
  background: rgba(244, 245, 247, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.frow { grid-column: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tools { grid-column: 2; grid-row: 1; }
.fk {
  flex: none; width: 28px; font-size: 11px; font-weight: 700;
  color: #a8aeb9; letter-spacing: .5px; user-select: none;
}
.fhint { font-size: 12px; color: #b6bcc6; padding: 4px 2px; }
.fclear { cursor: pointer; text-decoration: none; }
.fclear:hover { text-decoration: underline; }

/* ⚠️ style.css 里 .tabs 是 flex-wrap: wrap；这里是单行横滚，必须显式 nowrap，
   否则手机上标签会折成 8 行，把首屏挤没。 */
.tabs {
  display: flex; flex-wrap: nowrap; gap: 5px; margin: 0; flex: 1; min-width: 0;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 5px 11px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: var(--sub); font-size: 13.5px; font-weight: 600;
  box-shadow: none; white-space: nowrap; flex: none; transition: .12s;
  line-height: 1.35;
}
.tab:hover { color: var(--ink); background: #fff; transform: none; }
.tab.active {
  background: #fff; color: var(--accent); border-color: #f2d5bd;
  box-shadow: var(--shadow-sm);
}
.tab i { font-style: normal; font-size: 11px; opacity: .5; margin-left: 4px; font-weight: 500; }
.tab.active i { opacity: .7; }
/* 没货的标签照样显示（好让人知道这个省/工种是空的），但点不动 */
.tab.is-zero { opacity: .38; cursor: default; }
.tab.is-zero:hover { color: var(--sub); background: transparent; }
/* 数量 0 但仍可点（换工种时旧技能会被清掉）：淡一点，别看着像死的 */
.tab.is-dim { opacity: .5; }
.tab.is-dim:hover { opacity: 1; }
.tab.is-back {
  color: #6b7280; background: #fff; border-color: var(--line);
  font-weight: 600; padding: 5px 9px;
}
.tab.is-back:hover { color: var(--ink); border-color: #d6dae2; }

.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.sw {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--sub); cursor: pointer; user-select: none;
  padding: 6px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line);
}
.sw input { accent-color: var(--accent); margin: 0; width: 14px; height: 14px; }
.sw:has(input:checked) { color: var(--ink); font-weight: 600; border-color: #d9dde4; }
.sortsel {
  padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: var(--sub); font-family: inherit;
  outline: none; cursor: pointer; -webkit-appearance: none; appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239ca3af' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.sortsel:focus { border-color: var(--accent); }

/* ---------- 卡片网格 ---------- */
.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }

.pcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
  transition: transform .13s, box-shadow .13s, border-color .13s;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #dfe3ea; }
.pcard.is-paused { opacity: .6; }
.pcard.is-paused:hover { opacity: .82; }

/* 封面（只有真的有车间/吃住实拍才用） */
.pc-cover { position: relative; height: 148px; background: #eef0f4; overflow: hidden; flex: none; }
.pc-cover img, .pc-cover video {
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
  transition: transform .35s;
}
.pcard:hover .pc-cover img { transform: scale(1.03); }
.pc-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, .45) 0%, rgba(10, 14, 20, 0) 46%);
  pointer-events: none;
}
.pc-cover .pc-cat {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  background: rgba(255, 255, 255, .94); color: #1f2937;
}
.pc-more {
  position: absolute; right: 10px; top: 10px; z-index: 1;
  font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(10, 14, 20, .5); padding: 3px 7px; border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* 无图版式：工种 + 状态一排 */
.pc-toprow {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 14px 0;
}
.pc-cat {
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  padding: 3px 8px; border-radius: 6px;
  background: #f1f3f6; color: #4b5563;
}
.pc-vid {
  margin-left: auto; font-size: 11px; font-weight: 600; color: #98a0ad;
}

.pc-body { padding: 10px 14px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-cover + .pc-body { padding-top: 11px; }

/* 薪酬：卡片第一眼 */
.pc-pay { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; }
.pc-pay b {
  font-size: 25px; font-weight: 800; color: var(--accent);
  letter-spacing: -.4px; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.pc-pay .u { font-size: 13px; font-weight: 700; color: var(--accent); }
/* 岗位亮点：取代原来那行「≈ 日薪 xxx」换算（按 8h×22 天估，实际差三成，已下线）。
   单行不换行 —— 亮点写长了会挤掉下面的要求行，宁可省略号。 */
.pc-pay .pc-hl {
  flex-basis: 100%; font-size: 12px; font-weight: 600; color: #6b5a4c;
  margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 面试通过率：贴在薪资右边。只有登录后才有（服务端不下发给访客），所以访客版式不受影响。
   ⚠️ 次数必须和百分比一起显示 —— 「通过 75%」推 4 次和推 27 次完全不是一回事。 */
.pc-pay .pc-rate {
  margin-left: auto; align-self: center; display: inline-flex; align-items: baseline; gap: 3px;
  font-size: 11.5px; font-weight: 800; color: #6f7885;
  background: #f4f5f7; border-radius: 999px; padding: 2px 8px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pc-pay .pc-rate i { font-style: normal; font-weight: 600; font-size: 10.5px; color: #98a0ad; }
.pc-pay .pc-rate.is-hi { background: var(--green-soft); color: #12793f; }
.pc-pay .pc-rate.is-hi i { color: #3f9a68; }
.pc-pay .pc-rate.is-lo { color: #8b929e; background: #f7f7f8; }

.pc-title {
  margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-co {
  font-size: 12.5px; color: var(--sub); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 决策标签：吃住班次证件 —— 工人真正拿来打电话的四条 */
.pc-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill {
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  padding: 3px 8px; border-radius: 6px;
  background: #f5f6f8; color: #4b5563; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.pill.good { background: var(--green-soft); color: #12793f; }
.pill.warn { background: var(--accent-soft); color: #b85212; }
.pill.gray { background: #f5f6f8; color: #8b929e; }

.pc-req {
  margin: 0; font-size: 12.5px; color: #5f6673; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.pc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding: 9px 14px 11px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: #98a0ad;
}
.pc-foot .f1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc-foot .f1 b { color: #4b5563; font-weight: 700; }
.pc-foot .dot-s { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.pcard.is-paused .pc-foot .dot-s { background: var(--gray); }
.pc-foot .go { color: var(--accent); font-weight: 700; white-space: nowrap; }

.empty { padding: 60px 0; color: var(--sub); font-size: 14px; }
.empty b { color: var(--ink); }

.page-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: #a0a6b0;
}

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 12px 32px; }
  .topbar .inner { padding: 9px 12px; gap: 10px; }
  .logo .team { font-size: 16px; }
  .search { max-width: none; flex: 1 1 140px; }
  .search input { font-size: 13px; padding: 8px 10px 8px 32px; }
  .admin-link { display: none; }

  .hero { flex-direction: column; align-items: stretch; gap: 10px; padding: 13px 15px; border-radius: 13px; }
  .hero h1 { font-size: 18.5px; }
  .hero h1 .h1sub { margin-top: 2px; font-size: 12.5px; }
  .hero p { font-size: 12px; margin-top: 3px; }
  .hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cta { padding: 7px 11px; }
  .cta b { font-size: 13px; }
  .cta i { font-size: 10.5px; }

  .statline { margin: 11px 2px 9px; font-size: 12px; }
  .statline b { font-size: 13.5px; }
  .statline .live { display: none; }

  .toolbar {
    margin: 0 -12px 12px; padding: 6px 12px; gap: 1px;
    grid-template-columns: minmax(0, 1fr);
  }
  .frow { gap: 6px; }
  .fk { width: 24px; font-size: 10.5px; letter-spacing: 0; }
  .tabs { gap: 4px; }
  .tab { padding: 4px 9px; font-size: 12.5px; border-radius: 8px; }
  .tab i { font-size: 10.5px; margin-left: 3px; }
  .tab.is-back { padding: 4px 7px; }
  /* 手机上控件掉到筛选区最后一行，右对齐 */
  .tools { grid-column: 1; grid-row: auto; justify-content: flex-end; margin-top: 3px; }
  .tools { gap: 6px; }
  .sw { padding: 3px 7px; font-size: 12px; border-radius: 8px; }
  .sw input { width: 13px; height: 13px; }
  .sortsel { padding: 4px 20px 4px 7px; font-size: 12px; background-position: right 6px center; }
  .fhint { font-size: 11.5px; }

  .grid { grid-template-columns: 1fr; gap: 11px; }
  .pc-cover { height: 170px; }
  .pc-body { padding-top: 9px; }
  .pc-pay b { font-size: 23px; }
  .pc-pay .pc-rate { font-size: 11px; padding: 2px 7px; gap: 2px; }
  .pc-pay .pc-rate i { font-size: 10px; }
  .pc-title { font-size: 14.5px; }
  .pc-foot .t { display: none; }
}
