/* 报考资格预检 H5 · 移动端优先 · 零构建 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --green: #16a34a; --green-bg: #f0fdf4; --green-border: #bbf7d0;
  --yellow: #b45309; --yellow-bg: #fffbeb; --yellow-border: #fde68a;
  --red: #dc2626; --red-bg: #fef2f2; --red-border: #fecaca;
  --ink: #1f2937; --dim: #6b7280; --line: #e5e7eb;
  --brand: #b03a2e; --brand-dark: #8c2d23;
  --bg: #f7f6f3; --card: #ffffff;
}
html { font-size: 16px; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* 顶栏 */
#topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .97);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 0 rgba(92, 19, 12, .07), 0 4px 14px rgba(92, 19, 12, .05);
}
.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; border: 1px solid #f3e4de; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.brand-name { font-weight: 700; font-size: 16px; color: #5c130c; letter-spacing: .5px; }
#backBtn {
  display: none; align-items: center; color: var(--brand); font-size: 14px; font-weight: 600;
  cursor: pointer; margin-right: 10px; padding: 2px 4px; flex-shrink: 0;
}
.topnav a { color: #8a6d64; text-decoration: none; font-size: 14px; margin-left: 16px; }
.topnav a:active { color: #5c130c; }

#view { flex: 1; padding: 16px; }
#footer { padding: 20px 16px 32px; text-align: center; font-size: 12px; color: var(--dim); }
#footer .dim { opacity: .75; margin-top: 4px; }
#footer .footer-brand { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.about-brand { text-align: center; padding: 22px 18px; }
.about-brand img { width: 168px; border-radius: 14px; }
.about-brand .co { font-size: 16px; font-weight: 700; margin-top: 10px; }
.about-brand .co-en { font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.ask-head { display: flex; align-items: center; gap: 10px; }
.ask-head .chat-avatar { width: 44px; height: 44px; }
.loading { text-align: center; color: var(--dim); padding: 48px 0; }

/* 通用卡片与按钮 */
.card {
  background: var(--card); border: 1px solid #ece5e2; border-radius: 16px;
  padding: 18px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(60, 30, 24, .04), 0 6px 18px rgba(60, 30, 24, .05);
}
/* 图标芯片：统一的视觉语言，替代裸 emoji */
.chip {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.chip-red { background: linear-gradient(135deg, #fbe9e6, #f4d3cd); box-shadow: inset 0 0 0 1px rgba(176,58,46,.12); }
.chip-amber { background: linear-gradient(135deg, #fdf1de, #f9e2bd); box-shadow: inset 0 0 0 1px rgba(180,83,9,.12); }
/* 线稿图标（详查/速查入口） */
.card-icon { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.btn {
  display: block; width: 100%; border: none; border-radius: 12px; padding: 14px;
  font-size: 16px; font-weight: 600; cursor: pointer; text-align: center;
  background: linear-gradient(135deg, #b23a2f 0%, #8a271c 75%, #a86a12 150%);
  color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px rgba(138, 39, 28, .30);
}
.btn:active { background: linear-gradient(135deg, #9c3226, #7c1f16 75%, #8a5a0e 150%); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--dim); border: none; font-weight: 400; font-size: 14px; }
/* 红/黄结果页 → 选岗引流入口 */
.btn.route {
  display: block; text-align: center; background: #fff; color: var(--green);
  border: 1.5px solid var(--green); font-size: 14px; font-weight: 600;
}
.btn:disabled { opacity: .45; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.dim { color: var(--dim); }
.small { font-size: 13px; }

/* 首页 */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #7c1f16 0%, #3d0f0a 85%);
  color: #fff; border-radius: 18px; padding: 22px 18px; margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(61, 15, 10, .35);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.6px);
  background-size: 26px 26px; opacity: .55;
}
.hero-text { position: relative; z-index: 2; padding-right: 108px; }
.hero h1 { font-size: 19px; margin-bottom: 6px; letter-spacing: .5px; }
.hero p { font-size: 13px; opacity: .92; }
.hero .badge {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  border-radius: 99px; padding: 2px 10px; font-size: 12px; margin-bottom: 8px;
}
.hero-cut {
  position: absolute; right: 4px; bottom: -8px; height: 138%; z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.cat-card { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.cat-card:not(.disabled) { border: 1.5px solid #efd9d4; box-shadow: 0 4px 18px rgba(176,58,46,.10); }
.cat-info { flex: 1; min-width: 0; }
.cat-info h3 { font-size: 16.5px; letter-spacing: .3px; }
.cat-info p { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.cat-status { font-size: 12px; padding: 3px 10px; border-radius: 99px; flex-shrink: 0; }
.cat-tag {
  display: inline-block; font-size: 11px; color: var(--brand); background: #fbe9e6;
  border-radius: 6px; padding: 1px 8px; margin-bottom: 4px; font-weight: 600;
}
.pill-btn {
  background: linear-gradient(135deg, #b23a2f 0%, #8a271c 75%, #a86a12 150%);
  color: #fff; padding: 10px 18px; font-size: 14px; font-weight: 600;
  border-radius: 99px; flex-shrink: 0; white-space: nowrap;
}
.cat-status.active {
  background: linear-gradient(135deg, #b23a2f 0%, #8a271c 75%, #a86a12 150%);
  color: #fff; padding: 10px 18px; font-size: 14px; font-weight: 600; border-radius: 99px;
  animation: cta-glow 2.2s ease-out infinite;
}
.cat-status.draft { background: #f3f4f6; color: var(--dim); }
.cat-card.disabled { opacity: .55; cursor: default; }
@keyframes cta-glow {
  0%   { box-shadow: 0 0 0 0 rgba(176,58,46,.38); }
  70%  { box-shadow: 0 0 0 9px rgba(176,58,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(176,58,46,0); }
}
.feature-list { list-style: none; }
.feature-list li { padding: 8px 0 8px 26px; position: relative; font-size: 14px; }
.feature-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

/* 首页 AI 对话入口 */
.chat-entry { cursor: pointer; }
.chat-entry-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #e8c87a;
  overflow: hidden; flex-shrink: 0;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-entry-head .who { font-size: 14px; font-weight: 600; }
.chat-entry-head .who small { display: block; font-size: 12px; color: var(--dim); font-weight: 400; }
.chat-preview-bubble {
  background: var(--bg); border-radius: 4px 14px 14px 14px; padding: 12px 14px;
  font-size: 14px; line-height: 1.7; margin-bottom: 12px;
}
.chat-preview-bubble .up-tag {
  display: inline-block; background: var(--yellow-bg); color: var(--yellow);
  border-radius: 6px; padding: 0 6px; font-size: 12px; margin-left: 4px;
}
.chat-fake-input {
  display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line);
  border-radius: 99px; padding: 10px 16px; color: #9ca3af; font-size: 14px; background: #fafafa;
}
.chat-fake-input .send {
  margin-left: auto; background: var(--brand); color: #fff; border-radius: 99px;
  padding: 3px 16px; font-size: 13px; flex-shrink: 0;
}

/* 问卷 */
.progress-wrap { margin-bottom: 14px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.progress-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .25s; }
.section-head { margin-bottom: 14px; }
.section-head h2 { font-size: 19px; }
.section-head p { font-size: 13px; color: var(--dim); }
.q { margin-bottom: 20px; }
.q-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.q-title .req { color: var(--red); margin-left: 2px; }
.q-title .opt-tag { font-size: 12px; color: var(--dim); font-weight: 400; margin-left: 6px; }
.q-hint { font-size: 12.5px; color: var(--dim); margin: -4px 0 10px; line-height: 1.6; }
.opt {
  display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 8px; font-size: 14.5px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s;
}
.opt.selected { border-color: var(--brand); background: #fdf3f2; }
.opt .check { float: right; color: var(--brand); font-weight: 700; }
.num-input { display: flex; align-items: center; gap: 8px; }
.num-input input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 16px; outline: none; background: #fff;
}
.num-input input:focus { border-color: var(--brand); }
.num-input .unit { color: var(--dim); font-size: 14px; }
.quiz-nav { display: flex; gap: 10px; margin-top: 8px; }
.quiz-nav .btn { flex: 1; }

/* 报告 */
.overall { border-radius: 16px; padding: 22px 18px; color: #fff; margin-bottom: 14px; }
.overall.green { background: linear-gradient(135deg, #16a34a, #15803d); }
.overall.yellow { background: linear-gradient(135deg, #d97706, #b45309); }
.overall.red { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.overall .o-tag { font-size: 13px; opacity: .9; }
.overall h2 { font-size: 22px; margin: 4px 0 8px; }
.overall p { font-size: 14px; opacity: .95; }
.count-row { display: flex; gap: 10px; margin-bottom: 14px; }
.result-note {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; line-height: 1.7; margin-bottom: 14px;
}
.result-note.yellow { border-left: 4px solid #d97706; }
.result-note.red { border-left: 4px solid var(--red); }

/* ---- 红页分型：不可逆 / 可补救 两类差距 ---- */
.red-split { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.rs-block { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; }
.rs-block b { display: block; margin-bottom: 2px; }
.rs-block span { color: var(--dim); font-size: 12.5px; }
.rs-block p { margin: 6px 0 0; }
.rs-block.abs { background: #fdf1f0; border: 1px solid #f3c9c5; }
.rs-block.abs b { color: #b91c1c; }
.rs-block.time { background: #fffaf0; border: 1px solid #f0dcc0; }
.rs-block.time b { color: #b45309; }

/* ---- 体检时间选择器（红/黄页 · 零存储：本机时间即时计算） ---- */
.exam-plan { background: #fffaf0; border: 1px solid #f0dcc0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.ep-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ep-label { font-size: 14px; font-weight: 600; color: #7a5c1e; }
.ep-row select { flex: 1; min-width: 180px; padding: 8px 10px; border: 1px solid #d8c9a8; border-radius: 8px; font-size: 14px; background: #fff; color: #4a3a12; }
.ep-days { margin: 10px 0 0; font-size: 13px; color: #7a5c1e; line-height: 1.6; }
.ep-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ep-item { display: flex; flex-direction: column; align-items: stretch; gap: 4px; font-size: 13px; background: #fff; border: 1px solid #eee2cc; border-radius: 8px; padding: 8px 10px; }
.ep-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ep-name { font-weight: 600; }
.ep-need { color: #8a7440; }
.ep-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; display: inline-block; background: #ccc; }
.ep-dot.red { background: var(--red); }
.ep-dot.yellow { background: var(--yellow); }
.ep-plan { font-size: 12.5px; color: #5a5a5a; line-height: 1.6; padding-left: 16px; }
.ep-verdict { margin-left: auto; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ep-verdict.v-ok { background: var(--green-bg); color: var(--green); }
.ep-verdict.v-tight { background: #fff3d6; color: #9c6b00; }
.ep-verdict.v-late { background: var(--red-bg); color: var(--red); }
.ep-verdict.v-unsure { background: #f0f0f0; color: #666; }

/* ---- 红项分型徽章（逐项结果行内） ---- */
.rtype { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.rtype.r-abs { background: var(--red-bg); color: var(--red); }
.rtype.v-ok { background: var(--green-bg); color: var(--green); }
.rtype.v-tight { background: #fff3d6; color: #9c6b00; }
.rtype.v-late { background: var(--red-bg); color: var(--red); }
.rtype.v-unsure { background: #f0f0f0; color: #666; }
.rtype.r-period { background: #f5f5f5; color: #888; }

/* ---- 选岗页分享解锁区（当日额度 3 → 8） ---- */
.share-quota { margin: 12px 0; }
.share-quota-inner { text-align: center; border: 1px dashed var(--yellow-border); background: #fffaf0; border-radius: 12px; padding: 14px; }
.share-quota-inner p { font-size: 13.5px; color: #7a5c1e; margin-bottom: 10px; }
.ep-free-tip { margin-top: 8px; font-size: 12.5px; color: #9c6b00; background: #fff3d6; border-radius: 8px; padding: 8px 10px; line-height: 1.6; }

.count-cell { flex: 1; border-radius: 12px; padding: 12px; text-align: center; }
.count-cell b { font-size: 22px; display: block; }
.count-cell.green { background: var(--green-bg); color: var(--green); }
.count-cell.yellow { background: var(--yellow-bg); color: var(--yellow); }
.count-cell.red { background: var(--red-bg); color: var(--red); }
.ritem { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: #fff; }
.ritem .r-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: var(--green); } .dot.yellow { background: #d97706; } .dot.red { background: var(--red); }
.ritem .r-name { font-weight: 600; font-size: 15px; }
.ritem .r-input { margin-left: auto; font-size: 13px; color: var(--dim); }
.ritem .r-note { font-size: 14px; margin-top: 4px; }
.ritem .r-detail { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 13px; }
.ritem .r-detail .lbl { color: var(--dim); }
.ritem .r-window { margin-top: 8px; background: var(--yellow-bg); border: 1px solid var(--yellow-border); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--yellow); }
.ritem.locked .r-detail-blur { filter: blur(5px); user-select: none; pointer-events: none; }
.paywall { text-align: center; border: 1.5px dashed var(--brand); border-radius: 14px; padding: 22px 16px; margin: 14px 0; background: #fdf8f7; }
.paywall .price { font-size: 26px; font-weight: 800; color: var(--brand); }
.paywall .price s { font-size: 14px; color: var(--dim); font-weight: 400; margin-left: 6px; }
.paywall p { font-size: 13px; color: var(--dim); margin: 8px 0 14px; }
/* 双档：¥9.9 完整版为主推，¥1 详情为次选 */
.paywall .pw-main { padding-bottom: 14px; }
.paywall .pw-sub { border-top: 1px dashed var(--line); padding-top: 12px; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.upgrade-box { border: 1px solid var(--brand); background: #fff7f5; border-radius: 12px; padding: 14px; margin: 14px 0; }
.upgrade-box h3 { font-size: 15px; color: var(--brand); margin-bottom: 6px; }
.upgrade-box p { font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.share-box { border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.share-box.green { background: var(--green-bg); border: 1px solid var(--green-border); }
.share-box.yellow { background: var(--yellow-bg); border: 1px solid var(--yellow-border); }
.share-box.red { background: var(--red-bg); border: 1px solid var(--red-border); }
.share-box h3 { font-size: 16px; margin-bottom: 4px; }
.share-box p { font-size: 13.5px; color: var(--ink); margin-bottom: 12px; }
.politic { background: #f8fafc; border: 1px solid var(--line); }
.politic h3 { font-size: 15px; margin-bottom: 8px; }
.politic p { font-size: 13.5px; color: var(--dim); margin-bottom: 6px; }

/* 问一问 */
.chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.msg { max-width: 88%; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot .fu { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.msg.bot .fu button { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.ask-bar { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 4px; display: flex; gap: 8px; }
.ask-bar .icon-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 50%;
  width: 44px; height: 44px; font-size: 17px; cursor: pointer; flex-shrink: 0; padding: 0;
}
.ask-bar input { flex: 1; border: 1.5px solid var(--line); border-radius: 99px; padding: 11px 16px; font-size: 15px; outline: none; background:#fff; }
.ask-bar button { border: none; border-radius: 99px; background: var(--brand); color: #fff; padding: 0 20px; font-size: 15px; cursor: pointer; }
.ask-bar button:disabled { opacity: .45; }
.quota-tip { text-align: center; font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.typing { color: var(--dim); font-size: 13px; }

/* 关于/设置 */
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: none; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 2; margin: 0; }
.switch i { position: absolute; inset: 0; background: #d1d5db; border-radius: 99px; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }

/* 红绿灯速查 */
.hb-entry { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.hb-arrow { color: var(--brand); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.hb-head {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #7c1f16 0%, #3d0f0a 85%);
  color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 24px rgba(61, 15, 10, .30);
}
.hb-head h2 { font-size: 18px; letter-spacing: .5px; }
.hb-head p { font-size: 12.5px; color: rgba(255,255,255,.85); margin-top: 3px; }
.hb-head-chip {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; padding: 6px;
  background: #fdfaf7; border: none;
  display: flex; align-items: center; justify-content: center;
}
.hb-head-chip img { width: 100%; height: 100%; object-fit: contain; }
.hb-item h3 { font-size: 16px; margin-bottom: 10px; }
.hb-row { display: flex; gap: 8px; font-size: 13.5px; padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; line-height: 1.6; }
.hb-row.g { background: var(--green-bg); }
.hb-row.y { background: var(--yellow-bg); }
.hb-row.r { background: var(--red-bg); }
.hb-tag {
  flex-shrink: 0; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 0 10px;
  height: 22px; line-height: 22px; margin-top: 1px;
}
.hb-row.g .hb-tag { background: var(--green); color: #fff; }
.hb-row.y .hb-tag { background: #d97706; color: #fff; }
.hb-row.r .hb-tag { background: var(--red); color: #fff; }
.hb-tip { font-size: 13px; color: var(--yellow); background: #fffdf5; border: 1px dashed var(--yellow-border); border-radius: 8px; padding: 8px 10px; margin-top: 4px; }
.hb-src { font-size: 12px; color: var(--dim); margin-top: 8px; }
.hb-cta { text-align: center; border: 1.5px solid #eccfcb; }
.hb-cta h3 { font-size: 17px; }

/* 报告上传 */
.upload-zone {
  border: 2px dashed var(--line); border-radius: 14px; padding: 28px 16px;
  text-align: center; color: var(--dim); cursor: pointer; background: #fff; margin-bottom: 14px;
}
.upload-zone img.preview { max-width: 100%; max-height: 420px; border-radius: 10px; }
/* 已选报告页面缩略图 */
.up-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.up-thumb { position: relative; width: 72px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fafafa; }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb .rm {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 18px;
  text-align: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  font-size: 14px; cursor: pointer;
}
.field-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.field-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.field-table td:first-child { color: var(--dim); }
.field-table tr:last-child td { border-bottom: none; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(20px);
  background: rgba(31,41,55,.92); color: #fff; padding: 10px 18px; border-radius: 99px;
  font-size: 14px; opacity: 0; transition: all .25s; pointer-events: none; z-index: 99; max-width: 86%;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 选岗表单 */
.form-grid { display: grid; grid-template-columns: 84px 1fr; gap: 10px 10px; align-items: center; }
.form-grid label { font-size: 13px; color: var(--dim); text-align: right; }
.form-grid select, .form-grid input {
  height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
  font-size: 14px; background: #fff; width: 100%; box-sizing: border-box;
}
.major-picker { position: relative; }
.major-picker input { width: 100%; box-sizing: border-box; }
.major-sug {
  display: none; position: absolute; top: 40px; left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10); max-height: 220px; overflow-y: auto;
}
.sug-item { padding: 9px 12px; font-size: 14px; cursor: pointer; border-bottom: 1px solid #f3f4f6; }
.sug-item:hover { background: #f9fafb; }
.sug-item:last-child { border-bottom: none; }

/* 岗位结果卡 */
.job-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; background: #fff; }
.job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.job-head b { font-size: 15px; }
.job-loc { font-size: 12px; color: var(--dim); flex-shrink: 0; }
.job-line { font-size: 13px; margin-top: 4px; }
.tag-free { color: #fff; background: var(--green); border-radius: 99px; padding: 0 7px; font-size: 11px; }
.tag-med { color: #b45309; background: #fef3c7; border-radius: 99px; padding: 0 7px; font-size: 11px; }

/* 竞争参考 */
.job-line.comp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.comp-badge { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 9px; }
.comp-badge.low { background: #ecfdf5; color: #047857; }
.comp-badge.mid { background: #fffbeb; color: #b45309; }
.comp-badge.high { background: #fef2f2; color: #b91c1c; }
.comp-tag { font-size: 11px; color: var(--dim); background: #f3f4f6; border-radius: 99px; padding: 1px 8px; }
.job-line.warn { font-size: 12px; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 5px 9px; margin-top: 6px; }

/* 文字定性拆解（只给理由，不给权重数值） */
.comp-reasons { margin: 6px 0 0; padding-left: 16px; }
.comp-reasons li { font-size: 12px; color: var(--dim); line-height: 1.6; margin-top: 2px; }

/* 体检加严岗联动 */
.job-line.med-strict { font-size: 12px; color: #1e40af; background: #eff6ff; border-radius: 8px; padding: 5px 9px; margin-top: 6px; }
.med-link { color: #1d4ed8; font-weight: 700; text-decoration: underline; margin-left: 6px; cursor: pointer; white-space: nowrap; }
