/* 外企求职助手 · 宽屏响应式样式（独立文件，不经过模板引擎） */
:root {
  --ink:#1a1d23; --sub:#6b7280; --line:#e5e7eb; --brand:#2563eb;
  --bg:#f5f7fa; --card:#fff; --ok:#15803d; --warn:#b45309; --bad:#b91c1c;
  /* 统一口径（全站视觉规则）：
     1) 可点击 = 品牌蓝 + pointer，靠颜色而不是底色告诉用户「这里能点」；
     2) 说明/提示类文字 = 不带底色，只用字号、字重和 --muted 灰区分层级；
     3) 状态色只用绿(--ok)/橙(--warn)/红(--bad)三档，不再引入紫、靛等第四种色调；
     4) 可点击且带边框的元素，边框也要带色（--click-line，悬停转品牌蓝），
        长内容里的分块用浅蓝竖线/横线（--rule-strong）隔开，一块一块地读。 */
  --muted:#475569; --hairline:#eef2f7; --link-hover:#1d4ed8;
  --click-line:#bfdbfe; --rule:#d7e5fb; --rule-strong:#bfdbfe;
}
* { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg); color:var(--ink); line-height:1.6;
  min-width:320px;
}
img, svg { max-width:100%; }
.wrap { width:100%; max-width:1200px; margin:0 auto; padding:0 24px 72px; }

