/* The Quality Journal — Inspection Sheet visual.
   Light-gray inspection desk, red proofreader's marks, square check boxes,
   ruled inspection rows. No rounded corners, no emoji. */
:root {
  --bg: #f4f5f5;
  --panel: #ffffff;
  --ink: #27272a;
  --muted: #71717a;
  --line: #d4d4d8;
  --wash: #e4e4e7;
  --accent: #b91c1c;
  --accent-soft: #fbeaea;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7f1d1d; text-decoration: underline; }

/* CSS 绘制的方框勾选 (no emoji) */
.check-box {
  display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink);
  position: relative; flex: 0 0 auto;
}
.check-box::after {
  content: ""; position: absolute; left: 2px; top: -3px; width: 6px; height: 10px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* masthead */
.masthead { background: var(--panel); border-bottom: 3px solid var(--ink); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-box {
  width: 34px; height: 34px; border: 2px solid var(--ink); background: var(--accent-soft);
  position: relative; flex: 0 0 auto;
}
.brand-box::after {
  content: ""; position: absolute; left: 8px; top: 2px; width: 11px; height: 19px;
  border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; letter-spacing: .2px; }
.brand-tag { font-size: 12px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--ink); font-size: 14px; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.topnav a:hover { border-bottom-color: var(--accent); text-decoration: none; color: var(--ink); }

/* bench hero */
.bench { background: var(--panel); border-bottom: 1px solid var(--line); padding: 46px 0 40px; }
.bench-kicker { color: var(--accent); font-size: 12px; letter-spacing: 2.5px; font-weight: 700; margin-bottom: 14px; }
.bench h1 { font-size: 34px; line-height: 1.16; font-weight: 700; max-width: 760px; margin-bottom: 14px; letter-spacing: -.2px; }
.bench-lede { max-width: 660px; color: var(--muted); font-size: 17px; }

section { padding: 30px 0; }
.band-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }

/* domain key */
.key-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 26px; }
.key-item { font-size: 14px; color: var(--ink); display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.key-code {
  font-weight: 700; font-size: 11px; letter-spacing: .5px; color: var(--accent);
  border: 1px solid var(--accent); padding: 1px 6px; flex: 0 0 auto;
}

/* domain cards */
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.domain-card {
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ink);
}
.domain-card:hover { border-color: var(--accent); text-decoration: none; }
.domain-card-code { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.domain-card-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.domain-card-name { font-weight: 700; font-size: 17px; }

/* audit group + cards */
.audit-group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.audit-group-head h2 { font-size: 22px; font-weight: 700; }
.audit-group-more { font-size: 13px; }
.audit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.audit-card {
  background: var(--panel); border: 1px solid var(--line); padding: 15px 16px;
  display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  border-left: 4px solid var(--wash);
}
.audit-card:hover { border-color: var(--accent); border-left-color: var(--accent); text-decoration: none; }
.audit-card-top { display: flex; align-items: center; gap: 10px; }
.audit-code {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--accent);
  border: 1px solid var(--accent); padding: 1px 5px;
}
.audit-card-cat { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.audit-card-title { font-weight: 700; font-size: 16px; line-height: 1.32; }
.audit-rows { display: flex; flex-direction: column; }
.audit-row {
  display: flex; gap: 8px; font-size: 12.5px; padding: 5px 0;
  border-bottom: 1px dotted var(--line); color: #3f3f46;
}
.audit-row b { flex: 0 0 84px; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: .4px; padding-top: 2px; }
.audit-row.flag b { color: var(--accent); }
.audit-desc { font-size: 13px; color: var(--muted); }

/* page head */
.pagehead { padding: 38px 0 10px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.pagehead h1 { font-size: 30px; line-height: 1.2; font-weight: 700; max-width: 820px; }
.lede { color: var(--muted); margin-top: 10px; }

/* item layout: audit card + record */
.split { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding-top: 24px; padding-bottom: 44px; align-items: start; }
.factcard { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ink); position: sticky; top: 18px; }
.factcard-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px solid var(--ink); background: var(--accent-soft); }
.factcard-cat { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.factcard-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-left: auto; }
.fact-rows { font-variant-numeric: tabular-nums; }
.fact-row { display: flex; border-bottom: 1px dotted var(--line); font-size: 13.5px; }
.fact-row dt { flex: 0 0 42%; padding: 9px 14px; color: var(--muted); border-right: 1px dotted var(--line); font-weight: 600; }
.fact-row dd { flex: 1; padding: 9px 14px; color: var(--ink); }
.fact-row.flag dt { color: var(--accent); }
.fact-row.flag dd { color: var(--accent); font-weight: 700; }

/* record prose */
.record { background: var(--panel); border: 1px solid var(--line); padding: 26px 32px; }
.record .sec { margin-bottom: 26px; padding: 0; }
.record .sec:last-child { margin-bottom: 0; }
.record h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.record h2.legal { font-size: 18px; }
.sec-num {
  color: var(--accent); font-variant-numeric: tabular-nums; font-size: 13px;
  border: 1px solid var(--accent); padding: 0 6px; flex: 0 0 auto;
}
.record h2 + p, .record h2 ~ p { margin-bottom: 12px; }
.record p { margin-bottom: 12px; color: #3f3f46; }
.record p:last-child { margin-bottom: 0; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 7px 0; border-bottom: 1px dotted var(--line); }

/* footer */
.foot { background: var(--panel); border-top: 3px solid var(--ink); margin-top: 20px; padding: 30px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.foot-brand { flex: 1 1 340px; }
.foot-brand .brand-name { font-weight: 700; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.foot-nav { display: flex; gap: 16px; }
.foot-nav a { color: var(--ink); font-size: 14px; }
.copyright { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 10px; }

@media (max-width: 900px) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-grid { grid-template-columns: repeat(2, 1fr); }
  .key-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .factcard { position: static; }
}
@media (max-width: 560px) {
  .domain-grid, .audit-grid { grid-template-columns: 1fr; }
  .masthead-in { flex-direction: column; gap: 10px; align-items: flex-start; }
  .topnav { gap: 14px; }
  .record { padding: 20px 18px; }
  .bench h1 { font-size: 27px; }
  .audit-group-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
