* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #185fa5; --blue-light: #85b7eb; --blue-bg: #e6f1fb;
  --green: #0f6e56; --green-bg: #e1f5ee;
  --red: #a32d2d; --red-bg: #fcebeb;
  --yellow: #854f0b; --yellow-bg: #faeeda;
  --gray: #5f5e5a; --gray-light: #888780;
  --bg: #f3f4f6; --card: #fff; --border: #e5e6eb; --text: #1f2329;
}
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.7; }
a { color: var(--blue); text-decoration: none; }

.topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.topbar .logo { width: 28px; height: 28px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.topbar h1 { font-size: 15px; font-weight: 600; }
.topbar .tag { font-size: 12px; color: var(--yellow); background: var(--yellow-bg); border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.topbar .nav { margin-left: auto; display: flex; gap: 6px; }
.topbar .nav a { font-size: 13px; color: var(--gray); padding: 4px 10px; border-radius: 6px; }
.topbar .nav a.active, .topbar .nav a:hover { color: var(--blue); background: var(--blue-bg); }

.wrap { max-width: 1080px; margin: 20px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; margin-bottom: 18px; }
.card h2 { font-size: 18px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.card h3 { font-size: 15px; margin: 18px 0 8px; }
.muted { color: var(--gray); font-size: 13px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 12px 0; }
.stat { background: #f7f8fa; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.stat .n { font-size: 24px; font-weight: 700; color: var(--blue); }
.stat .l { font-size: 12px; color: var(--gray); margin-top: 2px; }
.stat.green .n { color: var(--green); }
.stat.red .n { color: var(--red); }
.stat.yellow .n { color: var(--yellow); }

/* 表格 */
table { border-collapse: collapse; width: 100%; margin: 10px 0 16px; font-size: 13px; }
th, td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; line-height: 1.6; vertical-align: top; }
th { background: #f7f8fa; font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* 标签/状态 pill */
.pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.pill-pass { background: var(--green-bg); color: var(--green); }
.pill-wait { background: var(--yellow-bg); color: var(--yellow); }
.pill-rej { background: var(--red-bg); color: var(--red); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-gray { background: #f1efe8; color: var(--gray); }

/* 候选人链接 */
.cand-link { color: var(--blue); cursor: pointer; border-bottom: 1px dashed var(--blue-light); white-space: nowrap; }
.cand-link:hover { background: var(--blue-bg); }

/* 按钮 */
.btn { display: inline-block; padding: 9px 22px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: all .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #124b82; }
.btn-pass { background: var(--green); color: #fff; }
.btn-pass:hover { background: #085041; }
.btn-reject { background: var(--red); color: #fff; }
.btn-reject:hover { background: #791f1f; }
.btn-ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue-light); }
.btn-ghost:hover { background: var(--blue-bg); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 岗位卡片 */
.job-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.job-card .dir { font-size: 20px; font-weight: 700; }
.job-card .meta { font-size: 13px; color: var(--gray); }
.job-card .spacer { flex: 1; }

/* 页签 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; margin-bottom: 0; }
.tab { padding: 11px 14px; font-size: 13.5px; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.tab .dot { font-size: 9px; vertical-align: super; margin-left: 3px; }

/* 材料内容 */
.md { font-size: 14px; line-height: 1.8; }
.md h1 { font-size: 19px; margin: 0 0 14px; }
.md h2 { font-size: 16px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.md h3 { font-size: 14.5px; margin: 16px 0 8px; }
.md p, .md li { font-size: 14px; line-height: 1.8; }
.md ul, .md ol { padding-left: 22px; margin: 8px 0; }
.md table { display: block; overflow-x: auto; }
.md blockquote { border-left: 3px solid var(--blue-light); padding: 4px 14px; color: var(--gray); background: #f7f8fa; margin: 10px 0; border-radius: 0 6px 6px 0; }
.md hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.md code { background: #f1efe8; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.md strong { font-weight: 600; }
.docx { font-size: 14px; line-height: 1.8; }
.docx h1 { font-size: 20px; margin: 0 0 14px; }
.docx h2 { font-size: 16px; margin: 20px 0 10px; }
.docx table { display: block; overflow-x: auto; }
.pdf-frame { width: 100%; height: 72vh; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

.empty { color: var(--gray-light); font-size: 13px; padding: 30px 0; text-align: center; }

/* 决策区 */
.decision-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.decision-result { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.decision-result.pass { background: var(--green-bg); color: var(--green); }
.decision-result.reject { background: var(--red-bg); color: var(--red); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(31,35,41,.35); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; padding: 24px 26px; width: 440px; max-width: 92vw; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.modal h3 { font-size: 16px; margin-bottom: 10px; }
.modal p { font-size: 14px; color: var(--gray); margin: 6px 0; }
.modal textarea { width: 100%; min-height: 70px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; resize: vertical; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.toast { position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; font-size: 13px; padding: 10px 20px; border-radius: 8px; opacity: 0; transition: all .25s; z-index: 200; pointer-events: none; max-width: 80vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

.badge-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.score { font-weight: 700; color: var(--blue); }
.loading { color: var(--gray); text-align: center; padding: 40px 0; }
.hint { margin-top: 18px; padding: 12px 16px; background: var(--blue-bg); border-radius: 8px; font-size: 13px; color: #0c447c; line-height: 1.7; }
.hint strong { font-weight: 600; }
