Skip to content

yanliudesign/offer-toolkit-skill / job-description-skill

job-description-skill

Verified

Job Description 解码器 + Offer 策略系统。把任何 JD 翻译成「这家公司到底在招什么人 / 我的匹配度 / Gap 在哪 / 为什么投/不投 / 面试会问什么 / 下一步怎么走」。只有 3 步:贴 JD → 给简历 → 自动生成并打开一份 HTML Offer Strategy Report。是整个求职链路的入口,向下衔接 Resume Skill 和 BQ Skill。关键词:job description, JD, 职位描述, 匹配度, ATS, resume tailor, 简历定制, 招聘经理, 投不投, should I apply, 面试预测, offer strategy。

examples/offer-strategy-template.html

View on GitHub
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Offer Strategy · {{COMPANY}} × {{ROLE}} — {{CANDIDATE}}</title>
<!--
  Offer Strategy Report Template · JD Skill
  - 单文件 + 一个 Google Fonts 链接(用于 CJK PDF 嵌入)
  - 视觉系统:cream/sand + 红绿双 accent + 衬线大标题
  - 数据全部以 {{PLACEHOLDER}} 标记,由 skill 在生成时填充
  - 完整规格见: ../frameworks/offer-strategy-report.md
  - 真实样例(含数据)由用户在桌面生成,本仓库只保留骨架

  ⚠️ 双语强制:<html lang="en"> 必须为 "en",正文每一句用户可见拷贝
    都要写成 <span data-lang="en">EN</span><span data-lang="zh">ZH</span>。
    生成后跑 frameworks/offer-strategy-report.md 顶部的 grep 自检:
    EN 双胞胎数量必须等于 ZH,且总数 ≥ 80。假双语(按钮点了内容不变)比单语更破坏信任。
