/* M3 截图核销 · 候选列表页样式 */

#page-proof-candidates {
  padding: 20px 24px;
  font-size: 16px;
  color: var(--text);
}
#page-proof-candidates h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.pc-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pc-toolbar .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.pc-back {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 8px;
}
.pc-back:hover { text-decoration: underline; }

/* job 头部信息 */
.pc-job {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.pc-job-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pc-job-icon { font-size: 22px; }
.pc-job-title { flex: 1; font-size: 16px; font-weight: 600; }
.pc-job-id { font-size: 13px; color: var(--text2); font-family: monospace; }

/* 失败原因（人话三段式） */
.pc-reason {
  margin: 12px 0;
  padding: 12px 16px;
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.pc-reason strong { color: #d97706; display: block; margin-bottom: 4px; font-size: 15px; }
.pc-reason ol { margin: 6px 0 0; padding-left: 22px; }
.pc-reason li { margin: 3px 0; }

/* 单栏展示（架构瘦身后取消链上验证列；只显示截图识别值） */
.pc-compare {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  font-size: 14px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  margin-top: 12px;
}
.pc-compare-head {
  font-weight: 700;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-family: -apple-system, sans-serif;
}
.pc-compare-row-label {
  font-weight: 600;
  color: var(--text2);
  align-self: center;
  font-family: -apple-system, sans-serif;
}
.pc-compare-cell {
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
  line-height: 1.5;
  min-height: 36px;
}
.pc-compare-cell.match    { background: rgba(34, 197, 94, .1);  color: #16a34a; }
.pc-compare-cell.mismatch { background: rgba(239, 68, 68, .1);  color: #dc2626; }
.pc-compare-cell.pending  { background: rgba(245, 158, 11, .08); color: #d97706; }
.pc-compare-cell .pp-copyable {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.pc-compare-cell .pp-copyable:hover { color: var(--blue); }

/* 操作三按钮 */
.pc-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pc-actions .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}
.pc-actions .btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.pc-actions .pc-btn-danger {
  background: var(--red);
  color: white;
  border: none;
}
.pc-actions .pc-btn-danger:hover:not(:disabled) { background: #dc2626; }
.pc-actions .pc-btn-warn {
  background: var(--yellow);
  color: white;
  border: none;
}
.pc-actions .pc-btn-warn:hover:not(:disabled) { background: #d97706; }

/* 候选列表区 */
.pc-tier-section {
  margin-top: 22px;
}
.pc-tier-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}
.pc-tier-badge {
  background: var(--bg3);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.pc-tier-badge.tier1 { background: rgba(34,197,94,.15); color:#16a34a; }
.pc-tier-badge.tier2 { background: rgba(245,158,11,.15); color:#d97706; }
.pc-tier-badge.tier3 { background: rgba(168,85,247,.15); color:#9333ea; }
.pc-tier-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text2);
  font-weight: 400;
}

/* 候选 task 卡片 */
.pc-task {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .15s;
}
.pc-task:hover { border-color: var(--blue); }
.pc-task.selected { border-color: var(--blue); background: var(--bg3); }
.pc-task-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
}
.pc-task-no { font-weight: 700; }
.pc-task-applicant { color: var(--text); }
.pc-task-amount { color: var(--blue); font-weight: 600; font-family: monospace; }
.pc-task-meta {
  font-size: 13px;
  color: var(--text2);
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: monospace;
}
.pc-task-meta .pp-copyable {
  text-decoration: underline dotted;
  cursor: pointer;
}
.pc-task-marks {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.pc-mark {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pc-mark.ok { background: rgba(34,197,94,.12); color: #16a34a; }
.pc-mark.bad { background: rgba(239,68,68,.12); color: #dc2626; }
.pc-mark.warn { background: rgba(245,158,11,.12); color: #d97706; }
.pc-task-foot {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}
.pc-task-foot .pc-time-diff {
  font-size: 13px;
  color: var(--text2);
}
.pc-task-foot .btn {
  margin-left: auto;
  min-height: 38px;
  padding: 0 18px;
}

/* tier1 空 banner */
.pc-empty-tier1 {
  margin-top: 16px;
  padding: 16px 18px;
  background: rgba(245, 158, 11, .06);
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.pc-empty-tier1 .pc-expand-btns {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* loading */
.pc-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text2);
  font-size: 15px;
}
.pc-loading .pc-spin {
  display: inline-block;
  margin-right: 8px;
  animation: pc-spin 1.2s linear infinite;
}
@keyframes pc-spin {
  to { transform: rotate(360deg); }
}
.pc-loading-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text2);
}

/* ========================================================================
   架构 Step 2:行动菜单 modal
   入口:window.PC_openActionModal(jobId)
   ======================================================================== */
.pc-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  animation: pc-fade-in .14s ease-out;
}
.pc-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: min(720px, 94vw);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
}
.pc-modal-body { padding: 18px 22px; }
.pc-modal-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.pc-modal-head h3 { flex: 1; margin: 0; font-size: 18px; line-height: 1.4; }
.pc-modal-jobid { font-size: 13px; color: var(--text2); font-family: monospace; font-weight: 400; margin-left: 6px; }
.pc-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--text2);
  padding: 0 6px;
}
.pc-modal-close:hover { color: var(--text); }

.pc-modal-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.pc-modal-thumb {
  width: 160px; height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: var(--bg2);
}
.pc-modal-thumb-empty {
  width: 160px; height: 160px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 13px;
}
.pc-modal-info { min-width: 0; }
.pc-modal-reason {
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.pc-modal-raw {
  margin-top: 6px;
  font-size: 11px;
  font-family: monospace;
  color: var(--text2);
  word-break: break-all;
}
.pc-modal-fields {
  display: grid; gap: 6px;
  font-size: 13px;
}
.pc-modal-field {
  display: flex; gap: 10px; align-items: baseline;
}
.pc-modal-field-label {
  width: 70px;
  color: var(--text2);
  font-weight: 600;
  flex-shrink: 0;
}
.pc-modal-field-val {
  flex: 1;
  font-family: monospace;
  word-break: break-all;
  line-height: 1.5;
}
.pc-modal-field-val.empty { color: var(--text2); font-family: -apple-system, sans-serif; font-style: italic; }
.pc-modal-field-val.pp-copyable {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.pc-modal-field-val.pp-copyable:hover { color: var(--blue); }

/* 候选区(modal 内嵌) */
.pc-cands-section {
  background: var(--bg2);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
}
.pc-cands-head {
  display: flex; align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}
.pc-cands-title { flex: 1; font-weight: 600; }
.pc-cands-count {
  font-size: 12px;
  color: var(--text2);
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 999px;
}
.pc-cands-empty {
  padding: 14px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  text-align: center;
}
.pc-cands-empty strong {
  display: block;
  font-size: 14px;
  color: #d97706;
  margin-bottom: 4px;
}
.pc-cands-list {
  max-height: 280px;
  overflow-y: auto;
  display: grid; gap: 6px;
  margin-bottom: 10px;
}
.pc-cand-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .12s;
}
.pc-cand-row:hover { border-color: var(--blue); }
.pc-cand-row.selected {
  border-color: var(--blue);
  background: rgba(59, 130, 246, .06);
}
.pc-cand-row input[type=radio] { margin-top: 4px; cursor: pointer; }
.pc-cand-main { flex: 1; min-width: 0; }
.pc-cand-line1 {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 14px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.pc-cand-id { font-weight: 700; font-family: monospace; }
.pc-cand-amt { color: var(--blue); font-weight: 600; font-family: monospace; }
.pc-cand-app { color: var(--text2); }
.pc-cand-line2 {
  display: flex; gap: 14px;
  font-size: 12px;
  color: var(--text2);
  flex-wrap: wrap;
  font-family: monospace;
}
.pc-cand-addr.pp-copyable {
  cursor: pointer;
  text-decoration: underline dotted;
}
.pc-cand-addr:hover { color: var(--blue); }
.pc-cands-foot {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
}
.pc-cands-foot .btn:disabled { opacity: .4; cursor: not-allowed; }

/* modal 底部按钮组 */
.pc-modal-actions {
  display: flex; gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pc-modal-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.pc-modal-actions .pc-btn-warn {
  background: var(--yellow); color: white; border: none;
}
.pc-modal-actions .pc-btn-warn:hover { background: #d97706; }
.pc-modal-actions .pc-btn-danger {
  background: var(--red); color: white; border: none;
}
.pc-modal-actions .pc-btn-danger:hover { background: #dc2626; }

@media (max-width: 600px) {
  .pc-modal-grid { grid-template-columns: 1fr; }
  .pc-modal-thumb, .pc-modal-thumb-empty { width: 100%; height: 200px; }
}

/* 危险确认弹窗(轻量,内置) */
.pc-confirm-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  animation: pc-fade-in .12s ease-out;
}
.pc-confirm {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
}
.pc-confirm h3 { margin: 0 0 12px; font-size: 18px; }
.pc-confirm p  { margin: 0 0 16px; line-height: 1.6; font-size: 14px; color: var(--text); }
.pc-confirm-actions {
  display: flex; gap: 10px; justify-content: flex-end;
}
.pc-confirm-actions .btn { min-height: 40px; padding: 0 18px; }
@keyframes pc-fade-in { from { opacity: 0; } to { opacity: 1; } }
