/* ============================================
   旺程驿 PC 网页后台 - 公共样式
   企业后台(ent)蓝青商务系 / 平台后台(plat)紫红管理系
   对应 UI 原型 v2.9 冻结版 PC 端 24 页
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f2f4f8;
  color: #1a1a2e;
  font-size: 14px;
  min-width: 1180px;
}

/* ---------- 布局骨架 ---------- */
.pc-layout { display: flex; height: 100vh; overflow: hidden; }
.pc-side {
  width: 216px;
  flex-shrink: 0;
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
body.ent .pc-side { background: linear-gradient(180deg, #0b3a5c 0%, #0e5a8a 60%, #1287c9 100%); }
body.plat .pc-side { background: linear-gradient(180deg, #3b0a5e 0%, #6a1b9a 55%, #9c27b0 100%); }

.pc-side .logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 20px 20px 16px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-side .logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.pc-side .logo b {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: .85;
  margin-top: 2px;
  letter-spacing: 2px;
}
.side-item {
  color: rgba(255,255,255,.82);
  padding: 11px 20px;
  cursor: pointer;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all .18s;
  user-select: none;
}
.side-item:hover { background: rgba(255,255,255,.10); color: #fff; }
.side-item.on {
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 600;
  border-left-color: #ffb547;
}
.pc-side .side-foot {
  margin-top: auto;
  padding: 14px 20px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.14);
}
.pc-side .side-foot a { color: rgba(255,255,255,.75); cursor: pointer; margin-right: 12px; }
.pc-side .side-foot a:hover { color: #fff; }

.pc-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.pc-top {
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #e5e8f0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 14px;
  flex-shrink: 0;
}
.pt-title { font-size: 16px; font-weight: 600; color: #1a1a2e; }
.pt-crumb { font-size: 12px; color: #9aa0b0; }
.pt-right { margin-left: auto; font-size: 13px; color: #555; display: flex; align-items: center; gap: 10px; }

.pc-body { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }

/* ---------- 统计卡 ---------- */
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.pc-stat {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(20,30,60,.05);
  border: 1px solid #eef0f6;
}
.s-num { font-size: 28px; font-weight: 700; line-height: 1.1; }
.s-num small { font-size: 13px; font-weight: 400; color: #8a90a0; }
.s-num.blue  { color: #1677ff; }
.s-num.orange{ color: #ff7a1a; }
.s-num.red   { color: #f53f3f; }
.s-num.green { color: #22a06b; }
.s-num.cyan  { color: #00a5c4; }
.s-num.purple{ color: #8b2fe8; }
.s-label { font-size: 12px; color: #8a90a0; margin-top: 6px; }
/* 0.2.20 数据看板统计卡可点击跳转 */
.pc-stat-link { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pc-stat-link:hover { transform: translateY(-3px); box-shadow: 0 8rpx 24rpx rgba(20, 30, 60, 0.12); border-color: #d8dce8; }

/* ---------- 面板 ---------- */
.pc-panel {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(20,30,60,.05);
  border: 1px solid #eef0f6;
}
.p-head {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-head .p-right { margin-left: auto; font-size: 12px; color: #1677ff; cursor: pointer; font-weight: 400; }
.p-head .p-right:hover { text-decoration: underline; }

/* ---------- 提示条 ---------- */
.pc-tip {
  background: #fffbe8;
  border: 1px solid #ffe08a;
  color: #8a6d1a;
  font-size: 12px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ---------- 表格 ---------- */
.pc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pc-table th {
  background: #f7f9fc;
  color: #5a6070;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e8ebf2;
  white-space: nowrap;
}
.pc-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f0f2f7;
  color: #333a4d;
  vertical-align: middle;
}
.pc-table tr:last-child td { border-bottom: none; }
.pc-table tr:hover td { background: #fafbfe; }
.t-op { color: #1677ff; cursor: pointer; margin-right: 12px; font-size: 13px; white-space: nowrap; }
.t-op:hover { text-decoration: underline; }
.t-op.danger { color: #f53f3f; }
.t-op.orange { color: #ff7a1a; }
.t-op.gray { color: #8a90a0; }

/* ---------- 徽章 ---------- */
.m-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.m-tag.gray   { background: #f0f1f5; color: #6a7080; }
.m-tag.green  { background: #e6f7f0; color: #178a5a; }
.m-tag.red    { background: #fdeaea; color: #d63333; }
.m-tag.blue   { background: #e8f1ff; color: #1f6fe0; }
.m-tag.orange { background: #fff1e0; color: #d96b0a; }
.m-tag.zhizhao{ background: #e6f7f0; color: #178a5a; }
.m-tag.laowu  { background: #f0e8ff; color: #7a3cf5; }
.m-tag.purple { background: #f3e8ff; color: #8b2fe8; }

/* ---------- 按钮 ---------- */
.pc-btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  user-select: none;
  line-height: 1.5;
}
.pc-btn.primary { background: #1677ff; color: #fff; }
.pc-btn.primary:hover { background: #0f66e0; }
body.plat .pc-btn.primary { background: #8b2fe8; }
body.plat .pc-btn.primary:hover { background: #7622cf; }
.pc-btn.default { background: #fff; border-color: #d5dae5; color: #444b5c; }
.pc-btn.default:hover { border-color: #1677ff; color: #1677ff; }
.pc-btn.danger { background: #fff; border-color: #f5b8b8; color: #e02e2e; }
.pc-btn.danger:hover { background: #fdeaea; }
.pc-btn.sm { padding: 2px 8px; font-size: 11px; border-radius: 4px; }

/* ---------- 表单 ---------- */
.pc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.pc-form-item .f-label { font-size: 13px; color: #5a6070; margin-bottom: 6px; }
.pc-form-item .f-label i { color: #f53f3f; font-style: normal; margin-right: 2px; }
.pc-input {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d5dae5;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #333a4d;
  outline: none;
  transition: border-color .15s;
}
.pc-input:focus { border-color: #1677ff; }
body.plat .pc-input:focus { border-color: #8b2fe8; }
.pc-input.w120 { width: 130px; }
.pc-input.w180 { width: 190px; }
textarea.pc-input { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }

/* ---------- 筛选条 ---------- */
.pc-filter { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- 开关 ---------- */
.switch {
  display: inline-block;
  width: 40px;
  height: 22px;
  border-radius: 22px;
  background: #d5dae5;
  position: relative;
  cursor: pointer;
  transition: background .18s;
  vertical-align: middle;
}
.switch::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: left .18s;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.switch.on { background: #22a06b; }
.switch.on::after { left: 20px; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.steps .step {
  padding: 4px 14px;
  border-radius: 20px;
  background: #f0f1f5;
  color: #8a90a0;
  font-size: 12px;
  white-space: nowrap;
}
.steps .step.done { background: #e6f7f0; color: #178a5a; }
.steps .step.cur  { background: #e8f1ff; color: #1f6fe0; font-weight: 600; }
.steps .arrow { color: #c3c8d4; }

/* ---------- 上传占位 ---------- */
.upload-box {
  border: 1px dashed #c0c4cc;
  border-radius: 6px;
  padding: 14px;
  color: #999;
  font-size: 12px;
  background: #fafbfc;
  cursor: pointer;
}
.upload-box:hover { border-color: #1677ff; color: #1677ff; }

/* ---------- 模态框 ---------- */
.mask {
  position: fixed; inset: 0;
  background: rgba(10,20,40,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.mask.show { display: flex; }
.modal {
  width: 480px;
  max-width: 92vw;
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 12px 40px rgba(10,20,40,.25);
}
.modal .m-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.modal .m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: rgba(20,30,50,.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  z-index: 200;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 登录页 ---------- */
/* 2026-09-24 修：注册表单（10 字段+执照上传+提交按钮）高于视口时，
   height:100vh + overflow:hidden 会把卡片上下裁掉且无法滚动 → 提交按钮不可达。
   改 min-height + 上下内边距：屏幕够高照旧居中，不够高时页面往下滚。 */
.login-wrap {
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b2a6b 0%, #3b1d7a 50%, #7a1e8c 100%);
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,181,71,.18), transparent 62%);
  top: -180px; right: -140px;
}
.login-wrap::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70,160,255,.20), transparent 62%);
  bottom: -180px; left: -120px;
}
.login-card {
  position: relative;
  z-index: 2;
  width: 400px;
  background: rgba(255,255,255,.97);
  border-radius: 16px;
  padding: 36px 36px 30px;
  box-shadow: 0 20px 60px rgba(10,20,50,.35);
}
.login-card .lg-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(80,60,220,.35);
}
.login-card h1 { text-align: center; font-size: 22px; letter-spacing: 2px; }
.login-card .lg-slogan { text-align: center; font-size: 12px; color: #8a90a0; margin: 4px 0 24px; letter-spacing: 1px; }
/* 2026-09-22 客户意见：官网「免费发岗」改收费口径，登录页同步提示付费 */
.login-card .lg-fee-tip { text-align: center; font-size: 12px; color: #8a6d1a; background: #fdf6e3; border: 1px solid #f0e2b6; border-radius: 8px; padding: 7px 10px; margin: -12px 0 16px; }
.lg-tabs { display: flex; border: 1px solid #e2e6f0; border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.lg-tabs div {
  flex: 1; text-align: center; padding: 9px 0; font-size: 13px;
  cursor: pointer; color: #5a6070; background: #f7f9fc;
}
.lg-tabs div.on { background: #fff; color: #1677ff; font-weight: 600; }
.lg-field { margin-bottom: 14px; }
.lg-field .f-label { font-size: 12px; color: #8a90a0; margin-bottom: 5px; }
.lg-btn {
  width: 100%; margin-top: 6px;
  padding: 10px 0; border: none; border-radius: 8px;
  background: linear-gradient(90deg, #3a6ef0, #8b2fe8);
  color: #fff; font-size: 15px; letter-spacing: 4px;
  cursor: pointer;
}
.lg-btn:hover { opacity: .92; }
.lg-foot { text-align: center; font-size: 12px; color: #b0b6c6; margin-top: 16px; }

/* ---------- 扫码登录（第4条） ---------- */
.qr-box { position: relative; width: 210px; margin: 12px auto 0; }
.qr-box img { display: block; width: 210px; height: 210px; background: #f4f6fb; border-radius: 10px; border: 1px solid #e2e6f0; }
.qr-mask {
  position: absolute; inset: 0; background: rgba(255,255,255,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; cursor: pointer;
}
.qr-mask .qr-mtxt, #qrMaskText { font-size: 13px; color: #8a90a0; margin-bottom: 10px; }
#qrRefresh {
  padding: 6px 18px; border-radius: 6px; font-size: 13px; color: #fff;
  background: linear-gradient(90deg, #3a6ef0, #8b2fe8); cursor: pointer;
}
.qr-tip { text-align: center; font-size: 14px; color: #2a3040; font-weight: 600; margin-top: 14px; }
.qr-sub { text-align: center; font-size: 12px; color: #b0b6c6; margin-top: 6px; line-height: 1.7; }

/* ---------- 通用小工具 ---------- */
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.ov-card { background: #fafbfc; border-radius: 8px; padding: 14px; font-size: 13px; color: #666; }
.ov-card b { font-size: 20px; color: #1a1a2e; display: block; margin-top: 4px; }
.empty-tip { text-align: center; color: #b0b6c6; font-size: 13px; padding: 30px 0; }

/* ---------- 详情弹窗（PC 简历详情等） ---------- */
.wc-modal-mask {
  display: none;
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(15, 20, 40, .45);
  z-index: 999;
  align-items: center; justify-content: center;
}
.wc-modal {
  width: 640px; max-width: 92vw; max-height: 82vh;
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10, 20, 50, .3);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.wc-modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #eef1f7;
}
.wc-modal-t { font-size: 16px; font-weight: 700; color: #1a1a2e; }
.wc-modal-x {
  font-size: 22px; color: #9aa0b0; cursor: pointer; line-height: 1;
  padding: 2px 8px; border-radius: 6px;
}
.wc-modal-x:hover { background: #f2f4f9; color: #333; }
.wc-modal-bd { padding: 20px 24px 26px; overflow-y: auto; }
/* 简历详情：两栏式字段格 */
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.rv-cell {
  background: #f8faff; border-radius: 10px; padding: 12px 16px;
}
.rv-cell .rv-k { font-size: 12px; color: #9aa0b0; display: block; margin-bottom: 4px; }
.rv-cell .rv-v { font-size: 15px; color: #1a1a2e; font-weight: 600; word-break: break-all; }
.rv-cell .rv-v.salary { color: #ff5a2b; }
.rv-cell .rv-v.masked { color: #1a1a2e; letter-spacing: 1px; }
.rv-sec { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 18px 0 8px; }
.rv-item {
  background: #fafbfc; border-radius: 10px; padding: 12px 16px;
  margin-bottom: 10px; font-size: 13px; color: #5a6070; line-height: 1.7;
}
.rv-item b { color: #1a1a2e; font-size: 14px; }
.rv-tip {
  font-size: 12px; color: #9aa0b0; background: #f7f9fc;
  border-radius: 8px; padding: 10px 14px; line-height: 1.7;
}

/* ===== 第5条：标签选择（企业发岗表单 / 平台标签管理） ===== */
.tag-sel-box { min-height: 30px; }
.tag-sel-box:empty::before { content: ''; }
.tag-item-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-chip {
  display: inline-block; padding: 4px 14px; border-radius: 14px;
  background: #f2f4f9; color: #5a6070; font-size: 13px; cursor: pointer;
  border: 1px solid transparent; user-select: none;
}
.tag-chip:hover { background: #e8ecf5; }
.tag-chip.on {
  background: rgba(37, 99, 255, 0.1); color: #2563ff;
  font-weight: 600; border-color: rgba(37, 99, 255, 0.35);
}
.tag-empty { font-size: 12px; color: #9aa0b0; line-height: 30px; }
.tag-chip.dis { opacity: .45; cursor: not-allowed; }

/* ===== 2026-08-29 企业后台改版：侧栏分组/图标/角标 + 状态 Tab + 操作浮层 ===== */
.side-group {
  padding: 14px 20px 5px;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.38);
  user-select: none;
}
.side-item { display: flex; align-items: center; gap: 9px; }
.side-ico { width: 15px; height: 15px; flex-shrink: 0; }
.side-badge {
  display: none;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  padding: 0 5px; margin-left: auto;
  border-radius: 9px;
  background: #ff4d4f; color: #fff;
  font-size: 11px; font-style: normal; font-weight: 600;
}
/* 高亮增强（仅企业端，平台端不受影响） */
body.ent .side-item.on {
  background: rgba(255,255,255,.22);
  color: #fff;
}

/* ===== 0.2.21（4b 主人定案 2026-09-03）：平台后台侧栏分组折叠（仅 body.plat 生效，不牵连企业端侧栏） ===== */
/* 折叠用 class（side-fold-hide）而非 inline display，与子账号权限隐藏（inline display:none）互不覆盖 */
body.plat .side-group { cursor: pointer; position: relative; padding-right: 34px; }
body.plat .side-group::after {
  content: ''; position: absolute; right: 18px; top: 50%; margin-top: -4px;
  width: 7px; height: 7px;
  border-right: 1.6px solid rgba(255,255,255,.45); border-bottom: 1.6px solid rgba(255,255,255,.45);
  transform: rotate(45deg); transition: transform .18s;
}
body.plat .side-group.folded::after { transform: rotate(-45deg); margin-top: -2px; }
body.plat .side-item.side-fold-hide { display: none; }

/* 岗位管理状态 Tab */
.tab-bar {
  display: flex; gap: 4px;
  border-bottom: 1px solid #e5e8f0;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tab-item {
  padding: 9px 16px;
  font-size: 14px; color: #5a6070;
  cursor: pointer; user-select: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
}
.tab-item i { font-style: normal; font-size: 12px; color: #9aa0b0; margin-left: 4px; }
.tab-item:hover { color: #1677ff; }
.tab-item.on { color: #1677ff; font-weight: 600; border-bottom-color: #1677ff; }
.tab-item.on i { color: #1677ff; }

/* 报名数徽章 */
.num-badge {
  display: inline-block; min-width: 26px; text-align: center;
  padding: 2px 8px; border-radius: 12px;
  background: #f2f4f9; color: #5a6070;
  font-size: 13px; font-weight: 600;
}
.num-badge.hot { background: rgba(255,122,26,.14); color: #ff7a1a; }

/* 低频操作浮层（更多▾） */
#opsMenu {
  display: none; position: fixed; z-index: 9999;
  background: #fff; border: 1px solid #e5e8f0; border-radius: 8px;
  box-shadow: 0 6px 24px rgba(15,25,45,.14);
  padding: 5px; min-width: 92px;
}
.ops-menu-item {
  display: block; padding: 8px 14px;
  font-size: 13px; color: #333; cursor: pointer; border-radius: 6px;
  white-space: nowrap;
}
.ops-menu-item:hover { background: #f2f6ff; color: #1677ff; }
.ops-menu-item.danger { color: #f53f3f; }
.ops-menu-item.danger:hover { background: #fff2f2; color: #f53f3f; }
.t-op.primary { color: #0a8f4e; font-weight: 600; }


