:root {
  --bg: #f5f6f7;
  --card: #ffffff;
  --ink: #1f2329;
  --muted: #8a9099;
  --line: #eef0f2;
  --brand: #00bebd;
  --brand-dark: #00a8a7;
  --brand-soft: #e6f9f8;
  --primary: #00bebd;
  --text: #1f2329;
  --gold: #ff6b00;
  --gold-soft: #fff1e6;
  --danger: #ff4d4f;
  --ok: #00b578;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 35, 41, .03), 0 8px 20px rgba(31, 35, 41, .04);
}

/* ================================================================
   杏色主题（预览）：和手拍 logo 同一套色
   想回到原来的青绿主题，把 index.html 里 <body class="theme-apricot">
   的 class 去掉即可，其它不用改。
   ================================================================ */
body.theme-apricot {
  --bg: #faf0df;
  --card: #ffffff;
  --ink: #3a2a1f;
  --muted: #9a7f6b;
  --line: #f0e2cc;
  --brand: #ce6a2a;
  --brand-dark: #b25a20;
  --brand-soft: #fbecd9;
  --primary: #ce6a2a;
  --text: #3a2a1f;
  --gold: #c97c2e;
  --gold-soft: #fbf0e2;
  --ok: #4f8f5b;
  --shadow: 0 1px 2px rgba(58, 42, 31, .04), 0 8px 20px rgba(58, 42, 31, .06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  /* 全部为系统字体或开源字体，不内置、不分发任何字体文件：
     PingFang SC / Microsoft YaHei / Segoe UI 由用户设备提供；
     Noto Sans SC、Source Han Sans SC 为 SIL OFL 1.1 开源可商用；
     WenQuanYi Micro Hei 为 GPLv3 + 字体例外，仅作系统回退。 */
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Micro Hei",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.app { min-height: 100vh; }

.screen {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding-bottom: 88px;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  background: rgba(238, 240, 244, .92);
  backdrop-filter: blur(12px);
}
.topbar h1 { font-size: 17px; font-weight: 600; }
.logo {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: block; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.login-logo { height: 76px; width: auto; display: block; margin-bottom: 0; }
/* 图形商标的 ™：贴在 logo 右上角，不挂在文字上 */
.login-logo-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
.tm-mark {
  position: absolute;
  top: 0;
  right: -12px;
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
}
.login-hero .brand-slogan {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.icon-btn {
  width: 32px; height: 32px;
  border: 0; border-radius: 10px;
  background: transparent;
  font-size: 22px; line-height: 1;
  color: var(--ink);
}
.top-actions { margin-left: auto; }

.page { padding: 4px 16px 24px; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 30;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
}
.tab .ti { font-size: 18px; line-height: 1; filter: grayscale(1) opacity(.55); }
.tab.on { color: var(--brand); font-weight: 600; }
.tab.on .ti { filter: none; }

/* ---------- generic ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.card-head h3 { font-size: 15px; }
.card-head a { font-size: 13px; color: var(--brand); }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 12px; margin-top: 10px; }
/* 商标 / 版权声明行 */
.brand-line { text-align: center; margin-top: 16px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.brand-line sup { font-size: 9px; margin-left: 1px; vertical-align: super; }
.empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  background: #f3f4f6;
  color: var(--ink);
  transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; border-color: var(--line); }
.btn.light { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.32); }
.btn.block { display: flex; width: 100%; margin-top: 8px; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { background: #fff1f3; color: var(--danger); border-color: #fecdd3; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
/* 验证码 + 获取按钮 */
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  font-size: 16px;
}
.code-row input:focus { border-color: var(--brand); background: #fff; }
.code-row .btn { flex: none; white-space: nowrap; }

/* 两步式登录：手机号 → 验证码 */
.auth-title { font-size: 22px; font-weight: 700; }
.auth-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  margin: 12px 0 4px;
}
.auth-prefix { font-size: 15px; font-weight: 600; color: var(--ink); }
.auth-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 4px 0;
}
.auth-phone:focus-within { border-bottom-color: var(--brand); }
.auth-link { display: inline-block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.auth-link:hover { color: var(--brand); }
.auth-agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.auth-agree input { margin-top: 2px; accent-color: var(--brand); flex: none; }
.auth-agree a { color: var(--brand); }
.auth-foot {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 18px 0 4px;
  font-size: 12px;
}
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--brand); }

/* 注册后选身份 */
.role-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px 32px;
}
.role-cards { display: flex; flex-direction: column; gap: 18px; }
.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease;
}
.role-card:active { transform: scale(.99); border-color: var(--brand); }
.role-card b { font-size: 20px; }
.role-art {
  width: 200px;
  height: 200px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-art svg { width: 100%; height: 100%; display: block; }
.role-art img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.18); }
.role-exit {
  display: block;
  margin: 26px auto 8px;
  background: none;
  border: 0;
  color: var(--brand);
  font-size: 14px;
  padding: 8px 16px;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  background: #fff;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.notice {
  background: var(--brand-soft);
  color: #1e40af;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  margin-bottom: 12px;
}
.notice.danger { background: #fff1f3; color: #be123c; }
.link-btn {
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
}
.report-line { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 8px; }
.tip {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

/* ---------- login ---------- */
.login { max-width: 560px; margin: 0 auto; padding: 32px 20px 40px; }
.login-hero { padding: 20px 4px 24px; }
.logo-big {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.login-hero h1 { font-size: 28px; letter-spacing: -.5px; margin-bottom: 8px; }
.login-hero p { color: var(--muted); font-size: 13px; }
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f2f5;
  border-radius: 12px;
  padding: 4px;
  margin: 4px 0 14px;
}
.seg-btn {
  border: 0;
  background: transparent;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 13px;
  color: var(--muted);
}
.seg-btn.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.quick-list { display: flex; flex-direction: column; gap: 8px; }

/* ---------- home ---------- */
.hero {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}
.hero-kicker { font-size: 12px; opacity: .8; margin-bottom: 6px; }
.hero h2 { font-size: 20px; margin-bottom: 8px; }
.hero p { font-size: 13px; opacity: .9; }
.hero .btn { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat {
  background: #fff;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); }

.row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f2f4;
  width: 100%;
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
}
.row-item:last-child { border-bottom: 0; }
.ri-main { flex: 1; min-width: 0; }
.ri-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ri-side { flex-shrink: 0; }

/* ---------- demand ---------- */
.demand-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.demand-card h3 { font-size: 16px; margin: 8px 0; }
.dc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dc-time { margin-left: auto; font-size: 12px; color: var(--muted); }
.dc-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #f1f2f5;
  color: #374151;
  font-size: 11px;
}
.chip.warn { background: #fff1e6; color: #c2410c; }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  background: #f1f2f5;
  color: var(--muted);
}
.badge.approved { background: #e8f7ef; color: var(--ok); }
.badge.matched { background: #e8f0ff; color: var(--brand); }
.badge.pending { background: #fff7e6; color: var(--gold); }
.badge.rejected { background: #fff1f3; color: var(--danger); }

.detail-head h2 { margin: 8px 0 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; }
.kv span { color: var(--muted); flex-shrink: 0; }
.kv b { font-weight: 600; text-align: right; }
.pre { white-space: pre-wrap; font-size: 14px; margin: 8px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-btn {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 12px;
}
.chip-btn.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.reject-group { margin-top: 12px; }
.reject-group-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

.contact { margin-top: 10px; }
.contact.locked { background: #fafafa; border: 1px dashed #d1d5db; border-radius: 12px; padding: 14px; }
.locked-title { font-weight: 600; margin-bottom: 4px; }
.contact .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.contact-mini { font-size: 12px; color: var(--ok); background: #e8f7ef; padding: 6px 8px; border-radius: 8px; margin: 6px 0; }

.bid { border-top: 1px solid #f1f2f4; padding: 14px 0; }
.bid:first-of-type { border-top: 0; }
.bid-head { display: flex; align-items: baseline; gap: 8px; }
.bid-head b { font-size: 14px; }
.bid-head .muted { font-size: 12px; }
.score { margin-left: auto; font-size: 12px; color: var(--gold); }
.bid p { font-size: 13px; margin: 6px 0; color: #374151; }
.bid-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.upsell {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- wallet ---------- */
.balance {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.balance .label { font-size: 12px; opacity: .7; }
.balance .num { font-size: 34px; font-weight: 700; letter-spacing: -.5px; margin: 4px 0 2px; }
.balance .sub { font-size: 12px; opacity: .75; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.pack .p-name { font-size: 13px; font-weight: 600; }
.pack .p-price { font-size: 18px; font-weight: 700; color: var(--brand); margin: 2px 0 8px; }
.plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.plan.hot { border-color: #bfdbfe; background: var(--brand-soft); }
.plan-name { font-size: 13px; font-weight: 600; }
.plan-price { font-size: 20px; font-weight: 700; }
.plan-price span { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan-tag { font-size: 11px; color: var(--gold); }
.plan .btn { margin-left: auto; }
.tx { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f2f4; font-size: 13px; }
.tx:last-child { border-bottom: 0; }
.tx .amt.pos { color: var(--ok); }
.tx .amt.neg { color: var(--danger); }

/* ---------- me ---------- */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
}
.list { padding: 4px 16px; }
.as-btn { border: 0; }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.admin-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.admin-tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-card { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.admin-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- 消息 / 聊天 ---------- */
.thread-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.thread-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.thread-main { flex: 1; min-width: 0; }
.thread-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.thread-top b { font-size: 14px; }
.thread-sub {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thread-last {
  font-size: 13px; color: #374151; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.unread {
  background: var(--danger); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-demand {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.chat-demand a { color: var(--brand); font-weight: 600; }
.chat-msgs {
  min-height: 40vh;
  max-height: 56vh;
  overflow-y: auto;
  padding: 4px 2px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.bubble {
  background: #fff;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.mine .bubble { background: var(--brand); color: #fff; }
.msg-time { font-size: 10px; color: var(--muted); margin-top: 3px; }
.msg-read { color: var(--muted); }
.msg-read.on { color: var(--brand); }
.chat-input {
  display: flex;
  gap: 8px;
  position: sticky;
  bottom: 66px;
  padding: 8px 0 4px;
  background: var(--bg);
}
.chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  outline: none;
}
.chat-input input:focus { border-color: var(--brand); }
.chat-input .btn { flex-shrink: 0; }

/* ---------- 评分 / 评价 ---------- */
.rating-inline b { color: var(--gold); }
.stars-mini { color: #f59e0b; letter-spacing: 1px; font-size: 12px; }
.stars-mini.big { font-size: 22px; letter-spacing: 2px; }
.rating-big { font-size: 36px; font-weight: 700; line-height: 1.1; }
.rating-big span { font-size: 14px; color: var(--muted); font-weight: 400; }
.star-row { display: flex; gap: 6px; margin: 12px 0 10px; }
.star { border: 0; background: transparent; font-size: 32px; line-height: 1; color: #d1d5db; padding: 0; }
.star.on { color: #f59e0b; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag-btn { border: 1px solid var(--line); background: #fff; height: 28px; }
.tag-btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.review { border-top: 1px solid #f1f2f4; padding: 12px 0; }
.review:first-of-type { border-top: 0; }
.review-head { display: flex; align-items: center; gap: 8px; }
.review-head b { font-size: 13px; }
.review .dc-time { margin-left: auto; }
.review p { font-size: 13px; margin: 6px 0 0; color: #374151; }

/* ---------- modal / toast ---------- */
.hidden { display: none; }
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .45);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* 注意：必须放在 .modal-mask 之后，否则 display:flex 会覆盖 .hidden，遮罩会一直挡住页面 */
.modal-mask.hidden { display: none; }
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
}
.modal h3 { font-size: 18px; margin-bottom: 6px; }
.price-big { font-size: 34px; font-weight: 700; margin: 8px 0; }
.modal .btn { margin-top: 10px; }
.pay-note { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 20px);
  background: rgba(17, 24, 39, .92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease;
  z-index: 200;
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(190, 18, 60, .95); }

@media (min-width: 700px) {
  body { padding: 20px 0; }
  .screen, .login { border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(17,24,39,.12); }
  .tabbar { bottom: 20px; border-radius: 0 0 24px 24px; }
}

/* 聊天附件 */
.chat-tools { display: flex; gap: 8px; padding: 8px 2px 0; }
.chat-tool {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.2;
}
.chat-tool:active { background: var(--bg); }
.bubble-media { padding: 0; background: transparent; border: none; box-shadow: none; }
.chat-img { max-width: 220px; max-height: 260px; border-radius: 14px; display: block; }
.chat-file { display: flex; align-items: center; gap: 10px; min-width: 180px; color: inherit; text-decoration: none; }
.chat-file-ico { font-size: 20px; line-height: 1; }
.chat-file-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-file-main b { font-size: 13px; font-weight: 600; word-break: break-all; }
.chat-file-main small { font-size: 11px; color: var(--muted); }

.chat-tool.recording { border-color: var(--danger); color: var(--danger); background: #fff1f2; }
.chat-voice { display: flex; align-items: center; gap: 8px; }
.chat-voice audio { width: 200px; height: 36px; }
.voice-dur { font-size: 12px; color: var(--muted); }

/* 匹配推荐 */
.match-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}
.match-top { display: flex; gap: 10px; align-items: flex-start; }
.match-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex: none;
}
.match-main { flex: 1; min-width: 0; }
.match-name { font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.match-score { text-align: center; flex: none; }
.match-score b { display: block; font-size: 20px; color: var(--brand); line-height: 1.1; }
.match-score small { font-size: 10px; color: var(--muted); }
.match-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.match-tag {
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 3px 8px;
}
.match-tag b { font-weight: 600; }
.match-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.match-actions-right { display: flex; align-items: center; gap: 6px; }
.match-why {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-soft);
}
.match-actions .btn.ghost.match-skip { background: #f1f3f5; color: var(--muted); }
.match-card.skip-out { opacity: 0; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease; }
.match-main .chips { margin-top: 6px; }

/* AI 辅助 */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-head label { margin: 0; }
.field-head .btn { flex: none; }

.guide-preview { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 12px 0; }

/* 会话操作 */
.thread-wrap { background: var(--card); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.thread-wrap .thread-card { box-shadow: none; margin: 0; border-radius: 0; }
.thread-actions { display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; }
.thread-actions button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.chat-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 2px; }
.chat-actions button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.chat-actions .link-btn { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: #fff; }

/* 头像 */
.avatar img, .thread-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar-click { cursor: pointer; }
.avatar-click:hover { opacity: .88; }

/* AI 追问发布 */
.iv-head { padding: 4px 2px 8px; }
.iv-msgs { display: flex; flex-direction: column; gap: 10px; padding: 8px 2px 14px; max-height: 52vh; overflow: auto; }
.iv-row { display: flex; }
.iv-row.user { justify-content: flex-end; }
.iv-bubble { max-width: 84%; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 14px; line-height: 1.6; }
.iv-row.user .iv-bubble { background: var(--primary); color: #fff; }
.iv-bubble.typing { color: var(--muted); background: #f4f5f7; box-shadow: none; animation: iv-pulse 1.2s ease-in-out infinite; }
@keyframes iv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.iv-options { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.iv-options .chip { cursor: pointer; border: 1px solid var(--line); background: #fff; }

/* 分享区评论 */
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-of-type { border-bottom: 0; }
.comment-head { display: flex; justify-content: space-between; align-items: center; }
.comment-body { margin-top: 4px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }

/* 项目类型两步选择 */
.type-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.type-group { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.type-group b { display: block; font-size: 14px; color: var(--text); }
.type-group small { color: var(--muted); font-size: 12px; }
.type-group.on { border-color: var(--primary); background: #eef4ff; box-shadow: 0 0 0 1px var(--primary) inset; }
.type-leaves { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.type-leaf { cursor: pointer; border: 1px solid var(--line); background: #fff; }
.type-leaf.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 头像可点击查看简历 */
.match-avatar, .bid-avatar { overflow: hidden; text-decoration: none; }
.match-avatar img, .bid-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.bid-avatar { width: 26px; height: 26px; border-radius: 50%; background: #eef2ff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.match-name a, .bid-head b a { color: inherit; text-decoration: none; }

.match-avatar, .bid-avatar, .thread-avatar { cursor: pointer; }

/* ============================================================
   BOSS 直聘 风格主题（只覆盖视觉，不改结构与流程）
   ============================================================ */

body { background: var(--bg); }

/* ---------- 顶栏 ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 52px;
  backdrop-filter: none;
}
.topbar h1 { font-size: 17px; font-weight: 700; color: var(--ink); }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .5px; color: var(--ink); }
.brand-mark { border-radius: 9px; }
.icon-btn { border-radius: 50%; color: var(--ink); }
.icon-btn:active { background: #f2f3f5; }

.page { padding: 12px 16px 24px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tab { gap: 3px; font-size: 10px; color: #9aa0a6; }
.tab .ti { font-size: 17px; }
.tab .ti svg { width: 21px; height: 21px; display: block; }
.tab.on { color: var(--brand); font-weight: 600; }

/* ---------- 卡片 ---------- */
.card, .admin-card, .demand-card, .thread-card, .match-card, .thread-wrap {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .03), 0 8px 20px rgba(31, 35, 41, .04);
}
.card-head h3 { font-size: 16px; font-weight: 700; }
.card-title { font-size: 16px; font-weight: 700; }
.empty { color: #9aa0a6; }

/* ---------- 按钮 ---------- */
.btn { border-radius: 999px; padding: 11px 18px; background: #f2f3f5; }
.btn.primary { background: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: #f2f3f5; border-color: transparent; color: var(--ink); }
.btn.light { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn.danger { background: #fff1f0; color: var(--danger); border-color: transparent; }
.btn.sm { padding: 8px 14px; }

/* ---------- 表单 ---------- */
.field input, .field textarea, .field select {
  background: #f5f6f7;
  border-color: transparent;
  border-radius: 12px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 190, 189, .10);
}
.check input[type="checkbox"] { accent-color: var(--brand); }

.notice { background: var(--brand-soft); color: #00807f; border-radius: 10px; }
.notice.danger { background: #fff1f0; color: var(--danger); }
.link-btn { color: var(--brand); }

/* ---------- 首页 hero / 统计 ---------- */
.hero {
  background: linear-gradient(135deg, #00c9c7 0%, #00bebd 48%, #00a8a7 100%);
  box-shadow: 0 12px 28px rgba(0, 190, 189, .22);
  border-radius: 18px;
}
.hero h2 { font-size: 21px; }
.hero .btn.light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.stats { gap: 8px; }
.stat { border-radius: 14px; box-shadow: none; }
.stat b { font-size: 19px; }
.stat span { color: #9aa0a6; }

/* ---------- 需求卡：预算用橙色强调 ---------- */
.row-item { border-bottom-color: #f2f3f5; }
.ri-title { font-size: 15px; font-weight: 600; }
.demand-card h3 { font-size: 16px; font-weight: 700; }
.dc-meta b { color: var(--gold); font-size: 16px; font-weight: 800; }
.budget-val { color: var(--gold); font-size: 16px; font-weight: 800; }
.chip { border-radius: 6px; background: #f2f3f5; color: #5c6370; }
.chip.warn, .chip.gold { background: var(--gold-soft); color: var(--gold); }
.badge { border-radius: 6px; }
.badge.approved { background: #e8f8f0; color: var(--ok); }
.badge.matched { background: var(--brand-soft); color: var(--brand-dark); }
.badge.pending { background: var(--gold-soft); color: var(--gold); }
.badge.rejected { background: #fff1f0; color: var(--danger); }
.score { color: var(--gold); }

/* ---------- 钱包 ---------- */
.balance {
  background: linear-gradient(135deg, #00c9c7 0%, #00bebd 50%, #00a8a7 100%);
  border-radius: 18px;
}
.pack { border-radius: 14px; }
.pack .p-price { color: var(--gold); }
.plan { border-radius: 14px; }
.plan.hot { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- 头像 ---------- */
.avatar, .thread-avatar, .match-avatar { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- 后台 ---------- */
.admin-tabs { gap: 6px; }
.admin-tabs button { border: 0; background: #f2f3f5; color: #5c6370; padding: 8px 14px; }
.admin-tabs button.on { background: var(--brand); color: #fff; }

/* ---------- 消息 / 聊天 ---------- */
.thread-top b { font-size: 15px; font-weight: 700; }
.thread-sub { color: #9aa0a6; }
.thread-last { color: #5c6370; }
.unread { background: var(--danger); }
.chat-demand { border-radius: 12px; }
.chat-demand a { color: var(--brand-dark); }
.bubble { border-radius: 14px; box-shadow: 0 1px 2px rgba(31, 35, 41, .04); }
.msg.mine .bubble { background: var(--brand); color: #fff; }
.msg-time { color: #a8adb5; }
.chat-input { background: var(--bg); }
.chat-input input { border-color: transparent; background: #f2f3f5; border-radius: 999px; padding: 11px 16px; }
.chat-input input:focus { border-color: var(--brand); background: #fff; }
.chat-tool { border: 0; background: #f2f3f5; color: #5c6370; }
.chat-tool:active { background: #e9ebee; }

/* ---------- 登录切换 ---------- */
.seg { background: #f2f3f5; border-radius: 999px; }
.seg-btn { border-radius: 999px; }
.seg-btn.on { background: #fff; color: var(--brand-dark); }

/* ---------- 匹配推荐 ---------- */
.match-card { border: 0; }
.match-score b { color: var(--brand-dark); }
.match-tag { background: var(--brand-soft); color: var(--brand-dark); }
.match-actions .btn.ghost { background: var(--brand); color: #fff; }
.match-actions .btn.ghost:active { background: var(--brand-dark); }

/* ---------- 类型 / 标签选择 ---------- */
.type-group { border-radius: 12px; border-color: var(--line); }
.type-group.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.type-leaf { border-radius: 999px; }
.type-leaf.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag-btn { border-radius: 999px; border-color: var(--line); }
.tag-btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.chip-btn { border-radius: 999px; }
.chip-btn.on { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

/* ---------- 弹窗 / 提示 ---------- */
.modal { border-radius: 22px 22px 0 0; }
.toast { border-radius: 999px; }
.price-big { color: var(--ink); }

/* ---------- 评分 ---------- */
.stars-mini, .star.on { color: #ff9f1c; }
.rating-inline b { color: var(--gold); }

/* ============================================================
   消息 / 聊天 / 我的（BOSS 直聘风格）
   ============================================================ */
.chat-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.chat-tabs button {
  border: 0; background: #f2f3f5; color: #5c6370;
  border-radius: 999px; padding: 8px 16px; font-size: 13px;
}
.chat-tabs button.on { background: var(--brand); color: #fff; font-weight: 600; }
.chat-tab-count { margin-left: 4px; font-size: 11px; opacity: .72; }
.chat-tabs button.on .chat-tab-count { opacity: .95; }

.chat-list {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .03), 0 8px 20px rgba(31, 35, 41, .04);
}
.chat-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid #f2f3f5;
}
.chat-row:last-child { border-bottom: 0; }
.chat-row:active { background: #f7f8f9; }
.chat-row-avatar {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex: none; overflow: hidden;
}
.chat-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-dot {
  position: absolute; top: 2px; right: 2px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--danger); border: 2px solid #fff;
}
.chat-row-main { flex: 1; min-width: 0; }
.chat-row-top { display: flex; align-items: center; gap: 6px; }
.chat-row-top b { font-size: 15px; font-weight: 700; }
.chat-row-time { margin-left: auto; font-size: 11px; color: #9aa0a6; }
.chat-tag {
  font-size: 10px; color: #8a9099; background: #f2f3f5;
  border-radius: 4px; padding: 1px 5px;
}
.chat-tag.pin { color: var(--brand-dark); background: var(--brand-soft); }
.chat-tag.on { color: var(--brand-dark); background: var(--brand-soft); }
.chat-tag.warn { color: var(--gold); background: var(--gold-soft); }
.chat-row-sub {
  font-size: 12px; color: #8a9099; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-row-last {
  font-size: 13px; color: #5c6370; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-row .unread { flex: none; }

.chat-contact {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .03);
}
.chat-contact-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.chat-contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-contact-main { flex: 1; min-width: 0; }
.chat-contact-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.chat-contact-sub {
  display: block; font-size: 12px; color: #8a9099; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 我的 */
.me-head {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 18px; padding: 18px 16px; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .03), 0 8px 20px rgba(31, 35, 41, .04);
}
.me-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 20px; font-weight: 800; }
.me-sub { font-size: 12px; color: #8a9099; margin-top: 3px; }
.me-tags { display: flex; gap: 6px; margin-top: 8px; }
.me-tag { font-size: 11px; color: #8a9099; background: #f2f3f5; border-radius: 6px; padding: 2px 8px; }
.me-tag.ok { color: var(--brand-dark); background: var(--brand-soft); }
.me-tag.vip { color: var(--gold); background: var(--gold-soft); }
.me-edit { flex: none; font-size: 18px; color: #8a9099; }

.me-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 16px; padding: 14px 0; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .03);
}
.me-stat { text-align: center; border-right: 1px solid #f2f3f5; }
.me-stat:last-child { border-right: 0; }
.me-stat b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); }
.me-stat span { font-size: 10px; color: #8a9099; }

.me-menu {
  background: #fff; border-radius: 16px; margin-bottom: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 35, 41, .03), 0 8px 20px rgba(31, 35, 41, .04);
}
.me-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border: 0; border-bottom: 1px solid #f2f3f5;
  background: none; text-align: left; font-size: 14px; color: var(--ink);
}
.me-row:last-child { border-bottom: 0; }
.me-row:active { background: #f7f8f9; }
.me-row span { flex: 1; }
.me-row b { font-size: 12px; color: #9aa0a6; font-weight: 400; text-align: right; }
.me-ico {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
}
.me-ico svg { width: 17px; height: 17px; }
.me-row-danger span { color: var(--danger); }
.me-row-danger .me-ico { background: #fff1f0; color: var(--danger); }
.me-row-static { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 14px; }
.me-row-static span { flex: 1; }
.me-row-static b { font-size: 12px; color: #9aa0a6; font-weight: 400; }
.me-block-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 14px; border-top: 1px solid #f2f3f5; font-size: 13px;
}
.me-block-row > span:first-child { flex: 1; }
.me-block-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 聊天快捷操作：换电话 / 换微信 / 不感兴趣 ---------- */
.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 2px 0; }
.qr {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.3;
}
.qr:active { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); }

/* 系统提示：已交换电话 / 对方婉拒 */
.chat-system {
  align-self: center;
  max-width: 86%;
  font-size: 12px;
  color: var(--muted);
  background: #eef0f2;
  border-radius: 10px;
  padding: 5px 12px;
  text-align: center;
}

/* 交换电话 / 微信的请求卡片 */
.contact-req {
  min-width: 210px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.cr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-top b { font-size: 14px; }
.cr-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.cr-status.wait { background: var(--gold-soft); color: var(--gold); }
.cr-status.ok { background: #e8f7ef; color: var(--ok); }
.cr-status.no { background: #f1f2f5; color: var(--muted); }
.cr-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }
.cr-contact {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--brand-dark);
  user-select: all;
  word-break: break-all;
}
.cr-actions { display: flex; gap: 8px; margin-top: 10px; }
.cr-actions .btn { flex: 1; }
.msg.mine .contact-req { border-color: var(--brand-soft); }

/* ---------- 数据看板：许可证启动指标 ---------- */
.trigger { margin: 12px 0; }
.trigger-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.trigger-top b { font-variant-numeric: tabular-nums; color: var(--muted); }
.trigger-top b.ok { color: var(--ok); }
.bar { height: 8px; background: #eef0f2; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }

.trend-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trend-table th {
  text-align: right; font-weight: 500; color: var(--muted);
  font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line);
}
.trend-table th:first-child, .trend-table td:first-child { text-align: left; }
.trend-table td { text-align: right; padding: 7px 4px; border-bottom: 1px solid #f4f5f7; font-variant-numeric: tabular-nums; }
.trend-table tr:last-child td { border-bottom: 0; }

/* ---------- BOSS 风格发布向导 ---------- */
.wizard-head { padding: 4px 2px 16px; }
.wizard-count { font-size: 13px; color: var(--muted); font-weight: 600; }
.wizard-count b { font-size: 20px; color: var(--text); }
.wizard-count span { color: var(--muted); }
.wizard-dots { display: flex; gap: 6px; margin-top: 10px; }
.wizard-dot { flex: 1; height: 3px; border-radius: 99px; background: #e5e7eb; transition: background .2s; }
.wizard-dot.done { background: var(--brand); opacity: .45; }
.wizard-dot.on { background: var(--brand); }
.wizard-form { padding-bottom: 110px; }
.wizard-step { display: none; }
.wizard-step.on { display: block; animation: wizardIn .22s ease; }
@keyframes wizardIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.wizard-kicker { font-size: 11px; letter-spacing: .14em; color: var(--brand); font-weight: 800; }
.wizard-step h2 { font-size: 26px; line-height: 1.25; margin: 8px 0 6px; letter-spacing: -.02em; }
.wizard-sub { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 22px; }
.wizard-input { width: 100%; border: 0; border-bottom: 1.5px solid #e5e7eb; border-radius: 0; padding: 14px 2px; font-size: 21px; font-weight: 600; background: transparent; }
.wizard-input:focus { outline: none; border-color: var(--brand); }
.wizard-textarea { width: 100%; min-height: 190px; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; font-size: 15px; line-height: 1.7; background: #fff; resize: vertical; }
.wizard-textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.boss-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boss-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1.5px solid #eef0f3; border-radius: 14px; background: #fff; text-align: left; }
.boss-cat.on { border-color: var(--brand); background: #f5f8ff; }
.boss-cat .cat-icon { width: 34px; height: 34px; border-radius: 10px; background: #eef3ff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 4px; }
.boss-cat b { font-size: 14px; }
.boss-cat small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { border: 1px solid #e5e7eb; background: #fff; color: #374151; border-radius: 99px; padding: 8px 13px; font-size: 13px; }
.choice-chip.on { border-color: var(--brand); background: #eef4ff; color: var(--brand); font-weight: 600; }
.ai-inline { display: block; margin-top: 18px; color: var(--brand); font-size: 13px; text-decoration: none; }
.wizard-preview { border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; background: #fbfcfe; }
.wizard-preview-type { display: inline-flex; padding: 3px 9px; border-radius: 99px; background: #eef4ff; color: var(--brand); font-size: 11px; font-weight: 700; }
.wizard-preview h3 { margin: 10px 0 6px; font-size: 19px; }
.wizard-preview-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; }
.wizard-preview p { margin: 10px 0; font-size: 13px; color: #4b5563; }
.wizard-preview-skill { margin-top: 8px; font-size: 12px; color: var(--muted); }
.wizard-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; max-width: 560px; margin: 0 auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid #f1f2f4; }
.wizard-back { flex: 0 0 96px; border: 1px solid #e5e7eb; background: #fff; border-radius: 12px; color: #374151; font-size: 15px; font-weight: 600; }
.wizard-next { flex: 1; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; padding: 13px 16px; }

/* ---------- 项目类型选择器（底部抽屉） ---------- */
.type-select-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px solid #e5e7eb; border-radius: 16px; background: #fff; text-align: left; }
.type-select-card.has { border-color: var(--brand); background: #f7faff; }
.type-select-icon { width: 44px; height: 44px; border-radius: 13px; background: #eef3ff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.type-select-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.type-select-main b { font-size: 17px; color: var(--text); }
.type-select-main small { font-size: 12px; color: var(--muted); }
.type-select-arrow { font-size: 24px; color: #c3c8d2; }
.type-sheet-mask { position: fixed; inset: 0; z-index: 120; background: rgba(15,23,42,.42); display: none; align-items: flex-end; justify-content: center; }
.type-sheet-mask.on { display: flex; }
.type-sheet { width: 100%; max-width: 680px; height: 72vh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: sheetUp .22s ease; }
@keyframes sheetUp { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.type-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid #f1f2f4; }
.type-sheet-head b { display: block; font-size: 17px; }
.type-sheet-head small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.type-sheet-close { border: 0; background: #f3f4f6; color: #6b7280; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; }
.type-picker { flex: 1; min-height: 0; display: flex; }
.type-nav { width: 116px; flex: none; overflow-y: auto; background: #f7f8fa; padding: 8px 0; }
.type-nav-item { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 12px 12px; font-size: 12px; color: #6b7280; line-height: 1.35; }
.type-nav-item.on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.type-grid { flex: 1; overflow-y: auto; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.type-grid-title { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding: 2px 2px 6px; font-size: 13px; font-weight: 700; }
.type-grid-title span { font-size: 11px; color: var(--muted); font-weight: 400; }
.type-option { border: 1px solid #eef0f3; background: #fff; border-radius: 11px; padding: 12px 10px; text-align: left; font-size: 12px; line-height: 1.35; color: #374151; }
.type-option.on { border-color: var(--brand); background: #eef4ff; color: var(--brand); font-weight: 700; }

.type-sheet-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #f1f2f4; background: #fff; }

/* 合拍人大厅：详细推荐卡片 */
.match-demand-card { padding: 16px; }
.match-demand-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 12px; margin: 8px 0; }
.match-demand-desc { color: #374151; font-size: 13px; line-height: 1.6; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.match-demand-skill { color: var(--muted); font-size: 12px; margin: 6px 0; }
.hall-refresh-hint { text-align: center; color: var(--muted); font-size: 11px; padding: 12px 0 2px; }

button.ai-inline { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* 注册向导 AI 提示 */
.ai-tip { margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: #f5f8ff; border: 1px solid #e3ebff; color: #4b5b76; font-size: 12px; line-height: 1.6; }

/* 资料填写：单页滚动，不再分步 */
.wizard-block { display: block; margin-bottom: 14px; }
.wizard-form { padding-bottom: 20px; }

/* 资料填写：横向分页滑动 */
.pager {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pager::-webkit-scrollbar { display: none; }
.pager .ob-page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin-bottom: 0;
}
.pager-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 6px;
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 35%);
}
.pager-dots { display: flex; gap: 6px; align-items: center; }
.pager-dots i { width: 6px; height: 6px; border-radius: 50%; background: #e5e7eb; transition: all .2s; }
.pager-dots i.on { width: 18px; border-radius: 99px; background: var(--brand); }
.pager-btn { border: 0; border-radius: 12px; padding: 10px 18px; font-size: 14px; font-weight: 600; }
.pager-btn.primary { background: var(--brand); color: #fff; }
.pager-btn.ghost { background: #f1f3f5; color: var(--muted); }

/* 首页：需求灵感 + 大家都在发 */
.insp-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.insp-scroll::-webkit-scrollbar { display: none; }
.insp-card {
  flex: 0 0 210px;
  text-align: left;
  background: #f7fafc;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.insp-card b { font-size: 14px; line-height: 1.4; }
.insp-card small { color: var(--muted); font-size: 12px; }
.insp-tag { align-self: flex-start; font-size: 11px; color: var(--brand); background: #e9f8f7; border-radius: 99px; padding: 2px 8px; }
.hot-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #f1f3f5;
  padding: 10px 2px;
}
.hot-row:last-child { border-bottom: 0; }
.hot-row b { font-size: 14px; }
.hot-row span { color: var(--muted); font-size: 12px; }

/* ---------- 用户账号（早期会员 / 福利） ---------- */
.account-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-main { flex: 1; min-width: 0; }
.account-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.account-actions { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- BOSS 风格聊天：顶部快捷操作 / 日期分隔 / 气泡 ---------- */
.chat-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--card); border-radius: 14px; padding: 10px 4px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.chat-quick button, .chat-quick a {
  border: 0; background: none; display: flex; flex-direction: column;
  align-items: center; gap: 4px; font-size: 11px; color: var(--muted); padding: 2px;
}
.chat-quick button:active, .chat-quick a:active { opacity: .6; }
.cq-ico { font-size: 22px; line-height: 1.2; }
.chat-date {
  align-self: center; margin: 8px 0 2px; font-size: 11px; color: var(--muted);
  background: rgba(31, 35, 41, .05); padding: 2px 10px; border-radius: 10px;
}
.chat-msgs { padding-bottom: 6px; }
.msg { max-width: 78%; }
.bubble { border-radius: 10px; box-shadow: none; font-size: 14.5px; line-height: 1.5; }
.bubble-media { border-radius: 12px; }
.msg.mine .bubble { background: var(--brand); color: #fff; }
.msg-time { margin-top: 4px; }

/* 我的：身份切换 / 分区标题 / 扫码 */
.switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #e9f8f7, #f7fcfc);
  border: 1px solid #d9eeec;
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
}
.switch-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-info b { font-size: 14px; }
.switch-info span { font-size: 12px; color: var(--muted); }
.me-section { margin-top: 18px; }
.me-section-title { font-size: 12px; color: var(--muted); margin: 0 4px 6px; letter-spacing: .04em; }
.me-section .me-menu { margin: 0; }
.scan-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 58vh;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62), transparent);
}

/* ---------- 聊天输入框：表情面板 / 更多面板 ---------- */
.emoji-panel {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  background: var(--card); border-radius: 12px; padding: 8px; margin-bottom: 6px;
  box-shadow: var(--shadow); max-height: 190px; overflow-y: auto;
}
.emoji-panel[hidden] { display: none; }
.emoji-panel button {
  border: 0; background: none; font-size: 22px; line-height: 1; padding: 4px 0; border-radius: 8px;
}
.emoji-panel button:active { background: var(--bg); }
.plus-panel {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--card); border-radius: 12px; padding: 12px; margin-bottom: 6px;
  box-shadow: var(--shadow);
}
.plus-panel[hidden] { display: none; }
.plus-panel button {
  border: 0; background: var(--bg); border-radius: 10px; padding: 10px 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px; color: var(--muted);
}
.plus-panel button span { font-size: 20px; line-height: 1; }
.chat-input { align-items: center; }
.ci-btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 50%;
  width: 36px; height: 36px; line-height: 1; font-size: 18px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-input .btn.sm { flex: none; padding: 9px 14px; }

/* ---------- 聊天里的位置卡片 ---------- */
.chat-loc {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: inherit; min-width: 180px; max-width: 240px;
}
.chat-loc-ico { font-size: 22px; line-height: 1; }
.chat-loc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-loc-main b { font-size: 14px; font-weight: 600; }
.chat-loc-main small { font-size: 11px; opacity: .75; }

/* ---------- 聊天页：输入框固定底部，消除下方空白 ---------- */
#chatInputWrap {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(58px + env(safe-area-inset-bottom));
  width: 100%; max-width: 560px;
  padding: 6px 12px 8px; background: var(--bg); z-index: 30;
}
#chatInputWrap .chat-input { position: static; bottom: auto; }
.chat-msgs { max-height: none; padding-bottom: 110px; }
.chat-row { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- 长按底部动作面板 ---------- */
.modal.sheet-modal { padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); background: #f7f8fa; }
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: #dcdfe3; margin: 2px auto 10px; }
.sheet-title { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.sheet-group { border-radius: 14px; overflow: hidden; background: #fff; }
.sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: #fff;
  padding: 15px 16px; font-size: 15px; color: var(--text, #1f2329); text-align: left;
  border-bottom: 1px solid var(--line);
}
.sheet-item:last-child { border-bottom: 0; }
.sheet-item:active { background: #f2f3f5; }
.sheet-item .si { width: 22px; text-align: center; font-size: 18px; }
.sheet-item.danger { color: #e5484d; }
.sheet-cancel {
  margin-top: 10px; width: 100%; border: 0; background: #fff; border-radius: 14px;
  padding: 15px; font-size: 15px; color: var(--text, #1f2329);
}

/* ---------- 聊天详情：隐藏底部导航，输入框贴底 ---------- */
.screen.no-nav { padding-bottom: 0; }
.screen.no-nav .page { padding-bottom: 0; }
.screen.no-nav #chatInputWrap { bottom: calc(8px + env(safe-area-inset-bottom)); }
.screen.no-nav .chat-msgs { padding-bottom: 90px; }

/* ---------- 长按浮层菜单（微信风格） ---------- */
.ctx-backdrop { position: fixed; inset: 0; z-index: 190; background: transparent; }
.ctx-menu {
  position: fixed; z-index: 191; min-width: 176px;
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(31, 35, 41, .14); padding: 0;
}
.ctx-item {
  display: block; width: 100%; border: 0; background: transparent; color: var(--text);
  text-align: left; padding: 13px 18px; font-size: 15px; line-height: 1.2;
}
.ctx-item + .ctx-item { border-top: 1px solid var(--line); }
.ctx-item:active { background: var(--brand-soft); color: var(--brand); }
.ctx-item.danger { color: #e5484d; }
.ctx-item.danger:active { background: #fdecec; color: #d13438; }

/* ---------- 群聊：邀请卡片 / 成员 / 发送者 ---------- */
.chat-quick { grid-template-columns: repeat(4, 1fr); }
.msg-sender { font-size: 11px; color: var(--muted); margin: 0 2px 4px; display: flex; align-items: center; gap: 4px; }
.msg-sender .msg-side { font-size: 10px; padding: 1px 5px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.invite-req {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-width: 210px; max-width: 280px;
}
.invite-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.invite-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.invite-apprs { display: flex; gap: 6px; margin-bottom: 8px; }
.inv-appr { font-size: 11px; padding: 2px 8px; border-radius: 8px; background: var(--bg); color: var(--muted); }
.inv-appr.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.banner-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px;
}
.banner-main { flex: 1; font-size: 13px; min-width: 0; }
.banner-actions { display: flex; gap: 6px; flex: none; }
.member-list { max-height: 50vh; overflow-y: auto; margin: 8px 0; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.member-main small { color: var(--muted); font-size: 11px; }

/* 好友 / 群聊 */
.chat-actions-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.friend-pick-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.friend-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.friend-pick.on { border-color: var(--brand); background: #f2fbfa; }
.friend-pick-name { font-weight: 600; font-size: 14px; }
.friend-pick small { color: var(--muted); font-size: 12px; }
.friend-pick i { margin-left: auto; font-style: normal; color: var(--brand); font-weight: 700; }
.selected-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- 账号 / 二维码 ---------- */
.account-big {
  text-align: center; font-size: 24px; font-weight: 700; letter-spacing: .5px;
  margin: 12px 0; color: var(--brand);
}
.qr-box { display: flex; justify-content: center; margin: 12px 0; }
.qr-box svg { width: 220px; height: 220px; background: #fff; border-radius: 12px; }

/* ---------- 邀请弹窗：勾选好友 / 搜索 ---------- */
.invite-btn {
  flex: none; border: 1px solid var(--brand); color: var(--brand);
  background: var(--brand-soft); border-radius: 999px; padding: 8px 10px;
  font-size: 13px; white-space: nowrap; line-height: 1.2;
}
.invite-list { max-height: 40vh; overflow-y: auto; margin: 8px 0; }
.invite-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.invite-row:last-child { border-bottom: 0; }
.invite-row input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.invite-name { font-size: 14px; min-width: 0; }

/* 行业输入：主题色自定义下拉 */
.industry-wrap { position: relative; }
.industry-suggest {
  position: absolute;
  left: 0;
  width: 240px;
  max-width: 100%;
  top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 176px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 6px 18px rgba(17, 24, 39, .10);
}
.industry-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f1f3f5;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}
.industry-suggest button:hover { background: #f2fbfa; color: var(--brand); }
.industry-suggest button:last-child { border-bottom: 0; }

/* ---------- 用户主页：加好友 / 收藏 / 拉黑 / 举报 一行 ---------- */
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.profile-actions .btn, .profile-actions .badge { flex: none; }
.msg-sender-name { cursor: pointer; }

/* ---------- 我的：右上角快捷操作 ---------- */
.me-top-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 2px 0 6px; }
.me-quick-btn {
  border: 1px solid var(--line); background: var(--card); color: var(--brand);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; text-decoration: none; line-height: 1.2;
}

/* ---------- 我的：头像卡片右侧快捷按钮 ---------- */
.me-head { align-items: flex-start; }
.me-head-actions {
  margin-left: auto; display: flex; flex-direction: column; gap: 6px;
  align-items: flex-end; flex: none;
}
.me-head-actions .me-quick-btn { font-size: 12px; padding: 5px 10px; }

/* 管理员：客服工单 */
.support-thread { background: #f7f9fa; border-radius: 10px; padding: 8px 10px; margin: 8px 0; max-height: 200px; overflow: auto; }
.support-line { font-size: 13px; line-height: 1.6; color: #374151; }
.support-line b { font-weight: 600; }
.support-line.user b { color: var(--brand); }
.support-line.assistant b { color: #6b7280; }

/* 我的：头像下方三个快捷入口（一排图标+文字） */
.me-quick-row { display: grid; gap: 8px; margin: 10px 0 6px; }
.me-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}
.me-quick-item:active { border-color: var(--brand); }
.me-quick-icon { width: 26px; height: 26px; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.me-quick-icon svg { width: 22px; height: 22px; display: block; }

/* 我的：头像右侧三个快捷入口（紧凑） */
.me-quick-inline { display: flex; gap: 6px; margin-left: auto; flex: none; align-items: flex-start; }
.me-quick-inline .me-quick-item { min-width: 50px; padding: 6px 6px; font-size: 10px; gap: 3px; border-radius: 12px; }
.me-quick-inline .me-quick-icon { width: 22px; height: 22px; }
.me-quick-inline .me-quick-icon svg { width: 18px; height: 18px; }

/* ---------- 头像旁认证徽章 ---------- */
.me-tag { display: inline-flex; align-items: center; gap: 4px; }
.me-tag-ico { display: inline-flex; width: 12px; height: 12px; }
.me-tag-ico svg { width: 12px; height: 12px; }

/* 我的资料：认证卡片 */
.cert-card { padding: 16px; }
.cert-head { display: flex; align-items: flex-start; gap: 12px; }
.cert-ico {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: #e9f8f7; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.cert-ico svg { width: 22px; height: 22px; display: block; }
.cert-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cert-title b { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cert-title small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cert-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.cert-badge.ok { color: #0e8c89; background: #e9f8f7; }
.cert-badge.warn { color: #b45309; background: #fff7ed; }
.cert-body { margin-top: 12px; }
.cert-form {
  display: flex; flex-direction: column; gap: 10px;
  background: #f9fbfb; border: 1px solid #eef2f2;
  border-radius: 14px; padding: 12px;
}
.cert-form .field { margin-bottom: 0; }
.cert-uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cert-upload {
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  background: #fff; border: 1px dashed var(--line); border-radius: 12px;
  padding: 8px; text-align: center; font-size: 12px; color: var(--muted);
}
.cert-upload .btn { width: 100%; }
.cert-upload .hint { margin: 0; font-size: 11px; }

/* 我的：头像旁的认证小徽章（统一胶囊样式） */
.me-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.me-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  background: #f3f5f6;
  color: #8a9099;
  border: 1px solid transparent;
}
.me-tag svg { width: 11px; height: 11px; display: block; }
.me-tag.ok { background: #eaf8f7; color: #0b7e7b; border-color: #cdeeec; }
.me-tag.warn { background: #fff7ed; color: #b45309; border-color: #fde8cf; }

/* ---------- 团队备注角色 ---------- */
.team-role { color: var(--brand); font-weight: 600; }

/* 接拍人首页：小贴士 / 统计链接 */
.stats .stat { text-decoration: none; color: inherit; }
.tip-list { display: flex; flex-direction: column; gap: 10px; }
.tip-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #f9fbfb; border-radius: 12px; }
.tip-item b { font-size: 13px; }
.tip-item span { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* 展示墙 */
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.sc-media { width: 100%; height: 120px; object-fit: cover; background: #0b0f10; display: block; }
.sc-file { height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #f7f9fa; color: #6b7280; padding: 8px; text-align: center; }
.sc-file svg { width: 26px; height: 26px; color: var(--brand); }
.sc-file b { font-size: 12px; font-weight: 500; word-break: break-all; }
.sc-body { padding: 8px 10px; }
.sc-body b { font-size: 13px; }
.sc-body p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.sc-actions { display: flex; gap: 6px; padding: 0 10px 10px; margin-top: auto; }
.sc-actions .btn { flex: 1; }

/* ---------- 展示墙卡片结构化信息 ---------- */
.sc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.sc-tags .chip { font-size: 11px; }
.sc-result { color: #0b7a79; font-weight: 600; font-size: 13px; margin: 4px 0; }

/* ---------- 匹配卡片里的展示墙作品 ---------- */
.match-sc-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; align-items: center; }
.match-sc {
  flex: none; width: 108px; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 0 0 6px; text-align: left; overflow: hidden; display: flex; flex-direction: column;
}
.match-sc img { width: 100%; height: 62px; object-fit: cover; display: block; }
.match-sc-ph {
  height: 62px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-size: 12px;
}
.match-sc b { font-size: 11px; margin: 4px 6px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match-sc small { font-size: 10px; color: var(--muted); margin: 2px 6px 0; }

/* 聊天：合作确认条 */
.coop-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 12px 10px;
  background: #f2fbfa;
  border: 1px solid #cdeeec;
  border-radius: 12px;
}
.coop-bar.ok {
  background: #eaf8f7;
  border-color: #b9e6e3;
  color: #0b7e7b;
  font-size: 13px;
}
.coop-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.coop-main b { font-size: 13px; }
.coop-main span { font-size: 11px; color: var(--muted); }

/* ---------- 服务报价包 ---------- */
.pkg-list { display: flex; flex-direction: column; gap: 8px; }
.pkg-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pkg-card .pkg-price { color: var(--brand); font-weight: 700; font-size: 15px; }
.pkg-block { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px 4px; margin-bottom: 10px; }

/* 城市三级联动 */
.region-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.region-row select { width: 100%; }

/* 接拍人首页：作战地图 */
.radar-wrap { display: flex; justify-content: center; padding: 2px 0 6px; }
.radar { width: 100%; max-width: 320px; height: auto; }
.radar-ring { fill: none; stroke: #cdeeec; stroke-width: 1; stroke-dasharray: 4 5; }
.radar-cross { stroke: #e6f3f2; stroke-width: 1; }
.radar-me { fill: var(--brand); }
.radar-me-text { font-size: 9px; fill: var(--muted); }
.radar text { font-size: 9px; fill: var(--muted); }
.radar-blip { cursor: pointer; }
.radar-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hall-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f2fbfa; border: 1px solid #cdeeec; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; }

/* 作战地图：高德底图 + 区县热力 */
.war-map { width: 100%; height: 240px; border-radius: 14px; overflow: hidden; background: #eef6f5; }
.war-map .leaflet-control-attribution { font-size: 10px; }
.war-tip {
  background: rgba(11, 143, 137, .92);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  box-shadow: none;
}
.war-tip::before { display: none; }

/* 作战地图：疫情地图风格 */
.war-card { padding: 16px; }
.war-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.war-stats > div { background: #f6fbfb; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.war-stats b { font-size: 20px; color: var(--brand-dark, #0b7e7b); line-height: 1.1; }
.war-stats span { font-size: 11px; color: var(--muted); }
.war-map { width: 100%; height: 280px; border-radius: 14px; overflow: hidden; background: #eef6f5; }
.war-map .leaflet-control-attribution { font-size: 10px; }
.war-map .leaflet-control-zoom a { color: #0b7e7b; }
.war-fallback { padding: 6px 0; }
.war-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.war-legend i { width: 22px; height: 8px; border-radius: 2px; display: inline-block; }
.war-legend .lv1 { background: #a7e8e4; }
.war-legend .lv2 { background: #63c8c0; }
.war-legend .lv3 { background: #2aa89f; }
.war-legend .lv4 { background: #0b8f89; }
.war-legend em { margin-left: auto; font-style: normal; }
.war-num span {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: #0b8f89; color: #fff; font-size: 11px; font-weight: 600;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(11, 143, 137, .35);
}

/* 作战地图：无瓦片时的浅色底 */
.war-map { background: #f3f8f8; box-shadow: inset 0 0 0 1px #e6f0ef; }

/* ICP 备案公示 */
.icp-footer { text-align: center; padding: 14px 16px 22px; color: #9ca3af; font-size: 11px; }
.icp-footer a { color: #9ca3af; text-decoration: none; }
.screen.no-nav .icp-footer { padding-bottom: 90px; }

/* 作战地图：无路网时的纯色底图 */
.war-map.no-tiles {
  background-color: #f7fbfa;
  background-image: radial-gradient(#e3efee 1px, transparent 1px);
  background-size: 12px 12px;
}

.war-error { margin-top: 6px; font-size: 11px; color: #b45309; text-align: center; }

/* 作战地图：红点需求 + 蓝色我的位置 */
.war-dot span {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-size: 11px; font-weight: 600;
  border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
.war-me-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #2563eb; display: inline-block;
  border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .2);
}
.war-legend .lv1 { background: #fecaca; }
.war-legend .lv2 { background: #f87171; }
.war-legend .lv3 { background: #ef4444; }
.war-legend .lv4 { background: #b91c1c; }
