* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f2f3f5; color: #1f2329; font-size: 14px; line-height: 1.6; }
.app { max-width: 480px; margin: 0 auto; background: #f2f3f5; min-height: 100vh; position: relative; padding-bottom: 60px; }
.topbar { background: #185fa5; color: #fff; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; height: 48px; }
.topbar h1 { font-size: 16px; font-weight: 500; }
.topbar .user { font-size: 12px; opacity: .9; }
.tabs { display: flex; background: #fff; border-bottom: 1px solid #e5e6eb; position: sticky; top: 48px; z-index: 9; }
.tab { flex: 1; text-align: center; padding: 12px 0; font-size: 14px; color: #4e5969; }
.tab.active { color: #185fa5; font-weight: 500; border-bottom: 2px solid #185fa5; }
.list { padding: 12px; }
.card { position: relative; background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card.jobcard { border: 1px solid #185fa5; border-radius: 14px; padding: 14px 16px; }
.card h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.card .meta { font-size: 12px; color: #86909c; margin-bottom: 8px; }
.card .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card .cbody { padding-right: 44px; }
.card .crow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; font-size: 13px; line-height: 1.4; }
.card .crow:first-child { margin-top: 0; }
.card .crow.headrow { align-items: flex-start; margin-bottom: 4px; }
.card .crow .left { flex: 0 0 60%; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .crow .right { flex: 0 0 40%; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .crow.headrow .left { flex: 1 1 auto; min-width: 0; }
.card .crow.headrow .right { flex: 0 0 auto; min-width: 0; text-align: right; }
.card .mtime { font-size: 10px; color: #e53935; }
.card .divider { height: 1px; background: #185fa5; margin: 10px 0; }
/* 岗位/性别/薪酬/年龄/班次 五列 */
.card .crow.posrow { gap: 0; margin-top: 6px; align-items: center; }
.card .crow.posrow .cell { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.card .crow.posrow .cell:first-child { text-align: left; padding-left: 0; }
.card .crow.posrow .cell:last-child { text-align: right; padding-right: 0; }
.card .crow.posrow .cell.mjobs { flex: 1.5 1 0; }
.card .crow.footrow { margin-top: 10px; align-items: center; justify-content: flex-start; gap: 6px; }
.card .mname { font-size: 19px; font-weight: 600; color: #e53935; }
.card .headright { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.card .headright .miv { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 10px; color: #d97a1f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.card .headright .miv-label { flex: 0 0 auto; }
.card .headright .miv-time { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card .mjobs { font-size: 14px; font-weight: 500; color: #1d2129; }
.card .mgender { color: #185fa5; }
.card .mpay { color: #e53935; font-weight: 600; }
.card .mshift { color: #3b6d11; }
.card .crow .left.mfood { flex: 1 1 auto; min-width: 0; background: #f2f3f5; color: #4e5969; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 6px; }
.card .mregion { flex: 0 0 40px; min-width: 40px; max-width: 40px; background: #f2f3f5; color: #4e5969; font-size: 12px; border-radius: 6px; white-space: nowrap; overflow: hidden; display: inline-flex; align-items: flex-start; justify-content: center; height: 24px; box-sizing: border-box; position: relative; }
.card .mregion:empty { min-height: 24px; }
.mregion-roll { display: flex; flex-direction: column; animation: regionRoll 6s ease-in-out infinite; width: 100%; }
.mregion-item { height: 24px; line-height: 24px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; box-sizing: border-box; }
@keyframes regionRoll {
  0%, 38% { transform: translateY(0); animation-timing-function: linear; }
  40%, 88% { transform: translateY(-24px); animation-timing-function: linear; }
  90%, 100% { transform: translateY(0); }
}
/* 收藏星：黑色大星，40px 宽，距卡片右边缘 10px（整体右移 40px 后的位置） */
.card.jobcard .gfav { position: absolute; right: 10px; top: 14px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 32px; line-height: 1; color: #1f2329; cursor: pointer; z-index: 2; }
.card.jobcard .gfav.on { color: #1f2329; }
/* 二维码按钮：40px 宽，与收藏星同竖线，底部对齐灰块下边缘 */
.card .cbody { position: relative; }
.card.jobcard .gqr { position: absolute; right: -6px; bottom: 0; top: auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #1f2329; background: #fff; border: 1px solid #e5e6eb; border-radius: 8px; box-sizing: border-box; cursor: pointer; z-index: 2; }
.card.jobcard .gqr:active { background: #f2f3f5; }
.qrbox { margin: 12px 0 4px; text-align: center; min-height: 180px; display: flex; align-items: center; justify-content: center; color: #86909c; font-size: 14px; }
.qrbox img { max-width: 100%; max-height: 320px; border-radius: 8px; }
.job-del { display: inline-block; margin-left: 8px; font-size: 12px; color: #e53935; cursor: pointer; }
.job-del:hover { text-decoration: underline; }

/* 折叠卡片：用于手动录入入口 */
.card.collapse { padding: 0; }
.card.collapse .collapse-head { display: flex; align-items: center; justify-content: space-between; padding: 14px; cursor: pointer; }
.card.collapse .collapse-head .subhead { margin: 0; }
.card.collapse .collapse-arrow { color: #86909c; font-size: 14px; }
.card.collapse .collapse-body { padding: 0 14px 14px; }
.tag { background: #e6f1fb; color: #185fa5; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.tag.g { background: #eaf3de; color: #3b6d11; }
.tag.o { background: #faefdd; color: #854f0b; }
.btn { display: block; width: 100%; padding: 12px; background: #185fa5; color: #fff; border: none; border-radius: 10px; font-size: 15px; text-align: center; }
.btn.ghost { background: #fff; color: #185fa5; border: 1px solid #185fa5; }
.btn.wechat { background: #07c160; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #4e5969; margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px; border: 1px solid #e5e6eb; border-radius: 8px; font-size: 14px; font-family: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; z-index: 20; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 90%; max-width: 440px; max-height: 85vh; overflow: auto; background: #fff; border-radius: 14px; padding: 18px; z-index: 21; display: none; }
.modal.show, .modal-mask.show { display: block; }
.modal h2 { font-size: 17px; margin-bottom: 10px; }
.modal .close { float: right; font-size: 22px; color: #86909c; line-height: 1; cursor: pointer; }

/* ---- 招工详情弹窗：头部固定 + 内容双列 ---- */
#modal.detail .modal { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.detail-modal { display: flex; flex-direction: column; width: 100%; max-height: 85vh; }
.detail-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid #e5e6eb; }
.detail-head h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.detail-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 18px 18px; -webkit-overflow-scrolling: touch; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 4px; }
.detail-grid .field { margin-bottom: 0; }
.detail-grid .field.full { grid-column: 1 / -1; }
.detail-grid .field label { font-size: 12px; color: #86909c; margin-bottom: 2px; display: block; }
.detail-grid .field > div { font-size: 14px; color: #1d2129; line-height: 1.4; word-break: break-all; }

/* ===== AI 整理结果弹窗表格（电脑端宽表，横向滚动对比几十条） ===== */
#modal.clean .modal { max-width: 960px; width: 95vw; max-height: 92vh; padding: 0; overflow: hidden; }
.clean-modal { display: flex; flex-direction: column; width: 100%; max-height: 92vh; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #e5e6eb; background: #fff; flex: 0 0 auto; flex-wrap: wrap; }
.cm-title { font-size: 15px; font-weight: 600; color: #1f2329; }
.cm-title .badge { background: #185fa5; color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.cm-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-tools button { font-size: 12px; padding: 5px 10px; border: 1px solid #d0d3d9; background: #fff; border-radius: 6px; cursor: pointer; color: #4e5969; }
.cm-tools button:hover { border-color: #185fa5; color: #185fa5; }
.cm-wrap { overflow: auto; flex: 1 1 auto; background: #fff; }
.cm-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 13px; }
.cm-table th, .cm-table td { border-bottom: 1px solid #eef0f3; border-right: 1px solid #f2f3f5; padding: 7px 8px; text-align: left; white-space: nowrap; vertical-align: middle; }
.cm-table thead th { position: sticky; top: 0; background: #f3f5f8; z-index: 2; color: #4e5969; font-weight: 600; }
.cm-table thead th.sortable { cursor: pointer; user-select: none; }
.cm-table thead th.sortable:hover { color: #185fa5; }
.cm-table tbody tr:hover { background: #fafbfc; }
.cm-table tr.sel td { background: #eef6ff; }
.cm-table input:not([type]), .cm-table input[type=text] { width: 96px; padding: 4px 6px; border: 1px solid #d0d3d9; border-radius: 5px; font-size: 13px; }
.cm-table select { width: 132px; padding: 4px 6px; border: 1px solid #d0d3d9; border-radius: 5px; font-size: 13px; }
.cm-idx { color: #86909c; text-align: center; }
.cm-badge { font-size: 11px; padding: 1px 6px; border-radius: 5px; margin-top: 3px; display: inline-block; cursor: pointer; }
.cm-badge.ok { background: #e6f1fb; color: #185fa5; }
.cm-badge.warn { background: #fff4e0; color: #d97700; }
.cm-badge.err { background: #fde2e2; color: #cb2634; }
.cm-del { color: #cb2634; cursor: pointer; font-size: 13px; }
.cm-del:hover { text-decoration: underline; }
.cm-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #e5e6eb; background: #fff; flex: 0 0 auto; flex-wrap: wrap; }
.cm-foot .selcount { font-size: 13px; color: #4e5969; }
.cm-foot label { font-size: 12px; color: #86909c; display: flex; align-items: center; gap: 4px; }
.cm-foot input { width: 110px; padding: 5px 8px; border: 1px solid #d0d3d9; border-radius: 6px; font-size: 13px; }
.cm-foot .btn.wechat { margin-left: auto; }
/* 待处理草稿表格（普通页面内，非弹窗）复用表格样式 */
#draftBox .cm-wrap { border: 1px solid #e5e6eb; border-radius: 8px; max-height: 62vh; }
#draftBox .cm-foot { border: 1px solid #e5e6eb; border-top: none; border-radius: 0 0 8px 8px; padding: 10px 12px; }
#draftBox .cm-foot button { font-size: 12px; padding: 5px 10px; border: 1px solid #d0d3d9; background: #fff; border-radius: 6px; cursor: pointer; color: #4e5969; }
#draftBox .cm-foot button:hover { border-color: #185fa5; color: #185fa5; }
/* 待处理「弹窗展开」后，表格在电脑端大屏里更高更宽 */
#draftHost .cm-wrap { max-height: 74vh; border: 1px solid #e5e6eb; border-radius: 8px; }
#draftHost .cm-foot { border: 1px solid #e5e6eb; border-top: none; border-radius: 0 0 8px 8px; padding: 10px 12px; }
/* 待处理标题栏的「弹窗展开」按钮 */
.subhead button.mini { font-size: 12px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.media img, .media video { width: 100%; border-radius: 8px; margin-top: 6px; display: block; }
.empty { text-align: center; color: #86909c; padding: 40px 0; }
.publisher { background: #f7f8fa; border-radius: 8px; padding: 10px; font-size: 12px; color: #4e5969; margin-top: 10px; line-height: 1.7; }

/* 工厂管理页 */
.topbar .title { font-size: 16px; font-weight: 500; }
.topbar .back { color: #fff; font-size: 13px; text-decoration: none; opacity: .95; }
.topbar .addbtn, .topbar .navlink { background: rgba(255,255,255,.18); color: #fff; border: none; font-size: 13px; padding: 5px 10px; border-radius: 8px; text-decoration: none; }
.container { padding: 12px; }
.fcard { display: flex; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; }
.fcover { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: #e5e6eb; }
.fcover.noimg { display: flex; align-items: center; justify-content: center; color: #86909c; font-size: 12px; }
.fmeta { flex: 1; padding-left: 12px; min-width: 0; }
.fmeta h3 { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.fdesc { font-size: 12px; color: #86909c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmeta .tags { margin-top: 6px; }
.lbl { display: block; font-size: 13px; color: #4e5969; margin: 10px 0 4px; }
.inp { width: 100%; padding: 10px; border: 1px solid #e5e6eb; border-radius: 8px; font-size: 14px; font-family: inherit; }
.inp.area { min-height: 80px; resize: vertical; }
.sub { font-size: 13px; color: #1f2329; font-weight: 500; margin: 6px 0; }
.badge { display: inline-block; background: #185fa5; color: #fff; font-size: 11px; border-radius: 10px; padding: 0 7px; margin-left: 4px; }
.subhead { font-size: 14px; font-weight: 600; color: #1f2329; margin: 14px 2px 8px; }
.mini { background: #fff; color: #d4380d; border: 1px solid #ffccc7; border-radius: 8px; font-size: 12px; padding: 4px 10px; }
.card .row.head { align-items: center; justify-content: space-between; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.mthumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #000; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mthumb video { width: 100%; height: 100%; object-fit: cover; }
.mthumb .x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; text-align: center; line-height: 18px; font-size: 14px; cursor: pointer; }
.uploadbtn { display: inline-block; margin-top: 10px; background: #e6f1fb; color: #185fa5; font-size: 13px; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.primary { display: block; width: 100%; padding: 12px; background: #185fa5; color: #fff; border: none; border-radius: 10px; font-size: 15px; margin-top: 14px; }
.amap-credit { font-size: 11px; color: #9aa0a6; text-align: right; margin-top: 6px; line-height: 1.6; }
.amap-credit a { color: #9aa0a6; }
.row3 { display: flex; gap: 8px; }
.row3 > div { flex: 1; min-width: 0; }
.ghost { background: none; border: none; color: #4e5969; font-size: 13px; padding: 0; margin-bottom: 8px; cursor: pointer; }
.danger { display: block; width: 100%; padding: 10px; background: #fff; color: #d4380d; border: 1px solid #ffccc7; border-radius: 10px; font-size: 14px; margin-top: 10px; }

/* 今日招聘：布局切换（网格 / 列表） */
.laybar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0; font-size: 12px; color: #86909c; }
.lswitch { display: flex; background: #fff; border: 1px solid #e5e6eb; border-radius: 8px; overflow: hidden; }
.lopt { padding: 4px 12px; font-size: 12px; color: #4e5969; cursor: pointer; }
.lopt.active { background: #185fa5; color: #fff; }

/* 网格布局：正方形工厂窗口（白底） */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
.gcard { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); cursor: pointer; }
.gcover { width: 100%; height: 100%; object-fit: cover; display: block; }
.gph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #fff; color: #c9d9ea; font-size: 34px; font-weight: 600; }
.gmask { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px 8px; background: #fff; border-top: 1px solid #f0f1f3; color: #1f2329; }
.gname { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.gtag { background: #e6f1fb; color: #185fa5; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.gfav { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.15); color: #b8bdc7; font-size: 16px; line-height: 28px; text-align: center; cursor: pointer; z-index: 2; }

/* 发布：整理结果行卡片 + 工厂匹配 */
.draftrow { background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.drtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.drtop .ck { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.drtop .del { margin-left: auto; color: #d4380d; font-size: 12px; cursor: pointer; }
.drfac { margin: 4px 0 8px; }
.drfac label { display: block; font-size: 12px; color: #4e5969; margin-bottom: 3px; }
.drfac select { width: 100%; padding: 8px; border: 1px solid #e5e6eb; border-radius: 8px; font-size: 13px; background: #fff; }
.cands { margin-top: 5px; font-size: 12px; color: #4e5969; }
.cand { display: inline-block; background: #e6f1fb; color: #185fa5; border-radius: 6px; padding: 2px 7px; margin: 0 5px 4px 0; cursor: pointer; }
.drfields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf label { display: block; font-size: 12px; color: #86909c; margin-bottom: 2px; }
.rf input { width: 100%; padding: 7px 8px; border: 1px solid #e5e6eb; border-radius: 8px; font-size: 13px; }
.mbadge { font-size: 11px; padding: 1px 7px; border-radius: 6px; }
.mbadge.ok { background: #eaf3de; color: #3b6d11; }
.mbadge.warn { background: #faefdd; color: #854f0b; }
.mbadge.err { background: #fcebeb; color: #a32d2d; }
.drbtns, .rowbtns { display: flex; gap: 8px; margin-top: 8px; }
.mini.ok { background: #185fa5; color: #fff; border: 1px solid #185fa5; }
.mini.danger { display: inline-block; width: auto; padding: 4px 10px; background: #fff; color: #d4380d; border: 1px solid #ffa39e; border-radius: 8px; font-size: 12px; margin: 0; white-space: nowrap; }
.mini.danger:hover { background: #fff1f0; }
.admin-job-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-job-row h3 { flex: 1 1 auto; margin: 0; line-height: 1.4; }
.admin-job-row .mini { flex: 0 0 auto; }
.admin-job-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: 0 0 auto; }
.hint { font-size: 12px; color: #86909c; margin-top: 6px; line-height: 1.5; }
.gfav.on { color: #ffb800; }

/* 发布页：行业模板选择条 */
.indtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.indtab { background: #fff; color: #4e5969; border: 1px solid #e5e6eb; border-radius: 16px; padding: 5px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.indtab.active { background: #185fa5; color: #fff; border-color: #185fa5; }
/* 模板表单：字段行内的单位提示 */
.rf { position: relative; }
.rf .unit { display: block; font-size: 11px; color: #86909c; margin-top: 2px; }

/* 统一首页底部导航 */
.bottombar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #fff; border-top: 1px solid #e5e6eb; z-index: 12; }
.btab { flex: 1; text-align: center; padding: 11px 0; font-size: 12px; color: #4e5969; cursor: pointer; }
.btab.active { color: #185fa5; font-weight: 500; border-top: 2px solid #185fa5; }

/* 今日/历史 筛选条：两行三列均布 */
.filterbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #eef0f3; }
.fsel { font-size: 13px; padding: 6px 26px 6px 8px; border: 1px solid #d9dce1; border-radius: 7px; background: #fff; color: #1d2129; cursor: pointer; outline: none; width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%2386909c'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; box-sizing: border-box; }
.fsel:focus { border-color: #185fa5; }
/* 性质多选下拉面板 */
.fmulti { position: relative; }
.fsel-trigger { text-align: left; white-space: nowrap; flex: 0 0 auto; }
.fpanel { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; background: #fff; border: 1px solid #d9dce1; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 6px; min-width: 132px; max-height: 248px; overflow: auto; }
.fopt { display: block; font-size: 13px; color: #1d2129; padding: 6px 8px; white-space: nowrap; cursor: pointer; }
.fopt input { margin-right: 7px; vertical-align: middle; }
.filterbar-reset { width: 100%; text-align: right; font-size: 12px; color: #d4380d; cursor: pointer; padding: 2px 12px 0; background: #fff; }
/* 全局固定定位下拉面板：脱离 .filterbar 滚动容器，避免被裁剪 */
.filterbar-host { position: sticky; top: 48px; z-index: 8; margin-top: -12px; margin-left: -12px; margin-right: -12px; width: calc(100% + 24px); }
.filter-dropdown-mask { position: fixed; inset: 0; z-index: 200; background: transparent; display: none; }
.filter-dropdown { position: fixed; left: 0; top: 0; z-index: 201; background: #fff; border: 1px solid #d9dce1; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 6px; min-width: 132px; max-width: calc(100vw - 16px); max-height: 248px; overflow: auto; box-sizing: border-box; }

/* 地图定位（工厂编辑页选点 + 详情位置块） */
.map-pick { width: 100%; height: 220px; border-radius: 8px; background: #eef0f3; overflow: hidden; }
.locbox { margin-top: 10px; font-size: 13px; color: #4e5969; line-height: 1.8; }
.locbox .mini { margin-left: 4px; text-decoration: none; display: inline-block; }
.gtag.dist { background: #e8f3ff; color: #185fa5; }
.mini { font-size: 12px; padding: 5px 10px; border-radius: 6px; border: 1px solid #d9dce1; background: #fff; color: #185fa5; cursor: pointer; text-decoration: none; }
a.mini { color: #185fa5; }

/* ===== 自定义确认弹窗（替代原生 confirm，按钮固定「取消 / 确定」） ===== */
.cf-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; display: none; }
.cf-mask.show { display: block; }
.cf-dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 80%; max-width: 320px; background: #fff; border-radius: 12px; padding: 18px; z-index: 31; box-sizing: border-box; }
.cf-text { font-size: 14px; color: #1d2129; line-height: 1.5; margin-bottom: 16px; }
.cf-btns { display: flex; gap: 10px; }
.cf-btn { flex: 1; padding: 10px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; }
.cf-btn.cancel { background: #f2f3f5; color: #4e5969; }
.cf-btn.ok { background: #185fa5; color: #fff; }
.cf-btn:active { opacity: .85; }

/* ===== 客服对话框（求职者二维码入口 + 管理者回复共用） ===== */
#modal.chat .modal { padding: 0; overflow: hidden; max-height: 86vh; }
.chat-modal { display: flex; flex-direction: column; height: 76vh; max-height: 86vh; box-sizing: border-box; }
.chat-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #eef0f3; }
.chat-head h2 { margin: 0; font-size: 16px; color: #1d2129; }
.chat-head-actions { display: flex; align-items: center; gap: 8px; }
.chat-head .close { font-size: 22px; line-height: 1; color: #86909c; cursor: pointer; padding: 0 4px; flex: 0 0 auto; }
.chat-head .close:active { color: #1d2129; }
.chat-info-btn { background: #eef3fa; color: #185fa5; border: 1px solid #cfe0f3; }
.chat-idform { display: none; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #eef0f3; background: #f7f8fa; }
.chat-idform input { flex: 1 1 auto; min-width: 0; padding: 7px 9px; border: 1px solid #d9dce1; border-radius: 8px; font-size: 13px; box-sizing: border-box; }
.chat-idhint { font-size: 12px; color: #ff7d00; padding: 6px 12px 0; }
.chat-msgs { flex: 1 1 auto; overflow-y: auto; padding: 12px; background: #f7f8fa; display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; flex-direction: column; max-width: 78%; }
.chat-row.mine { align-self: flex-end; align-items: flex-end; }
.chat-row.other { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 8px 11px; border-radius: 10px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.chat-row.mine .chat-bubble { background: #185fa5; color: #fff; border-top-right-radius: 2px; }
.chat-row.other .chat-bubble { background: #fff; color: #1d2129; border-top-left-radius: 2px; }
.chat-text { white-space: pre-wrap; }
.chat-imgs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chat-imgs img { width: 88px; height: 88px; object-fit: cover; border-radius: 6px; }
.chat-time { font-size: 10px; color: #a9aeb8; margin-top: 2px; }
.chat-imgprev { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.chat-prev { position: relative; }
.chat-prev img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.chat-prev-x { position: absolute; right: -4px; top: -4px; width: 16px; height: 16px; line-height: 16px; text-align: center; background: #ff4d4f; color: #fff; border-radius: 50%; font-size: 11px; cursor: pointer; }
.chat-inputrow { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; border-top: 1px solid #eef0f3; background: #fff; }
.chat-inputrow textarea { flex: 1 1 auto; resize: none; height: 40px; max-height: 80px; padding: 8px 10px; border: 1px solid #d9dce1; border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.chat-imgbtn { flex: 0 0 auto; }
.chat-send { flex: 0 0 auto; background: #185fa5; color: #fff; border: 1px solid #185fa5; }
/* 管理端左右布局：左侧对话 + 右侧工厂会话列表 */
.chat-modal.admin .chat-main { display: flex; flex: 1 1 auto; min-height: 0; }
.chat-convs { flex: 0 0 94px; border-right: 1px solid #eef0f3; background: #f7f8fa; overflow-y: auto; padding: 6px 0; }
.chat-conv-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.conv-item { padding: 9px 8px; border-bottom: 1px solid #eef0f3; cursor: pointer; }
.conv-item.active { background: #e8f0fb; }
.conv-name { font-size: 13px; color: #1d2129; font-weight: 600; line-height: 1.3; }
.conv-last { font-size: 11px; color: #86909c; margin-top: 3px; line-height: 1.3; max-height: 2.8em; overflow: hidden; }
.conv-time { font-size: 10px; color: #a9aeb8; margin-top: 2px; }
.conv-empty { color: #c3c7cf; }
/* 客户服务按钮：正方形，2×2 排列，字号 12px */
.card.jobcard .gqr.dialog-btn {
  position: absolute; right: -6px; bottom: 0; top: auto;
  width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1.2;
  color: #185fa5; background: #eef3fa;
  border: 1px solid #cfe0f3; border-radius: 8px;
  padding: 2px; box-sizing: border-box;
  cursor: pointer; user-select: none; z-index: 2;
  text-align: center;
}
.card.jobcard .gqr.dialog-btn:active { opacity: .85; }
/* 新消息提醒：更醒目的绿色 */
.gqr.dialog-btn.has-new, .conv-item.has-new { background: #d4f7e0; color: #00b578; border-color: #00b578; }
.conv-item.has-new .conv-name { color: #00b578; }
/* 今日招聘整张卡片：有未读回复时整体绿色块 */
.card.jobcard.has-new { background: #eafaf0; box-shadow: inset 0 0 0 2px #00b578; }
/* 管理端用户列表：未读绿色徽标 + 卡片绿框 */
.unread-badge { display: none; margin-left: 8px; padding: 1px 8px; font-size: 12px; line-height: 1.6; color: #fff; background: #00b578; border-radius: 10px; vertical-align: middle; }
.unread-badge.on { display: inline-block; }
.user-card.has-new { background: #eafaf0; box-shadow: inset 0 0 0 2px #00b578; }

