/* ========== A4 复习单：屏幕预览 ========== */
.print-opts .more-opts summary { font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; padding: 4px 0; }
.print-opts .more-opts { display: flex; flex-direction: column; gap: 8px; }
.print-opts .more-opts[open] > *:not(summary) { margin-top: 8px; }
.paper-wrap { background: #E9E4DA; border-radius: 14px; padding: 12px; overflow-x: auto; }
.paper {
  background: #fff; color: #222; margin: 0 auto; max-width: 794px;
  padding: 28px 26px; box-shadow: 0 2px 12px rgba(0,0,0,.12); font-size: 14px; line-height: 1.6;
  font-family: var(--font);
}
.ph-head { text-align: center; border-bottom: 2px solid #E8684A; padding-bottom: 10px; margin-bottom: 14px; }
.ph-head h1 { font-size: 22px; letter-spacing: 2px; margin-bottom: 8px; color: #333; }
.ph-info { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #444; }
.ph-info u, .ph-stars u { text-decoration: none; border-bottom: 1px solid #888; padding: 0 6px; }
.ph-stars { font-size: 13px; color: #555; margin-top: 6px; letter-spacing: 1px; }
.pi-list { display: flex; flex-direction: column; gap: 14px; }
.pi { break-inside: avoid; page-break-inside: avoid; border: 1px solid #EEE7DC; border-left: 4px solid var(--c); border-radius: 8px; padding: 10px 12px; }
.pi-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pi-no { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pi-tag { font-size: 12px; color: var(--c); font-weight: 700; }
.pi-unit { font-size: 11px; color: #999; }
.pi-title { font-size: 16px; line-height: 1.7; margin-bottom: 6px; color: #222; word-break: break-word; }
.pi-hint { font-size: 12.5px; color: #777; margin: 4px 0; }
.pi-chars { display: flex; flex-direction: column; gap: 6px; }
.pc-row { display: flex; flex-direction: column; gap: 2px; }
.pc-py { font-size: 14px; font-family: "Times New Roman", serif; color: #333; padding-left: 8px; min-height: 18px; }
.pc-cells { display: flex; gap: 0; flex-wrap: wrap; }
.pc-cells .tzg { margin-right: -1px; }
.pi-note { font-size: 12.5px; color: #8A6A2E; margin-top: 4px; }
.pi-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.pi-imgs img { max-width: 100%; max-height: 220px; border-radius: 4px; border: 1px solid #eee; }
.pi-ans { font-size: 13.5px; color: #2E7D4F; background: #F3FAF5; padding: 6px 10px; border-radius: 6px; margin-top: 6px; }
.pi-lines { display: flex; flex-direction: column; gap: 22px; margin-top: 16px; }
.pi-lines i { display: block; border-bottom: 1px dashed #BBB; }
.fourline { display: block; margin: 2px 0; }
.ph-answers { margin-top: 22px; padding-top: 12px; border-top: 2px dashed #ccc; }
.ph-answers h2 { font-size: 16px; margin-bottom: 8px; color: #555; }
.ph-answers ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #444; }
.ph-foot { text-align: center; color: #aaa; font-size: 11px; margin-top: 18px; }

/* ========== 打印输出 ========== */
@media print {
  @page { size: A4; margin: 12mm 12mm 14mm; }
  html, body { background: #fff !important; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .paper { box-shadow: none; padding: 0; max-width: none; margin: 0; font-size: 13px; }
  .pi { border-color: #ddd; }
  .ph-answers { break-before: page; page-break-before: always; border-top: 0; margin-top: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
