:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-soft: #e8f0ff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #eef1f6;
  --badge: #e0ecff;
  --badge-text: #1d4ed8;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(31, 41, 55, 0.06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px; line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }

/* 顶部 */
/* v1.8.1：导航按钮多了（首页新增「孕妈查重」入口），原来的 20px 上内边距会让按钮压住标题，
 * 这里把标题整体下移，保证 2～4 个按钮时都不遮挡。 */
/* v1.9.0：登录后导航有 5 个按钮（孕妈查重 / 行情 / 后台 / 我的信息 / 退出），手机上会折成两行，
 * 这里把标题整体下移更多，保证两行按钮也不遮住标题。 */
.topbar { position: relative; background: linear-gradient(135deg, #2563eb, #1e9be6); color: #fff; padding: 58px 18px 26px; text-align: center; }
.topbar__title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: 1px; }
.topbar__sub { margin: 6px 0 0; font-size: 13px; opacity: .9; }
.nav { position: absolute; top: 10px; right: 12px; left: 12px; max-width: none; margin: 0; padding: 0; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; z-index: 5; }
/* 屏幕特别窄（≤360px）时导航可能折成两行，再多留一点空间 */
@media (max-width: 360px) { .topbar { padding-top: 82px; } }
/* 小屏把导航按钮收紧一点，避免 3～4 个入口时被右边挤出屏幕 */
@media (max-width: 420px) {
  .nav { gap: 6px; }
  .nav a, .nav button { font-size: 12px; padding: 4px 9px; }
}
.nav a, .nav button { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.15); color: #fff; cursor: pointer; backdrop-filter: blur(2px); }
.nav a:hover { background: rgba(255,255,255,.28); }

.container { max-width: 720px; margin: 0 auto; padding: 0 14px; }
.container--wide { max-width: 960px; }

/* 搜索 */
.search { margin: -18px auto 8px; position: relative; z-index: 2; }
.search__box { display: flex; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 14px; }
.search__icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search__box input { flex: 1; border: none; outline: none; padding: 15px 10px; font-size: 16px; background: transparent; color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 2px 0; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* v1.7.7 收货单价多选：一组可点选的按钮（选中高亮），结果写回下面的文本框 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips .chip { font-size: 14px; padding: 7px 14px; }
/* v1.7.7 公告栏（后台「站点设置」维护） */
.notice { border-left: 4px solid #f0b429; background: #fffdf5; }
.notice__hd { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 4px; }
.notice__icon { font-size: 15px; flex: none; }
.notice__text { font-size: 13.5px; color: var(--text); word-break: break-word; line-height: 1.7; }
/* v1.8.2 首页「仅显示置顶信息」说明条（蓝色，区别于黄色公告） */
.onlytop-tip { border-left: 4px solid var(--primary); background: #f5f9ff; }
.onlytop-tip .notice__text { color: #334155; }
.onlytop-tip b { color: var(--primary); }
/* v1.8.2 首页弹窗公告 */
.pop-mask { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .45); padding: 22px; }
.pop-mask.is-open { display: flex; animation: popFade .18s ease; }
@keyframes popFade { from { opacity: 0 } to { opacity: 1 } }
.pop-card { width: 100%; max-width: 340px; background: #fff; border-radius: 16px; padding: 20px 18px 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .25); animation: popUp .22s ease; }
@keyframes popUp { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }
.pop-card__hd { display: flex; align-items: center; gap: 7px; font-size: 16px; margin-bottom: 10px; color: #0f172a; }
.pop-card__bd { font-size: 14px; line-height: 1.8; color: #334155; word-break: break-word;
  max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pop-card .btn { margin-top: 16px; width: 100%; }
.region-sel { flex: 1 1 28%; min-width: 92px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; color: var(--text); outline: none; }
.region-sel:focus { border-color: var(--primary); }

.status { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0; }
.results { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-width: 0; flex-wrap: wrap; }
.card__title { font-size: 17px; font-weight: 700; word-break: break-word; flex: 1 1 auto; min-width: 0; }
/* v1.9.43：标题链接化（指向详情页），保留标题样式、去掉下划线 */
.card__title-link { color: inherit; text-decoration: none; display: block; }
.card__title-link:active { opacity: .7; }
.card__more { display: block; margin-top: 10px; text-align: right; font-size: 14px; font-weight: 600; color: #2b7de9; text-decoration: none; }
.card__badge { flex: 0 1 auto; min-width: 0; background: var(--badge); color: var(--badge-text); font-size: 12px; padding: 3px 10px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__tags { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; margin-left: auto; }
/* v1.9.22：标题为空（名字被判成手机号整条置空）的卡片，置顶徽标也要贴右边，
 * 以前会孤零零停在卡片左上角，和上面那张卡对不齐。 */
.card__pin { flex: none; background: #fff3b0; color: #92670b; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid #f5df8a; white-space: nowrap; }
.card--pinned { border-left: 4px solid #f0b429; }
.card__row { display: flex; gap: 8px; padding: 4px 0; font-size: 14px; border-top: 1px dashed var(--line); min-width: 0; }
.card__row:first-of-type { border-top: none; }
/* v1.7.6：字段名最长 5 个字（如"你收货范围"），72px 会折成两行，改成不换行 + 最小宽度 */
.card__key { color: var(--muted); flex: none; min-width: 76px; white-space: nowrap; }
.card__val { flex: 1 1 auto; min-width: 0; word-break: break-word; }
/* v1.6.5 多区域 / 多省份：一个区域一个标签；v1.6.8 同一个市的区县合并成一个框 */
.card__row--tags { align-items: flex-start; }
.rtags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.rtag { display: inline-block; max-width: 100%; background: var(--primary-soft); color: var(--badge-text); font-size: 12.5px; line-height: 1.35; padding: 4px 10px; border-radius: 8px; border: 1px solid #d5e3ff; word-break: break-word; overflow-wrap: anywhere; }
.rtag mark { background: #fff3b0; }
.rtag--more { background: var(--card); color: var(--muted); border: 1px dashed var(--line); font: inherit; font-size: 12.5px; cursor: pointer; }
mark { background: #fff3b0; color: inherit; padding: 0 1px; border-radius: 2px; }

/* v1.7.5 省 / 市 / 区县 三列联动选择器（我的信息 编辑页） */
.rg { max-width: 100%; }
.pk { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.pk__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
/* 省名最短、区县名最长，按可用宽度分配，减少省略号 */
.pk__col:nth-child(1) { flex: 0.8 1 0; }
.pk__col:nth-child(3) { flex: 1.35 1 0; }
.pk__col + .pk__col { border-left: 1px solid var(--line); }
.pk__hd { font-size: 12px; color: var(--muted); text-align: center; padding: 7px 4px; background: #f7f9fc; border-bottom: 1px solid var(--line); flex: none; }
.pk__list { overflow-y: auto; max-height: 264px; -webkit-overflow-scrolling: touch; }
.pk__i { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 9px 7px 9px 6px; font-size: 13.5px; color: var(--text); cursor: pointer; border-left: 3px solid transparent; }
.pk__i > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk__i:hover { background: #f5f8ff; }
.pk__i.cur { border-left-color: #f5c518; background: #fffdf2; font-weight: 600; }
.pk__i.on { color: var(--primary); font-weight: 600; }
.pk__i.on > span { color: var(--primary); }
.pk__i i { font-style: normal; color: var(--primary); font-size: 12px; flex: none; }
.pk__empty { padding: 14px 8px; font-size: 12px; color: var(--muted); text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* v1.6 联系电话图标（不明文，点击弹操作条） */
.card__val-muted { color: var(--muted); }
/* v1.7.9：联系按钮改成和卡片其它标签同风格的「胶囊按钮」（原来是绿色实心圆图标，
 * 形状 / 颜色都和旁边的蓝色区域标签打架，也不说明它是干嘛的）。 */
.tel-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border: 1px solid #b9e6cd; border-radius: 8px; background: #eafaf0; color: #15803d;
  font: inherit; font-size: 12.5px; line-height: 1.35; cursor: pointer; vertical-align: middle;
  transition: background .12s ease, border-color .12s ease; }
.tel-btn:hover { background: #dcf5e7; border-color: #93dcb3; }
.tel-btn:active { background: #cdefdc; }
.tel-btn svg { width: 13px; height: 13px; flex: none; }
.tel-btn span { white-space: nowrap; }
.tel-btn--copy { border-color: #d5e3ff; background: var(--primary-soft); color: var(--badge-text); }
.tel-btn--copy:hover { background: #dbe8ff; border-color: #bcd2fb; }
.tel-btn--copy:active { background: #c9dcff; }
/* v1.9.104：置顶信息直接展示完整号码，和旁边的拨号按钮并排 */
.tel-plain { display: inline-block; margin-right: 6px; color: #15803d; font-weight: 600;
  font-variant-numeric: tabular-nums; word-break: break-all; vertical-align: middle; }

/* v1.8.0：微信分享缩略图用的 logo。必须留在 DOM 里（微信抓页面里的图片），
 * 但移出可视区，不影响排版 —— 不能用 display:none，部分爬虫会直接忽略。 */
/* v1.9.22：以前挪到 left:-9999px，部分微信版本会当成「不可见图片」跳过，分享卡片就没图。
 * 改成留在视口内、透明 1%、压在最底层 —— 用户看不见，抓图却一定抓得到。 */
.wx-logo { position: fixed; left: 0; top: 0; width: 300px; height: 300px; opacity: .01; z-index: -1; pointer-events: none; }

/* v1.6 底部操作条（拨打 / 复制） */
.sheet-mask { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(15,23,42,.45); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.sheet-mask.is-open { opacity: 1; visibility: visible; }
.sheet { width: 100%; max-width: 480px; margin: 0 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-radius: 16px; padding: 18px 16px 14px; box-shadow: 0 -6px 30px rgba(15,23,42,.18); transform: translateY(24px); transition: transform .18s ease; }
.sheet-mask.is-open .sheet { transform: none; }
.sheet__title { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.sheet__num { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 1px; color: var(--text); margin-bottom: 14px; word-break: break-all; }
.sheet__btn { display: block; width: 100%; padding: 12px; margin-top: 8px; border: none; border-radius: 10px; font-size: 15px; text-align: center; cursor: pointer; text-decoration: none; }
.sheet__btn--call { background: var(--ok); color: #fff; }
.sheet__btn--call:hover { background: #128a3e; }
.sheet__btn--copy { background: var(--primary); color: #fff; }
.sheet__btn--copy:hover { background: #1d4ed8; }
.sheet__btn--cancel { background: #f1f3f8; color: var(--muted); }

/* v1.6 轻提示 */
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 120; transform: translate(-50%, 12px); background: rgba(17,24,39,.88); color: #fff; font-size: 14px; padding: 9px 16px; border-radius: 999px; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; pointer-events: none; max-width: 80vw; text-align: center; }
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* v1.6 分页加载更多 */
.loadmore { text-align: center; padding: 14px 0 22px; }

/* v1.9.111：首页列表翻页（一页 15 条，上一页 / 下一页） */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px 20px; }
.pager__info { color: var(--muted); font-size: 13px; }
.pager .btn { width: auto; min-width: 84px; }
.pager .btn:disabled { opacity: .45; cursor: default; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 6px 14px 28px; }

/* v1.9.109：底部备案信息（按域名显示，ICP / 公安备案号自动带官方链接） */
.filing-line { margin: 2px 0; word-break: break-all; }
.filing-line a { color: inherit; text-decoration: none; }
.filing-line a:hover { text-decoration: underline; }

/* 表单 / 通用 */
.form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; max-width: 420px; margin: 18px auto; }
.form h2 { margin: 0 0 14px; font-size: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.btn { display: inline-block; width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-size: 15px; cursor: pointer; }
.btn--ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn--wx { background: #07c160; text-decoration: none; text-align: center; }
.btn--wx:hover { background: #06ad56; }
.btn--sm { width: auto; padding: 6px 12px; font-size: 13px; }
.btn--danger { background: var(--danger); }
.msg { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.msg--ok { background: #e7f7ec; color: var(--ok); }
.msg--err { background: #fdeaea; color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); }

/* v1.9.43：在线升级 - 版本列表 / 确认窗口 */
.up-verlist { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 4px; }
.up-ver { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.up-ver:last-child { border-bottom: 0; }
.up-ver b { font-size: 15px; }
.up-tag { display: inline-block; margin-left: 8px; font-size: 12px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.up-tag--cur { background: #e8f3ff; color: #2b7de9; }
.up-tag--pending { background: #fff3b0; color: #92670b; }
.up-tag--prev { background: #f0f0f0; color: #888; }
.up-muted { font-size: 13px; color: var(--muted); }
.up-confirm { margin: 14px 0 4px; padding: 14px; border: 1px solid #f5df8a; background: #fffdf2; border-radius: 12px; text-align: center; }
.up-confirm p { margin: 0 0 10px; font-size: 14px; }
.up-confirm #upCountdown { font-weight: 700; color: #c8881a; }

/* v1.9.46：自动升级（免手动上传）面板 */
.gw-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 16px;
  padding: 10px 12px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; }
.gw-state .up-tag { margin-left: 0; }
.gw-code { display: block; width: 100%; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px; line-height: 1.55; background: #f6f8fb; color: #243b53;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; }
.gw-log { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gw-log__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.gw-log__row:last-child { border-bottom: 0; }
.gw-log__t { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gw-log__e { padding: 1px 7px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.gw-log__e--ok { background: #e8f7ee; color: #15803d; }
.gw-log__e--fail { background: #fdeaea; color: #dc2626; }
.gw-log__m { flex: 1 1 220px; min-width: 0; word-break: break-word; }
@media (max-width: 640px) {
  .gw-log__m { flex-basis: 100%; }
  .gw-code { font-size: 12px; }
}

/* 后台 */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 14px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tabs button { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.tabs button.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
/* 表格在窄屏（≤400px）会挤压并撑破页面：包一层横向滚动容器，页面本身不横向溢出 */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap > table.tbl { min-width: 300px; table-layout: fixed; }
.tbl-wrap > table.tbl th:first-child { width: 38%; }
.tbl-wrap > table.tbl th, .tbl-wrap > table.tbl td { word-break: break-word; overflow-wrap: anywhere; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
table.tbl th { background: #f8fafc; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tag--pending { background: #fff3b0; color: #92670b; }
.tag--approved { background: #e7f7ec; color: var(--ok); }
.tag--rejected { background: #fdeaea; color: var(--danger); }
.tag--admin { background: var(--badge); color: var(--badge-text); }
/* v1.9.24：后台联系记录 —— IP 后面的归属地、设备品牌型号 */
.ip-loc { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: 11px; background: #f1f5f9; color: #94a3b8; white-space: nowrap; }
.ip-loc.is-on { background: #eef2ff; color: #4338ca; }
.dev-name { color: var(--text); font-size: 12px; line-height: 1.35; display: inline-block; max-width: 100%; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.scope-sel { font-size: 13px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); }
.muted { color: var(--muted); }
.center-narrow { max-width: 460px; margin: 40px auto; text-align: center; }

/* ==================== v1.9.0 收尿同行工具 ==================== */
/* 注册时的身份单选 */
.role-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.role-opt { position: relative; flex: 1 1 0; min-width: 86px; text-align: center; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 10px; padding: 10px 6px; font-size: 13.5px; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.role-opt.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 500; }

/* 省 / 市 / 区县 三列（孕妈登记） */
.pca-row { display: flex; gap: 8px; }
.pca-row select { flex: 1 1 0; min-width: 0; padding: 9px 6px; font-size: 13.5px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; color: var(--text); }

/* 我的孕妈登记 */
.mom-list { display: flex; flex-direction: column; gap: 10px; }
.mom-item { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fbfcfe; }
.mom-item__hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.mom-item__meta { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.mom-item__note { font-size: 12.5px; color: #475569; margin-top: 4px; background: #f1f5f9; border-radius: 6px; padding: 5px 8px; word-break: break-word; }
.mom-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; flex: none; }
.mom-badge.live { background: #dcfce7; color: #15803d; }
.mom-badge.expired { background: #fee2e2; color: #b91c1c; }
.mom-badge.released { background: #e5e7eb; color: #4b5563; }

/* 行情概览 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; }
.stat__n { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.3; }
.stat__k { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 359px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* 行情各市列表 */
.mk-list { display: flex; flex-direction: column; gap: 10px; }
.mk-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.mk-item__hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.mk-item__price { margin-left: auto; font-size: 13px; color: var(--primary); font-weight: 500; }
.mk-item__bar { font-size: 12px; margin-top: 3px; }

/* v1.9.0 工具入口卡片 */
.tool-links { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-link { flex: 1 1 140px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; background: #fbfcfe; }
.tool-link b { display: block; font-size: 14px; color: var(--primary); }
.tool-link span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* v1.9.1 行情图表：环形占比图 + 中国地图 */
.pie-box { min-height: 150px; }
.chart-loading { padding: 42px 0; text-align: center; color: var(--muted); font-size: 13px; }
.cn-map { min-height: 180px; background: #f7f9fc; border-radius: 10px; padding: 2px; overflow: hidden; }
.cn-map svg { display: block; width: 100%; height: auto; }
.cn-city { cursor: pointer; }
.cn-city:hover { opacity: .76; }
.map-legend { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.map-legend__item { display: inline-flex; align-items: center; gap: 4px; }
.map-legend__item i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; border: 1px solid rgba(15, 23, 42, .08); }
.map-pick { margin-top: 8px; font-size: 13px; color: var(--text); background: #f1f5f9; border-radius: 8px; padding: 8px 11px; }

/* v1.9.3 顶部导航：身份切换按钮（白底蓝字，比其它按钮醒目） */
.nav-form { display: inline-flex; margin: 0; }
.nav .nav-switch { background: rgba(255, 255, 255, 0.94); color: #1d4ed8; border-color: #ffffff; font-weight: 500; }
.nav .nav-switch:hover { background: #ffffff; }

/* v1.9.4 地图点击详情（就地展开，不是弹窗） */
.map-pick--empty { color: #94a3b8; }
.mk-pick__hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.mk-pick__hd b { font-size: 15px; }
.mk-pick__n { font-size: 12.5px; color: var(--primary); }
.mk-pick__row { font-size: 13px; line-height: 1.7; }
.mk-pick__prices { font-size: 11.5px; color: var(--muted); margin-top: 5px; word-break: break-all; }

/* v1.9.5 行情页两个入口（并排） */
.entry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.entry-card { display: block; background: var(--card); border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.entry-card:nth-child(2) { border-left-color: #dc2626; }
.entry-card b { display: block; font-size: 14.5px; color: var(--text); }
.entry-card span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.entry-card i { display: block; font-size: 11.5px; color: var(--primary); font-style: normal; margin-top: 6px; }
.entry-card:nth-child(2) i { color: #dc2626; }

/* v1.9.5 两个饼图：宽屏并排，窄屏上下 */
.pie-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .pie-row { grid-template-columns: 1fr 1fr; } }

/* v1.9.5 收购帖 */
.post-list { display: flex; flex-direction: column; gap: 10px; }
.post-item { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fbfcfe; }
.post-item__hd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.post-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); flex: none; }
.post-badge--boss { background: #fee2e2; color: #b91c1c; }
.post-item__price { font-size: 15px; color: #b91c1c; }
/* v1.9.17：收购帖里的「名称」（微信昵称） */
.post-item__name { font-size: 13.5px; color: #0f172a; }
.post-item__name::before { content: "名称："; font-weight: 400; color: var(--muted); font-size: 12px; }
.post-item__body { font-size: 13.5px; margin-top: 6px; line-height: 1.7; color: #334155; word-break: break-word; }
.post-item__ft { margin-top: 7px; font-size: 13px; }
.post-item__ft a { display: inline-block; padding: 4px 10px; border-radius: 8px; background: #eff6ff; }

/* v1.9.6 行情页两个卡片：切换下面的内容（不是跳转） */
button.entry-card { border: 0; border-left: 4px solid var(--primary); font: inherit; text-align: left; cursor: pointer; width: 100%; }
button.entry-card:nth-child(2) { border-left-color: #dc2626; }
.entry-card.is-active { box-shadow: 0 0 0 2px rgba(37, 99, 235, .45), var(--shadow); }
.entry-card:nth-child(2).is-active { box-shadow: 0 0 0 2px rgba(220, 38, 38, .45), var(--shadow); }
.entry-pane[hidden] { display: none; }

/* v1.9.8 各省信息量：点击展开各市价位 */
.prov-row { cursor: pointer; }
.prov-row.is-open td { background: #f5f9fe; }
.prov-more { color: var(--primary); font-size: 12.5px; }
.prov-detail td { background: #fbfcfe; padding: 8px 10px; }
.pc-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #e6edf5; font-size: 13px; }
.pc-row:last-of-type { border-bottom: 0; }
.pc-name { flex: 1; color: #334155; }
.pc-n { color: var(--muted); font-size: 12px; width: 50px; text-align: right; flex: none; }
.pc-price { color: #b91c1c; font-size: 12.5px; width: 112px; text-align: right; flex: none; }
.pc-empty { color: var(--muted); font-size: 12.5px; padding: 4px 0; }
.pc-more { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--primary); }

/* v1.9.9 展开内容改为卡片（在表格单元格里） */
.prov-detail td { padding: 10px 10px 12px; }
.prov-detail .mk-list { margin: 0; gap: 8px; }
.prov-detail .mk-item { background: #fff; }
.prov-detail .mk-item__hd { font-size: 13.5px; }
.prov-detail .mk-item__price { font-size: 12.5px; }
.prov-detail .chip { font-size: 12px; padding: 3px 9px; }

/* v1.9.16 收购帖：效价 / 价格 / 结账方式，一行一档价（可加多行）
 * v1.9.27 加第四列「收货方式」：上门拉货 / 送货到厂 */
.post-rows { display: flex; flex-direction: column; gap: 8px; }
.post-row { display: grid; grid-template-columns: 0.95fr 1.05fr 0.9fr 0.9fr 26px; gap: 7px; align-items: center; }
.post-row--hd { font-size: 12px; color: var(--muted); margin-bottom: -2px; }
.post-row--hd span { padding-left: 3px; }
.post-row input, .post-row select {
  width: 100%; min-width: 0; padding: 10px 9px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; outline: none; background: #fff; color: inherit;
}
.post-row input:focus, .post-row select:focus { border-color: var(--primary); }
.post-row__del {
  width: 26px; height: 26px; border: 0; border-radius: 50%; background: #f1f3f6;
  color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
}
.post-row--hd .post-row__del { visibility: hidden; }
.post-tbl { display: flex; flex-direction: column; gap: 6px; }
.post-tbl__r { display: grid; grid-template-columns: 0.95fr 0.95fr 0.8fr 0.8fr; gap: 8px; align-items: center;
  font-size: 13.5px; padding: 7px 10px; background: #f6f8fb; border-radius: 8px; }
.post-tbl__r--hd { background: transparent; color: var(--muted); font-size: 11.5px; padding: 0 10px; }
.pay-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e8f1ff; color: var(--primary); font-size: 12px; }
/* v1.9.27 收货方式标签（和结账方式区分开：暖色） */
.recv-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #fff2e3; color: #b45309; font-size: 12px; }
.post-row__del[style*="hidden"] { visibility: hidden; }
@media (max-width: 380px) {
  .post-row { grid-template-columns: 1fr 1fr; grid-template-areas: "pot price" "pay pay" "recv del"; }
  .post-row > input:nth-of-type(1) { grid-area: pot; }
  .post-row > input:nth-of-type(2) { grid-area: price; }
  .post-row > select:nth-of-type(1) { grid-area: pay; }
  .post-row > select:nth-of-type(2) { grid-area: recv; }
  .post-row > .post-row__del { grid-area: del; justify-self: end; }
  .post-row--hd { display: none; }
  .post-tbl__r { grid-template-columns: 1fr 1fr; gap: 4px 8px; }
  .post-tbl__r--hd { display: none; }
}

@media (max-width: 430px) {
  .post-row { grid-template-columns: 1fr 1fr 0.88fr 0.88fr 22px; gap: 5px; }
  .post-row input, .post-row select { font-size: 12.5px; padding: 9px 6px; }
  .post-tbl__r { font-size: 12.5px; gap: 6px; padding: 7px 8px; }
  .post-tbl__r--hd { font-size: 11px; padding: 0 8px; }
}

/* v1.9.17 用户协议页 */
.agr-summary { border-left: 4px solid var(--primary); }
.agr-points { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.9; color: #334155; }
.agr { font-size: 13.5px; line-height: 1.85; color: #334155; }
.agr h2 { font-size: 15px; margin: 18px 0 6px; color: #0f172a; }
.agr h2:first-of-type { margin-top: 0; }
.agr p { margin: 0 0 8px; }
.agr ul { margin: 0 0 8px; padding-left: 20px; }
.agr li { margin: 3px 0; }
.agr b { color: #b91c1c; }
.agr-back { text-align: center; margin: 14px 0 0; }

/* v1.9.19 首页占比图（省份 / 价格）+ 图下说明 */
.pie-row[hidden] { display: none; }
.pie-row--home { margin-top: 6px; }
.pie-row--home .panel { padding: 14px 14px 10px; margin: 10px 0; }
.pie-row--home h2 { font-size: 16px; margin: 0 0 4px; }
.pie-note { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* v1.9.20 查看号码（未登录 3 个免费）+ 弹层附注 */
.tel-btn--lock { border-color: #e2e8f0; background: #f1f5f9; color: #475569; }
.tel-btn--lock:hover { background: #e8eef7; border-color: #cbd5e1; }
.tel-btn--lock:active { background: #dde5f0; }
.tel-btn.is-loading { opacity: .6; }
.sheet__note { text-align: center; font-size: 12.5px; line-height: 1.7; color: var(--muted); margin: -6px 0 12px; }

/* ================= v1.9.25 孕期管理 ================= */
.preg-calc { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) {
  .preg-calc { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .preg-calc__chart { order: 2; }
}
.preg-calc__inputs .field { margin-bottom: 10px; }
.preg-wk { display: flex; align-items: center; gap: 6px; }
.preg-wk input { width: 68px; text-align: center; }
.preg-wk span { font-size: 13px; color: var(--muted); }
.preg-tip { margin: 2px 0 0; }
.preg-calc__chart { background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; padding: 6px 4px; }
.preg-ring { min-height: 190px; }
.preg-ring svg { display: block; }

.preg-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: #f8fafc; border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.8; color: var(--text);
}
.preg-summary b { color: var(--primary); }
.preg-summary__err { color: var(--muted); font-size: 13px; }
.preg-summary__stage {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: #eef2f7; color: #475569;
}
.seg-early { background: #e7f7ec; color: #047857; }
.seg-mid   { background: #e8f0ff; color: #1d4ed8; }
.seg-late  { background: #fff1e6; color: #c2410c; }
.seg-term  { background: #f3e8ff; color: #7e22ce; }
.preg-summary__stage.seg-early { background: #e7f7ec; }
.preg-summary__stage.seg-mid { background: #e8f0ff; }
.preg-summary__stage.seg-late { background: #fff1e6; }
.preg-summary__stage.seg-term { background: #f3e8ff; }

.preg-save__row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .preg-save__row { grid-template-columns: 1fr 1fr; } }

.preg-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .preg-list { grid-template-columns: 1fr 1fr; } }
.preg-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.preg-item.is-born { opacity: .72; background: #fafafa; }
.preg-item__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.preg-item__name { font-size: 15px; color: var(--text); }
.preg-item__top .tag { margin-left: auto; }
.preg-item__wk { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.preg-item__num { font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.preg-item__unit { font-size: 13px; color: var(--text); }
.preg-item__left { margin-left: auto; font-size: 12.5px; color: #0f766e; background: #e6f7f4; padding: 2px 8px; border-radius: 999px; }
.preg-item__left.is-over { color: #b91c1c; background: #fdeaea; }
.preg-bar { height: 6px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin: 8px 0 8px; }
.preg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #059669, #2563eb 50%, #ea580c); border-radius: 999px; }
.preg-item__meta { margin: 0 0 10px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.preg-item__meta b { color: var(--text); font-weight: 600; }

/* v1.9.25「我的信息」里的孕期入口卡 */
.preg-entry__hd { display: flex; align-items: center; gap: 10px; }
.preg-entry__hd h2 { flex: 1; font-size: 17px; }
.preg-entry__hd .btn { width: auto; flex: none; }
.preg-entry__body { margin-top: 8px; }
.preg-entry__wk { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.preg-entry__wk .preg-item__num { font-size: 22px; }

/* ================= v1.9.26 首页「收尿员查询 / 老板查询」 ================= */
/* 两个入口骑在蓝底头部下沿（和搜索框原来一样上浮），一眼能看到又不抢搜索框的戏。 */
.qswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: -18px auto 10px; position: relative; z-index: 2; }
.qswitch + .search { margin-top: 0; }
/* 首页开了公告时，入口上方是公告卡而不是蓝色头部 —— 这时不能再上浮，否则会压住公告 */
.notice + .qswitch { margin-top: 10px; }
.qswitch__btn {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 11px 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  box-shadow: var(--shadow); text-align: left;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.qswitch__btn:active { transform: scale(.985); }
.qswitch__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.qswitch__btn.is-active { border-color: var(--primary); background: #f5f8ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .14), var(--shadow); }
.qswitch__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.qswitch__t { font-size: 15px; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qswitch__btn.is-active .qswitch__t { color: var(--primary); }
.qswitch__d { font-size: 11.5px; color: var(--muted); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qswitch__tail { display: flex; align-items: center; gap: 5px; flex: none; }
.qswitch__tag { font-size: 10.5px; padding: 1px 6px; border-radius: 999px;
  background: #eef2f7; color: var(--muted); white-space: nowrap; }
.qswitch__arrow { color: #c3ccd8; font-size: 18px; line-height: 1; }
.qswitch__btn.is-active .qswitch__arrow { color: var(--primary); }
/* 老板收购帖卡片：明细表贴紧卡片内边距，电话号码放按钮后面 */
.post-card .post-tbl { margin: 2px 0 8px; }
.post-card .post-tbl__r { font-size: 13px; }
.post-card__tel { margin-left: 8px; font-size: 12px; letter-spacing: .3px; }
@media (max-width: 360px) {
  .qswitch { gap: 8px; }
  .qswitch__btn { padding: 10px; }
  .qswitch__t { font-size: 14px; }
  .qswitch__d { font-size: 11px; }
}

/* ================= v1.9.28 孕妇管理（收尿员孕妈台账） ================= */
/* 顶部红色提醒条：有孕妈到/临近收货周才出现 */
.moman-alert {
  background: #fff5f5; border: 1px solid #fecaca; border-left: 4px solid var(--danger);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.moman-alert__hd { display: flex; align-items: center; gap: 8px; color: #b91c1c; font-size: 14px; }
.moman-alert__icon {
  width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff;
  font-size: 12px; line-height: 20px; text-align: center; flex: none;
}
.moman-alert__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.moman-alert__list li {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 13px; color: var(--text); background: #fff; border: 1px solid #fee2e2;
  border-radius: 9px; padding: 5px 9px;
}
.moman-alert__list li.is-due { border-color: #fca5a5; background: #fff1f1; }
.moman-alert__wk { color: #b91c1c; font-weight: 700; }
.moman-alert__txt { margin-left: auto; font-size: 12px; color: #b45309; }
.moman-alert__list li.is-due .moman-alert__txt { color: #b91c1c; font-weight: 600; }

/* 编号徽标 */
.moman-code {
  display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 12px;
  font-weight: 700; letter-spacing: .4px; background: #eef2f7; color: #475569;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* 四个数字 */
.moman-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.moman-num {
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 11px;
  padding: 8px 4px; text-align: center;
}
.moman-num b { display: block; font-size: 19px; line-height: 1.25; color: var(--text); }
.moman-num span { font-size: 11.5px; color: var(--muted); }
.moman-num.is-warn { background: #fff5f5; border-color: #fecaca; }
.moman-num.is-warn b { color: var(--danger); }
.moman-chart { margin-top: 4px; }
.moman-chart svg { display: block; }

/* 收货周设置 */
.moman-cfg { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.moman-cfg .field { margin: 0; flex: 1 1 120px; }
.moman-cfg__row { display: flex; align-items: center; gap: 6px; }
.moman-cfg__row input {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; background: #fff; color: inherit; outline: none;
}
.moman-cfg__row input:focus { border-color: var(--primary); }
.moman-cfg__row span { font-size: 13px; color: var(--muted); flex: none; }
.moman-cfg .btn { flex: none; }

/* 新增/编辑折叠面板 */
.moman-add summary {
  cursor: pointer; font-size: 16px; font-weight: 700; list-style: none;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.moman-add summary::-webkit-details-marker { display: none; }
.moman-add summary::after { content: '展开'; margin-left: auto; font-size: 12px; font-weight: 400; color: var(--primary); }
.moman-add[open] summary::after { content: '收起'; }
.moman-add__next { font-size: 12px; font-weight: 400; color: var(--muted); }
.moman-add__body { margin-top: 12px; }
.moman-form { max-width: none; margin: 12px 0 0; padding: 0; border: 0; box-shadow: none; background: transparent; }

/* 筛选小标签 */
.moman-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.moman-chip {
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
}
.moman-chip b { font-weight: 700; color: var(--muted); margin-left: 2px; }
.moman-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.moman-chip.is-on b { color: #fff; }
.moman-chip--warn { border-color: #fecaca; color: #b91c1c; background: #fff5f5; }
.moman-chip--warn.is-on { background: var(--danger); border-color: var(--danger); color: #fff; }

/* 孕妈卡片 */
.moman-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .moman-list { grid-template-columns: 1fr 1fr; } }
.moman-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.moman-item.is-near { border-color: #fcd34d; background: #fffdf5; box-shadow: 0 0 0 2px rgba(245, 158, 11, .12); }
.moman-item.is-due { border-color: #f87171; background: #fff7f7; box-shadow: 0 0 0 2px rgba(220, 38, 38, .14); }
.moman-item.is-born { opacity: .72; background: #fafafa; }
.moman-item__hd { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 4px; }
.moman-item__name { font-size: 15px; }
.moman-item__wk { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.moman-month {
  font-size: 12px; padding: 1px 7px; border-radius: 999px;
  background: #eef2f7; color: #475569;
}
.moman-item__meta { margin: 0 0 10px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.moman-item__meta b { color: var(--text); font-weight: 600; }
.moman-flag {
  margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; white-space: nowrap;
}
.moman-flag--near { background: #fff3d6; color: #b45309; border: 1px solid #fcd34d; }
.moman-flag--due { background: var(--danger); color: #fff; }
.preg-bar.is-near i { background: linear-gradient(90deg, #f59e0b, #f97316); }
.preg-bar.is-due i { background: linear-gradient(90deg, #ef4444, #b91c1c); }

/* 「我的信息」里的孕妇管理入口卡 */
.moman-entry__hd { display: flex; align-items: center; gap: 10px; }
.moman-entry__hd h2 { flex: 1; font-size: 17px; }
.moman-entry__hd .btn { width: auto; flex: none; }
.moman-entry__nums { display: flex; gap: 14px; margin: 8px 0 4px; flex-wrap: wrap; }
.moman-entry__nums b { font-size: 17px; color: var(--primary); }
.moman-entry__nums span { font-size: 12px; color: var(--muted); }
.moman-entry__warn {
  margin: 8px 0 0; font-size: 12.5px; color: #b91c1c; background: #fff5f5;
  border: 1px solid #fecaca; border-radius: 9px; padding: 6px 9px;
}
.moman-entry__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.moman-entry__pill {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: #f4f6fb; border: 1px solid var(--line); color: var(--text);
}
.moman-entry__pill.is-warn { background: #fff5f5; border-color: #fecaca; color: #b91c1c; }
@media (max-width: 360px) {
  .moman-nums { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
 * v1.9.29 整站移动端 UI 打磨（整站基本是手机访问）
 * 原则：手指能点得中（≥44px）、输入不缩放（16px）、一屏一件事、
 *       状态一眼分得清（红/橙/灰）、底部留出安全区。
 * ===================================================================== */
/* 1) 触控目标不小于 44px；去掉移动端 300ms 点击延迟 */
a, button, input, select, textarea, label { touch-action: manipulation; }
.btn { min-height: 44px; line-height: 1.3; display: inline-block; text-align: center; }
.btn--sm { min-height: 38px; }
.row-actions { gap: 8px; }
.row-actions .btn { flex: none; }
/* 2) 输入框 16px：iOS 聚焦时不会自动放大页面；顺手加高点击区 */
.field input, .field select, .field textarea { font-size: 16px; min-height: 44px; }
.field select { -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 10px) 50%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.field textarea { min-height: 76px; line-height: 1.6; }
.field label { font-size: 13px; margin-bottom: 8px; }
/* 3) 键盘可达性：保留清晰的焦点圈 */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
/* 4) 窄屏排版 */
@media (max-width: 420px) {
  .container { padding: 0 12px; }
  .panel { padding: 15px 14px; border-radius: 12px; }
  .form { padding: 16px 14px; }
  .topbar__title { font-size: 19px; }
}
/* 5) 顶栏按钮多的时候（工作台 6 个）留够高度，别压住标题 */
.topbar--wb { padding-top: 76px; }
@media (max-width: 420px) { .topbar--wb { padding-top: 84px; } }
@media (max-width: 360px) { .topbar--wb { padding-top: 96px; } }

/* ================= 收尿员工作台 ================= */
.page-work { padding-bottom: 0; }

/* 顶部五个数字 */
.wb-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.wb-nums--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-num {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 2px; text-align: center; min-width: 0;
}
.wb-num b { display: block; font-size: 18px; line-height: 1.25; color: var(--text); }
.wb-num span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.wb-num.is-warn { background: #fff8ec; border-color: #fcd34d; }
.wb-num.is-warn b { color: #b45309; }
.wb-num.is-danger { background: #fff5f5; border-color: #fecaca; }
.wb-num.is-danger b { color: var(--danger); }
@media (max-width: 360px) {
  .wb-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-num b { font-size: 17px; }
}

/* 提醒条 */
.wb-alerts { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.wb-alerts__hd { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.wb-alert {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: 10px; margin-top: 6px; font-size: 13px;
  background: #f8fafc; border: 1px solid var(--line); color: var(--text);
}
a.wb-alert { text-decoration: none; }
.wb-alert--due { background: #fff5f5; border-color: #fecaca; }
.wb-alert--near { background: #fffaf0; border-color: #fde68a; }
.wb-alert--info { background: #f4f8ff; border-color: #dbe7ff; }
.wb-alert__name { font-weight: 600; }
.wb-alert__txt { color: var(--muted); font-size: 12.5px; }
.wb-alert--due .wb-alert__txt { color: #b91c1c; }
.wb-alert--near .wb-alert__txt { color: #b45309; }

/* 分区标题 */
.wb-sec { margin: 4px 0 18px; }
.wb-sec__hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wb-sec__hd h2 { margin: 0; font-size: 16px; flex: 1; }
.wb-link { font-size: 13px; white-space: nowrap; }

/* 卡片 */
.wb-list { display: flex; flex-direction: column; gap: 10px; }
.wb-item {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: 12px; padding: 12px 13px;
}
.wb-item.is-near { border-color: #fcd34d; border-left-color: #f59e0b; background: #fffdf6; }
.wb-item.is-due { border-color: #f87171; border-left-color: var(--danger); background: #fff7f7; }
.wb-item.is-late { border-left-color: #f97316; }
.wb-item.is-born { opacity: .7; background: #fafafa; }
.wb-item__hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.wb-item__name { font-size: 15px; }
.wb-item__meta { margin: 2px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--text); }
.wb-item__meta--sub { color: var(--muted); }
.wb-item__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wb-item__acts .btn { flex: none; }
.wb-slot { margin-left: auto; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: #475569; }
.wb-flag { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.wb-flag--near { background: #fff3d6; color: #b45309; border: 1px solid #fcd34d; }
.wb-flag--due { background: var(--danger); color: #fff; }

/* 筛选小标签 */
.wb-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 14px; }
.wb-chip {
  font-size: 13px; padding: 7px 12px; border-radius: 999px; min-height: 36px;
  display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; color: var(--text);
}
.wb-chip b { font-weight: 600; color: var(--muted); margin-left: 3px; }
.wb-chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.wb-chip.is-on b { color: #fff; }

/* 底部页签（固定） */
.wb-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.wb-tab {
  flex: 1; text-align: center; padding: 8px 2px; border-radius: 10px;
  font-size: 13px; color: var(--muted); text-decoration: none; position: relative;
  min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.wb-tab.is-on { color: var(--primary); font-weight: 600; background: #f2f6ff; }
.wb-tab__n {
  min-width: 18px; height: 18px; line-height: 18px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px; padding: 0 5px; font-weight: 600;
}
.wb-tab.is-on .wb-tab__n { background: var(--danger); }

/* 表单分组 */
.wb-group {
  margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: var(--primary);
  padding-left: 9px; border-left: 3px solid var(--primary); line-height: 1.3;
}
.wb-form { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.wb-form-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 480px) { .wb-form-row { grid-template-columns: 1fr 1fr; } }
.wb-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.wb-check input { width: 20px; height: 20px; min-height: 0; flex: none; }

/* 折叠的新增表单 */
.wb-add { padding: 0; overflow: hidden; }
.wb-add > summary {
  cursor: pointer; list-style: none; padding: 15px 14px; font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; min-height: 52px;
}
.wb-add > summary::-webkit-details-marker { display: none; }
.wb-add > summary::after { content: '展开'; margin-left: auto; font-size: 13px; font-weight: 400; color: var(--primary); }
.wb-add[open] > summary::after { content: '收起'; }
.wb-add[open] > summary { border-bottom: 1px solid var(--line); }
.wb-add__body { padding: 14px; }

/* 收货周设置 */
.wb-cfg { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.wb-cfg .field { margin: 0; flex: 1 1 120px; }
.wb-in-row { display: flex; align-items: center; gap: 6px; }
.wb-in-row input {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 16px; background: #fff; color: inherit; outline: none;
}
.wb-in-row input:focus { border-color: var(--primary); }
.wb-in-row span { font-size: 13px; color: var(--muted); flex: none; }
.wb-cfg .btn { flex: none; }

/* 介绍费明细 */
.wb-intro-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wb-intro-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px;
}
.wb-intro-row__name { font-weight: 600; color: var(--text); }
.wb-intro-row__txt { color: var(--muted); }
.wb-done { color: var(--ok); }
.wb-due { color: #b45309; }

/* ================= v1.9.30 工作台「更多」功能卡 ================= */
.wb-more { display: flex; flex-direction: column; gap: 10px; }
.wb-more__card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: 12px; padding: 13px 14px; color: var(--text);
}
.wb-more__card:active { background: #f7f9fc; }
.wb-more__card b { font-size: 15px; color: var(--text); }
.wb-more__card span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.wb-more__card em {
  font-style: normal; font-size: 12px; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 2px 9px; align-self: flex-start; margin-top: 2px;
}

/* =====================================================================
 * v1.9.31 地图线路规划（Leaflet + 选点浮层 + 线路页）
 * ===================================================================== */
/* 地图容器 */
.wb-map { width: 100%; height: 300px; border-radius: 12px; overflow: hidden; background: #eef2f7; }
@media (min-width: 720px) { .wb-map { height: 360px; } }
.wb-map__err {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 500;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 10px; font-size: 12px; color: var(--muted); line-height: 1.5;
}
/* 序号图钉（外层斜 45° 出水滴形，内层转回来保持数字正着） */
.wb-map__pin { background: none; border: none; }
.wb-map__pin i {
  display: block; width: 28px; height: 28px; font-style: normal;
  background: var(--primary); border: 2px solid #fff;
  border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .35);
}
.wb-map__pin i b {
  display: block; width: 100%; height: 100%; line-height: 24px; text-align: center;
  transform: rotate(45deg); color: #fff; font-size: 13px; font-weight: 700;
}
.wb-map__addr { color: var(--muted); font-size: 12px; }
.wb-map__nav { color: var(--primary); font-size: 12.5px; }
.leaflet-popup-content { font-size: 13px; line-height: 1.7; }
.leaflet-container { font-family: inherit; }

/* 线路页：线路 chips */
.wb-routes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wb-route-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); text-decoration: none; min-height: 38px;
}
.wb-route-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.wb-route-chip b { font-weight: 600; color: var(--muted); }
.wb-route-chip.is-on { border-color: var(--primary); background: #f2f6ff; color: var(--primary); font-weight: 600; }

/* 线路信息条 */
.wb-route-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; font-size: 12.5px;
}
.wb-route-bar b { color: var(--text); }
.wb-route-bar .muted { color: var(--muted); }
.wb-route-bar__km { margin-left: auto; color: var(--primary); font-weight: 600; white-space: nowrap; }

/* 自动规划卡片 */
.wb-plan {
  background: linear-gradient(135deg, #f2f6ff, #f7fbff); border: 1px solid #dbe7ff;
  border-radius: 12px; padding: 12px 13px; margin-bottom: 14px;
}
.wb-plan__hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.wb-plan__hd h3 { margin: 0; font-size: 15px; }
.wb-plan__hd span { font-size: 12px; color: var(--muted); }
.wb-plan__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wb-plan__row .btn { flex: none; }
.wb-plan__from { font-size: 12.5px; color: var(--text); }
.wb-plan__hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 线路成员卡片 */
.wb-stop { position: relative; }
.wb-stop__no {
  position: absolute; left: -1px; top: -1px; bottom: -1px; width: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 11px 0 0 11px;
}
.wb-stop__in { padding-left: 30px; }
.wb-stop__no.is-late { background: #f97316; }
.wb-stop.is-noanchor { border-left-color: #f59e0b; background: #fffdf5; }
.wb-stop__warn { font-size: 12px; color: #b45309; }

/* 锚点状态 */
.wb-anchor { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.wb-anchor-ok { font-size: 12px; color: var(--ok); }
.wb-anchor-no { font-size: 12px; color: #b45309; }
.wb-anchor-del {
  border: 0; background: none; padding: 0; font-size: 12px; color: var(--danger);
  text-decoration: underline; cursor: pointer; min-height: 0;
}

/* 选点浮层 */
.wb-picker-mask {
  position: fixed; inset: 0; z-index: 1200; background: rgba(15, 23, 42, .55);
  display: flex; align-items: stretch; justify-content: center; padding: 0;
}
.wb-picker {
  display: flex; flex-direction: column; width: 100%; max-width: 560px; background: var(--card);
  margin-top: auto; margin-bottom: auto; max-height: 100%;
}
@media (min-width: 560px) { .wb-picker { margin: 24px; border-radius: 14px; overflow: hidden; } }
.wb-picker__hd {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  border-bottom: 1px solid var(--line); font-size: 15px;
  padding-top: calc(13px + env(safe-area-inset-top));
}
.wb-picker__hd b { flex: 1; }
.wb-picker__x {
  border: 0; background: #f1f3f6; color: var(--muted); border-radius: 8px;
  padding: 7px 12px; font-size: 13px; cursor: pointer; min-height: 36px;
}
.wb-picker__map { flex: 1; min-height: 320px; }
.wb-picker__ft {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
  padding-bottom: calc(11px + env(safe-area-inset-bottom));
}
.wb-picker__tip { font-size: 12px; color: var(--muted); }

/* 孕妇卡片上的线路徽标 */
.wb-route-tag {
  font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
  background: #eef2f7; color: #475569; white-space: nowrap;
}
.wb-route-tag--no { background: #fff7ed; color: #b45309; }

/* 我的信息入口卡里的线路一行 */
.moman-entry__route { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* =====================================================================
 * v1.9.43 后台管理 · 手机端访问优化
 * 痛点：记录管理是 7 列标准表格，手机上被硬塞窄屏，字小、列挤、按钮难点。
 * 解决：≤640px 时把每行改造成卡片；顶部 12 个 tab 改单行横向滚动。
 * ===================================================================== */
@media (max-width: 640px) {
  /* 1) 顶部标签栏：单行横向滚动，别堆成好几行占满首屏 */
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; gap: 6px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; white-space: nowrap; }

  /* 2) 记录列表：每行变一张卡片（带字段标签） */
  table.tbl--records, table.tbl--records tbody { display: block; width: 100%; }
  /* 隐藏表头（卡片里用 data-label 展示字段名） */
  table.tbl--records tr:first-child { display: none; }
  table.tbl--records tr {
    display: block; position: relative; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px;
    padding: 4px 12px 12px; box-shadow: var(--shadow);
  }
  table.tbl--records td {
    display: flex; align-items: baseline; gap: 8px;
    border: none; padding: 8px 0; font-size: 14px; line-height: 1.5;
    border-top: 1px dashed var(--line); word-break: break-word; overflow-wrap: anywhere;
  }
  table.tbl--records td:first-child { border-top: none; }
  table.tbl--records td::before {
    content: attr(data-label); flex: none; width: 72px;
    color: var(--muted); font-size: 12px; line-height: 1.6;
  }
  /* 主信息（手机号 / 标题）突出，不要标签占位 */
  table.tbl--records td.cell-main { padding-top: 6px; }
  table.tbl--records td.cell-main::before { content: ""; width: 0; }
  table.tbl--records td.cell-main { font-size: 16px; font-weight: 600; color: var(--text); }
  table.tbl--records td.cell-main .muted { font-size: 12.5px; font-weight: 400; color: var(--muted); }
  /* 操作列：按钮纵向铺满，方便手指点 */
  table.tbl--records td.cell-ops { display: block; padding-top: 10px; }
  table.tbl--records td.cell-ops::before { content: "操作"; display: block; width: auto;
    margin-bottom: 8px; font-size: 12px; color: var(--muted); }
  table.tbl--records td.cell-ops .row-actions { flex-direction: column; gap: 8px; }
  table.tbl--records td.cell-ops .btn { width: 100%; min-height: 42px; font-size: 14px; }

  /* 3) 搜索 / 批量操作行：输入框占满整行，按钮自动换行到下方 */
  .panel .row-actions { gap: 8px; }
  .panel .row-actions input[name=kw] { flex: 1 1 100%; min-width: 0; width: 100%; }
  /* 标签页里超长说明文字（如"序列号统一为手机号"的 hint）不要挤按钮 */
  .panel .row-actions .hint { flex: 1 1 100%; }
}

/* ==================================================================
 * v1.9.49 角色视觉分层 + 全站底部快捷导航
 * 只重定义 :root 变量，全站按钮 / 标签 / 链接自动跟随，不改各页模板
 * ================================================================== */
body.role-user      { --primary: #dd6b3f; --primary-soft: #fff0e8; --badge: #ffe6d8; --badge-text: #b8481f; }
body.role-collector { --primary: #2563eb; --primary-soft: #e8f0ff; }
body.role-boss,
body.role-admin     { --primary: #334155; --primary-soft: #e9edf3; --badge: #e2e8f0; --badge-text: #1e293b; }
/* .topbar 的渐变是硬编码，单独覆盖 */
body.role-user .topbar            { background: linear-gradient(135deg, #f08a5d, #dd6b3f); }
body.role-collector .topbar       { background: linear-gradient(135deg, #2563eb, #1e9be6); }
body.role-boss .topbar,
body.role-admin .topbar           { background: linear-gradient(135deg, #475569, #0f172a); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(31, 41, 55, .06);
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
}
.tabbar__item {
  flex: 1; min-width: 0; text-align: center; text-decoration: none;
  font-size: 12px; color: var(--muted); padding: 7px 2px; border-radius: 10px;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tabbar__item.is-on { color: var(--primary); font-weight: 700; background: var(--primary-soft); }
/* 给固定底栏留出空间，别压住页脚与最后一个按钮 */
body.has-tabbar { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
body.has-tabbar .footer { padding-bottom: 10px; }
/* v1.9.96：底栏仅手机端显示。顶栏在宽屏已完整，PC 上这条 fixed 底栏会被拉成
   贯穿全屏的长条、还会挡住正文，故 640px 以上隐藏并收回留白。 */
@media (min-width: 641px) {
  .tabbar { display: none; }
  body.has-tabbar { padding-bottom: 0; }
}
/* 小屏顶部导航不再折成两三行挤住标题：改为单行横向滑动，退出/徽标仍可滑到 */
@media (max-width: 640px) {
  body.has-tabbar .topbar { padding-top: 46px; }
  body.has-tabbar .nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  body.has-tabbar .nav::-webkit-scrollbar { display: none; }
  body.has-tabbar .nav a, body.has-tabbar .nav button, body.has-tabbar .nav .tag { flex: 0 0 auto; }
}

/* 首页角色数据卡 */
.role-cards { margin: 12px 0 4px; }
.role-cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; }
.role-card__n { font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--primary); }
.role-card.is-warn .role-card__n { color: var(--danger); }
.role-card__t { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.role-progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.role-progress > i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.role-guide { background: var(--primary-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.role-guide b { color: var(--primary); }
@media (max-width: 360px) { .role-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
 * v1.9.53 后台「老板发布信息管理」手机端可读化
 * 痛点：6 列 + table-layout:fixed + 内联固定列宽（状态 76px / 操作 190px），
 *       在 360~430px 屏上每列只剩 ~30px，日期、标题被逐字拆成竖排。
 * 方案：≤640px 时每行改成「一帖一卡」，字段横排带标签；
 *       其余后台宽表兜底为横向滚动，不再逐字断行。
 * ===================================================================== */
.post-st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--muted); }
.post-st--active  { background: #e7f7ec; color: #16803c; }
.post-st--hidden  { background: #fff3b0; color: #92670b; }
.post-st--deleted { background: #fdeaea; color: #c0392b; }
/* 桌面：搜索框自适应占满剩余宽度；窄屏在下方媒体查询里改为独占一行 */
.panel .row-actions input[name=pkw] { flex: 1 1 220px; min-width: 0; }

@media (max-width: 640px) {
  .tbl-wrap--cards { overflow: visible; }
  .tbl-wrap--cards > table.tbl,
  .tbl-wrap--cards > table.tbl tbody { display: block; width: 100%; min-width: 0; table-layout: auto; }
  .tbl-wrap--cards > table.tbl tr:first-child { display: none; }
  .tbl-wrap--cards > table.tbl tr {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; margin-bottom: 12px; padding: 2px 12px 12px;
    box-shadow: var(--shadow);
  }
  .tbl-wrap--cards > table.tbl td {
    display: block; border: none; border-top: 1px dashed var(--line);
    padding: 8px 0; font-size: 14px; line-height: 1.55;
    overflow: hidden;                 /* BFC：正文不被左侧字段标签环绕 */
    word-break: break-word; overflow-wrap: anywhere; text-align: left;
  }
  .tbl-wrap--cards > table.tbl td:first-child { border-top: none; }
  .tbl-wrap--cards > table.tbl td::before {
    content: attr(data-label); float: left; width: 68px; margin-right: 10px;
    color: var(--muted); font-size: 12px; line-height: 1.9;
  }
  .tbl-wrap--cards > table.tbl td.cell-main { padding-top: 12px; font-size: 16px; font-weight: 700; }
  .tbl-wrap--cards > table.tbl td.cell-main::before { display: none; }
  .tbl-wrap--cards > table.tbl td.cell-main .muted { font-size: 12px; font-weight: 400; }
  .tbl-wrap--cards > table.tbl td.cell-ops { padding-top: 10px; }
  .tbl-wrap--cards > table.tbl td.cell-ops::before { float: none; display: block; width: auto; margin: 0 0 8px; }
  .tbl-wrap--cards > table.tbl td.cell-ops .row-actions { gap: 8px; }
  .tbl-wrap--cards > table.tbl td.cell-ops .btn { min-height: 40px; font-size: 14px; padding: 6px 14px; }
  /* 搜索框在窄屏占满整行，按钮自动换到下一行 */
  .panel .row-actions input[name=pkw] { flex: 1 1 100%; min-width: 0; width: 100%; }

  /* 其它后台宽表：不再把文字逐字挤成竖条，改为横向滚动阅读 */
  .tbl-wrap:not(.tbl-wrap--cards) > table.tbl:not(.tbl--records) { table-layout: auto; min-width: 620px; }
  .tbl-wrap:not(.tbl-wrap--cards) > table.tbl:not(.tbl--records) th:first-child { width: auto; }
  .tbl-wrap:not(.tbl-wrap--cards) > table.tbl:not(.tbl--records) th,
  .tbl-wrap:not(.tbl-wrap--cards) > table.tbl:not(.tbl--records) td { overflow-wrap: normal; word-break: normal; }
}
