/* 学科目录中的试卷操作条；打印时隐藏，原试卷版式保持不变。 */
@media screen {
  body { background: #e7e7e7; }
  .paper-toolbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; flex-wrap: wrap; padding: .625rem .875rem;
    border-bottom: 1px solid #deded4; background: rgba(255,254,250,.97);
    color: #272923;
    font: .875rem/1.4 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  }
  .paper-toolbar a { color: #86442f; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .paper-toolbar__hint { color: #5f6258; font-size: .75rem; }
  .paper-toolbar button {
    min-height: 2.5rem; padding: .5rem .9375rem; border: 0; border-radius: 999px;
    background: #86442f; color: #fffefa; font: inherit; font-weight: 700; cursor: pointer;
  }
  .paper-toolbar button:focus-visible, .paper-toolbar a:focus-visible {
    outline: 3px solid #315b45; outline-offset: 3px;
  }
  .sheet { margin-left: auto !important; margin-right: auto !important; }
}
/* A4 宽约 794 CSS px；断点为纸张和两侧阴影预留约 72px。 */
@media screen and (max-width: 866px) { .sheet { zoom: .95; } }
@media screen and (max-width: 826px) { .sheet { zoom: .90; } }
@media screen and (max-width: 787px) { .sheet { zoom: .85; } }
@media screen and (max-width: 747px) { .sheet { zoom: .80; } }
@media screen and (max-width: 707px) { .sheet { zoom: .75; } }
@media screen and (max-width: 668px) { .sheet { zoom: .70; } }
@media screen and (max-width: 628px) { .sheet { zoom: .65; } }
@media screen and (max-width: 588px) { .sheet { zoom: .60; } }
@media screen and (max-width: 549px) { .sheet { zoom: .55; } }
@media screen and (max-width: 509px) { .sheet { zoom: .50; } }
@media screen and (max-width: 469px) { .sheet { zoom: .45; } }
@media screen and (max-width: 430px) { .sheet { zoom: .40; } }
@media screen and (max-width: 390px) { .sheet { zoom: .35; } }
@media screen and (max-width: 350px) { .sheet { zoom: .30; } }
@media screen and (max-width: 311px) { .sheet { zoom: .25; } }
@media screen and (max-width: 271px) { .sheet { zoom: .20; } }
@media screen and (max-width: 231px) { .sheet { zoom: .15; } }
@media screen and (max-width: 192px) { .sheet { zoom: .10; } }
@media screen and (max-width: 152px) { .sheet { zoom: .05; } }
@media print {
  .paper-toolbar { display: none !important; }
  .sheet { zoom: 1 !important; }
}
