/* ══════════════════════════════════════════════════════════
   找人才（企业发布岗位）· Web H5
   2026-10-11 创建（找人才模块 V0.01）
   配色与小程序同源：背景 #EDE5D7 / 主色 #2F6B5A / 低饱和浅色温暖
   注：设计系统与「找工作」resume.css 完全同源（同色板 / 同组件），
       保证平台内两个求职相关 H5 页观感一致。
   ══════════════════════════════════════════════════════════ */
:root {
  /* ══ 2026-10-17 视觉统一：与主站 index.html（css/style.css）同源配色 ══
     背景 / 主色 / 文本 / 边框 全部对齐新墨绿 B2B 设计系统，消除「两种 UI」观感。 */
  --bg: #F5F6F4;
  --card: #FFFFFF;
  --soft: #ECF0EE;
  --line: #E2E7E4;
  --ink: #1C2429;
  --ink2: #505A61;
  --ink3: #8A969D;
  --ink4: #9AA4AB;
  --green: #1E6B58;
  --green-dark: #15503F;
  --green-bg: #E7F0EC;
  --green-line: #C9DED6;
  --warn: #C2554A;
  --warn-bg: #F9EAE8;
  --amber: #C0892A;
  --amber-bg: #F6EEDC;
  --amber-line: #EAD9B0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--green); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ── 顶栏 ── */
.rs-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 246, 244, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.rs-header-in { max-width: 860px; margin: 0 auto; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.rs-brand { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; }
.rs-brand b { font-size: 17px; letter-spacing: .3px; }
.rs-brand span { font-size: 12px; color: var(--ink3); }
/* 返回 eBike Hub（2026-10-11 阶段 5-2）：本页也可被直接分享/直达打开，
   需要一条回主站的明确出口，避免用户困在单页里（对齐小程序导航栏返回箭头）。 */
.rs-back { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 17px; line-height: 1;
  color: var(--ink2); background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.rs-back:hover { background: var(--green-bg); color: var(--green); border-color: var(--green-line); }
.rs-head-actions { display: flex; align-items: center; gap: 8px; }

/* ── 通用按钮 ── */
.btn {
  border: none; border-radius: 999px; padding: 9px 18px; font-size: 14px;
  background: var(--green); color: #fff; font-weight: 600;
}
.btn:hover { background: var(--green-dark); }
.btn-ghost { background: #fff; color: var(--green); border: 1px solid var(--green); font-weight: 500; }
.btn-ghost:hover { background: var(--green-bg); }
.btn-plain { background: #fff; color: var(--ink2); border: 1px solid var(--line); font-weight: 500; }
.btn-plain:hover { background: var(--soft); }
.btn-danger { background: #fff; color: var(--warn); border: 1px solid var(--warn); font-weight: 500; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; padding: 12px 0; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }

/* ── 页签 ── */
.rs-tabs { max-width: 860px; margin: 0 auto; padding: 12px 14px 0; display: flex; gap: 8px; }
.rs-tab {
  flex: 1; text-align: center; font-size: 14px; color: var(--ink2);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 0;
}
.rs-tab.on { color: var(--green); background: var(--green-bg); border-color: var(--green); font-weight: 600; }

/* ── 容器 ── */
.rs-main { max-width: 860px; margin: 0 auto; padding: 12px 14px 60px; }
.rs-card { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.rs-sec-title { font-size: 15px; font-weight: 600; color: #1C2429; margin: 0 0 12px; }
.rs-hint { font-size: 12px; color: var(--ink3); line-height: 1.7; }
.rs-muted { color: var(--ink3); font-size: 12px; }
.rs-empty { text-align: center; color: #8A969D; font-size: 15px; padding: 64px 0; }
.rs-loading { text-align: center; color: #8A969D; font-size: 14px; padding: 48px 0; }
.rs-err { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.rs-note { font-size: 12px; color: var(--ink3); line-height: 1.7; }
.disc { font-size: 12px; color: var(--ink4); line-height: 1.7; padding: 6px 2px 18px; }

/* ── 筛选 ── */
.rs-filters { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.rs-filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rs-select, .rs-input {
  flex: 1 1 160px; min-width: 130px; background: var(--soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; color: var(--ink);
}
.rs-select:focus, .rs-input:focus, textarea:focus { outline: 2px solid var(--green-line); }
.rs-count { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink3); margin: 2px 2px 10px; }
.rs-count .lk { color: var(--green); cursor: pointer; }

/* ── 简历卡（脱敏）── */
.rs-item { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; cursor: pointer; transition: box-shadow .15s; }
.rs-item:hover { box-shadow: 0 4px 16px rgba(30,107,88,0.10); }
.rs-item-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rs-code { font-size: 12px; color: var(--ink3); font-family: ui-monospace, Menlo, Consolas, monospace; }
.rs-salary { font-size: 15px; font-weight: 700; color: var(--green); white-space: nowrap; }
.rs-dir { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.rs-summary { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.rs-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rs-meta span { font-size: 12px; color: #1E6B58; background: var(--green-bg); border-radius: 6px; padding: 2px 9px; }
.rs-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid #EDF0EE; }
.rs-item-foot span { font-size: 11px; color: var(--ink4); }
.rs-item-foot .lk { font-size: 12px; color: var(--green); }

/* ── 状态条 ── */
.rs-tip { border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.rs-tip-lock { background: var(--amber-bg); border: 1px solid var(--amber-line); }
.rs-tip-ok { background: var(--green-bg); border: 1px solid var(--green-line); }
.rs-tip b { display: block; font-size: 14px; color: #A8761F; }
.rs-tip-ok b { color: var(--green); }
.rs-tip i { display: block; font-style: normal; font-size: 12px; color: #8A969D; margin-top: 4px; line-height: 1.7; }

/* ── 键值表 ── */
.rs-kv { display: flex; padding: 8px 0; border-bottom: 1px solid #EDF0EE; }
.rs-kv:last-child { border-bottom: none; }
.rs-kv .k { width: 120px; flex: 0 0 120px; font-size: 13px; color: var(--ink3); }
.rs-kv .v { flex: 1; font-size: 13px; color: var(--ink); word-break: break-all; }
.rs-kv .v.lk { color: var(--green); cursor: pointer; }

/* ── 经历条目 ── */
.rs-exp { padding: 10px 0; border-bottom: 1px solid #EDF0EE; }
.rs-exp:last-child { border-bottom: none; }
.rs-exp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rs-exp-h b { font-size: 14px; }
.rs-exp-h i { font-style: normal; font-size: 12px; color: #1E6B58; }
.rs-exp .r { font-size: 11px; color: var(--ink4); margin-top: 2px; }
.rs-exp .d { font-size: 13px; color: #1C2429; margin-top: 4px; white-space: pre-wrap; }

/* ── 表单 ── */
.rs-form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rs-form-row.top { align-items: flex-start; }
.rs-form-row .lb { width: 118px; flex: 0 0 118px; font-size: 13px; color: var(--ink2); }
.rs-form-row .fd { flex: 1; min-width: 0; }
.rs-form-row input[type=text], .rs-form-row input[type=number], .rs-form-row input[type=tel],
.rs-form-row input[type=email], .rs-form-row select, .rs-form-row textarea {
  width: 100%; background: var(--soft); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; color: var(--ink);
}
.rs-form-row textarea { min-height: 84px; resize: vertical; }
.rs-form-row .two { display: flex; align-items: center; gap: 8px; }
.rs-form-row .two input { flex: 1; }
.rs-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }

/* 方向多选 */
.rs-dir-group { margin-bottom: 10px; }
.rs-dir-group-t { font-size: 12px; color: var(--ink3); margin: 8px 0 6px; }
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-chip {
  font-size: 13px; color: var(--ink2); background: var(--soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; user-select: none;
}
.rs-chip.on { color: var(--green); background: var(--green-bg); border-color: var(--green); font-weight: 600; }
.rs-chip.dis { opacity: .45; }

/* 我的简历条目 */
.rs-mine { padding: 12px 0; border-bottom: 1px solid #EDF0EE; }
.rs-mine:last-child { border-bottom: none; }
.rs-mine-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rs-mine-h b { font-size: 14px; }
.rs-pill { font-size: 11px; border-radius: 6px; padding: 2px 9px; white-space: nowrap; }
.rs-pill.pending { color: var(--amber); background: var(--amber-bg); }
.rs-pill.approved { color: var(--green); background: var(--green-bg); }
.rs-pill.rejected { color: var(--warn); background: var(--warn-bg); }
.rs-pill.offline, .rs-pill.hidden { color: var(--ink3); background: #EDF0EE; }
.rs-pill.sent { color: var(--amber); background: var(--amber-bg); }
.rs-pill.accepted { color: var(--green); background: var(--green-bg); }
.rs-pill.declined { color: var(--warn); background: var(--warn-bg); }
.rs-pill.withdrawn, .rs-pill.expired { color: var(--ink3); background: #EDF0EE; }
.rs-ops { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 13px; }
.rs-ops a { cursor: pointer; }
.rs-ops .danger { color: var(--warn); }

/* ── 弹窗 ── */
.rs-mask { position: fixed; inset: 0; background: rgba(30, 28, 25, .45); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rs-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto; padding: 20px; }
.rs-modal h3 { margin: 0 0 6px; font-size: 17px; }
.rs-modal .sub { font-size: 12px; color: var(--ink3); margin-bottom: 14px; }
.rs-modal-ops { display: flex; gap: 10px; margin-top: 16px; }
.rs-modal-ops .btn { flex: 1; text-align: center; }
.rs-toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%);
  background: rgba(44, 42, 38, .92); color: #fff; font-size: 13px;
  padding: 10px 18px; border-radius: 999px; z-index: 90; max-width: 80vw;
}

/* ── 找人才专属 ────────────────────────────────────────────── */
/* 岗位卡标题行 */
.rs-job-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.rs-company { font-size: 13px; color: var(--ink2); margin-top: 4px; }
/* 福利标签（与 rs-meta 区分：暖色） */
.rs-benefits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rs-benefit {
  font-size: 12px; color: var(--amber); background: var(--amber-bg);
  border: 1px solid var(--amber-line); border-radius: 6px; padding: 2px 9px;
}
/* 详情正文段落保持换行 */
.rs-text { font-size: 13px; color: #1C2429; white-space: pre-wrap; line-height: 1.8; }
/* 发布资格门禁卡（未登录/未核验） */
.rs-gate { background: var(--card); border-radius: 12px; padding: 16px; margin-bottom: 12px; }

/* ══════════════════════════════════════════════════════════
   布局体系（2026-10-18 修正）
   桌面侧栏 / 宽屏容器「只」在独立页（<body class="rs-standalone">，含静态
   .rs-sidebar 壳）生效；主站内嵌（.rs-mount，由 window._mountTalent 注入）
   不渲染侧栏，占满主站 #content。body{display:flex} 不再全局生效。
   ══════════════════════════════════════════════════════════ */

/* ── 共享宽屏优化（独立页 & 内嵌态均生效）── */
.rs-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.rs-item { margin-bottom: 0; }
.rs-dir { font-size: 17px; }
.rs-summary { font-size: 14px; }
.rs-salary { font-size: 17px; }
.rs-meta span { font-size: 13px; padding: 3px 10px; }
.rs-filters { padding: 18px; margin-bottom: 16px; }
.rs-filter-row { flex-wrap: nowrap; gap: 12px; }
.rs-select, .rs-input { font-size: 15px; padding: 10px 14px; flex: 1 1 0; }
.rs-count { font-size: 13px; margin: 4px 4px 14px; }

@media (max-width: 1100px) {
  .rs-list-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .rs-filter-row { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .rs-list-grid { grid-template-columns: 1fr; }
  .rs-filter-row { flex-wrap: wrap; }
}

/* ── 内嵌态（主站 #content 内）：占满内容区，去掉 H5 窄栏居中 ── */
.rs-mount { width: 100%; }
.rs-mount .rs-main { max-width: none; padding: 14px 4px 48px; }
.rs-mount .rs-tabs { max-width: none; padding: 12px 8px 0; gap: 8px; }
.rs-mount .rs-header-in { max-width: none; }
.rs-mount .rs-tab { font-size: 14px; padding: 10px 16px; }

/* ── 独立页：左侧固定侧栏 + 右侧宽屏容器 ── */
body.rs-standalone { display: flex; font-size: 15px; min-height: 100vh; }
body.rs-standalone .rs-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 220px;
  background: var(--soft); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 50;
}
body.rs-standalone .rs-sidebar-brand {
  padding: 18px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
body.rs-standalone .rs-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 4px 10px rgba(30,107,88,0.28);
}
body.rs-standalone .rs-sidebar-brand h1 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: .3px; }
body.rs-standalone .rs-sidebar-brand span { font-size: 11px; color: var(--ink3); display: block; }
body.rs-standalone .rs-sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 10px; }
body.rs-standalone .rs-nav-section { margin-bottom: 14px; }
body.rs-standalone .rs-nav-section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink3); padding: 6px 12px; font-weight: 600;
}
body.rs-standalone .rs-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; color: var(--ink2);
  text-decoration: none; font-size: 14px; margin: 2px 0;
  transition: all .15s ease;
}
body.rs-standalone .rs-nav-item:hover { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
body.rs-standalone .rs-nav-item.active {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; font-weight: 600; position: relative;
  box-shadow: 0 4px 12px rgba(30,107,88,0.28);
}
body.rs-standalone .rs-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 55%; background: #fff; border-radius: 0 3px 3px 0;
}
body.rs-standalone .rs-nav-ico {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; background: #fff; border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
body.rs-standalone .rs-nav-item.active .rs-nav-ico { background: rgba(255,255,255,0.20); box-shadow: none; }
body.rs-standalone .rs-sidebar-footer {
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink3); line-height: 1.6;
}
body.rs-standalone .rs-wrapper {
  flex: 1; margin-left: 220px; min-height: 100vh;
  display: flex; flex-direction: column;
}
body.rs-standalone .rs-header-in,
body.rs-standalone .rs-tabs { max-width: 1280px; }
body.rs-standalone .rs-tabs { padding: 14px 24px 0; gap: 12px; }
body.rs-standalone .rs-tab { font-size: 15px; padding: 12px 24px; border-radius: 12px; }
body.rs-standalone .rs-main { max-width: 1280px; padding: 18px 24px 60px; flex: 1; }
body.rs-standalone .rs-header-in { padding: 12px 24px; }
body.rs-standalone .rs-brand b { font-size: 18px; }

@media (max-width: 768px) {
  body.rs-standalone .rs-sidebar { display: none; }
  body.rs-standalone .rs-wrapper { margin-left: 0; }
  body.rs-standalone { font-size: 14px; }
  body.rs-standalone .rs-main,
  body.rs-standalone .rs-tabs,
  body.rs-standalone .rs-header-in { padding-left: 14px; padding-right: 14px; }
}

