.company-check-page .module-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.company-check-workspace { display: grid; grid-template-columns: minmax(480px, .95fr) minmax(440px, 1.05fr); gap: 16px; margin-top: 17px; scroll-margin-top: 86px; }
.company-check-form, .company-report, .company-history { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(13,47,73,.06); }
.company-check-form { display: grid; gap: 18px; padding: clamp(21px, 3vw, 31px); }
.company-check-form > header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.company-check-form > header div { display: grid; gap: 3px; }
.company-check-form > header span, .company-history .workspace-head > div > span { color: var(--cyan-deep); font-size: var(--caption); font-weight: 900; letter-spacing: .12em; }
.company-check-form h2 { margin: 0; font-size: var(--feature-title); }
.company-check-form header p { margin: 0; color: var(--muted); font-size: var(--body); }
.company-check-form > header > b { padding: 5px 8px; color: #8c6a24; font-size: var(--caption); border-radius: 6px; background: #fff4da; }
.company-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.company-fields label, .evidence-row label, .review-form label { display: grid; gap: 5px; min-width: 0; }
.company-fields label > span, .evidence-row label > span, .review-form label > span { color: #526e7e; font-size: var(--caption); font-weight: 800; }
.company-fields .full { grid-column: 1 / -1; }
.company-fields input, .company-fields select, .evidence-row input, .evidence-row select, .review-form input, .review-form textarea { width: 100%; min-width: 0; min-height: 41px; padding: 0 10px; color: #17384c; font-size: var(--body); border: 1px solid #d6e3e6; border-radius: 8px; outline: none; background: #fff; }
.evidence-row textarea, .review-form textarea { width: 100%; min-height: 72px; resize: vertical; padding: 9px 10px; color: #17384c; font-size: var(--body); line-height: 1.6; border: 1px solid #d6e3e6; border-radius: 8px; outline: none; background: #fff; }
.company-fields input:focus, .company-fields select:focus, .evidence-row input:focus, .evidence-row select:focus, .evidence-row textarea:focus, .review-form input:focus, .review-form textarea:focus { border-color: rgba(24,217,197,.7); box-shadow: 0 0 0 3px rgba(24,217,197,.08); }
.evidence-editor { display: grid; gap: 10px; }
.evidence-editor > header { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.evidence-editor > header div { display: grid; }
.evidence-editor > header strong { font-size: var(--lead); }
.evidence-editor > header small { color: #8496a2; font-size: var(--caption); }
.evidence-editor > header button, .evidence-row > button { color: #087a71; font-size: var(--caption); font-weight: 900; cursor: pointer; border: 1px solid rgba(24,217,197,.32); border-radius: 7px; background: #effbf9; }
.evidence-editor > header button { min-height: 36px; padding: 0 10px; }
.evidence-list { display: grid; gap: 9px; }
.evidence-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px; border: 1px solid #dde8ea; border-radius: 12px; background: #f9fcfc; }
.evidence-row .wide { grid-column: 1 / -1; }
.evidence-row .verify-field { display: flex; flex-direction: row; gap: 7px; align-items: center; align-self: end; min-height: 41px; color: #617989; font-size: var(--caption); }
.evidence-row .verify-field input { width: 16px; min-height: 16px; padding: 0; }
.evidence-row > button { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; }
.company-check-form > footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 2px; }
.company-check-form > footer small { color: #7d909d; font-size: var(--caption); }
.company-check-form > footer button { min-height: 44px; padding: 0 18px; color: #062d37; font-size: var(--body); font-weight: 900; cursor: pointer; border: 0; border-radius: 9px; background: var(--cyan); }
.company-check-form > footer button:disabled { cursor: wait; opacity: .55; }
.company-report { min-height: 650px; overflow: hidden; }
.report-empty { display: grid; min-height: 650px; place-content: center; justify-items: center; gap: 8px; padding: 30px; color: #7d919e; text-align: center; }
.report-empty i { display: grid; width: 62px; height: 62px; place-items: center; color: #087b72; font-size: 24px; font-style: normal; border: 1px solid rgba(24,217,197,.35); border-radius: 18px; background: #ecfaf8; }
.report-empty strong { color: #315368; font-size: var(--lead); }
.report-empty small { max-width: 320px; font-size: var(--caption); }
.report-detail { display: grid; gap: 0; }
.report-summary { padding: 24px; color: #edf9fa; background: linear-gradient(135deg, #061e32, #0a3b4d); }
.report-summary > header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.report-summary h2 { margin: 0; font-size: var(--feature-title); }
.report-summary p { margin: 6px 0 0; color: #a5bdc5; font-size: var(--body); }
.report-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.risk-badge, .review-badge { padding: 5px 8px; font-size: var(--caption); font-weight: 900; border-radius: 6px; }
.risk-badge.low { color: #063b36; background: #59e0d2; }
.risk-badge.medium { color: #5a3b00; background: #ffd06f; }
.risk-badge.high, .risk-badge.critical { color: #fff; background: #dd665f; }
.risk-badge.unknown { color: #324d62; background: #dce6eb; }
.review-badge { color: #d7e9ed; border: 1px solid rgba(255,255,255,.18); }
.report-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 17px; }
.report-score-grid article { padding: 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(255,255,255,.04); }
.report-score-grid span { display: block; color: #87a7b3; font-size: var(--caption); }
.report-score-grid strong { font-size: var(--card-title); }
.report-body { display: grid; gap: 18px; padding: 23px; }
.report-section { display: grid; gap: 8px; }
.report-section h3 { margin: 0; font-size: var(--lead); }
.report-section > p { margin: 0; color: #5e7685; font-size: var(--body); line-height: 1.75; }
.recommendation-list, .evidence-detail-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.recommendation-list li { padding: 9px 11px; color: #587080; font-size: var(--caption); border-radius: 8px; background: #f0f6f6; }
.recommendation-list li::before { margin-right: 7px; color: #087a71; content: "→"; }
.evidence-card { display: grid; gap: 6px; padding: 12px; border: 1px solid #dde7e9; border-radius: 10px; background: #fbfdfd; }
.evidence-card header { display: flex; gap: 8px; align-items: center; }
.evidence-card header span, .evidence-card header b { padding: 3px 6px; font-size: var(--caption); border-radius: 5px; background: #e9f7f5; }
.evidence-card header b { margin-left: auto; color: #7b6240; background: #fff2da; }
.evidence-card strong { font-size: var(--body); }
.evidence-card p { margin: 0; color: #637b89; font-size: var(--caption); line-height: 1.65; }
.evidence-card footer { display: flex; flex-wrap: wrap; gap: 7px; color: #8797a2; font-size: var(--caption); }
.evidence-card a { color: #087a71; font-weight: 800; }
.review-form { display: grid; gap: 9px; padding: 14px; border: 1px solid #dce7e9; border-radius: 11px; background: #f8fbfb; }
.review-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.review-actions button { min-height: 40px; color: #22495c; font-size: var(--caption); font-weight: 900; cursor: pointer; border: 1px solid #d4e1e4; border-radius: 8px; background: #fff; }
.review-actions button[data-review-status="approved"] { color: #08776e; border-color: rgba(24,217,197,.35); background: #eafaf7; }
.review-actions button[data-review-status="blocked"] { color: #a74843; border-color: #f1cbc8; background: #fff0ef; }
.company-history { margin: 17px 0 34px; padding: clamp(22px, 3vw, 34px); scroll-margin-top: 86px; }
.company-check-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.check-history-card { display: grid; gap: 9px; padding: 15px; text-align: left; cursor: pointer; border: 1px solid #dfe8eb; border-radius: 12px; background: #fbfdfd; }
.check-history-card:hover, .check-history-card.is-active { border-color: rgba(24,217,197,.55); box-shadow: 0 0 0 3px rgba(24,217,197,.07); }
.check-history-card header { display: flex; gap: 9px; align-items: flex-start; justify-content: space-between; }
.check-history-card h3 { margin: 0; color: #16394d; font-size: var(--lead); }
.check-history-card small, .check-history-card p { margin: 0; color: #738794; font-size: var(--caption); }
.check-history-card footer { display: flex; flex-wrap: wrap; gap: 8px; color: #6c8290; font-size: var(--caption); }

@media (max-width: 1120px) {
  .company-check-workspace { grid-template-columns: 1fr; }
  .company-report, .report-empty { min-height: 420px; }
}

@media (max-width: 760px) {
  .company-check-page .module-metrics, .company-check-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .company-fields, .evidence-row { grid-template-columns: 1fr; }
  .company-fields .full, .evidence-row .wide { grid-column: auto; }
  .company-check-form > footer, .company-check-form > header { align-items: stretch; flex-direction: column; }
  .company-check-form > footer button { width: 100%; }
}

@media (max-width: 520px) {
  .company-check-page .module-metrics, .company-check-list, .report-score-grid, .review-actions { grid-template-columns: 1fr; }
}

/* 企业背调轻量视图：新建与历史分开展示。 */
.company-view-tabs { margin: 10px 0; }
.company-check-workspace { margin-top: 0; }
.company-history { margin-top: 0; }
.company-check-form, .company-history { padding: 22px; border-radius: 16px; }
.company-report { min-height: 520px; border-radius: 16px; }
.report-empty { min-height: 520px; }
.company-history .workspace-head h2 { font-size: var(--feature-title); }
[data-company-view-panel][hidden] { display: none !important; }

@media (max-width: 1120px) {
  .company-report, .report-empty { min-height: 360px; }
}
