/* =============================================================
   微聊 · 仿微信界面样式（手机版优先）
   窄屏：满屏单栏；宽屏：居中手机框，仍是同一套移动端布局
   ============================================================= */
:root {
  --green: #07c160;
  --green-dark: #06ad56;
  --bubble-self: #95ec69;
  --bg: #f2f3f2;
  --chat-bg: #ededed;
  --line: #e5e5e5;
  --text: #191919;
  --text-2: #5b5b5b;
  --text-3: #9a9a9a;
  --white: #fff;
  --danger: #e64340;
  --warn: #e8a33d;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0, 0, 0, .05);
  --topbar-h: 48px;
  --tabbar-h: 54px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::-webkit-scrollbar { width: 0; height: 0; }

/* ---------------- 头像 ---------------- */
.avatar {
  display: inline-block;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  vertical-align: middle;
}
.avatar-text {
  color: #fff;
  text-align: center;
  font-weight: 500;
  user-select: none;
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
}
.avatar-round { border-radius: 50%; }

/* ---------------- 登录 / 注册（移动端满屏） ---------------- */
.auth-page {
  flex: 1;
  min-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px calc(28px + var(--safe-bottom));
  background:
    radial-gradient(700px 320px at 15% 0%, #e8f8ee 0%, rgba(232, 248, 238, 0) 65%),
    radial-gradient(600px 320px at 95% 100%, #eaf3ff 0%, rgba(234, 243, 255, 0) 65%),
    #f6f8f7;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(31, 55, 45, .09);
  padding: 28px 22px 22px;
}
.auth-card.wide { max-width: 480px; }
.auth-brand { text-align: center; margin-bottom: 20px; }
.auth-logo {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #20d16b, #07c160);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(7, 193, 96, .26);
}
.auth-logo svg { width: 30px; height: 30px; fill: #fff; }
/* 站点统一 Logo（site_logo_html 输出），手机端登录/注册/找回密码共用 */
.site-logo svg { display: block; fill: #fff; }
.auth-title { font-size: 21px; font-weight: 600; letter-spacing: .5px; }
.auth-sub { color: var(--text-3); font-size: 13px; margin-top: 6px; }

.auth-tabs {
  display: flex;
  background: #f4f5f5;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}
.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  transition: .18s;
}
.auth-tabs a.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid #e0e3e1;
  background: #fafbfa;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  transition: .16s;
  line-height: 1.5;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.select { background-image: linear-gradient(45deg, transparent 50%, #9a9a9a 50%), linear-gradient(135deg, #9a9a9a 50%, transparent 50%); background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 193, 96, .12);
}
.textarea { resize: vertical; min-height: 92px; }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.field-row { display: flex; gap: 12px; }
.field-row > .field { flex: 1; min-width: 0; }
input[type="file"] { font-size: 12.5px; color: #666; max-width: 100%; }
input[type="file"]::file-selector-button {
  border: 1px solid #dcdfdd;
  background: #fff;
  color: #444;
  padding: 6px 10px;
  border-radius: 6px;
  margin-right: 8px;
  cursor: pointer;
  font-size: 12.5px;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 14px;
  background: #f2f3f2;
  color: var(--text);
  transition: .16s;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn svg { fill: currentColor; display: block; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-block { width: 100%; padding: 12px; font-size: 16px; font-weight: 500; border-radius: 10px; }
.btn-ghost { background: #fff; border-color: #e0e3e1; color: #444; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-danger { background: #fdecec; color: var(--danger); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 6px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.auth-foot a { color: var(--green); }

/* ---------------- 弹窗内认证页（body.auth-in-pop）----------------
   官网首页「登录 / 注册」弹窗用 iframe 复用本页；弹窗外壳透明无边框，
   这里只保留中间白色卡片：去掉 auth-page 的渐变背景与留白，卡片保留圆角/阴影。 */
body.auth-in-pop { background: transparent; }
body.auth-in-pop .auth-page {
  display: block;
  min-height: 0;
  padding: 12px;
  background: transparent;
}
body.auth-in-pop .auth-card,
body.auth-in-pop .auth-card.wide {
  width: 100%; max-width: 100%;
  padding: 30px 26px 26px;
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(16, 40, 28, .16);
}
.demo-tip {
  margin-top: 18px;
  background: #f7fbf8;
  border: 1px dashed #cfe9d9;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #4d6b58;
  line-height: 1.9;
}
.demo-tip b { color: #2e7d52; }
.demo-tip code { background: #eaf6ef; padding: 1px 5px; border-radius: 4px; color: #1f6b45; }

/* ---------------- 轻提示 ---------------- */
.flash-wrap {
  position: fixed; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 10px);
  left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
  width: max-content; max-width: 88vw;
}
.flash {
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(30, 30, 30, .86);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  animation: flashIn .22s ease;
}
.flash.err { background: rgba(200, 54, 50, .92); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- App 外壳 ---------------- */
.app {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.workspace { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }

/* ---------------- 顶部品牌栏（与手机首页 .mh-top 同一套视觉） ----------------
   所有手机页面统一使用本组件：左侧「返回 / Logo + 页面标题」，右侧「消息 + 会员中心 / 登录 + 注册」。
   与 assets/css/m_home.css 里的 .mh-top 保持完全一致的白底、50px 高、24px 圆角胶囊按钮。 */
.mh-top {
  flex: none;
  padding-top: env(safe-area-inset-top, 0px);
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid #edf0ee;
  position: relative;
  z-index: 20;
}
.mh-top-in {
  max-width: 640px; margin: 0 auto;
  height: 50px; padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.mh-back {
  flex: none;
  width: 30px; height: 30px; margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: #222;
}
.mh-back:active { background: rgba(0, 0, 0, .06); }
.mh-back svg { width: 19px; height: 19px; fill: currentColor; }
.mh-brand {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  font-size: 16px; font-weight: 700; letter-spacing: .5px;
}
.mh-brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-brand .mh-logo { flex: none; width: 26px; height: 26px; border-radius: 0; }
.mh-top-links { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.mh-top-login,
.mh-top-reg {
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; line-height: 1.45; white-space: nowrap;
}
.mh-top-login { background: #f2f5f3; color: var(--text-2); }
.mh-top-reg { background: var(--green); color: #fff; font-weight: 600; }
/* 头部内的自定义操作（如聊天列表的「发起聊天」）融入胶囊风格 */
.mh-top-links .topbar-btn {
  min-width: 30px; height: 30px; width: 30px;
  border-radius: 999px; background: #f2f5f3;
  font-size: 18px; color: var(--text-2);
}

/* ---------------- 顶部标题栏（旧版灰底，仅保留 .topbar-btn 等子元素兼容） ---------------- */
.topbar {
  flex: none;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  background: #ededed;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  position: relative;
  z-index: 10;
}
.topbar-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-side { display: flex; align-items: center; height: 100%; padding: 0 6px; }
.topbar-side.right { justify-content: flex-end; }
.topbar-btn {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 20px;
  color: #222;
  line-height: 1;
}
.topbar-btn:active { background: rgba(0, 0, 0, .06); }
.topbar-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------------- 底部 Tab ---------------- */
.tabbar {
  flex: none;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  /* 与官网风独立页 .mh-tabbar 统一：白底 + 浅色分隔线 */
  background: #fff;
  border-top: 1px solid #ececec;
  position: relative;
  z-index: 10;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #7a7a7a;
  font-size: 11px;
  position: relative;
}
.tab-item.active { color: var(--green); font-weight: 600; }
.tab-ico { position: relative; display: block; }
/* 图标统一为官网风描边风格（22px 线性描边），与 .mh-tabbar 一致 */
.tab-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; display: block; }
.tab-ico .badge {
  position: absolute; top: -3px; right: -10px;
  min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; border-radius: 8px;
  background: #fa5151; color: #fff;
  font-size: 10.5px; text-align: center; font-style: normal;
  box-shadow: 0 0 0 2px #fff;
}
body.chat-open .tabbar { display: none; }

/* ---------------- 普通页面容器 ---------------- */
.page {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px calc(20px + var(--safe-bottom));
  background: var(--bg);
}
.page-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 12px;
}
.page-head h1 { display: none; }
.page-head > div:first-child { min-width: 0; }
.page-head .desc { color: #8c8c8c; font-size: 12.5px; line-height: 1.65; }
.page-head .toolbar { width: 100%; margin: 0; }
/* 列表页顶部搜索固顶：必须是 .page 的直接子元素（sticky 只能在父容器高度内吸附，
   放在矮的 .page-head 里会随页滚走） */
.search-sticky {
  position: sticky;
  top: -12px;                /* 抵消 .page 的 12px 上内边距，贴住可视区最顶端 */
  z-index: 30;
  margin: 0 -12px 10px;      /* 负外边距铺满左右留白，遮住滚到后面的内容 */
  padding: 12px 12px 10px;
  background: var(--bg);
}
.search-sticky .toolbar { width: 100%; margin: 0; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-head > .btn { align-self: flex-start; }
.page-body { max-width: 100%; }
/* 桌面端的两栏内容在手机宽度改为单栏 */
.page-body[style*="grid-template-columns"] { display: block !important; }
.page-body[style*="grid-template-columns"] > * { margin-bottom: 12px; }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card:last-child { margin-bottom: 0; }
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.card-title .tip { font-size: 12px; font-weight: 400; color: var(--text-3); }
.card-title .bar { display: inline-block; width: 3px; height: 14px; background: var(--green); border-radius: 2px; margin-right: 7px; vertical-align: -2px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; padding-top: 6px; }
.form-actions .btn { flex: 1; }

/* ---------------- 会员资料横向表单：每行 = 左标签 + 右输入 ---------------- */
.vform .vrow { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0f2f0; }
.vform .vrow:last-child { border-bottom: 0; }
.vform .vlabel { flex: none; width: 92px; padding-top: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.vform .vlabel .req { color: #fa5151; margin-right: 2px; font-weight: 600; }
.vform .vctrl { flex: 1; min-width: 0; }
.vform .vctrl .input, .vform .vctrl .select, .vform .vctrl .textarea { margin-bottom: 0; }
.vform .vhint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.6; }
@media (max-width: 400px) { .vform .vlabel { width: 80px; font-size: 13px; } }

/* ---------------- 顶栏右上角三横菜单 ---------------- */
.topbar-menu { position: relative; display: flex; align-items: center; height: 100%; }
.topbar-menu-pop {
  display: none;
  position: absolute;
  right: 8px;
  top: calc(100% + 6px);
  min-width: 136px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e8e6;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  z-index: 60;
}
.topbar-menu-pop.open { display: block; }
.topbar-menu-pop a {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  line-height: 1.4;
  white-space: nowrap;
}
.topbar-menu-pop a:hover, .topbar-menu-pop a:active { background: #f2f6f3; }
.topbar-menu-pop a.danger { color: #fa5151; border-top: 1px dashed #f0f2f0; margin-top: 4px; padding-top: 11px; border-radius: 0 0 8px 8px; }
.topbar-menu-pop a.danger:hover, .topbar-menu-pop a.danger:active { background: #fef2f2; }

.tag {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11.5px; background: #f2f3f2; color: var(--text-2);
  line-height: 1.4;
}
.tag-green { background: #e7f8ee; color: #0a8f4b; }
.tag-blue { background: #e9f2ff; color: #2e6fd0; }
.tag-orange { background: #fff3e3; color: #b5761b; }
.tag-red { background: #fdeaea; color: #c33; }
.tag-gray { background: #f1f2f2; color: #888; }
.tag-welfare { background: #e7f8ee; color: #0a8f4b; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.empty {
  text-align: center;
  color: var(--text-3);
  padding: 46px 20px;
  font-size: 13.5px;
  line-height: 1.9;
}
.empty svg { width: 44px; height: 44px; fill: #cfd4d1; margin: 0 auto 10px; display: block; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .search-input { flex: 1 1 150px; min-width: 0; max-width: none; }

/* ---------------- 聊天：会话列表 ---------------- */
.chat-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.conv-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.conv-head {
  flex: none;
  padding: 8px 12px;
  background: #ededed;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.conv-head .conv-search { flex: 1; min-width: 0; }
.conv-head .sound-toggle { flex: none; }
.conv-search { position: relative; }
.conv-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; fill: #9a9a9a; }
.conv-search input {
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px 0 28px;
  font-size: 14px;
  outline: none;
}
.conv-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; }

.conv-item {
  display: flex;
  gap: 12px;
  padding: 11px 12px;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: background .12s;
}
.conv-item::after {
  content: '';
  position: absolute;
  left: 62px; right: 0; bottom: 0;
  height: 1px;
  background: #ededed;
  transform: scaleY(.6);
}
.conv-item:last-child::after { display: none; }
.conv-item:active { background: #e8e8e8; }
.conv-item.active { background: #e2e2e2; }
.conv-main { flex: 1; min-width: 0; padding-top: 2px; }
.conv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conv-name { font-size: 16px; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 11.5px; color: #b2b2b2; flex: none; }
.conv-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.conv-msg { font-size: 13.5px; color: #9a9a9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-msg .prefix { color: #b0b0b0; }

/* 个人会员会话：名字下方的简历摘要（性别 · 年龄 · 学历 · 意向职位 · 薪资） */
.conv-sub {
  margin-top: 3px;
  font-size: 12px; color: #86968d; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 在线匹配候选人分组标题 */
.conv-section {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 12px 6px;
  background: #fafafa;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #f2f2f2;
  font-size: 12px; color: #8b8b8b;
}
.conv-section em { font-style: normal; color: #07c160; }
.conv-item.conv-suggest .conv-time.conv-online { color: #07c160; }
.badge-num {
  flex: none;
  min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 5px;
  background: #fa5151; color: #fff;
  border-radius: 9px;
  font-size: 11px;
  text-align: center;
}
.conv-empty { padding: 44px 16px; text-align: center; color: #9b9b9b; font-size: 13px; line-height: 1.9; }

/* 会话列表「已拉黑」角标 */
.conv-blocktag { flex-shrink: 0; font-size: 10px; color: #e64340; border: 1px solid #e64340; border-radius: 3px; padding: 0 4px; line-height: 15px; }

/* 长按会话操作菜单 */
.action-sheet { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: sheet-fade .15s ease; }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-panel { width: 100%; max-width: 430px; background: #f7f7f7; border-radius: 14px 14px 0 0; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); animation: sheet-up .18s ease; }
@keyframes sheet-up { from { transform: translateY(40%); } to { transform: translateY(0); } }
.sheet-title { text-align: center; color: #9b9b9b; font-size: 12px; padding: 14px 0 6px; max-width: 80%; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-btn { display: block; width: 100%; border: 0; background: #fff; color: #191919; font-size: 16px; padding: 14px 0; text-align: center; cursor: pointer; border-bottom: 1px solid #ececec; }
.sheet-btn:active { background: #ececec; }
.sheet-btn.warn { color: #ff9900; }
.sheet-btn.danger { color: #e64340; }
.sheet-btn.sheet-cancel { margin-top: 8px; border-bottom: 0; }
.sheet-hint { padding: 2px 16px 12px; text-align: center; color: #9b9b9b; font-size: 12px; line-height: 1.6; }
.sheet-btn:disabled { color: #b0b0b0; background: #fafafa; cursor: not-allowed; }
/* 会话项「更多操作」入口（与 chat.css 等价，会员中心不加载本文件） */
.conv-more { flex: none; align-self: center; width: 26px; height: 26px; margin-left: 2px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #8a8a8a; font-size: 18px; line-height: 1; opacity: 0; cursor: pointer; user-select: none; transition: opacity .12s, background .12s; }
.conv-item:hover .conv-more, .conv-more:focus { opacity: 1; }
.conv-more:hover { background: rgba(0,0,0,.08); color: #333; }
@media (hover: none) { .conv-more { opacity: 1; } }

/* 聊天窗口内黑名单提示条 */
.block-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff7e6; color: #996a00; font-size: 12px; padding: 7px 12px; border-bottom: 1px solid #f5e5c0; }
.block-unbtn { flex-shrink: 0; border: 1px solid #ff9900; color: #ff9900; background: transparent; border-radius: 4px; font-size: 12px; padding: 2px 10px; cursor: pointer; }

/* ---------- 群聊 ---------- */
/* 群列表项：方形群标（.avatar-wrap.svc/.grp 提高特异性，避免被后置的 .avatar-wrap display 覆盖） */
.avatar-wrap.grp-logo { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(135deg, #00a650, #00a650); color: #fff; box-shadow: 0 2px 5px rgba(47, 107, 255, .28); }
.grp-logo svg { display: block; fill: currentColor; }
.avatar-wrap.svc-logo { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: #d9f5e3; color: #07c160; }
.svc-logo svg { display: block; fill: currentColor; }
/* 群消息：发送者昵称 + 字母头像 */
.grp-avatar { width: 36px; height: 36px; border-radius: 6px; background: #d7e8ff; color: #3d7eff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; overflow: hidden; }
/* 群消息头像：企业上传 logo / 会员上传头像后改用图片，填满方形头像框 */
.grp-avatar .grp-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.msg-sender { font-size: 11px; color: #9b9b9b; margin: 0 0 3px 4px; }
.msg-row.self .msg-sender { display: none; }
/* 群系统消息（禁言 / 移出 / 加入提示） */
.msg-sys { text-align: center; margin: 10px auto; font-size: 11.5px; color: #a5a5a5; background: #ededed; display: inline-block; padding: 3px 10px; border-radius: 4px; max-width: 80%; }

/* 消息撤回提示（灰色居中，双方可见） */
.msg-row.recall { justify-content: center; margin: 8px 0; }
.recall-tip { font-size: 12px; color: #9b9b9b; background: #ededed; padding: 3px 12px; border-radius: 4px; }
.msg-scroll.gscroll { display: flex; flex-direction: column; }
.msg-scroll.gscroll .msg-sys { align-self: center; }
/* 单栏群聊窗口 */
.chat-single { justify-content: center; }
.chat-single .chat-pane { display: flex; max-width: 430px; width: 100%; margin: 0 auto; }
/* 成员管理按钮 */
#btnMembers { border: 0; background: transparent; color: #191919; font-size: 13px; cursor: pointer; padding: 4px 8px; }
/* 成员抽屉 */
.gmember-drawer { display: none; position: absolute; right: 0; top: 0; bottom: 0; width: 78%; max-width: 320px; background: #fff; z-index: 30; box-shadow: -4px 0 16px rgba(0,0,0,.12); flex-direction: column; }
.gmember-drawer.show { display: flex; }
.gmember-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-size: 14px; font-weight: 600; }
.gmember-head button { border: 1px solid #ddd; background: #fff; border-radius: 4px; font-size: 12px; padding: 3px 10px; cursor: pointer; }
.gmember-head-ops { display: flex; gap: 6px; }
.gmember-add { flex: none; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.gadd-search { display: flex; gap: 6px; }
.gadd-search input { flex: 1; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; padding: 7px 9px; outline: none; background: #fff; }
.gadd-search input:focus { border-color: #95ec69; }
.gadd-search button { border: none; background: #07c160; color: #fff; border-radius: 4px; font-size: 13px; padding: 0 14px; cursor: pointer; }
.gadd-search button:active { opacity: .8; }
.gadd-result { max-height: 200px; overflow-y: auto; margin-top: 6px; }
.gadd-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid #f0f0f0; background: #fff; }
.gadd-row:last-child { border-bottom: none; }
.gadd-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gadd-info b { font-size: 13.5px; color: #191919; }
.gadd-info span { font-size: 11.5px; color: #a5a5a5; }
.gadd-tag { font-size: 11.5px; color: #a5a5a5; font-style: normal; flex: none; }
.gadd-btn { border: none; background: #07c160; color: #fff; border-radius: 4px; font-size: 12px; padding: 4px 12px; cursor: pointer; flex: none; }
.gadd-btn:disabled { opacity: .5; cursor: default; }
.gadd-empty { text-align: center; font-size: 12px; color: #a5a5a5; padding: 14px 0; }
.gmember-list { overflow-y: auto; flex: 1; padding: 6px 0; }
.gmember-quit { flex: none; padding: 10px 14px 12px; border-top: 1px solid #f0f0f0; }
.gmember-quit button { width: 100%; border: none; background: #f5f5f5; color: #e64340; font-size: 14px; padding: 10px 0; border-radius: 6px; cursor: pointer; }
.gmember-quit button:active { background: #ececec; }
.gmember-quit button:disabled { opacity: .5; cursor: default; }
.gmember-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid #f7f7f7; }
.gmember-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gmember-avatar { width: 30px; height: 30px; border-radius: 6px; background: #e8f1ff; color: #3d7eff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; object-fit: cover; }
.gmember-name { font-size: 13.5px; color: #191919; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtag { font-style: normal; font-size: 10px; color: #9b9b9b; border: 1px solid #ddd; border-radius: 3px; padding: 0 4px; line-height: 15px; flex-shrink: 0; }
.gtag.tag-admin { color: #3d7eff; border-color: #3d7eff; }
.gtag.tag-muted { color: #ff9900; border-color: #ff9900; }
.gmember-ops { display: flex; gap: 6px; flex-shrink: 0; }
.gop { border: 1px solid #ddd; background: #fff; border-radius: 4px; font-size: 11.5px; padding: 3px 8px; cursor: pointer; color: #555; }
.gop.gop-mute { color: #ff9900; border-color: #ffcf99; }
.gop.gop-remove { color: #e64340; border-color: #f2b8b7; }

/* ---- 在线状态 ---- */
.avatar-wrap { position: relative; display: inline-block; flex: none; }
.avatar-wrap .avatar { display: block; }
/* 会话项是 flex 行，默认 align-items:stretch 会把头像容器拉到整行高，
   导致右下角的在线绿点掉到行底。这里让头像容器按内容高度对齐 */
.conv-item > .avatar-wrap { align-self: flex-start; }
.online-dot {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #c8c8c8;
  border: 2px solid #fff;
  display: none;
}
.online-dot.on { display: block; background: #07c160; }
.online-state { display: inline-flex; align-items: center; gap: 4px; }
.online-state .online-dot {
  position: static;
  width: 8px; height: 8px;
  border: none;
  display: inline-block;
}
.online-state.on { color: #07c160; }
.online-state.on .online-dot { background: #07c160; }
.online-state.off { color: #b2b2b2; }
.online-state.off .online-dot { background: #c8c8c8; }

/* 提示音开关 */
.sound-toggle {
  border: none;
  background: none;
  font-size: 17px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  opacity: .85;
}
.sound-toggle:active { opacity: .5; }
.sound-toggle.off { opacity: .45; filter: grayscale(1); }

/* ---------------- 聊天：会话区 ---------------- */
.chat-pane {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: var(--chat-bg);
  position: relative;
}
body.chat-open .conv-pane { display: none; }
body.chat-open .chat-pane { display: flex; }

.chat-empty-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #b0b0b0;
  font-size: 13.5px;
}
.chat-empty-pane .big-icon { width: 72px; height: 72px; fill: #d8dcda; }

.chat-head {
  flex: none;
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  background: #ededed;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  position: relative;
  z-index: 10;
}
.chat-back {
  width: 34px; height: 34px;
  margin-left: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: #222;
}
.chat-back svg { width: 22px; height: 22px; fill: currentColor; }
.chat-title { min-width: 0; text-align: center; }
.chat-head .name { font-size: 16.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .meta { font-size: 10.5px; color: #9a9a9a; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .actions { display: flex; justify-content: flex-end; padding-right: 8px; }
.chat-head .actions a {
  font-size: 12.5px; color: #576b95;
  padding: 4px 6px; border-radius: 6px;
}
.chat-head .actions a:active { background: rgba(0, 0, 0, .06); }

.msg-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 6px;
  min-height: 0;
}
/* 消息不满一屏时贴底显示（由 chat.js 根据内容高度切换） */
.msg-scroll.stack-bottom { display: flex; flex-direction: column; justify-content: flex-end; }
.msg-time { text-align: center; margin: 6px 0 12px; }
.msg-time span { font-size: 11.5px; color: #9c9c9c; background: rgba(0, 0, 0, .04); padding: 2px 7px; border-radius: 4px; }

.msg-row { display: flex; gap: 9px; margin-bottom: 15px; align-items: flex-start; }
.msg-row .avatar { margin-top: 2px; border-radius: 6px; }
.msg-body { max-width: 70%; display: flex; flex-direction: column; gap: 3px; }
.msg-row.self { flex-direction: row-reverse; }
.msg-row.self .msg-body { align-items: flex-end; }
.bubble {
  position: relative;
  padding: 9px 12px;
  border-radius: 6px;
  background: #fff;
  font-size: 15.5px;
  line-height: 1.55;
  color: #191919;
  word-break: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .03);
}
.bubble::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -4px;
  width: 9px; height: 9px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 1px;
}
.msg-row.self .bubble { background: var(--bubble-self); }
.msg-row.self .bubble::before { left: auto; right: -4px; }
.bubble-img { padding: 0; background: transparent !important; box-shadow: none; }
.bubble-img::before { display: none; }
.bubble-img img { max-width: 180px; border-radius: 6px; cursor: zoom-in; }
.msg-name { font-size: 11px; color: #9a9a9a; padding: 0 2px; }
.msg-failed { font-size: 11px; color: var(--danger); }

/* ---------------- 输入区 ---------------- */
.composer {
  flex: none;
  background: #f7f7f7;
  border-top: 1px solid rgba(0, 0, 0, .07);
  padding: 8px 8px calc(8px + var(--safe-bottom));
  position: relative;
}
.composer-row { display: flex; align-items: flex-end; gap: 6px; }
.icon-btn {
  flex: none;
  border: none; background: transparent;
  width: 34px; height: 36px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #3c3c3c;
  padding: 0;
}
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn:active { background: rgba(0, 0, 0, .06); }
.composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  max-height: 96px;
  height: 36px;
  border: none;
  border-radius: 8px;
  outline: none;
  background: #fff;
  resize: none;
  font-size: 15.5px;
  line-height: 22px;
  padding: 7px 10px;
  overflow-y: auto;
}
.btn-send {
  flex: none;
  border: none;
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  height: 36px;
  padding: 0 14px;
  font-size: 14.5px;
  transition: .16s;
}
.btn-send:active { background: var(--green-dark); }
.btn-send:disabled { background: #d8e6de; color: #f4fbf7; }

.emoji-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 4px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  padding: 10px;
  display: none;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  z-index: 20;
  max-height: 220px;
  overflow-y: auto;
}
.emoji-panel.show { display: grid; }
.emoji-panel span {
  text-align: center; font-size: 22px; padding: 5px 0; border-radius: 6px; cursor: pointer; line-height: 1.3;
}
.emoji-panel span:active { background: #f1f1f1; }

/* ---------------- 快捷语（企业 → 个人单聊，替代图片按钮） ---------------- */
.quick-panel {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 4px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  padding: 10px;
  display: none;
  z-index: 21;
  max-height: 60vh;
  overflow-y: auto;
}
.quick-panel.show { display: block; }
.quick-list { display: flex; flex-direction: column; gap: 6px; }
.quick-chip-wrap { display: flex; align-items: stretch; gap: 6px; }
.quick-chip {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  color: #333;
  background: #f7faf8;
  border: 1px solid #e8ece9;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.quick-chip:active { background: #eef5f1; }
.quick-chip.is-auto { background: #f2fbf6; border-color: #d8efe2; }
.quick-chip-tag {
  flex: none;
  font-size: 11px;
  line-height: 1.7;
  color: #0a8f4b;
  background: #e7f7ee;
  border-radius: 4px;
  padding: 0 5px;
  margin-top: 1px;
}
.quick-chip-txt {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quick-del {
  flex: none;
  width: 32px;
  border: 1px solid #eee;
  background: #fff;
  color: #b7b7b7;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.quick-del:active { background: #fdecec; color: #e34d4d; border-color: #f7cccc; }
.quick-add { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ececec; }
.quick-add input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
}
.quick-add input:focus { border-color: #b9e3ca; }
.quick-add-btn {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: var(--green, #07c160);
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}
.quick-add-btn:disabled { background: #d8e6de; }
.quick-empty { font-size: 12.5px; color: #999; line-height: 1.8; padding: 2px 2px 4px; }
.quick-empty a { color: #0a8f4b; text-decoration: none; }

/* ---------------- 通讯录 / 职位列表 ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 12px; }
.contact-list { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f4f5f4; cursor: pointer; }
.contact-item:last-child { border-bottom: none; }
.contact-info { flex: 1; min-width: 0; }
.contact-info .n { font-size: 14.5px; }
.contact-info .d { font-size: 12px; color: var(--text-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.job-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.job-card:active { background: #fbfbfb; }
.job-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.job-card .title { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.job-card .salary { color: #ff6b35; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.job-card .company { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.job-card .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; margin-top: 10px; color: var(--text-3); font-size: 12px; }
.job-card .foot > span:first-child { flex: 1 1 100%; min-width: 0; }
.job-card .foot > span:last-child { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.job-card .foot .btn-sm { flex: 0 0 auto; }

.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detail-head h1 { font-size: 19px; line-height: 1.4; }
.detail-salary { color: #ff6b35; font-size: 18px; font-weight: 600; white-space: nowrap; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.section-title { font-size: 14.5px; font-weight: 600; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; width: 3px; height: 13px; background: var(--green); border-radius: 2px; }
.prose { font-size: 14px; line-height: 1.85; color: #333; }
.prose p { margin: 0 0 8px; }

/* ---------------- 简历 ---------------- */
.resume-head { display: flex; gap: 14px; align-items: center; }
.resume-head .name { font-size: 19px; font-weight: 600; }
.resume-head .sub { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.exp-item { padding: 12px 0; border-bottom: 1px dashed #eaeceb; }
.exp-item:last-child { border-bottom: none; }
.exp-item .row1 { display: flex; justify-content: space-between; gap: 10px; }
.exp-item .org { font-weight: 600; font-size: 14px; }
.exp-item .period { font-size: 12px; color: var(--text-3); flex: none; }
.exp-item .title { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.exp-item .desc { font-size: 13px; color: #555; line-height: 1.8; margin-top: 6px; white-space: pre-wrap; }

/* ---------------- 消息条 / 提示 ---------------- */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff8e8; border: 1px solid #f7e3b6; color: #8a6320;
  padding: 11px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.75;
  margin-bottom: 12px;
}
.notice a { color: #a06a10; text-decoration: underline; }
.notice.green { background: #f1faf5; border-color: #cde9da; color: #2b6b4a; }

/* 访客提示条：公开页（职位列表 / 职位详情）顶部，提示登录后可投递 */
.guest-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 10px 12px;
  background: #f1faf5; border: 1px solid #cde9da; color: #2b6b4a;
  border-radius: 10px; font-size: 12.5px;
}
.guest-bar-txt { flex: 1; min-width: 0; line-height: 1.5; }
.guest-bar .btn { flex: none; }

/* ---------------- 表格（前台少量） ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #f0f2f1; vertical-align: middle; }
.table th { color: var(--text-3); font-weight: 500; font-size: 12px; background: #fafbfa; }
.table tr:last-child td { border-bottom: none; }
.table .ops { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span.pager-info {
  padding: 6px 10px; border-radius: 6px; font-size: 12.5px;
  background: #fff; color: #555;
}
.pager a.active { background: var(--green); color: #fff; }
.pager .pager-info { background: transparent; color: var(--text-3); }

/* ---------------- 图片查看层 ---------------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9);
  display: none; align-items: center; justify-content: center; z-index: 900;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 4px; }

/* ---------------- 宽屏：居中手机框 ---------------- */
@media (min-width: 720px) {
  body {
    background: #dfe4e1;
    background-image: radial-gradient(900px 500px at 20% 0%, #eef4f0 0%, rgba(238, 244, 240, 0) 60%),
                      radial-gradient(700px 500px at 90% 100%, #e6eef7 0%, rgba(230, 238, 247, 0) 60%);
  }
  .app {
    flex: none;
    width: 430px;
    max-width: 430px;
    height: min(880px, calc(100vh - 36px));
    margin: auto;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(18, 38, 30, .24), 0 0 0 1px rgba(0, 0, 0, .06);
  }
  .app .topbar { border-top-left-radius: 26px; border-top-right-radius: 26px; }
  .app .tabbar { border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; }
  body.chat-open .app .chat-pane { border-bottom-left-radius: 26px; border-bottom-right-radius: 26px; }
  .auth-page { max-width: 430px; margin: 0 auto; background: transparent; }
  .auth-card { box-shadow: 0 16px 40px rgba(18, 38, 30, .14); }
  ::-webkit-scrollbar { width: 4px; height: 4px; }
  ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 2px; }
}

/* 职位卡片消息（单聊/群聊共用） */
.bubble-card { padding: 0; overflow: hidden; background: transparent !important; border-radius: 10px; max-width: 240px; }
.msg-row.self .bubble-card { background: transparent !important; }
.job-card { display: block; background: #fff; border: 1px solid #e4e8e5; border-radius: 10px; padding: 12px 14px; color: #1a1a1a; text-decoration: none; }
.msg-row.self .job-card { background: #f0fbf4; border-color: #cdebd8; }
.job-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.job-card-title { font-size: 14px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.job-card-salary { flex: none; font-size: 13px; font-weight: 600; color: #07c160; }
.job-card-company { margin-top: 4px; font-size: 12px; color: #8a8a8a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-card-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f2f0; font-size: 11.5px; color: #b0b0b0; display: flex; align-items: center; justify-content: space-between; }

/* 职位分享面板 */
.share-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 90; }
.share-panel { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; max-height: 70vh; background: #fff; border-radius: 14px 14px 0 0; z-index: 91; display: flex; flex-direction: column; }
.share-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 15px; font-weight: 600; flex: none; }
.share-head button { border: 1px solid #ddd; background: #fff; border-radius: 4px; font-size: 12px; padding: 4px 12px; cursor: pointer; }
.share-body { overflow-y: auto; flex: 1; padding: 4px 0 20px; }
.share-sec { padding: 12px 16px 6px; font-size: 12px; color: #999; }
.share-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; }
.share-row:active { background: #f5f7f6; }
.share-name { font-size: 14.5px; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-tag { flex: none; font-size: 11px; color: #8a8a8a; background: #f2f4f3; border-radius: 3px; padding: 2px 6px; margin-left: 10px; }
.share-empty { text-align: center; padding: 40px 16px; font-size: 13px; color: #999; line-height: 1.8; }

/* ---------- 群聊头像点击私聊 ---------- */
a.grp-avatar-link { text-decoration: none; }
a.grp-avatar-link:hover { filter: brightness(.92); }
a.gmember-avatar-link { text-decoration: none; flex-shrink: 0; }
a.gmember-avatar-link:hover .gmember-avatar { background: #cfe0ff; }

/* ---------------- 个人会员中心（仿微信「我」页） ---------------- */
.me-page { padding: 0 0 20px; }
.me-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 18px 24px;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
}
.me-avatar .avatar { border-radius: 10px; }
.me-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.me-name { font-size: 20px; font-weight: 600; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-sub { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.me-status {
  margin-top: 10px;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--white);
}
.me-arrow { flex: none; width: 9px; height: 9px; border-top: 2px solid #c9c9c9; border-right: 2px solid #c9c9c9; transform: rotate(45deg); }
.me-group { margin-top: 8px; background: var(--white); }
.me-cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px;
  color: var(--text);
  text-decoration: none;
}
.me-cell + .me-cell::before {
  content: "";
  position: absolute;
  left: 52px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--bg);
  transform: scaleY(.5);
}
.me-cell:active { background: #f6f6f6; }
.me-ico { flex: none; width: 24px; display: flex; justify-content: center; }
.me-ico svg { fill: currentColor; display: block; }
.me-label { flex: 1; font-size: 15px; }
/* 会员中心入口右侧未读数字红标（如「收到的投递」的待查看数量） */
.me-badge {
  flex: none;
  min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 5px; margin-right: -2px;
  border-radius: 9px;
  background: #fa5151; color: #fff;
  font-size: 11px; font-weight: 600; text-align: center;
  font-style: normal;
}
.me-cell.danger .me-label { color: var(--danger); }
/* 列表行右侧的行动引导（如简历完善度行的「去完善 ›」） */
.me-badge-go { flex: none; font-size: 13px; font-weight: 600; color: #07c160; }
.me-exp { margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.me-exp.soon { color: #d97a00; }

/* ===== 职位福利标签多选（发布/编辑） ===== */
.welfare-groups { display: flex; flex-direction: column; gap: 8px; }
.welfare-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.welfare-group-name { flex: 0 0 58px; font-size: 12px; color: var(--text-3, #8a9490); }
.welfare-tag { position: relative; display: inline-flex; margin: 0; }
.welfare-tag input { position: absolute; opacity: 0; width: 0; height: 0; }
.welfare-tag span { display: inline-block; padding: 4px 11px; border: 1px solid #e2e6e4; border-radius: 14px; font-size: 12px; color: #555; background: #fff; cursor: pointer; transition: all .15s; user-select: none; }
.welfare-tag input:checked + span { border-color: #07c160; color: #07c160; background: #effbf4; font-weight: 600; }

/* 福利标签折叠选择器：默认收起，点击展开 */
.wf-picker { border: 1px solid #e2e6e4; border-radius: 10px; background: #fff; overflow: hidden; }
.wf-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0; padding: 11px 12px;
  border: 0; background: #fafbfa; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--text-3, #8a9490); text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.wf-toggle:active { background: #f1f5f2; }
.wf-toggle-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-toggle.has-value .wf-toggle-text { color: #07a653; font-weight: 600; }
.wf-arrow {
  flex: 0 0 auto; width: 7px; height: 7px;
  border-right: 1.5px solid #9aa4a0; border-bottom: 1.5px solid #9aa4a0;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s;
}
.wf-picker.is-open .wf-arrow { transform: rotate(-135deg) translate(-2px, -2px); }
.wf-panel { padding: 12px 11px; border-top: 1px solid #eef1ef; animation: wfFade .16s ease; }
.wf-panel[hidden] { display: none !important; }
@keyframes wfFade { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }

/* ---------- 系统通知：聊天列表置顶入口 + 通知中心 ---------- */
.avatar-wrap.notice-logo {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px;
  background: #fff2e0; color: #e08a00; flex: none;
}
.notice-logo svg { display: block; fill: currentColor; }

.nt-item {
  display: block; padding: 14px 16px; margin-bottom: 10px;
  background: #fff; border-radius: 12px;
  text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.nt-item:active { background: #fafafa; }
.nt-top { display: flex; align-items: center; gap: 8px; }
.nt-title {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: #191919;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nt-time { flex: none; font-size: 11.5px; color: #b0b0b0; }
.nt-desc {
  margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: #8c8c8c;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nt-dot { width: 7px; height: 7px; border-radius: 50%; background: #fa5151; flex: none; }

.nt-detail { background: #fff; border-radius: 12px; padding: 18px 16px 20px; }
.nt-detail h1 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; color: #191919; font-weight: 600; }
.nt-meta { font-size: 11.5px; color: #b0b0b0; margin-bottom: 14px; }
.nt-body { font-size: 14px; line-height: 1.85; color: #3d3d3d; word-break: break-word; }
.nt-detail .nt-back { display: inline-block; margin-top: 20px; font-size: 13px; color: #07c160; text-decoration: none; }
