@page {
  size: A4;
  margin: 14mm 14mm 14mm 14mm;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "SimSun", sans-serif;
  color: #111;
  line-height: 1.5;
  font-size: 10.5pt;
  margin: 0;
  padding: 0;
  background: #fff;
}
.print-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 10px;
}
.doc-header {
  text-align: center;
  border-bottom: 2px solid #1e3a8a;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.sub-head {
  font-size: 11pt;
  color: #475569;
  margin: 0 0 4px;
  letter-spacing: 0.05em;
}
.main-title {
  font-size: 18pt;
  font-weight: bold;
  color: #0f172a;
  margin: 0 0 8px;
}
.meta-info {
  font-size: 9.5pt;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.intro-box {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 9.5pt;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: justify;
  text-indent: 2em;
}
.intro-title {
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 4px;
  text-indent: 0;
}
.part-title {
  font-size: 12.5pt;
  font-weight: bold;
  color: #ffffff;
  background: #1e3a8a;
  padding: 6px 10px;
  margin: 18px 0 10px;
  page-break-after: avoid;
}
.sec-title {
  font-size: 11.5pt;
  font-weight: bold;
  color: #1e3a8a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
  margin: 14px 0 8px;
  page-break-after: avoid;
}
.sec-desc {
  font-size: 9pt;
  color: #64748b;
  margin: -4px 0 8px;
}
.print-field {
  margin-bottom: 8px;
  font-size: 10pt;
  page-break-inside: avoid;
}
.field-label {
  font-weight: bold;
  color: #0f172a;
  display: inline-block;
  margin-bottom: 3px;
}
.field-body {
  padding-left: 12px;
  line-height: 1.6;
}
.chk-item {
  display: inline-block;
  margin-right: 14px;
  margin-bottom: 3px;
  font-size: 9.5pt;
  white-space: nowrap;
}
.chk-box {
  font-family: monospace, "Noto Sans CJK SC", sans-serif;
  font-size: 11pt;
  color: #334155;
}
.print-question {
  margin-bottom: 12px;
  page-break-inside: avoid;
}
.q-title {
  font-weight: bold;
  font-size: 10pt;
  color: #0f172a;
  margin-bottom: 4px;
}
.q-code {
  color: #1e3a8a;
  margin-right: 2px;
}
.q-helper {
  font-size: 8.5pt;
  color: #64748b;
  margin: -2px 0 4px 14px;
}
.opt-grid {
  padding-left: 14px;
  line-height: 1.6;
}
.ranking-options {
  padding-left: 14px;
}
.ranking-tip {
  font-size: 8.5pt;
  color: #64748b;
  margin: 2px 0;
}
.ranking-fill {
  margin-top: 6px;
  font-size: 9.5pt;
  font-weight: 500;
  color: #1e293b;
}
.text-fill-box {
  padding-left: 14px;
  margin-top: 4px;
}
.fill-line-block {
  color: #94a3b8;
  font-size: 9pt;
  line-height: 1.6;
}
.page-break {
  page-break-before: always;
}
.noprint-bar {
  position: sticky;
  top: 0;
  background: #1e3a8a;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.noprint-bar button {
  background: #fff;
  color: #1e3a8a;
  border: 0;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
@media print {
  .noprint-bar { display: none !important; }
  body { background: transparent; }
  .print-container { max-width: 100%; padding: 0; }
}
.module-tip {
  font-size: 9pt;
  color: #64748b;
  margin-top: -4px;
}
.noprint-bar a {
  color: #fff;
  margin-left: 14px;
  text-decoration: underline;
  font-size: 13px;
}
.q-cond {
  font-weight: normal;
  font-size: 8.5pt;
  color: #64748b;
}
.numtable {
  margin: 4px 0 0 14px;
  border-collapse: collapse;
  font-size: 9.5pt;
}
.numtable td {
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
}
.opt-group {
  font-size: 9pt;
  color: #475569;
  margin-top: 2px;
}
.rank-slot {
  display: inline-block;
  margin: 0 18px 4px 0;
  white-space: nowrap;
}
.intro-definition {
  margin-top: 6px;
  text-indent: 0;
  font-weight: bold;
  color: #0f172a;
}
.intro-guide {
  margin-top: 4px;
  text-indent: 0;
}

/* 题组说明与该组首题同页，避免页尾只留下标题与说明。 */
.sec-desc { page-break-inside: avoid; break-inside: avoid; page-break-after: avoid; break-after: avoid; }

.noprint-bar { gap: 8px; flex-wrap: wrap; }
.noprint-bar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* 题干关键词标红 */
.q-title .kw { color: #b01e1e; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