/* 顶部 */
.topbar { background:#fff; border-bottom:1px solid var(--line); }
.topbar .inner { max-width:1200px; margin:0 auto; padding:12px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.logo { font-weight:700; font-size:16px; letter-spacing:.2px; }
.logo span { color:var(--brand); }
.topbar .tags { display:flex; gap:8px; flex-wrap:wrap; }
.pill { font-size:12px; color:var(--sub); background:#f3f4f6; border:1px solid var(--line); border-radius:999px; padding:3px 10px; white-space:nowrap; }

.hero { padding:40px 0 28px; }
.hero h1 { font-size:clamp(24px, 3vw, 36px); line-height:1.3; }
.hero p { color:var(--sub); margin-top:10px; font-size:15px; }

/* 卡片通用 */
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:24px; margin-top:20px; }
.card h2 { font-size:17px; margin-bottom:14px; }
.section-title { display:flex; align-items:center; gap:10px; font-size:18px; font-weight:700; margin:32px 0 4px; }
.section-title .num { width:24px; height:24px; border-radius:7px; background:#eff6ff; color:var(--brand); font-size:13px; display:inline-flex; align-items:center; justify-content:center; flex:none; }

/* 上传 */
.upload-card { display:grid; grid-template-columns:1.15fr .85fr; gap:24px; align-items:stretch; }
.upload-box { border:2px dashed var(--click-line); border-radius:12px; padding:32px 20px; text-align:center; cursor:pointer; transition:.2s; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:190px; }
.upload-box:hover { border-color:var(--brand); background:#fafcff; }.upload-box .big { font-size:17px; font-weight:600; }
.upload-box .sub { color:var(--sub); font-size:13px; margin-top:8px; }
.upload-box .icon { font-size:30px; line-height:1; margin-bottom:12px; color:var(--brand); }
.paste-side { display:flex; flex-direction:column; }
textarea { width:100%; flex:1; min-height:150px; border:1px solid var(--line); border-radius:10px; padding:12px; font-size:13px; font-family:inherit; resize:vertical; }
.btn { display:inline-flex; align-items:center; justify-content:center; background:var(--brand); color:#fff; border:none; border-radius:9px;
       padding:13px 22px; font-size:15px; font-weight:600; cursor:pointer; margin-top:12px; }
.btn:hover { background:#1d4ed8; }
.btn:disabled, .btn:disabled:hover { background:#e2e8f0; color:#94a3b8; cursor:not-allowed; }
.btn-block { display:flex; width:100%; }
.hint { color:var(--sub); font-size:12px; margin-top:10px; }

/* 进度 */
#progress { display:none; }
.stage { display:flex; align-items:center; gap:12px; padding:10px 0; color:var(--sub); font-size:14px; }
.stage.active { color:var(--ink); font-weight:600; }
.stage.done { color:var(--ok); }
.dot { width:10px; height:10px; border-radius:50%; background:#d1d5db; flex:none; }
.stage.active .dot { background:var(--brand); animation:pulse 1s infinite; }
.stage.done .dot { background:var(--ok); }
@keyframes pulse { 50% { opacity:.3; } }

/* 结果 */
#result { display:none; }
.report-head { display:grid; grid-template-columns:220px 1fr; gap:28px; align-items:center; }
.score-big { font-size:64px; font-weight:700; line-height:1; }
.grade { display:inline-block; padding:2px 10px; border-radius:6px; background:#eff6ff; color:var(--brand); font-weight:600; margin-left:8px; vertical-align:middle; font-size:15px; }
.verdict { color:var(--sub); margin-top:10px; font-size:14px; }
.dimrow { display:flex; align-items:center; gap:10px; margin-top:9px; font-size:13px; }
.dimname { width:88px; flex:none; color:var(--sub); }
.bar { flex:1; height:9px; background:#eef0f3; border-radius:5px; overflow:hidden; }
.bar i { display:block; height:100%; background:var(--brand); border-radius:5px; }
.dimscore { width:70px; text-align:right; flex:none; color:var(--sub); font-variant-numeric:tabular-nums; }
.issues { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-top:16px; }
.issue { border-left:3px solid #f59e0b; padding:8px 0 8px 12px; font-size:13px; }
.issue b { display:block; margin-bottom:4px; }
.banner { border-left:3px solid #f59e0b; color:var(--warn); padding:2px 0 2px 12px;
  font-size:13px; margin-top:12px; line-height:1.75; }
.banner.info { border-left-color:var(--brand); color:var(--muted); }
.note { color:var(--sub); font-size:12px; margin-top:10px; }

/* 匹配 */
.statline { font-size:13.5px; color:var(--muted); line-height:1.8; margin-top:2px; }
.jobs-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; margin-top:14px; }
.job { border:1px solid var(--line); border-radius:10px; padding:14px 16px; position:relative; }
.job .t { font-weight:600; font-size:14px; padding-right:60px; overflow-wrap:anywhere; }
.job .meta { color:var(--sub); font-size:12px; margin-top:3px; }
.job .score { position:absolute; right:14px; top:12px; font-size:22px; font-weight:700; color:var(--brand); }
.tier { display:inline-block; font-size:11px; padding:1px 8px; border-radius:4px; margin-left:6px; vertical-align:middle; }
/* 状态标签是数据而非说明，保留极浅底色便于扫读；色调统一到蓝/绿/橙/红四档 */
.tier.s { background:var(--brand); color:#fff; font-weight:700; }
.tier.g { background:#e8f5ec; color:var(--ok); font-weight:600; }
.tier.t { background:#eef2f7; color:var(--muted); }
.tier.m { background:#fdf1e3; color:var(--warn); } .tier.b { background:#fdecec; color:var(--bad); }
.tier-legend { font-size:13.5px; color:var(--muted); line-height:1.85; margin:6px 0 10px; }
.tier-legend b { color:var(--brand); }

/* 检索条：城市与档位用胶囊（选项少、切换最频繁），行业收进下拉（十来类，铺开会挤掉列表），
   关键词用输入框，排序用分段控件。可点击一律品牌蓝 + 浅蓝边框，只有选中态才上底色。 */
.filterbar { display:flex; flex-direction:column; gap:9px; margin:14px 0 6px;
             padding:14px 0 12px; border-top:1px solid var(--hairline); }
.f-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.f-label { flex:none; font-size:12.5px; color:var(--muted); letter-spacing:.03em; }
.f-chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { border:1px solid var(--click-line); background:#fff; color:var(--brand);
        border-radius:999px; padding:3px 11px; font-size:13px; line-height:1.55;
        cursor:pointer; transition:.15s; font-family:inherit; }
.chip:hover { border-color:var(--brand); background:#fafcff; }
.chip.on { background:var(--brand); border-color:var(--brand); color:#fff; }
.chip i { font-style:normal; font-size:11.5px; opacity:.62; margin-left:4px; }
.chip.on i { opacity:.85; }
.f-select { border:1px solid var(--click-line); border-radius:8px; padding:4px 9px;
            font-size:13px; color:var(--brand); background:#fff; cursor:pointer;
            font-family:inherit; max-width:210px; }
.f-select:hover { border-color:var(--brand); }
.f-search { border:1px solid var(--click-line); border-radius:8px; padding:5px 10px;
            font-size:13px; width:190px; font-family:inherit; color:var(--ink); }
.f-search::placeholder { color:#9ca3af; }
.f-search:focus { outline:none; border-color:var(--brand); }
.f-sort { display:flex; }
.seg { border:1px solid var(--click-line); background:#fff; color:var(--brand);
       padding:5px 11px; font-size:13px; cursor:pointer; font-family:inherit; }
.seg:first-child { border-radius:8px 0 0 8px; }
.seg:last-child { border-radius:0 8px 8px 0; border-left:0; }
.seg:last-child.on { border-left:1px solid var(--brand); }
.seg:hover { border-color:var(--brand); }
.seg.on { background:#eff6ff; border-color:var(--brand); font-weight:600; }
.f-count { font-size:12.5px; color:var(--muted); }
.f-count b { color:var(--ink); font-weight:600; }
.f-clear { border:0; background:none; color:var(--brand); font-size:12.5px;
           cursor:pointer; padding:0 2px; font-family:inherit;
           text-decoration:underline; text-underline-offset:2px; }
/* 筛选结果为空时说清怎么办，而不是留一片空白 */
.jobs-empty { grid-column:1/-1; padding:26px 12px; text-align:center;
              font-size:13.5px; color:var(--muted); }
.jobs-grid.is-loading { opacity:.5; }
.job-strong { border-color:#93c5fd; box-shadow:0 0 0 2px #dbeafe; }
.tag-coarse { font-size:11px; color:var(--warn); margin-left:6px; }
.hits { margin-top:8px; font-size:12.5px; }
.hits div { margin-top:3px; overflow-wrap:anywhere; }
.hit { color:var(--ok); } .miss { color:var(--bad); }
.cta { text-align:center; margin-top:18px; padding:18px; background:#f8fafc; border:1px dashed var(--line); border-radius:10px; }

/* 岗位总表 */
.joblist { margin-top:36px; }
.joblist-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.jgrid { display:grid; grid-template-columns:repeat(3, 1fr); gap:0 20px; margin-top:10px; }
.jrow { display:flex; justify-content:space-between; gap:8px; padding:8px 2px; border-bottom:1px solid var(--line); font-size:12.5px; }
.jrow .n { overflow-wrap:anywhere; }
.jrow .c { color:var(--sub); flex:none; margin-left:8px; }
details { margin-top:12px; font-size:13px; color:var(--sub); }
summary { cursor:pointer; color:var(--brand); display:inline-block; padding:6px 0; }
.more-hint { color:var(--sub); font-size:12px; margin-top:8px; }

/* 响应式：中屏 */
@media (max-width: 960px) {
  .wrap { padding:0 18px 60px; }
  .upload-card { grid-template-columns:1fr; }
  .report-head { grid-template-columns:160px 1fr; gap:18px; }
  .issues { grid-template-columns:1fr; }
  .jgrid { grid-template-columns:repeat(2, 1fr); }
}
/* 响应式：手机 */
@media (max-width: 620px) {
  .wrap { padding:0 14px 48px; }
  .topbar .inner { padding:10px 14px; }
  .topbar .tags { display:none; }
  .hero { padding:26px 0 18px; }
  .card { padding:16px; border-radius:12px; }
  .report-head { grid-template-columns:1fr; gap:14px; }
  .score-big { font-size:52px; }
  .jobs-grid { grid-template-columns:1fr; }
  .jgrid { grid-template-columns:1fr; }
  /* 手机上省掉「城市/行业/档位」这几个标签：控件自身写着「全部城市」「全部行业」，
     再占一列标签会把可用宽度挤没 */
  .f-label { display:none; }
  .f-search { width:100%; }
  .f-select { flex:1 1 auto; max-width:none; }
  .f-count { width:100%; }
  .dimname { width:72px; }
  .jd-dims .jd-dimname { width:96px; }
  .dimscore { width:60px; }
}


/* ---- 交互反馈：文件选中 / 拖拽 / 禁用态 ---- */
[hidden] { display:none !important; }
.btn:disabled, .btn:disabled:hover { background:#e2e8f0; color:#94a3b8; cursor:not-allowed; }
.hint.ready { color:var(--ok); font-weight:600; }
.upload-box { position:relative; cursor:pointer; }
.upload-box:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.upload-box.dragover { border-color:var(--brand); background:#eff6ff; border-style:solid; }
.upload-box.selected { border:2px solid #86efac; background:#f0fdf4; }
.upload-box.selected .icon.ok { color:var(--ok); background:#dcfce7; width:48px; height:48px;
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:26px; margin:0 auto 12px; }
.upload-picked .big { word-break:break-all; max-width:100%; }
.picked-actions { display:flex; gap:14px; justify-content:center; margin-top:14px; }
.linkbtn { background:none; border:none; color:var(--brand); font-size:13px; cursor:pointer;
  text-decoration:underline; padding:2px 4px; }
.linkbtn.danger { color:var(--bad); }
.ready-hint { margin-top:12px; font-size:13px; font-weight:600; color:var(--ok); display:inline-block; }

/* ---- 进度条 ---- */
.progress-track { height:10px; background:#e8edf5; border-radius:6px; overflow:hidden; margin:6px 0 8px; }
.progress-fill { height:100%; width:0; border-radius:6px; position:relative;
  background:linear-gradient(90deg,#3b82f6,#2563eb); transition:width .2s linear; }
.progress-fill::after { content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
  animation:sweep 1.6s linear infinite; }
@keyframes sweep { from { transform:translateX(-100%); } to { transform:translateX(100%); } }
.progress-meta { display:flex; justify-content:space-between; gap:12px; font-size:12px;
  color:var(--sub); margin-bottom:8px; }

/* ---- 报告：统计条 / 补充提醒 / 完整明细 ---- */
/* 说明性文字：不带底色，只靠字号与颜色分层 */
.score-summary { margin-top:14px; font-size:13px; color:var(--muted); line-height:1.8; }
.block-note { font-size:12.5px; color:var(--sub); margin-top:2px; }
.reminder-card { margin-top:18px; border-top:1px solid var(--hairline); padding-top:13px; }
.reminder-head .badge { display:inline-block; font-size:12px; font-weight:600; color:var(--warn); }
.reminder-body { font-size:14px; margin-top:8px; line-height:1.75; }
.reminder-why { font-size:12.5px; color:var(--sub); margin-top:9px; line-height:1.75; }
.rubric { margin-top:22px; border-top:1px solid var(--line); padding-top:14px;
  font-size:13px; color:var(--ink); }
.rubric summary { font-size:14px; font-weight:600; color:var(--brand); }
.rubric-intro { color:var(--sub); font-size:12.5px; margin:8px 0 14px; }
.rubric-group { margin-top:14px; }
.rubric-gtitle { font-weight:700; font-size:13px; background:#f1f5f9; padding:7px 10px;
  border-radius:6px; display:flex; justify-content:space-between; gap:10px; }
.rubric-gtitle span { color:var(--sub); font-weight:500; }
.rubric-item { padding:9px 10px; border-bottom:1px solid #f1f5f9; }
.ri-top { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ri-name { font-weight:600; min-width:140px; }
.ri-score { color:var(--sub); font-variant-numeric:tabular-nums; }
.ri-badge { font-size:11px; padding:1px 8px; border-radius:4px; }
.ri-badge.full { background:#e8f5ec; color:var(--ok); }
.ri-badge.lost { background:#fdf1e3; color:var(--warn); }
.ri-badge.na { background:#eef2f7; color:var(--muted); }
.ri-reason { color:var(--sub); font-size:12.5px; margin-top:4px; overflow-wrap:anywhere; }
.ri-ev { color:#94a3b8; font-size:12px; margin-top:3px; }
.rules { margin-top:20px; border-top:1px solid var(--hairline); padding-top:14px; }
.rules b { font-size:13px; }
.rules ul { margin:8px 0 0 18px; color:var(--sub); font-size:12.5px; line-height:1.85; }

@media (max-width: 620px) {
  .ri-name { min-width:0; }
  .ready-hint { font-size:12px; }
}


/* ---- 报告 v2：建议优化 / 写得不错 ---- */
.report-sec { margin-top:22px; }
.report-sec h3 { font-size:16px; margin:0 0 4px; }
.sec-note { font-size:12.5px; color:var(--sub); margin-bottom:12px; }
/* 建议优化：默认收起，点标题展开；首屏只留一行摘要，页面更清爽。
   整块是可点区域，所以边框也用可点击色，悬停加深 */
.opt-sec { border:1px solid var(--click-line); border-radius:10px; background:#fff; padding:0 14px;
  transition:border-color .15s; }
.opt-sec:hover { border-color:var(--brand); }
.opt-sec > .opt-summary { list-style:none; cursor:pointer; display:flex; align-items:center;
  gap:9px; padding:13px 0; user-select:none; }
.opt-sec > .opt-summary::-webkit-details-marker { display:none; }
.opt-sec > .opt-summary:hover h3 { color:var(--link-hover); }
.opt-sec .opt-summary h3 { margin:0; font-size:16px; color:var(--brand); transition:color .15s; }
.opt-arrow { color:var(--sub); font-size:10px; transition:transform .15s; }
.opt-sec[open] .opt-arrow { transform:rotate(90deg); }
.opt-toggle-hint { margin-left:auto; font-size:12px; color:var(--brand); }
.opt-toggle-hint::after { content:"点击展开"; }
.opt-sec[open] .opt-toggle-hint::after { content:"点击收起"; }
.opt-sec[open] > .opt-summary { border-bottom:1px solid var(--rule); margin-bottom:12px; }
.opt-sec[open] { padding-bottom:14px; }
/* 待改条目本身不是可点对象：不铺底色，用带色的细分隔线一条条分开 */
.opt-card { border-bottom:1px solid var(--rule); padding:12px 0 14px; }
.opt-card:last-child { border-bottom:0; padding-bottom:2px; }
.opt-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.opt-head b { font-size:14.5px; }
.opt-lost { font-size:12px; color:var(--warn); font-weight:600; }
.opt-score { font-size:12px; color:var(--sub); font-variant-numeric:tabular-nums; }
.opt-line { font-size:13.5px; line-height:1.75; margin-top:6px; display:flex; gap:9px; }
.opt-line.fix { color:var(--muted); }
.opt-tag { flex:none; font-size:11.5px; font-weight:600; color:var(--sub);
  height:fit-content; margin-top:2px; }
.opt-line.fix .opt-tag { color:var(--ok); }
.opt-ev { font-size:12px; color:#94a3b8; margin-top:7px; overflow-wrap:anywhere; }
/* 达标项是纯展示：不带底色，绿色文字 + 顿号分隔即可 */
.good-list { margin-top:2px; font-size:13.5px; color:var(--ok); line-height:1.95; }
.good-chip { font-size:13.5px; color:var(--ok); }
.good-chip:not(:last-child)::after { content:"、"; color:var(--sub); }
.allgood { font-size:13.5px; color:var(--ok); line-height:1.8; }
.rules-list { margin:10px 0 0 18px; padding:0; color:var(--sub); font-size:12.5px; line-height:1.85; }

@media (max-width: 620px) {
  .opt-card { padding:11px 12px; }
  .opt-line { flex-direction:column; gap:2px; }
  .opt-tag { align-self:flex-start; }
}


/* ---- 岗位匹配 v2：中文标题 / 中性提示 / 测试期分页 ---- */
.test-banner { font-size:13px; color:var(--brand); line-height:1.75; margin:2px 0 8px; }
.norec-banner { font-size:13.5px; color:var(--muted); margin:10px 0 14px; line-height:1.8;
  border-left:3px solid #f59e0b; padding-left:12px; }
.norec-banner b { color:var(--warn); font-size:14.5px; }
/* 中文译名：与标题同色同字重，不做灰字（灰字在浅底上看不清） */
.t-origin { font-size:13px; color:var(--ink); font-weight:600; line-height:1.5;
  margin-top:4px; overflow-wrap:anywhere; }
.t-origin b { font-weight:600; color:var(--sub); font-size:12px; margin-right:1px; }
.jd-hero .t-origin { font-size:14.5px; font-weight:600; color:var(--ink); margin-top:6px;
  padding-left:0; }
.mnote { font-size:12px; color:var(--warn); line-height:1.65; margin-top:5px; }
.match-foot { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); text-align:center; }
.foot-line { font-size:12.5px; color:var(--sub); margin-bottom:10px; }
.foot-done { font-size:13px; color:var(--ok); font-weight:600; }
#loadMoreBtn { min-width:180px; }


/* ---- 上次简历状态条 ---- */
.resume-bar { display:flex; align-items:center; justify-content:space-between; gap:16px;
  border-bottom:1px solid var(--hairline); padding:0 0 14px; margin:0 0 16px; flex-wrap:wrap; }
.rb-left { display:flex; align-items:center; gap:12px; min-width:0; }
.rb-dot { width:10px; height:10px; border-radius:50%; background:var(--ok); flex:none;
  box-shadow:0 0 0 4px #dcfce7; }
.rb-title { font-size:14px; color:var(--ink); overflow-wrap:anywhere; }
.rb-title b { font-weight:700; }
.rb-sub { font-size:12.5px; color:var(--sub); margin-top:3px; line-height:1.6; }
.rb-actions { display:flex; gap:8px; flex-wrap:wrap; }
.rb-btn { font-size:13px; border:1px solid var(--brand); color:#fff; background:var(--brand);
  border-radius:6px; padding:7px 12px; cursor:pointer; }
.rb-btn:hover { filter:brightness(.94); }
.rb-btn.ghost { background:#fff; color:var(--brand); }
@media (max-width: 620px) {
  .resume-bar { padding:11px 12px; }
  .rb-actions { width:100%; }
  .rb-btn { flex:1; }
}


/* ---- 岗位详情抽屉 ---- */
body.drawer-open { overflow:hidden; }
.drawer-mask { position:fixed; inset:0; background:rgba(15,23,42,.46); z-index:40; }
.job-drawer { position:fixed; top:0; right:0; height:100dvh; width:min(640px, 100%);
  background:#fff; z-index:41; display:flex; flex-direction:column;
  box-shadow:-12px 0 44px rgba(15,23,42,.2); animation:jdIn .22s ease-out; }
@keyframes jdIn { from { transform:translateX(28px); opacity:.5; } to { transform:none; opacity:1; } }
.jd-head { flex:none; display:flex; justify-content:space-between; align-items:flex-start;
  gap:12px; padding:16px 22px 13px; border-bottom:1px solid var(--line); }
.jd-kicker { font-size:11px; color:var(--brand); font-weight:700; letter-spacing:.12em; }
.jd-head h2 { font-size:16px; margin-top:3px; line-height:1.45; overflow-wrap:anywhere; }
.jd-close { flex:none; width:32px; height:32px; border:1px solid var(--click-line); background:#fff;
  border-radius:8px; cursor:pointer; font-size:14px; color:var(--brand); }
.jd-close:hover { border-color:var(--brand); background:#f5f9ff; }
.jd-body { flex:1; overflow-y:auto; overscroll-behavior:contain; padding:18px 22px 26px; }
.jd-foot { flex:none; border-top:1px solid var(--line); background:#f8fafc;
  padding:12px 22px 14px; }
.jd-loading, .jd-empty { font-size:13.5px; color:var(--sub); padding:6px 0; line-height:1.75; }

.jd-hero { padding-bottom:14px; border-bottom:1px dashed var(--line); }
.jd-company { font-size:13px; color:var(--sub); font-weight:600; }
.jd-hero h3 { font-size:21px; line-height:1.4; margin:4px 0 2px; overflow-wrap:anywhere; }
.jd-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.jd-chip { font-size:12px; color:var(--muted); border:1px solid var(--line);
  border-radius:5px; padding:2px 9px; }
.jd-chip.must { border-color:#bfdbfe; color:var(--brand); }
.jd-chip.nice { border-color:#bbf7d0; color:var(--ok); }
.jd-chip.warn { border-color:#fde68a; color:var(--warn); }
.jd-matchline { margin-top:14px; font-size:14px; padding:0; display:flex; align-items:center;
  gap:8px; flex-wrap:wrap; }
.jd-matchline b { font-size:22px; color:var(--brand); line-height:1; }

.jd-sec { margin-top:22px; }
.jd-sec h3 { font-size:15px; border-left:3px solid var(--brand); padding-left:9px; }
.jd-sec-note { font-size:12px; color:var(--sub); margin:6px 0 10px; line-height:1.7; }
/* 五维得分柱形图：柱长即得分率，低分标红、信息不足标灰。
   主区块内的第一小块：左侧一条浅蓝竖线把这一块和下面隔开 */
.jd-dims { margin-top:12px; padding:2px 0 2px 12px; border-left:3px solid var(--rule-strong); }
.jd-dims .dimrow:first-child { margin-top:0; }
.jd-dimname { width:118px; }
.jd-neutral-tag { display:inline-block; margin-left:5px; font-size:10px; color:var(--sub); }
.jd-cap { font-size:12.5px; color:var(--warn); margin-top:8px; line-height:1.65; }

/* 「为什么给你这个分」+「岗位要求」融合主区块：差距/清单常显，长内容默认收起。
   主区块里每一小块都带一条有色竖线，扫一眼就知道读到第几块了 */
.jd-gap { margin-top:16px; border-left:3px solid #fca5a5; padding:2px 0 2px 12px; }
.jd-gap-k { font-size:12px; font-weight:600; color:var(--bad); margin-bottom:6px; }
.jd-gap .miss, .jd-gap .jd-cap { margin-top:4px; }
.jd-gap-none { font-size:12.5px; color:var(--sub); }
.jd-gap-row { font-size:13px; line-height:1.7; margin-top:5px; color:#334155; }
.jd-gap-row.tip { color:#475569; }
.jd-gap-row.note { font-size:12px; color:var(--sub); margin-top:8px;
  padding-top:8px; border-top:1px dashed var(--rule-strong); }
.jd-row { display:flex; gap:10px; align-items:baseline; padding:7px 0;
  border-bottom:1px solid #f1f5f9; font-size:13.5px; }
.jd-label { flex:none; width:118px; color:var(--sub); font-size:12.5px; }
.jd-value { flex:1; overflow-wrap:anywhere; }
/* 岗位描述：要求清单 + 原文/中文全文，同一节内呈现。
   要求清单是主区块的第二小块，同样用浅蓝竖线隔开 */
.jd-doc-head { display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; flex-wrap:wrap; }
.jd-doc-note { font-size:11.5px; color:var(--sub); }
.jd-req { margin-top:16px; padding:2px 0 2px 12px; border-left:3px solid var(--rule-strong); }
.jd-rq-sum { display:flex; flex-wrap:wrap; gap:14px; font-size:12.5px;
  padding-bottom:9px; margin-bottom:3px; border-bottom:1px dashed var(--rule-strong); }
.jd-rq-sum .s-hit { color:var(--ok); font-weight:600; }
.jd-rq-sum .s-miss { color:var(--bad); font-weight:600; }
.jd-rq-sum .s-grey { color:var(--sub); }
.jd-rq-row { display:flex; gap:10px; padding:6px 0; align-items:flex-start; }
.jd-rq-k { flex:none; width:66px; font-size:12px; color:var(--sub); padding-top:4px; }
.jd-rq-items { display:flex; flex-wrap:wrap; gap:6px; min-width:0; }
.jd-rq { display:inline-flex; align-items:baseline; gap:4px; font-size:12.5px;
  border-radius:5px; padding:3px 9px; line-height:1.55; overflow-wrap:anywhere;
  background:none; border:1px solid var(--line); color:var(--muted); }
.jd-rq i { font-style:normal; font-weight:700; font-size:11px; }
.jd-rq.hit { border-color:#a7f3d0; color:#065f46; }
.jd-rq.hit i { color:var(--ok); }
.jd-rq.miss { border-color:#fecaca; color:#991b1b; }
.jd-rq.miss i { color:var(--bad); }
.jd-rq.unknown { border-color:var(--line); color:var(--sub); }
.jd-rq.unknown i { color:#94a3b8; }

.jd-doc { margin-top:14px; }
.jd-doc summary { font-size:13.5px; font-weight:600; color:var(--brand); cursor:pointer;
  list-style:none; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.jd-fold-note { font-size:12px; color:var(--sub); line-height:1.7; margin-top:12px; }
.jd-doc summary::-webkit-details-marker { display:none; }
.jd-doc summary::before { content:"▸"; font-size:11px; color:var(--sub);
  transition:transform .15s; }
.jd-doc[open] summary::before { transform:rotate(90deg); }
.jd-doc-hint { font-size:11.5px; font-weight:400; color:var(--sub); }
.jd-doc[open] .when-closed, .jd-doc:not([open]) .when-open { display:none; }

.jd-text { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.85;
  color:var(--muted); border-left:3px solid var(--rule-strong); padding:2px 0 2px 12px; margin-top:8px; }

/* 完整性提示：抓取不全时如实告知 + 官网入口 */
.jd-incomplete { font-size:12.5px; line-height:1.75; color:var(--warn);
  border-left:3px solid #fde68a; padding:2px 0 2px 12px; margin:10px 0; }
.jd-incomplete a { color:var(--brand); text-decoration:underline; }

/* 原文 / 中文译文 切换 */
.jd-lang-tabs { display:flex; gap:6px; margin-top:8px; }
.jd-lang-tab { font-size:12.5px; padding:4px 12px; border:1px solid var(--click-line);
  background:#fff; border-radius:999px; color:var(--brand); cursor:pointer; }
.jd-lang-tab:hover { border-color:var(--brand); }
.jd-lang-tab.active { background:var(--brand); color:#fff; border-color:var(--brand); }

.jd-cta-btns { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:2px; }
.jd-foot-link { font-size:13px; color:var(--brand); text-decoration:underline; }
.jd-cta-note { font-size:11.5px; color:var(--sub); margin-top:7px; line-height:1.6; }
/* ---------- 定制工作台（付费开通后填充，替换原来的「测试期说明」占位卡片） ---------- */
.jd-workbench { margin-top:22px; border:1px solid var(--line); background:#fff;
  border-radius:10px; padding:14px 16px; }
.wb-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.wb-head h3 { font-size:15px; margin:0; border-left:3px solid #059669; padding-left:9px; }
.wb-badge { font-size:11.5px; color:var(--ok); font-weight:600; }
.wb-progress { font-size:12.5px; color:#475569; margin:8px 0 10px; }
.wb-list { list-style:none; margin:0 0 14px; padding:0; max-height:230px; overflow:auto; }
.wb-item { display:flex; gap:7px; align-items:baseline; flex-wrap:wrap; font-size:12.5px;
  padding:6px 8px; border-bottom:1px dashed var(--rule); }
.wb-item:last-child { border-bottom:0; }
.wb-state { flex:0 0 58px; color:#94a3b8; font-size:11.5px; }
.wb-item.done .wb-state { color:#059669; font-weight:600; }
.wb-item.skip .wb-state { color:#b45309; }
.wb-group { flex:0 0 auto; color:#64748b; background:#fff; border:1px solid var(--line);
  border-radius:4px; padding:0 6px; font-size:11px; }
.wb-text { flex:1 1 180px; color:#334155; }
.wb-answer { flex:1 1 100%; color:#475569; border-left:2px solid var(--rule-strong);
  padding:1px 0 1px 8px; font-size:12px; white-space:pre-wrap; }
.wb-ask { background:#fff; border:1px solid var(--line); border-radius:9px; padding:12px; }
.wb-ask-k { font-size:11.5px; color:var(--brand); font-weight:600; }
.wb-ask-text { font-size:14px; font-weight:700; margin:6px 0; color:#0f172a; }
.wb-q { font-size:13px; color:#334155; line-height:1.75; margin-bottom:9px; }
.wb-ask textarea { width:100%; border:1px solid var(--line); border-radius:7px;
  padding:9px; font:inherit; font-size:13px; resize:vertical; color:#0f172a; background:#fff; }
.wb-ops { display:flex; align-items:center; gap:12px; margin-top:9px; flex-wrap:wrap; }
.wb-ops .btn { margin-top:0; }
.wb-note, .wb-done { font-size:12px; color:var(--sub); line-height:1.7; margin-top:9px; }
.wb-done { border-left:3px solid #a7f3d0; padding:2px 0 2px 11px; color:var(--ok); }
.wb-loading, .wb-err { font-size:13px; color:var(--sub); padding:10px 0; }
.wb-err { color:#b91c1c; }

/* ---------- 支付弹层 ---------- */
.pay-mask { position:fixed; inset:0; z-index:120; background:rgba(15,23,42,.55);
  display:flex; align-items:center; justify-content:center; padding:16px; }
.pay-modal { position:relative; width:min(560px,100%); max-height:92dvh; overflow:auto;
  background:#fff; border-radius:14px; padding:24px 24px 22px;
  box-shadow:0 20px 60px rgba(15,23,42,.28); }
.pay-close { position:sticky; float:right; top:10px; margin:-4px -6px 0 0; z-index:5;
  border:1px solid var(--click-line); background:#fff; color:var(--brand); width:32px; height:32px;
  border-radius:50%; cursor:pointer; font-size:15px; box-shadow:0 1px 5px rgba(15,23,42,.12); }
.pay-close:hover { border-color:var(--brand); background:#f5f9ff; }
/* 内容很长时 ✕ 不随内容滚走：粘在弹层可视区右上角，随时可点。 */
.pay-kicker { font-size:11.5px; letter-spacing:1px; color:var(--brand); font-weight:700; }
.pay-modal h2 { font-size:19px; margin:4px 0 14px; color:#0f172a; }
.pay-service { display:flex; justify-content:space-between; align-items:center; gap:12px;
  border-bottom:1px solid var(--hairline); padding:0 0 11px; }
.pay-service b { font-size:14px; }
.pay-muted { font-size:12px; color:var(--sub); line-height:1.6; margin-top:2px; }
.pay-price { font-size:22px; font-weight:800; color:#b45309; white-space:nowrap; }
/* 底部凭证码：一行加粗醒目的码，不做任何说明或操作引导 */
.pay-voucher { margin-top:12px; padding-top:10px; border-top:1px solid var(--line);
  text-align:center; font-size:13px; font-weight:600; color:#475569; line-height:1.7; }
.pay-voucher .pay-mono { color:#0f172a; letter-spacing:2.5px; font-size:17px; font-weight:800; }
/* 手机号核对：把完整号码分组显示出来，手误一眼能看出来 */
.pay-phone-check { margin-top:10px; font-size:12.5px; color:var(--muted); }
.pay-phone-check b { font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:14px; letter-spacing:1px; color:#0f172a; }
.pay-phone-tip { margin-left:8px; font-size:12px; }
.pay-phone-tip.good { color:#059669; }
.pay-phone-tip.bad { color:#b91c1c; }
.pay-phone-note { margin-top:7px; font-size:11.5px; color:#64748b; line-height:1.6; }
/* 核查期间发现号码填错：就地改，不用等客服 */
.pay-contact-fix { margin-top:12px; font-size:12.5px; color:#475569; }
.pay-contact-fix b { font-family:ui-monospace,Menlo,Consolas,monospace; color:#0f172a; }
.pay-contact-fix .pay-link { margin-left:8px; }
.pay-fix-box { margin-top:8px; border-left:3px solid var(--hairline);
  padding:2px 0 2px 12px; display:grid; gap:9px; }
.pay-fix-box[hidden] { display:none; }
.pay-fix-box label { font-size:12px; color:#475569; }
.pay-fix-box input { display:block; width:100%; margin-top:4px; padding:8px 10px;
  border:1px solid var(--line); border-radius:7px; font:inherit; font-size:13px; color:#0f172a; }
.pay-fix-box .pay-phone-check { margin-top:0; }
.pay-fix-box .pay-primary { margin-top:2px; }
/* 提交后提醒保存付款凭证码：去掉色块，改用左侧橙色竖线 + 大号码保持醒目 */
.pay-save { margin-top:16px; padding:2px 0 2px 13px; border-left:3px solid #fbbf24;
  text-align:left; }
.pay-save b { display:block; font-size:13px; color:var(--warn); }
.pay-save-code { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:27px;
  font-weight:800; letter-spacing:3px; color:var(--warn); margin:6px 0; }
.pay-save > div:last-child { font-size:11.5px; color:var(--warn); line-height:1.7; }
.pay-save-compact { margin-top:10px; font-size:12px; color:var(--warn);
  border-left:3px solid #fde68a; padding:2px 0 2px 11px; }
.pay-save-compact b { font-family:ui-monospace,Menlo,Consolas,monospace; letter-spacing:2px;
  font-size:15px; font-weight:800; }
.pay-hint, .pay-foot { font-size:12px; color:#475569; line-height:1.7; }
.pay-qrs { display:flex; gap:12px; margin-top:14px; }
.pay-qr { flex:1 1 0; min-width:0; border:1px solid var(--line); border-radius:9px;
  padding:10px; text-align:center; background:#fff; }
.pay-qr-label { font-size:12px; color:#334155; font-weight:600; margin-bottom:8px; }
.pay-qr img { width:100%; max-width:190px; border-radius:6px; display:block; margin:0 auto; }
.pay-qr-ph { height:170px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:6px; background:#f8fafc; border:1px dashed #cbd5e1;
  border-radius:7px; color:#64748b; font-size:11.5px; line-height:1.5; }
.pay-qr-ph b { color:#475569; font-size:13px; }
.pay-fields { margin-top:14px; display:grid; gap:10px; }
.pay-fields label { font-size:12px; color:#475569; }
.pay-fields input { display:block; width:100%; margin-top:4px; padding:8px 10px;
  border:1px solid var(--line); border-radius:7px; font:inherit; font-size:13px; color:#0f172a; }
.pay-hint { margin-top:11px; }
.pay-local { margin-top:10px; font-size:12px; color:var(--brand); line-height:1.75; }
.pay-placeholder { margin-top:10px; font-size:12px; color:var(--warn);
  border-left:3px solid #fcd34d; padding:2px 0 2px 11px; line-height:1.75; }
.pay-primary { display:block; width:100%; margin-top:14px; font-size:15px; padding:11px; }
.pay-foot { margin-top:9px; text-align:center; }
.pay-link { border:0; background:none; color:var(--brand); text-decoration:underline;
  cursor:pointer; font-size:12.5px; padding:4px 0; }
.pay-restore-line { margin-top:8px; text-align:center; font-size:12px; color:#64748b; }
.pay-restore-line .pay-link { font-size:12px; }
.pay-mono { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:11.5px; }
.pay-wait { display:flex; align-items:center; gap:14px; margin:12px 0; padding:0; }
.pay-spinner { flex:0 0 26px; width:26px; height:26px; border:3px solid #bfdbfe;
  border-top-color:var(--brand); border-radius:50%; animation:pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform:rotate(360deg); } }
.pay-ok { width:52px; height:52px; margin:6px auto 12px; border-radius:50%;
  background:#d1fae5; color:#059669; font-size:30px; font-weight:800;
  display:flex; align-items:center; justify-content:center; }
@media (max-width:560px) {
  .pay-modal { padding:20px 16px; }
  .pay-qr-ph { height:140px; }
}

/* 岗位卡片整张可点：边框用可点击色，悬停转深蓝 + 标题变色 */
.job-clickable { cursor:pointer; border-color:var(--click-line);
  transition:border-color .15s, box-shadow .15s, color .15s; }
.job-clickable:hover, .job-clickable:focus-visible { border-color:var(--brand);
  box-shadow:0 2px 10px rgba(37,99,235,.12); outline:none; }
.job-clickable:hover .t, .job-clickable:focus-visible .t { color:var(--brand); }
.job-go { margin-top:9px; padding-top:8px; border-top:1px dashed var(--line);
  font-size:12px; color:var(--brand); font-weight:600; }
.job-go span { font-size:15px; }
.jrow[data-job-id] { cursor:pointer; }
.jrow[data-job-id]:hover, .jrow[data-job-id]:focus-visible { color:var(--brand); outline:none; }
.jrow-go { color:var(--brand); margin-left:4px; }

@media (max-width: 620px) {
  .job-drawer { width:100%; }
  .jd-head, .jd-body, .jd-foot { padding-left:15px; padding-right:15px; }
  .jd-hero h3 { font-size:19px; }
  .jd-dimname, .jd-label { width:96px; }
  .jd-row { flex-direction:column; gap:2px; }
  .jd-rq-row { flex-direction:column; gap:5px; }
  .jd-rq-k { width:auto; padding-top:0; }
}

/* ---------- 定制工作台弹层：三层追问 / 可编辑简历 / 对话窗口 ---------- */
.wb-mask { position:fixed; inset:0; z-index:130; background:rgba(15,23,42,.6);
  display:flex; align-items:center; justify-content:center; padding:18px; }
.wb-shell { width:min(1120px,100%); height:min(880px,94dvh); background:#fff;
  border-radius:14px; display:flex; flex-direction:column; overflow:hidden;
  box-shadow:0 24px 70px rgba(15,23,42,.3); }
.wb-top { display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:16px 20px 12px; border-bottom:1px solid var(--line); }
.wb-kicker { font-size:11.5px; letter-spacing:1px; color:var(--brand); font-weight:700; }
.wb-top h2 { font-size:18px; margin:3px 0 0; color:#0f172a; }
.wb-top-r { display:flex; align-items:center; gap:12px; }
.wb-top-r .pay-close { position:static; }
.wb-tabs { display:flex; gap:6px; padding:10px 20px 0; border-bottom:1px solid var(--line); }
.wb-tab { border:1px solid var(--click-line); border-bottom:0; background:#f8fafc; color:var(--brand);
  border-radius:8px 8px 0 0; padding:9px 15px; font-size:13px; cursor:pointer; }
.wb-tab:hover { border-color:var(--brand); }
.wb-tab.active { background:#fff; color:var(--brand); font-weight:700; border-color:var(--brand); }
.wb-cols { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr); }
.wb-main { min-width:0; overflow:auto; padding:18px 24px 26px; background:#fcfdfd; }
.wb-pane { max-width:860px; margin:0 auto; }
.wb-mask .wb-state { flex:0 0 92px; }
.wb-clue { font-size:12px; color:#475569; background:#f1f5f9; border-radius:6px;
  padding:7px 9px; margin:0 0 8px; line-height:1.6; }
.wb-hist { font-size:12px; color:#475569; background:#fff; border:1px dashed var(--line);
  border-radius:7px; padding:7px 9px; margin-bottom:9px; max-height:110px; overflow:auto; }
.wb-hist div { padding:3px 0; line-height:1.6; }
.wb-outcome { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px;
  font-size:12px; color:#475569; }
.wb-outcome input { flex:1 1 220px; min-width:0; padding:6px 8px; font:inherit;
  font-size:12px; border:1px solid var(--line); border-radius:6px; }
.wb-small { border:1px solid var(--click-line); background:#fff; color:var(--brand);
  border-radius:6px; padding:6px 11px; font-size:12.5px; cursor:pointer; }
.wb-small:hover { border-color:var(--brand); }
.wb-gen { margin-top:16px; padding-top:14px; border-top:1px dashed var(--line);
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.wb-gen .btn { margin-top:0; }
.wb-gen span { font-size:12px; color:var(--sub); flex:1 1 240px; line-height:1.6; }
.wb-warn { border-left:3px solid #fca5a5; color:#b91c1c;
  padding:2px 0 2px 11px; font-size:12.5px; line-height:1.7; margin-bottom:10px; }
.wb-risk { font-size:12.5px; color:#b45309; line-height:1.7; margin-bottom:10px;
  border-left:3px solid #fcd34d; padding:2px 0 2px 11px; }
.wb-edit-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:9px; }
.wb-edit-head select { padding:6px 9px; border:1px solid var(--line); border-radius:6px;
  font:inherit; font-size:12.5px; background:#fff; }
.wb-editor { width:100%; min-height:400px; max-height:64dvh; overflow:auto;
  border:1px solid var(--line); border-radius:8px; padding:14px 15px;
  color:#0f172a; background:#fff; outline:none;
  font:13px/1.85 ui-monospace,Menlo,Consolas,"Microsoft YaHei",monospace;
  white-space:pre-wrap; overflow-wrap:anywhere; }
.wb-editor:focus { border-color:var(--brand); }
.wb-line { min-height:1.85em; }
/* 问答补进来的条目：深蓝字 + 左侧竖线，和原简历原文区分开 */
.wb-line-add { color:#1e40af; border-left:3px solid var(--brand);
  padding-left:8px; margin-left:-11px; }
.wb-progress-sub { font-size:11.5px; color:var(--muted); line-height:1.65; margin:-4px 0 10px; }
.wb-polish { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:10px; }
.wb-polish span { font-size:12px; color:var(--sub); line-height:1.6; flex:1 1 240px; }
.wb-small:disabled { color:#94a3b8; border-color:#e2e8f0; cursor:not-allowed; }
.wb-cand-msg { font-size:12px; color:var(--sub); line-height:1.6; margin-top:6px; }
.wb-cand-msg:empty { margin-top:0; }
.wb-cand-msg.ok { color:var(--ok); }
.wb-cand-msg.bad { color:var(--bad); }
.wb-cands { border:1px solid var(--click-line); border-radius:8px;
  padding:10px 12px; margin-top:10px; }
.wb-cands-h { font-size:11.5px; color:var(--brand); font-weight:600; margin-bottom:8px; }
.wb-cand { display:flex; gap:9px; align-items:baseline; font-size:12.5px;
  color:#0f172a; line-height:1.7; cursor:pointer;
  border:1px solid var(--click-line); border-left:3px solid var(--click-line);
  background:#fff; border-radius:6px; padding:8px 10px; margin-bottom:6px; }
.wb-cand:hover { border-color:var(--brand); border-left-color:var(--brand); }
.wb-cand-tag { flex:0 0 auto; font-size:11px; color:var(--brand);
  border:1px solid var(--click-line); border-radius:4px; padding:1px 6px; }
.wb-cand-text { flex:1 1 auto; min-width:0; }
/* 可展开的折叠块：整块可点，边框带色；块内条目用带色虚线分开 */
.wb-fold { margin-top:14px; border:1px solid var(--click-line); border-radius:8px;
  background:#fff; padding:9px 12px; }
.wb-fold summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--brand); }
.wb-log { font-size:12px; color:#475569; line-height:1.7; padding:8px 4px;
  border-bottom:1px dashed var(--rule); }
.wb-log:last-child { border-bottom:0; }
.wb-empty { font-size:13px; color:var(--sub); line-height:1.8; padding:30px 4px; }
@media (max-width:900px) {
  .wb-shell { height:96dvh; }
  .wb-cols { overflow:auto; }
  .wb-main { overflow:visible; padding:16px 18px 22px; }
}