-->
<!-- CJK font for reliable PDF embedding (macOS PingFang SC 无法被嵌入 PDF) -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Serif+SC:wght@400;700;900&display=swap" rel="stylesheet">
<style>
  :root {
    --ink: #0a0a0a;
    --ink-2: #1f1f1d;
    --paper: #fafaf7;
    --paper-2: #f3f3ee;
    --paper-3: #ebebe4;
    --muted: #6b6b66;
    --muted-2: #9a9a92;
    --line: #d9d9d2;
    --line-soft: #e6e6df;
    --go: #18a957;
    --go-soft: #d8f3e0;
    --warn: #d97706;
    --warn-soft: #fef0d4;
    --stop: #c2410c;
    --stop-soft: #fde0d2;
    --hint: #2563eb;
    --accent: #facc15;
    /* CJK 字体 (Noto * SC) 必须排在系统字体之前,确保 PDF 导出时中文字符可嵌入 */
    --serif: "Times New Roman", "Noto Serif SC", "Songti SC", Georgia, serif;
    --display: "SF Pro Display", -apple-system, "Helvetica Neue", "Noto Sans SC", "PingFang SC", sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "SF Mono", "JetBrains Mono", Menlo, "Noto Sans SC", monospace;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
  body { font-family: var(--body); font-size: 15px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
  a { color: var(--hint); text-decoration: none; border-bottom: 1px solid currentColor; }
  code { font-family: var(--mono); font-size: 0.88em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
  .page { max-width: 960px; margin: 0 auto; padding: 56px 56px 96px; }

  .meta-strip { display: flex; gap: 16px; align-items: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
  .meta-strip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: inline-block; }
  h1 { font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 14px; }
  h1 .tag { display: block; font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 14px; line-height: 1.55; }
  .header-rule { height: 2px; background: var(--ink); margin: 28px 0 28px; }
  .role-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 32px; }
  .role-row .cell { padding: 0 18px; border-left: 1px solid var(--line); }
  .role-row .cell:first-child { border-left: 0; padding-left: 0; }
  .role-row .label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .role-row .value { font-size: 14px; font-weight: 600; line-height: 1.35; }

  .toc { background: var(--paper-2); border: 1px solid var(--line); padding: 18px 22px; border-radius: 4px; margin-bottom: 36px; display: grid; grid-template-columns: 100px 1fr; gap: 18px; align-items: start; }
  .toc .kicker { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
  .toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 13px; }
  .toc li { padding: 2px 0; break-inside: avoid; }
  .toc a { color: var(--ink); border: none; }
  .toc a:hover { border-bottom: 1px solid var(--ink); }

  .notice { background: #fff8e6; border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0 3px 3px 0; margin-bottom: 36px; font-size: 13px; color: #4a3f1e; line-height: 1.65; }
  .notice strong { color: #2a2308; }

  .verdict { background: var(--ink); color: var(--paper); padding: 36px 40px 34px; border-radius: 6px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-bottom: 36px; }
  .verdict .left .kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #999; margin-bottom: 10px; }
  .verdict .left h2 { font-size: 32px; font-weight: 800; line-height: 1.18; margin: 0 0 12px; letter-spacing: -0.012em; }
  .verdict .left .sub { font-size: 14px; color: #c8c8c3; max-width: 520px; line-height: 1.6; }
  .stars .row { font-size: 38px; letter-spacing: 4px; color: var(--accent); line-height: 1; margin-bottom: 10px; text-align: right; }
  .stars .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #999; text-align: right; }

  .tldr { border: 1px solid var(--ink); border-radius: 6px; padding: 24px 28px; margin-bottom: 56px; background: white; }
  .tldr .kicker { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
  .tldr ul { margin: 0; padding-left: 0; list-style: none; counter-reset: tldr; }
  .tldr li { counter-increment: tldr; padding: 12px 0 12px 44px; border-bottom: 1px dashed var(--line); position: relative; font-size: 14px; line-height: 1.55; }
  .tldr li::before { content: counter(tldr); position: absolute; left: 0; top: 12px; font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1; color: var(--ink); }
  .tldr li:last-child { border-bottom: 0; }

  .numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 56px; }
  .num-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; }
  .num-card .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
  .num-card .big { font-family: var(--display); font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.025em; margin-bottom: 14px; }
  .num-card .big small { font-size: 24px; font-weight: 700; color: var(--muted); }
  .num-card .desc { font-size: 13px; color: #2a2a26; line-height: 1.55; }
  .num-card .desc strong { color: var(--ink); }
  .bar-wrap { margin-top: 16px; }
  .bar-track { position: relative; height: 12px; background: white; border: 1px solid var(--line); border-radius: 999px; }
  .bar-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
  .bar-fill.go { background: linear-gradient(90deg, var(--go), #0d8a45); }
  .bar-fill.warn { background: linear-gradient(90deg, #f59e0b, var(--warn)); }
  .bar-fill.muted { background: #c0c0b8; }
  .bar-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }

  section { margin-bottom: 64px; scroll-margin-top: 24px; }
  .section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
  .section-head .num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); min-width: 30px; }
  .section-head h3 { font-family: var(--display); font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.015em; flex: 1; }
  .section-head .pill { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); padding: 4px 10px; border-radius: 999px; }
  .section-intro { font-size: 14px; color: var(--muted); max-width: 720px; margin-bottom: 24px; line-height: 1.6; }

  .decode-block { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
  .decode-card { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px; }
  .decode-card .quote { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin-bottom: 14px; line-height: 1.55; }
  .decode-card .reveal { font-size: 13px; line-height: 1.6; }
  .decode-card .reveal .true-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--go); font-weight: 700; margin-bottom: 6px; }
  .decode-card .reveal ul { margin: 0; padding-left: 18px; }
  .decode-card .reveal ul li { padding: 2px 0; }

  .signal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .signal { background: var(--paper-2); border-left: 3px solid var(--ink); padding: 12px 16px; border-radius: 0 4px 4px 0; font-size: 13px; line-height: 1.55; }
  .signal .word { font-family: var(--mono); font-size: 12px; background: white; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--ink); }
  .signal .arrow { color: var(--muted); margin: 0 4px; }
  .signal .meaning { display: block; margin-top: 6px; color: #2a2a26; }

  .match-list { display: grid; gap: 12px; }
  .match-row { display: grid; grid-template-columns: 32px 1fr 70px; gap: 14px; align-items: center; padding: 14px 18px; background: var(--paper-2); border-left: 3px solid var(--ink); border-radius: 0 4px 4px 0; }
  .match-row.full { border-left-color: var(--go); }
  .match-row.partial { border-left-color: var(--warn); }
  .match-row.miss { border-left-color: var(--stop); }
  .match-row .icon { font-size: 18px; text-align: center; }
  .match-row .text { font-size: 13px; line-height: 1.55; }
  .match-row .text strong { display: block; font-size: 14px; margin-bottom: 3px; }
  .match-row .score { text-align: right; font-family: var(--mono); font-size: 14px; font-weight: 700; }
  .match-summary { margin-top: 16px; padding: 14px 18px; background: var(--ink); color: var(--paper); border-radius: 4px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
  .match-summary .formula { font-family: var(--mono); font-size: 12px; color: var(--accent); }

  /* === §ii½ Match Matrix + Gap Map === */
  .matrix-wrap { margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  table.matrix { width: 100%; border-collapse: collapse; font-size: 13px; background: white; }
  table.matrix th { text-align: left; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
  table.matrix th:first-child { width: 32%; }
  table.matrix th:last-child { width: 26%; }
  table.matrix td { padding: 12px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; color: var(--ink-2); }
  table.matrix tr.row-full    { background: rgba(24, 169, 87, 0.045); }
  table.matrix tr.row-partial { background: rgba(217, 119, 6, 0.055); }
  table.matrix tr.row-miss    { background: rgba(194, 65, 12, 0.055); }
  table.matrix .cat { display: inline-block; font-family: var(--mono); font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-right: 8px; background: var(--paper-2); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
  table.matrix .jd { font-weight: 600; color: var(--ink); display: block; margin-top: 4px; }
  table.matrix .score-pill { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 3px; margin-bottom: 6px; }
  table.matrix .score-pill.full    { background: var(--go-soft);   color: var(--go); }
  table.matrix .score-pill.partial { background: var(--warn-soft); color: var(--warn); }
  table.matrix .score-pill.miss    { background: var(--stop-soft); color: var(--stop); }
  table.matrix .gap-note { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
  table.matrix .gap-note.none { color: var(--go); }

  .gap-title { font-family: var(--display); font-size: 22px; font-weight: 800; margin: 32px 0 14px; letter-spacing: -0.012em; }
  .gap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gap-card { background: var(--warn-soft); border-left: 3px solid var(--warn); padding: 14px 16px; border-radius: 0 4px 4px 0; }
  .gap-card.high { background: var(--stop-soft); border-left-color: var(--stop); }
  .gap-card .gap-label { font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; display: flex; align-items: baseline; gap: 8px; }
  .gap-card .gap-label .sev { font-family: var(--mono); font-size: 10px; padding: 2px 6px; border-radius: 3px; background: rgba(255,255,255,0.6); color: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase; }
  .gap-card .gap-meaning { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; margin-bottom: 8px; }
  .gap-card .gap-fix { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--ink-2); padding-top: 8px; border-top: 1px dashed rgba(0,0,0,0.18); }
  .gap-card .gap-fix strong { font-style: normal; font-family: var(--body); }

  .nice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
  .nice-row { display: grid; grid-template-columns: 24px 1fr 40px; gap: 12px; align-items: center; padding: 10px 14px; background: white; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
  .nice-row .ico { text-align: center; }
  .nice-row .scr { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; }

  .radar-block { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin-top: 18px; }
  .radar-block svg { display: block; width: 100%; height: auto; }
  .radar-legend ol { margin: 0; padding-left: 22px; font-size: 12px; columns: 2; column-gap: 16px; }
  .radar-legend li { padding: 3px 0; break-inside: avoid; line-height: 1.45; }
  .radar-legend li .lscr { font-family: var(--mono); font-weight: 700; color: var(--ink); }

  .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
  .col h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
  .col.pros h4 { color: var(--go); border-color: var(--go); }
  .col.cons h4 { color: var(--stop); border-color: var(--stop); }
  .item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
  .item:last-child { border-bottom: 0; }
  .item .title { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .item .title .badge { font-size: 10px; padding: 2px 7px; border-radius: 3px; background: var(--paper-2); color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
  .item .body { font-size: 13px; color: #2a2a26; line-height: 1.6; }
  .probe-table { margin-top: 10px; background: white; border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; }
  .probe-row { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12px; line-height: 1.5; }
  .probe-row:last-child { border-bottom: 0; }
  .probe-row .who { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .probe-row.you .who { color: var(--go); }
  .probe-row.hm .who { color: var(--stop); }
  .probe-row .what { color: #2a2a26; }
  .probe-row.you .what { font-style: italic; }

  .comp-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
  .comp-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
  .comp-card.middle { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .comp-card .who { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .comp-card.middle .who { color: var(--accent); }
  .comp-card .role { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
  .comp-card .row { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; border-bottom: 1px dotted var(--line-soft); gap: 8px; }
  .comp-card.middle .row { border-bottom: 1px dotted #333; }
  .comp-card .row:last-child { border-bottom: 0; }
  .comp-card .row span:last-child { font-family: var(--mono); font-weight: 600; text-align: right; }
  .comp-callout { font-size: 13px; background: var(--warn-soft); border-left: 3px solid var(--warn); padding: 12px 16px; border-radius: 0 3px 3px 0; color: #5a3a08; line-height: 1.6; }
  .comp-callout strong { color: #2a1c04; }

  .arc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 16px; }
  .arc-step { position: relative; padding: 14px 16px 14px 22px; background: var(--paper-2); border-right: 1px solid white; font-size: 12px; line-height: 1.5; }
  .arc-step:first-child { border-radius: 4px 0 0 4px; }
  .arc-step:last-child { border-right: 0; border-radius: 0 4px 4px 0; background: var(--ink); color: var(--paper); }
  .arc-step .year { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .arc-step:last-child .year { color: var(--accent); }
  .arc-step .what { font-weight: 700; font-size: 13px; }
  .arc-step .why { margin-top: 4px; color: var(--muted-2); }
  .arc-step:last-child .why { color: #c8c8c3; }
  .arc-thread { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 16px; text-align: center; }

  .play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .play-card { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
  .play-card .ptype { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--go); font-weight: 700; margin-bottom: 8px; }
  .play-card h5 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
  .play-card .desc { font-size: 13px; color: #2a2a26; line-height: 1.55; margin-bottom: 12px; }
  .play-card .search-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px; font-family: var(--mono); font-size: 11px; color: var(--ink); margin-bottom: 6px; word-break: break-all; }
  .template-box { margin-top: 18px; background: var(--paper-2); border: 1px dashed var(--ink); padding: 18px 22px; border-radius: 4px; font-size: 13px; line-height: 1.7; }
  .template-box .ttitle { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
  .template-box .body { background: white; border: 1px solid var(--line); padding: 14px 16px; border-radius: 3px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: #2a2a26; white-space: pre-wrap; }

  .audit-grid { display: grid; gap: 16px; }
  .audit-card { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; }
  .audit-card .tag { display: inline-block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--go); border: 1px solid var(--go); padding: 2px 8px; border-radius: 999px; margin-bottom: 10px; font-weight: 700; }
  .audit-card .tag.fix { color: var(--warn); border-color: var(--warn); }
  .audit-card .tag.risk { color: var(--stop); border-color: var(--stop); }
  .audit-card h5 { font-size: 17px; margin: 0 0 10px; font-weight: 700; }
  .audit-card .why { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
  .audit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .audit-col h6 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
  .audit-col ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
  .audit-col li { padding: 3px 0; }
  .audit-col.before ul li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.25); }
  .audit-col.after ul li { color: var(--ink); }
  .audit-col.after ul li strong { background: linear-gradient(180deg, transparent 60%, var(--accent) 60%); padding: 0 2px; }

  .q-list { display: grid; gap: 10px; }
  .q-row { display: grid; grid-template-columns: 36px 1fr 110px; gap: 14px; align-items: start; padding: 14px 16px; background: white; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 0 4px 4px 0; }
  .q-row .qid { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--muted-2); line-height: 1.2; }
  .q-row .q { font-size: 14px; line-height: 1.5; color: var(--ink); }
  .q-row .q .source { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; font-style: italic; }
  .q-row .ctype { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; text-align: right; padding-top: 4px; color: var(--muted); }
  .q-row .ctype span { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); font-weight: 700; }
  .q-row.behavior { border-left-color: #7c3aed; }
  .q-row.product { border-left-color: var(--hint); }
  .q-row.craft { border-left-color: var(--go); }
  .q-row.company { border-left-color: var(--warn); }

  .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; }
  .tl-step { position: relative; padding: 0 14px 0 24px; border-left: 2px solid var(--ink); }
  .tl-step::before { content: ""; position: absolute; left: -8px; top: 0; width: 14px; height: 14px; background: var(--accent); border: 2px solid var(--ink); border-radius: 50%; }
  .tl-step .week { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .tl-step h5 { font-size: 14px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
  .tl-step .what { font-size: 12px; color: #2a2a26; line-height: 1.6; }

  footer { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.75; }
  footer .sig { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
  footer code { background: transparent; padding: 0; color: var(--ink); font-weight: 600; }
  .brand-block { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; padding: 44px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .brand-block .brand-mark { font-family: var(--display); font-weight: 800; font-size: 108px; line-height: 0.92; letter-spacing: -0.045em; color: var(--ink); margin: 0; }
  .brand-block .brand-mark .dot-yellow { color: var(--accent); -webkit-text-stroke: 1px var(--ink); }
  .brand-block .brand-sub { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); margin-top: 10px; letter-spacing: 0.02em; }
  .brand-block .brand-sub strong { font-style: normal; font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: 0; }
  .socials { display: flex; gap: 12px; align-items: center; }
  .socials a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); border-bottom: 1.5px solid var(--ink); transition: all 0.18s ease; }
  .socials a:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
  .socials a svg { width: 20px; height: 20px; display: block; }
  .socials a.xhs { width: 46px; height: 46px; padding: 0; border-radius: 11px; background: #ff2442; border: 1.5px solid #ff2442; color: white; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-weight: 900; font-size: 11px; font-style: italic; letter-spacing: -0.02em; line-height: 1; }
  .socials a.xhs span { display: inline-block; transform: skewX(-6deg); white-space: nowrap; }
  .socials a.xhs:hover { background: #d11838; border-color: #d11838; transform: translateY(-2px); }

  /* === Unified report toolbar (floating bottom-right; hidden in print) === */
  .report-tools {
    position: fixed; right: 24px; bottom: 24px; z-index: 9999;
    display: inline-flex; align-items: center; gap: 4px;
    background: #1f1f1d; color: #fafaf7;
    padding: 8px 8px 8px 22px; border-radius: 999px;
    font-family: var(--body, system-ui, sans-serif);
    font-size: 13px; letter-spacing: 0.02em;
    box-shadow: 0 6px 22px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,0,0,0.06);
  }
  .report-tools .rt-kicker {
    color: #7a7a72; font-size: 12px; font-weight: 500;
    margin-right: 12px; user-select: none;
  }
  .report-tools .rt-btn {
    background: transparent; color: #d8d8d3; border: 0; cursor: pointer;
    padding: 8px 14px; font: inherit; font-weight: 600; letter-spacing: 0.05em;
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 999px;
    transition: color 160ms ease, background 160ms ease;
  }
  .report-tools .rt-btn:hover { color: #fafaf7; }
  .report-tools .rt-divider { width: 1px; height: 18px; background: #3a3a37; margin: 0 6px; }
  /* Segmented language toggle */
  .report-tools .lang-toggle { padding: 6px 10px; }
  .report-tools .lang-toggle .seg { color: #6b6b66; font-weight: 600; transition: color 160ms ease; }
  .report-tools .lang-toggle .sep { color: #3a3a37; margin: 0 8px; font-weight: 400; }
  html[lang="en"] .report-tools .lang-toggle .seg.en { color: #fafaf7; }
  html[lang="zh"] .report-tools .lang-toggle .seg.zh { color: #fafaf7; }
  /* PDF-styled primary Export button (opens dropdown menu) */
  .report-tools .rt-export { position: relative; display: inline-flex; }
  .report-tools .rt-btn.pdf {
    background: var(--accent, #facc15); color: #1f1f1d;
    padding: 8px 18px; border: 1.5px solid #1f1f1d;
    box-shadow: inset 0 0 0 2px var(--accent, #facc15);
  }
  .report-tools .rt-btn.pdf:hover { background: #fde047; color: #1f1f1d; }
  .report-tools .rt-btn.pdf .caret { font-size: 10px; margin-left: 2px; opacity: 0.7; transition: transform 160ms ease; }
  .report-tools .rt-btn.pdf[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .report-tools .rt-menu {
    position: absolute; bottom: calc(100% + 10px); right: 0;
    background: #1f1f1d; border-radius: 14px; padding: 6px;
    display: flex; flex-direction: column; min-width: 180px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.34), 0 0 0 1px rgba(0,0,0,0.06);
  }
  .report-tools .rt-menu[hidden] { display: none; }
  .report-tools .rt-menu button {
    background: transparent; color: #d8d8d3; border: 0; cursor: pointer;
    padding: 10px 14px; font: inherit; font-size: 13px; font-weight: 600;
    letter-spacing: 0.03em; text-align: left; border-radius: 8px;
    display: flex; align-items: center; gap: 10px;
    transition: background 160ms ease, color 160ms ease;
  }
  .report-tools .rt-menu button:hover { background: #2a2a27; color: #fafaf7; }
  .report-tools .rt-menu button .glyph { color: #7a7a72; font-weight: 500; width: 14px; text-align: center; }

  /* === Language toggle content swap ===
     Every user-visible chunk of copy should exist as a twin pair:
       <span data-lang="en">English</span><span data-lang="zh">中文</span>
     The <html lang=""> attribute controls which twin shows. */
  html[lang="en"] [data-lang="zh"] { display: none !important; }
  html[lang="zh"] [data-lang="en"] { display: none !important; }

  @media print {
    /* Page setup */
    @page { margin: 14mm; }
    body { background: white; }
    .page { padding: 0; max-width: none; }
    h1 { font-size: 42px; }

    /* Hide on-screen chrome */
    .report-tools { display: none !important; }

    /* Preserve background / accent colors */
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    /* Keep only ATOMIC units intact — never lock whole sections
       (that's what causes huge whitespace before page breaks) */
    .verdict, .tldr li, .num-card, .match-row, .nice-row, .probe-row, .signal,
    .decode-card, .comp-card, .play-card, .audit-card, .q-row, .arc-step,
    .toc, .notice, .radar-block, .gauge-card, .role-row {
      break-inside: avoid; page-break-inside: avoid;
    }

    /* Don't orphan headings at page bottom */
    h1, h2, h3, h4, .section-head { break-after: avoid; page-break-after: avoid; }

    /* Tighten vertical rhythm */
    section { margin-bottom: 18px; }
  }

  @media (max-width: 720px) {
    .page { padding: 32px 22px 64px; }
    h1 { font-size: 36px; }
    .role-row, .toc { grid-template-columns: 1fr; }
    .toc ol { columns: 1; }
    .verdict, .numbers, .duo, .decode-block, .play-grid, .signal-grid, .nice-grid, .audit-cols, .radar-block { grid-template-columns: 1fr; }
    .comp-grid { grid-template-columns: 1fr; }
    .arc { grid-template-columns: 1fr; }
    .arc-step { border-right: 0; border-bottom: 1px solid white; border-radius: 0 !important; }
    .timeline { grid-template-columns: 1fr; gap: 16px; }
    .stars .row, .stars .label { text-align: left; }
    .brand-block { grid-template-columns: 1fr; gap: 18px; }
    .brand-block .brand-mark { font-size: 64px; }
    .socials { justify-content: flex-start; }
  }
</style>
</head>
<body>

<div class="report-tools" role="toolbar" aria-label="工具">
  <span class="rt-kicker"><span data-lang="en">Tools</span><span data-lang="zh">工具</span></span>
  <button type="button" class="rt-btn lang-toggle" onclick="toggleLang()" aria-label="Switch language / 切换语言">
    <span class="seg en">EN</span><span class="sep">/</span><span class="seg zh">中文</span>
  </button>
  <span class="rt-divider"></span>
  <div class="rt-export">
    <button type="button" class="rt-btn pdf" onclick="toggleExportMenu(event)" aria-haspopup="menu" aria-expanded="false" aria-label="导出 / Export">
      <span data-lang="en">↓ EXPORT</span><span data-lang="zh">↓ 导出</span>
      <span class="caret" aria-hidden="true">▾</span>
    </button>
    <div class="rt-menu" role="menu" hidden>
      <button type="button" role="menuitem" onclick="exportMarkdown(); closeExportMenu()">
        <span class="glyph">MD</span>
        <span data-lang="en">Markdown (.md)</span><span data-lang="zh">Markdown 文件</span>
      </button>
      <button type="button" role="menuitem" onclick="closeExportMenu(); window.print()">
        <span class="glyph">PDF</span>
        <span data-lang="en">PDF (Print…)</span><span data-lang="zh">PDF(打印…)</span>
      </button>
    </div>
  </div>
</div>

<header class="report-header">
  <div class="report-meta">
    <span class="kicker">Offer Strategy Report</span>
    <span class="kicker">JD Skill · 解码 + 匹配 + Should-I-Apply(含面试预测预览)</span>
    <span class="kicker">{{DATE_YYYY_MM_DD}}</span>
  </div>
  <h1>{{COMPANY}} × {{ROLE}}</h1>
  <p class="subtitle">{{LOCATION}} · {{COMP_BAND}} · {{LEVEL_HINT}} · {{ONE_LINER}}</p>
</header>

<section class="meta-strip">
  <div><span class="label">Candidate</span><span class="value">{{CANDIDATE_NAME}} · {{CANDIDATE_TITLE}}</span></div>
  <div><span class="label">Track Record</span><span class="value">{{TRACK_RECORD_COMPANIES}}</span></div>
  <div><span class="label">Pedigree</span><span class="value">{{PEDIGREE}}</span></div>
  <div><span class="label">Status</span><span class="value">Decoded → Matched → Reviewed → Plan ready</span></div>
</section>

<nav class="toc">
  <span class="toc-title">Inside</span>
  <ol>
    <li><a href="#tldr">TL;DR · 一分钟摘要</a></li>
    <li><a href="#assumptions">⚠️ 假设说明</a></li>
    <li><a href="#metrics">关键指标</a></li>
    <li><a href="#company">1. 公司背景</a></li>
    <li><a href="#product">2. 本职位产品分析</a></li>
    <li><a href="#decode">3. JD 深度解读</a></li>
    <li><a href="#match">4. JD ↔ 简历 逐条匹配</a></li>
    <li><a href="#gap">5. Gap 要提升的</a></li>
    <li><a href="#yes-no">6. 为什么投 / 不投</a></li>
    <li><a href="#salary">7. 薪资 reality check</a></li>
    <li><a href="#nextstep">8. Next step (内推 + portfolio + 叙事)</a></li>
    <li><a href="#questions">9. Top 10 面试题预测</a></li>
    <li><a href="#timeline">10. 6 周行动计划</a></li>
  </ol>
</nav>

<!-- §0 ASSUMPTIONS · 必须放显眼位置 -->
<section id="assumptions" class="callout warn">
  <h2>⚠️ 假设说明(任一不对,告诉我重新生成)</h2>
  <ul>
    <li>薪资底线 ≈ {{SALARY_FLOOR}};equity 至少打平当前包</li>
    <li>地点接受度:{{LOCATION_ACCEPTANCE}}</li>
    <li>Title 接受度:{{TITLE_ACCEPTANCE}}</li>
    <li>竞品流动风险:{{COMPETITOR_RISK_NOTE}}</li>
    <li>Visa:{{VISA_STATUS}};Mission 接受度:{{MISSION_FIT}}</li>
  </ul>
</section>

<!-- §1 VERDICT -->
<section id="tldr" class="verdict">
  <h2 class="kicker">Verdict</h2>
  <h3 class="verdict-line">{{VERDICT_ONE_LINER}}</h3>
  <p class="verdict-body">{{VERDICT_BODY_3_LINES}}</p>
  <div class="stars">★★★★★ <span>{{STAR_RATING}} / 5 推荐指数</span></div>
</section>

<!-- §2 IF YOU ONLY READ THREE THINGS -->
<section class="three-things">
  <h2>If you only read three things</h2>
  <ol>
    <li><strong>{{TAKEAWAY_1_HEADLINE}}</strong> — {{TAKEAWAY_1_BODY}}</li>
    <li><strong>{{TAKEAWAY_2_HEADLINE}}</strong> — {{TAKEAWAY_2_BODY}}</li>
    <li><strong>{{TAKEAWAY_3_HEADLINE}}</strong> — {{TAKEAWAY_3_BODY}}</li>
  </ol>
</section>

<!-- §3 METRICS · gauges -->
<section id="metrics" class="metrics-grid">
  <div class="gauge-card">
    <div class="label">Match Score</div>
    <div class="value mono">{{MATCH_LOW}}–{{MATCH_HIGH}} %</div>
    <p class="caption">{{MATCH_WEIGHTING_FORMULA}}</p>
    <div class="gauge"><span class="bar" style="--low:{{MATCH_LOW}}; --high:{{MATCH_HIGH}}"></span></div>
    <div class="ticks"><span>0</span><span>55</span><span>70</span><span>85</span><span>100</span></div>
  </div>
  <div class="gauge-card">
    <div class="label">预估拿面概率</div>
    <div class="value mono">{{PROB_LOW}}–{{PROB_HIGH}} %</div>
    <p class="caption">{{PROB_FACTORS}}</p>
    <div class="gauge"><span class="bar" style="--low:{{PROB_LOW}}; --high:{{PROB_HIGH}}"></span></div>
    <div class="ticks"><span>0</span><span>20</span><span>45</span><span>65</span><span>100</span></div>
  </div>
</section>

<!-- §i WHY THIS JD READS THE WAY IT DOES -->
<!-- §1 COMPANY BACKGROUND -->
<section id="company">
  <h2><span class="kicker">Company context</span>1. 公司背景·{{COMPANY}} 的今天</h2>
  <div class="decode-block">
    <div class="decode-card">
      <div class="quote">{{COMPANY_ONE_LINER_CULTURAL_TENSION}}</div>
      <p><strong>公司画像</strong></p>
      <ul>
        <li>成立 {{YEAR}} · 员工 {{HEADCOUNT}} · 设计团队 {{DESIGN_TEAM_SIZE}} · 估值 / 营收 {{VALUATION_OR_REVENUE}}</li>
        <li>CEO {{CEO}} · CPO {{CPO}} · 设计负责人 {{DESIGN_LEAD_BACKGROUND}}</li>
        <li>核心战略合作 / 投资方:{{KEY_INVESTORS_PARTNERS}}</li>
        <li>收入结构:{{REVENUE_BREAKDOWN}}</li>
      </ul>
    </div>
    <div class="decode-card">
      <p><strong>文化信号</strong></p>
      <ul>
        <li>{{CULTURE_SIGNAL_1}}</li>
        <li>{{CULTURE_SIGNAL_2}}</li>
        <li>{{CULTURE_SIGNAL_3_PACE_AND_REVIEW_CYCLE}}</li>
        <li>{{CULTURE_SIGNAL_4_CRAFT_BAR_AND_PEER_BACKGROUND}}</li>
      </ul>
    </div>
  </div>
  <div class="decode-block">
    <div class="decode-card">
      <p><strong>近 12-24 个月关键产品节点(推动了这次招聘)</strong></p>
      <ul><li>{{PRODUCT_MILESTONE_1}}</li><li>{{PRODUCT_MILESTONE_2}}</li><li>{{PRODUCT_MILESTONE_3}}</li></ul>
    </div>
    <div class="decode-card">
      <p><strong>对你而言的特殊信号</strong></p>
      <ul>
        <li>{{CANDIDATE_FIT_OR_FLAG_1}}</li>
        <li>{{CANDIDATE_FIT_OR_FLAG_2}}</li>
        <li>{{CANDIDATE_FIT_OR_FLAG_3}}</li>
      </ul>
    </div>
  </div>
</section>

<!-- §2 PRODUCT ANALYSIS -->
<section id="product">
  <h2><span class="kicker">Product analysis</span>2. 本职位产品分析 · {{PRODUCT_NAME}} 设计挑战 + 这个 role 的真实 scope</h2>
  <div class="decode-block">
    <div class="decode-card">
      <div class="quote">{{PRODUCT_ONE_LINER}}</div>
      <p><strong>产品规模</strong></p>
      <ul>
        <li>用户 / 营收:{{USER_AND_REVENUE_SCALE}}</li>
        <li>付费层:{{PRICING_TIERS}}</li>
        <li>主要 surfaces:{{KEY_SURFACES}}</li>
      </ul>
    </div>
    <div class="decode-card">
      <p><strong>设计这个产品的核心难题(JD 在找解题人)</strong></p>
      <ul>
        <li><strong>{{DESIGN_CHALLENGE_1_NAME}}</strong> · {{DESIGN_CHALLENGE_1_DETAIL}}</li>
        <li><strong>{{DESIGN_CHALLENGE_2_NAME}}</strong> · {{DESIGN_CHALLENGE_2_DETAIL}}</li>
        <li><strong>{{DESIGN_CHALLENGE_3_NAME}}</strong> · {{DESIGN_CHALLENGE_3_DETAIL}}</li>
        <li><strong>{{DESIGN_CHALLENGE_4_NAME}}</strong> · {{DESIGN_CHALLENGE_4_DETAIL}}</li>
      </ul>
    </div>
  </div>
  <div class="decode-block">
    <div class="decode-card">
      <p><strong>这个 role 的真实 scope(vs JD 文字)</strong></p>
      <ul>
        <li>{{REAL_SCOPE_1}}</li>
        <li>{{REAL_SCOPE_2}}</li>
        <li>{{REPORTING_LINE_AND_REVIEW_CYCLE}}</li>
        <li>{{PEER_TEAM_DESCRIPTION}}</li>
      </ul>
    </div>
    <div class="decode-card">
      <p><strong>成败信号(前 12 个月)</strong></p>
      <ul>
        <li><strong>✅ 6 个月</strong>:{{SUCCESS_SIGNAL_6MO}}</li>
        <li><strong>✅ 12 个月</strong>:{{SUCCESS_SIGNAL_12MO}}</li>
        <li><strong>⚠️ 失败信号 1</strong>:{{FAILURE_SIGNAL_1}}</li>
        <li><strong>⚠️ 失败信号 2</strong>:{{FAILURE_SIGNAL_2}}</li>
      </ul>
    </div>
  </div>
</section>

<!-- §3 JD DEEP DECODE -->
<section id="decode">
  <h2><span class="kicker">Decoder</span>3. JD 深度解读 · 为什么这份 JD 这样写</h2>
  <p class="lede">{{DECODE_INTRO_1_2_SENTENCES}}</p>
  <!-- 重复 N 次 (3-5 段):JD 原文 → 真实诉求 -->
  <div class="jd-translation">
    <blockquote>"{{JD_QUOTE_1}}"</blockquote>
    <div class="real-need">
      <div class="label">真实诉求 · {{REAL_NEED_1_TAGLINE}}</div>
      <ul>
        <li>{{REAL_NEED_1_BULLET_1}}</li>
        <li>{{REAL_NEED_1_BULLET_2}}</li>
        <li>{{HIT_OR_MISS_NOTE}}</li>
      </ul>
    </div>
  </div>
  <!-- ... 重复 ... -->
  <h3>Hidden Signal 词典命中({{N}} 条)</h3>
  <table class="signal-table">
    <thead><tr><th>JD 措辞</th><th>推断</th><th>命中</th></tr></thead>
    <tbody>
      <tr><td>{{PHRASE}}</td><td>{{INTERPRETATION}}</td><td class="{{hit|miss|partial}}">{{✅|🟡|❌}}</td></tr>
      <!-- ... -->
    </tbody>
  </table>
</section>

<!-- §ii MUST HAVE HIT ANALYSIS -->
<section id="must-have">
  <h2><span class="kicker">Match</span>4. JD ↔ 简历 逐条匹配 · Must Have 命中</h2>
  <div class="must-card hit">
    <div class="head"><span class="status">✅</span><span class="letter">A</span><h3>{{MUST_HAVE_TITLE}}</h3><span class="score mono">{{SCORE}}</span></div>
    <p>{{EVIDENCE_FROM_RESUME_VERBATIM}}</p>
    <p class="note">{{RISK_OR_NUANCE}}</p>
  </div>
  <!-- ... 6 张 ... -->
  <div class="total">Must Have 平均:{{AVG}} · Total = 0.6 × {{MUST}} + 0.2 × {{NICE}} + 0.2 × {{HIDDEN}} = <strong>{{TOTAL}}%</strong></div>
</section>

<!-- §ii½ MATCH MATRIX + GAP MAP — 逐条 JD↔简历对照 + 主要 Gap -->
<section id="matrix">
  <h2><span class="kicker">Gap analysis</span>4 · Match Matrix 完整对照表</h2>
  <p class="sub" style="font-size: 12.5px; color: var(--muted); margin: 0 0 10px;">把 Must Have / Nice / Hidden Signal 全部压成一张表:左 = JD 要求 (原文摘要),中 = 你简历里最直接的证据,右 = 评分 + Gap 提示。同一个要求看三桌就能定量出「这条到底是不是能补」。</p>

  <div class="matrix-wrap">
    <table class="matrix">
      <thead>
        <tr><th>JD 要求</th><th>你的简历证据</th><th>评分 / Gap</th></tr>
      </thead>
      <tbody>
        <!-- 每行三个状态:row-full / row-partial / row-miss -->
        <tr class="row-{{STATUS}}">
          <td><span class="cat">{{CATEGORY}}</span><span class="jd">{{JD_REQUIREMENT_VERBATIM_OR_SHORT}}</span></td>
          <td>{{RESUME_EVIDENCE_VERBATIM}}</td>
          <td>
            <span class="score-pill {{STATUS}}">{{SCORE}}</span>
            <span class="gap-note {{NONE_IF_FULL}}">{{GAP_OR_DASH}}</span>
          </td>
        </tr>
        <!-- 重复 8-14 行:Must Have 全部 + Nice Have 全部 + Hidden Signal 中评分 ≤ 0.7 的那几个 -->
      </tbody>
    </table>
  </div>

  <h3 class="gap-title">⚠ Gap Map · 主要缺口 + 4 周内的应对</h3>
  <div class="gap-grid">
    <!-- 在 §5 #gap 里填充,这里不重复 -->
  </div>
</section>

<!-- §iii NICE TO HAVE + HIDDEN SIGNAL FIT -->
<section id="nice-hidden">
  <h2><span class="kicker">Match(续)</span>4 · Nice to Have + Hidden Signal Fit</h2>
  <h3>隐性 Nice to Have 命中({{N}} 条 · JD 没明写但 HM 会偏好)</h3>
  <!-- 列表 -->
  <h3>Hidden Signal Fit 雷达(10 维度)</h3>
  <svg class="radar" viewBox="0 0 200 200"><!-- 纯 SVG 10 顶点雷达 --></svg>
</section>

<!-- §5 GAP MAP -->
<section id="gap">
  <h2><span class="kicker">Action gaps</span>5. Gap 要提升的 · 主要缺口 + 4 周应对</h2>
  <p>上一节 Matrix 里红 / 橙色的格子收集起来→ 2-4 个真实 gap。每张卡给出「为什么 HM 会担心 + 4 周内怎么补」。</p>
  <div class="gap-grid">
    <div class="gap-card high">
      <div class="gap-label"><span>Gap 1 · {{GAP_NAME}}</span><span class="sev">高</span></div>
      <div class="gap-meaning">{{WHY_THIS_MATTERS_AND_HOW_HM_SEES_IT}}</div>
      <div class="gap-fix"><strong>→</strong> {{4_WEEK_MITIGATION_LINK_TO_SECTION}}</div>
    </div>
    <div class="gap-card">
      <div class="gap-label"><span>Gap 2 · {{GAP_NAME}}</span><span class="sev">中</span></div>
      <div class="gap-meaning">{{WHY_THIS_MATTERS}}</div>
      <div class="gap-fix"><strong>→</strong> {{MITIGATION}}</div>
    </div>
    <!-- 再 1-2 张 -->
  </div>
</section>

<!-- §iv WHY YES / WHY NO -->
<section id="yes-no" class="two-col">
  <h2>6. 为什么投 vs 为什么不投(含 HM probe 应对)</h2>
  <div class="col col-yes">
    <h3>✓ 为什么值得投</h3>
    <ul>
      <li><strong>{{YES_REASON_1}}</strong> — {{YES_DETAIL_1}}</li>
      <li><strong>{{YES_REASON_2}}</strong> — {{YES_DETAIL_2}}</li>
      <li><strong>{{YES_REASON_3}}</strong> — {{YES_DETAIL_3}}</li>
    </ul>
  </div>
  <div class="col col-no">
    <h3>✗ 为什么可能不该投(或先别裸投)</h3>
    <div class="risk">
      <h4>{{RISK_1}}</h4>
      <p>{{RISK_1_DESC}}</p>
      <p class="probe"><span class="probe-label">HM probe</span>{{HM_PROBE_QUESTION_1}}</p>
      <p class="response"><span class="response-label">你的应答</span>{{YOUR_RESPONSE_1}}</p>
    </div>
    <!-- ... 3 张 ... -->
  </div>
</section>

<!-- §v SALARY -->
<section id="salary">
  <h2>7. 薪资 reality check</h2>
  <p>{{SALARY_PARAGRAPH}}</p>
  <table>
    <tr><th>项</th><th>JD 带宽</th><th>市场区间</th><th>你的当前</th><th>谈判 talking point</th></tr>
    <tr><td>Base</td><td>{{...}}</td><td>{{...}}</td><td>{{...}}</td><td>{{...}}</td></tr>
    <!-- ... -->
  </table>
</section>

<!-- §vi NARRATIVE -->
<!-- §8 NEXT STEP — 三块联动:叙事弧·内推·portfolio audit -->
<span id="nextstep"></span>
<section id="narrative">
  <h2>8. Next step · 为什么这个 role 是你叙事的下一步</h2>
  <p>{{CAREER_ARC_MATCH_2_3_PARA}}</p>
</section>

<!-- §vii REFERRAL PLAYBOOK -->
<section id="referral">
  <h2>8 · 内推 playbook</h2>
  <ol>
    <li><strong>找谁</strong>:{{WHO_TO_FIND_LINKEDIN_SEARCH_TIP}}</li>
    <li><strong>怎么开口</strong>:{{HOW_TO_REACH_OUT_PRINCIPLE}}</li>
    <li><strong>DM 模板</strong>:<pre>{{DM_TEMPLATE_VERBATIM}}</pre></li>
  </ol>
</section>

<!-- §viii PORTFOLIO AUDIT -->
<section id="portfolio">
  <h2>8 · Portfolio audit:4 周内必须做的 {{N}} 件事</h2>
  <ol>
    <li><strong>{{ACTION_1_TITLE}}</strong> — {{ACTION_1_DETAIL_WHY_HOW}}</li>
    <!-- ... -->
  </ol>
</section>

<!-- §ix INTERVIEW QUESTIONS PREVIEW -->
<section id="questions">
  <h2><span class="kicker">Predictor · 面试预测预览</span>9. Top 10 面试题预测</h2>
  <ol class="q-list">
    <li>
      <h4>{{Q1_TEXT}}</h4>
      <p class="why">为什么会问:{{Q1_WHY}}</p>
      <p class="how">准备方向:{{Q1_HOW}}</p>
    </li>
    <!-- ... -->
  </ol>
  <p class="footnote">想要完整 Top 20 → 让我跑 面试预测流程。Behavior 类故事 → 去 <strong>BQ Skill</strong>。</p>
</section>

<!-- §x TIMELINE -->
<section id="timeline">
  <h2>10. {{N}} 周行动时间线</h2>
  <ol class="timeline">
    <li><span class="week">Week 1</span><ul><li>{{W1_TODO_1}}</li><li>{{W1_TODO_2}}</li></ul></li>
    <li><span class="week">Week 2</span><ul><li>{{W2_TODO_1}}</li></ul></li>
    <!-- ... -->
  </ol>
</section>

<footer class="report-footer">
  <div class="brand-block">
    <div>
      <h2 class="brand-mark">JD SKILL<span class="dot-yellow">.</span></h2>
      <div class="brand-sub">Created by <strong>Dreameryanyan</strong> · Job Description Decoder &amp; Offer Strategy OS</div>
    </div>
    <div class="socials">
      <a href="https://www.linkedin.com/in/yanliudesign/" target="_blank" rel="noopener" aria-label="LinkedIn" title="LinkedIn · yanliudesign">
        <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M20.45 20.45h-3.55v-5.57c0-1.33-.03-3.04-1.85-3.04-1.86 0-2.14 1.45-2.14 2.95v5.66H9.36V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 1 1 0-4.12 2.06 2.06 0 0 1 0 4.12zM7.12 20.45H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.72v20.56C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.72V1.72C24 .77 23.2 0 22.22 0z"/></svg>
      </a>
      <a href="https://x.com/yanliudreamer" target="_blank" rel="noopener" aria-label="X (Twitter)" title="X · @yanliudreamer">
        <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
      </a>
      <a class="xhs" href="https://www.xiaohongshu.com/user/profile/5b2afdf311be104ac3c22931" target="_blank" rel="noopener" aria-label="Xiaohongshu" title="小红书 · Dreameryanyan">
        <span>小红书</span>
      </a>
    </div>
  </div>

  <div class="sig">— JD Skill · Offer Strategy Report</div>
  Generated {{TIMESTAMP}} · Source: <a href="{{JD_SOURCE_URL}}" target="_blank">{{JD_SOURCE_DISPLAY}}</a> ·
  Decoded into 5 layers per <code>prompts/jd-decoder.md</code> ·
  Match Score computed with 0.6/0.2/0.2 weighting per <code>frameworks/match-rubric.md</code> ·
  Hit-rate estimated per <code>frameworks/go-no-go.md</code> ·
  All assessments based on {{CANDIDATE_NAME}} {{RESUME_VERSION}} — <strong>no fabricated facts</strong>.
  Comp figures use public market data (Levels.fyi 等); treat as range, not quote.
  <br><br>
  See also <a href="{{JD_MD_LINK}}">jd-bank markdown</a>.
</footer>

<script>
  // Language toggle · en / zh. Persists choice via localStorage.
  // No JS-side label update needed — the segmented toggle highlights the
  // active language purely via CSS keyed off <html lang>.
  window.toggleLang = function () {
    const html = document.documentElement;
    html.lang = html.lang === 'zh' ? 'en' : 'zh';
    try { localStorage.setItem('report-lang', html.lang); } catch (e) {}
  };
  (function initLang () {
    try {
      const saved = localStorage.getItem('report-lang');
      if (saved === 'en' || saved === 'zh') document.documentElement.lang = saved;
    } catch (e) {}
  })();

  // Export dropdown menu (MD + PDF share one button).
  window.toggleExportMenu = function (event) {
    if (event) event.stopPropagation();
    const wrap = document.querySelector('.rt-export');
    if (!wrap) return;
    const menu = wrap.querySelector('.rt-menu');
    const btn  = wrap.querySelector('.rt-btn');
    const hidden = menu.hasAttribute('hidden');
    if (hidden) { menu.removeAttribute('hidden'); btn.setAttribute('aria-expanded', 'true'); }
    else        { menu.setAttribute('hidden', ''); btn.setAttribute('aria-expanded', 'false'); }
  };
  window.closeExportMenu = function () {
    const wrap = document.querySelector('.rt-export');
    if (!wrap) return;
    const menu = wrap.querySelector('.rt-menu');
    const btn  = wrap.querySelector('.rt-btn');
    if (menu) menu.setAttribute('hidden', '');
    if (btn)  btn.setAttribute('aria-expanded', 'false');
  };
  document.addEventListener('click', (e) => {
    if (!e.target.closest('.rt-export')) window.closeExportMenu();
  });
  document.addEventListener('keydown', (e) => {
    if (e.key === 'Escape') window.closeExportMenu();
  });

  // DOM → Markdown converter. Walks the report and emits a readable .md file.
  // Skips UI chrome (buttons, SVGs), preserves headings / lists / tables / links / emphasis.
  (function () {
    const SKIP_SELECTOR = 'script, style, svg, .report-tools, .rt-btn, .rt-menu';
    function walk(node) {
      if (!node) return '';
      if (node.nodeType === 3) return node.textContent.replace(/\s+/g, ' ');
      if (node.nodeType !== 1) return '';
      if (node.matches && node.matches(SKIP_SELECTOR)) return '';
      // Skip the twin-language span that isn't the currently-shown language,
      // so exports stay monolingual instead of dumping both en+zh side by side.
      if (node.dataset && node.dataset.lang && node.dataset.lang !== document.documentElement.lang) return '';
      const tag = node.tagName.toLowerCase();
      const kids = () => Array.from(node.childNodes).map(walk).join('');
      const txt  = () => node.textContent.trim().replace(/\s+/g, ' ');
      switch (tag) {
        case 'h1': return `\n\n# ${txt()}\n\n`;
        case 'h2': return `\n\n## ${txt()}\n\n`;
        case 'h3': return `\n\n### ${txt()}\n\n`;
        case 'h4': return `\n\n#### ${txt()}\n\n`;
        case 'h5':
        case 'h6': return `\n\n##### ${txt()}\n\n`;
        case 'p':  return `${kids().trim()}\n\n`;
        case 'br': return '\n';
        case 'hr': return '\n---\n\n';
        case 'strong': case 'b': return `**${kids().trim()}**`;
        case 'em': case 'i':     return `_${kids().trim()}_`;
        case 'code': return `\`${node.textContent}\``;
        case 'a': {
          const href = node.getAttribute('href') || '';
          const t = kids().trim();
          return href ? `[${t}](${href})` : t;
        }
        case 'ul':
        case 'ol': {
          const items = Array.from(node.children).filter(c => c.tagName === 'LI');
          return '\n' + items.map((li, i) => {
            const marker = tag === 'ol' ? `${i + 1}.` : '-';
            const content = Array.from(li.childNodes).map(walk).join('').trim().replace(/\n+/g, ' ');
            return `${marker} ${content}`;
          }).join('\n') + '\n\n';
        }
        case 'table': {
          const rows = Array.from(node.querySelectorAll('tr'));
          if (!rows.length) return '';
          const cells = r => Array.from(r.children).map(c => c.textContent.trim().replace(/\|/g, '\\|').replace(/\s+/g, ' '));
          const head = cells(rows[0]);
          const lines = [
            '| ' + head.join(' | ') + ' |',
            '| ' + head.map(() => '---').join(' | ') + ' |',
            ...rows.slice(1).map(r => '| ' + cells(r).join(' | ') + ' |'),
          ];
          return '\n' + lines.join('\n') + '\n\n';
        }
        case 'blockquote': return '\n' + kids().trim().split('\n').map(l => `> ${l}`).join('\n') + '\n\n';
        default: return kids();
      }
    }
    window.exportMarkdown = function () {
      const title = (document.title || 'offer-strategy-report').trim();
      const root  = document.querySelector('.page, body');
      let md = `# ${title}\n\n` + walk(root);
      md = md.replace(/\n{3,}/g, '\n\n').replace(/[ \t]+\n/g, '\n').trim() + '\n';
      const slug = title.replace(/[\\/:*?"<>|]+/g, '-').replace(/\s+/g, '-').slice(0, 100) || 'report';
      const blob = new Blob([md], { type: 'text/markdown;charset=utf-8' });
      const url  = URL.createObjectURL(blob);
      const a = document.createElement('a');
      a.href = url; a.download = slug + '.md';
      document.body.appendChild(a); a.click(); a.remove();
      setTimeout(() => URL.revokeObjectURL(url), 1000);
    };
  })();
</script>

</body>
</html>
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall