* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #1f2933; }

.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e5e9f0; }
.brand { font-size: 18px; font-weight: 600; }
.brand .sub { font-size: 12px; color: #8a94a6; font-weight: 400; margin-left: 8px; }
.who label { font-size: 13px; color: #5b6573; }
.who select { padding: 6px 10px; border: 1px solid #d4dae3; border-radius: 8px; }

.tabs { display: flex; gap: 6px; }
.tab { background: #eef2ff; color: #2563eb; padding: 7px 16px; font-size: 14px; }
.tab.active { background: #2563eb; color: #fff; }

.hint { padding: 10px 20px; font-size: 12px; color: #8a94a6; line-height: 1.6; }
.stats { width: 100%; border-collapse: collapse; margin: 0 20px 40px; width: calc(100% - 40px); font-size: 13px; background: #fff; }
.stats th, .stats td { border: 1px solid #e5e9f0; padding: 9px 10px; text-align: center; white-space: nowrap; }
.stats th { background: #f1f5f9; color: #334155; font-weight: 600; }
.stats tr:nth-child(even) td { background: #fafbfd; }
.stats .total td { background: #eef2ff; font-weight: 600; color: #1d4ed8; }
.stats .empty { padding: 30px; color: #9aa4b2; }

.toolbar { display: flex; gap: 10px; padding: 14px 20px; flex-wrap: wrap; }
.toolbar input, .toolbar select { padding: 8px 12px; border: 1px solid #d4dae3; border-radius: 8px; font-size: 14px; }
.toolbar #search { flex: 1; min-width: 200px; }

button { cursor: pointer; border: none; border-radius: 8px; padding: 8px 14px; font-size: 14px; }
button.primary { background: #2563eb; color: #fff; }
button.primary:hover { background: #1d4ed8; }
button.danger { background: #dc2626; color: #fff; }
button.danger:hover { background: #b91c1c; }

.board { display: flex; gap: 16px; padding: 8px 20px 40px; overflow-x: auto; align-items: flex-start; }
.col { background: #fff; border: 1px solid #e5e9f0; border-radius: 12px; min-width: 280px; width: 300px; flex-shrink: 0; }
.col-head { padding: 12px 14px; font-weight: 600; border-bottom: 1px solid #eef1f6; display: flex; justify-content: space-between; align-items: center; }
.col-head .count { background: #eef2ff; color: #2563eb; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.cards { padding: 10px; display: flex; flex-direction: column; gap: 10px; }

.card { border: 1px solid #e5e9f0; border-radius: 10px; padding: 12px; background: #fbfcfe; }
.card.intention { border: 2px solid #f59e0b; background: #fffdf5; box-shadow: 0 0 0 3px rgba(245,158,11,.08); }
.badge.intention { background: #fef3c7; color: #92660a; }
.card .acts .int-btn { padding: 5px 10px; font-size: 12px; background: #fff7e6; color: #b45309; border: 1px solid #fcd9a3; }
.card .acts .int-btn:hover { background: #fdeccb; }
.card .name { font-weight: 600; font-size: 15px; }
.card .pos { color: #2563eb; font-size: 13px; margin: 2px 0 6px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-right: 6px; }
.badge.type { background: #e0f2fe; color: #0369a1; }
.badge.status { background: #fef3c7; color: #92660a; }
.meta { font-size: 12px; color: #5b6573; line-height: 1.7; margin-top: 6px; }
.meta b { color: #1f2933; font-weight: 500; }
.fu-time { font-size: 11px; color: #9aa4b2; margin-top: 6px; }
.card .acts { margin-top: 10px; display: flex; gap: 8px; }
.card .acts button { padding: 5px 10px; font-size: 12px; background: #eef2ff; color: #2563eb; }

.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
/* 全局隐藏：弹窗、Toast、以及三个 Tab 视图（section）都依赖 .hidden 切换显隐 */
.hidden { display: none !important; }
.modal-box { background: #fff; border-radius: 14px; padding: 22px; width: 460px; max-width: 92vw; max-height: 90vh; overflow: auto; }
.modal-box.wide { width: 560px; }
.int-status-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; padding: 10px 0 4px; }
.int-status-row select { padding: 8px 10px; border: 1px solid #d4dae3; border-radius: 8px; }
.sec { margin: 16px 0 8px; font-size: 14px; color: #334155; border-top: 1px dashed #e5e9f0; padding-top: 12px; }
.eval-list { display: flex; flex-direction: column; gap: 8px; }
.empty-eval { color: #9aa4b2; font-size: 13px; padding: 6px 0; }
.eval-item { border: 1px solid #e5e9f0; border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.eval-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eval-time { color: #9aa4b2; font-size: 12px; }
.rec.yes { color: #15803d; font-size: 12px; }
.rec.no { color: #b91c1c; font-size: 12px; }
.eval-scores { font-size: 12px; color: #5b6573; margin: 4px 0; }
.eval-comment { font-size: 13px; color: #374151; line-height: 1.6; }
.eval-form .score-row { display: flex; gap: 10px; }
.eval-form .score-row label { flex: 1; }
.eval-form input[type="number"] { width: 100%; }
.chk { display: inline-flex !important; align-items: center; gap: 6px; }
.chk input { width: auto !important; }
.modal-box.warn { border: 2px solid #f59e0b; }
.modal-box h3 { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.form-grid label { font-size: 12px; color: #5b6573; display: flex; flex-direction: column; gap: 4px; }
.form-grid input, .form-grid select, #fu_status, #fu_action, #fu_note, .modal-box label { padding: 8px 10px; border: 1px solid #d4dae3; border-radius: 8px; font-size: 14px; width: 100%; }
.modal-box label { display: block; margin-top: 10px; font-size: 13px; color: #5b6573; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
#dupText { font-size: 14px; line-height: 1.8; color: #374151; }

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 100; }

/* ===== 校招初筛 Tab（P4） ===== */
.toolbar button:not(.primary) { background: #fff; color: #334155; border: 1px solid #d4dae3; }
.toolbar button:not(.primary):hover { background: #f1f5f9; }
.btn-gray { background: #fff; color: #334155; border: 1px solid #d4dae3; border-radius: 8px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.btn-gray:hover { background: #f1f5f9; }
.toolbar .spacer { flex: 1; }
.muted { color: #8a94a6; font-size: 12px; }
.small { font-size: 11px; }

.campus { width: calc(100% - 40px); margin: 0 20px 40px; border-collapse: collapse; background: #fff; font-size: 13px; }
.campus th, .campus td { border: 1px solid #e5e9f0; padding: 9px 12px; text-align: left; vertical-align: middle; }
.campus th { background: #f1f5f9; color: #334155; font-weight: 600; }
.campus tr.reject td { background: #fef6f6; }
.campus .pass { color: #15803d; font-weight: 600; }
.campus .fail { color: #b91c1c; font-weight: 600; }
.dl { color: #2563eb; text-decoration: none; font-weight: 600; }
.dl:hover { text-decoration: underline; }
.owner-sel { padding: 5px 8px; border: 1px solid #d4dae3; border-radius: 6px; font-size: 13px; }
.empty-tip { padding: 40px 20px; color: #9aa4b2; text-align: center; }

/* 二维码弹窗 */
.qr { display: flex; justify-content: center; padding: 16px 0; }
.qr img, .qr canvas { width: 200px !important; height: 200px !important; }
.qr-fallback { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px; font-size: 13px; color: #334155; line-height: 1.7; }
.qr-fallback code { display: inline-block; margin-top: 6px; background: #eef2f7; padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.qr-tip { margin: 4px 0 8px; padding: 9px 12px; border-radius: 8px; background: #fff8e1; border: 1px solid #ffe0a3; color: #8a5a00; font-size: 12.5px; line-height: 1.7; text-align: left; }
.qr-tip b { color: #b45309; }

/* ===== P2 简历解析（上传 / 解析 / 工作经历） ===== */
.resume-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.resume-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-btn { display: inline-block; background: #2563eb; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.file-btn:hover { background: #1d4ed8; }
.parse-status { font-size: 12px; color: #2563eb; }
.resume-raw { margin-top: 8px; }
.resume-raw summary { font-size: 12px; color: #5b6573; cursor: pointer; }
.resume-raw textarea { width: 100%; margin-top: 6px; border: 1px solid #d4dae3; border-radius: 8px; padding: 8px; font-size: 13px; font-family: inherit; resize: vertical; }
.we-block { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e5e9f0; }
.we-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.we-row input { flex: 1; min-width: 120px; padding: 7px 10px; border: 1px solid #d4dae3; border-radius: 8px; font-size: 13px; }
.we-del { flex: 0 0 auto; }
.btn-gray.sm { padding: 5px 12px; font-size: 12px; }
