* { box-sizing: border-box; }
:root {
  --navy: #16233f; --navy2: #1e3055; --accent: #2563eb; --accent-soft: #eff4ff;
  --ink: #1c2333; --muted: #667085; --line: #e6e8ee; --bg: #f5f6f8;
  --ok: #16a34a; --bad: #dc2626; --gold: #eab308;
  --radius: 10px; --shadow: 0 1px 3px rgba(16,24,40,.07), 0 1px 2px rgba(16,24,40,.04);
}
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }

/* ---------- 顶部导航 ---------- */
header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff;
  padding: 0 24px; display: flex; align-items: center; gap: 20px; height: 58px;
  position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(16,24,40,.18); }
header a { color: #c9d4e8; text-decoration: none; font-size: 15px; }
header a:hover { color: #fff; }
header .brand { font-weight: 800; color: #fff; font-size: 18px; letter-spacing: .5px; }
header .pname { color: #ffd479; font-weight: 700; font-size: 15px; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header .right { margin-left: auto; }
header nav { display: flex; gap: 4px; align-items: center; }
header nav a { padding: 7px 12px; border-radius: 8px; transition: background .15s; white-space: nowrap; }
header nav a:hover { background: rgba(255,255,255,.12); }
header nav a .num { font-style: normal; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.18);
  border-radius: 9px; padding: 1px 6px; margin-right: 5px; vertical-align: 1px; }

main { max-width: 1200px; margin: 26px auto; padding: 0 24px; }
h1 { font-size: 22px; font-weight: 700; margin: 6px 0 18px; }
h2 { font-size: 16.5px; font-weight: 700; margin-top: 30px; }
a { color: var(--accent); }

/* ---------- 表格 ---------- */
table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { border-bottom: 1px solid var(--line); border-right: 1px solid #f0f1f4;
  padding: 9px 12px; text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: none; }
tr:last-child td { border-bottom: none; }
th { background: #f8f9fb; font-weight: 600; color: #414c60; font-size: 13.5px; }
tr:hover td { background: #fafbfe; }

/* ---------- 卡片 / 表单 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.notice { border-left: 4px solid var(--gold); background: #fffdf5; }
.card.notice.ok-border { border-left-color: var(--ok); background: #f6fdf8; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
form.inline { display: inline; }
input[type=text], input[type=date], input[type=number], textarea, select {
  font: inherit; padding: 8px 10px; border: 1.5px solid #d6dae2; border-radius: 8px; width: 100%;
  background: #fff; transition: border-color .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[type=text].s, select.s, input[type=number].s, input[type=date].s { width: auto; }
textarea { min-height: 120px; }
textarea.big { min-height: 340px; font-size: 14px; }
button { font: inherit; font-weight: 600; padding: 8px 16px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; border-radius: 8px; cursor: pointer; transition: all .15s; }
button:hover { background: var(--navy2); border-color: var(--navy2); }
button.ghost { background: #fff; color: var(--navy); }
button.ghost:hover { background: var(--accent-soft); }
button.mini { padding: 3px 10px; font-size: 13px; border-radius: 6px; }
button.danger { background: #fff; color: var(--bad); border-color: #efc4c4; }
button.danger:hover { background: #fdf2f2; border-color: var(--bad); }
.formrow { display: flex; gap: 8px; margin: 10px 0; align-items: center; flex-wrap: wrap; }
.formrow > * { flex: 0 0 auto; }

/* ---------- 标签 / 状态 ---------- */
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: #3557a7; margin-right: 4px; }
.tag.core { background: #fef3c7; color: #92600a; }
.tag.cn { background: #dcfce7; color: #166534; }
.tag.intl { background: #ede9fe; color: #5b21b6; }
.ok { color: var(--ok); font-weight: 700; } .no { color: var(--bad); } .dim { color: #98a2b3; }
.small { font-size: 12.5px; color: var(--muted); font-weight: 400; }

/* ---------- 流程步骤 ---------- */
.stage { display: flex; gap: 14px; align-items: center; padding: 12px 10px; border-bottom: 1px dashed var(--line); }
.stage:last-child { border-bottom: none; }
.stage .dot { width: 14px; height: 14px; border-radius: 50%; background: #d7dbe3; flex: none; }
.stage.done .dot { background: var(--ok); }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: #e8ebf1; color: #5a6579;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; font-size: 14px; }
.stage.done .step-num { background: var(--ok); color: #fff; }
.stage.current { background: #fffaf0; border: 1.5px solid #f0c36d; border-radius: var(--radius); margin: 6px -10px; padding: 12px 18px; }
.stage.current .step-num { background: var(--navy); color: #fff; }
.stage.done b, .stage.done .small { color: #9aa4b5; }

/* ---------- KPI ---------- */
.kpi { display: flex; gap: 14px; flex-wrap: wrap; }
.kpi div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 22px; text-align: center; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 26px; font-weight: 800; color: var(--navy); }

/* ---------- 巡检矩阵 ---------- */
.cell-empty { color: #c3cad6; } .cell-hit { color: var(--ok); font-weight: 800; } .cell-miss { color: var(--bad); }
pre.answer { white-space: pre-wrap; background: #f8f9fb; border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 8px; max-height: 320px; overflow: auto; font-size: 13.5px; }
img.shot { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }

/* ---------- 看板 ---------- */
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.board .col { background: #eef0f4; border-radius: var(--radius); padding: 10px; min-height: 80px; }
.board .col h3 { font-size: 13.5px; margin: 4px 0 10px; text-align: center; color: #414c60; }
.board .task { background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px; font-size: 12.5px; box-shadow: var(--shadow); }

/* 稿件体检 */
ul.checks{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:6px}
ul.checks li{padding:6px 10px;border-radius:8px;font-size:13px;line-height:1.5;border:1px solid #e3e6ec;background:#fff}
ul.checks li.ok{border-color:#cfe8d6;background:#f3faf5}ul.checks li.ok b{color:#1d7a3e}
ul.checks li.warn{border-color:#f3dfae;background:#fff9ea}ul.checks li.warn b{color:#9a6b00}
ul.checks li.fail{border-color:#f0b9b9;background:#fff2f2}ul.checks li.fail b{color:#b42323}
.tag.no{background:#fde8e8;color:#b42323}
