/* 黄金典 · 打印样式（错题本导出打印）
   打印区块 .psheet 由 wrong.js 经 Teleport 挂到 body 下：屏幕上恒隐藏；
   打印时隐藏应用外壳（#app），只输出 .psheet 的纸面错题清单。
   屏幕样式一概不受本文件影响（全部规则收在 .psheet / @media print 内）。 */

.psheet { display: none; }

@page {
  size: A4;
  margin: 14mm 12mm 16mm;
}

@media print {
  /* 隐藏应用界面，只留打印清单 */
  #app { display: none !important; }

  .psheet {
    display: block;
    color: #111;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 11pt;
    line-height: 1.55;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* 页眉 */
  .psheet .phead {
    border-bottom: 2.5px solid #B91C1C;
    padding-bottom: 8px;
    margin-bottom: 14px;
  }
  .psheet .phead h1 {
    font-size: 17pt;
    margin: 0 0 4px;
    letter-spacing: 1px;
  }
  .psheet .pmeta {
    display: flex;
    gap: 18px;
    font-size: 10pt;
    color: #444;
  }

  /* 单题：整题不跨页截断 */
  .psheet .pq {
    break-inside: avoid;
    page-break-inside: avoid;
    border-bottom: 1px solid #ccc;
    padding: 10px 0 12px;
  }
  .psheet .pq-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 9.5pt;
    color: #555;
    margin-bottom: 5px;
  }
  .psheet .pq-idx { font-weight: 700; color: #111; }
  .psheet .pq-qid {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: 700;
    color: #B91C1C;
  }
  .psheet .pq-stem {
    font-size: 12.5pt;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 6px;
    white-space: pre-wrap;
  }
  .psheet .pq-opts { margin-bottom: 6px; }
  .psheet .pq-opt {
    display: flex;
    gap: 6px;
    font-size: 11.5pt;
    line-height: 1.55;
    padding: 1.5px 0;
  }
  .psheet .pq-opt .pq-lt { flex: none; font-weight: 600; }
  .psheet .pq-opt.ok { font-weight: 700; }
  .psheet .pq-check { color: #B91C1C; font-weight: 700; flex: none; }
  .psheet .pq-ans { font-size: 11.5pt; margin-bottom: 4px; }
  .psheet .pq-ans b { color: #B91C1C; }
  .psheet .pq-analysis {
    font-size: 11pt;
    line-height: 1.65;
    color: #222;
    white-space: pre-wrap;
  }
  .psheet .pq-basis { font-size: 10pt; color: #555; margin-top: 2px; }
}
