@media print {
  html, body {
    height: auto !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .reading-progress,
  .peek,
  .breadcrumb {
    display: none !important;
  }
  .rdr, .scroll {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }
  .md {
    max-width: none !important;
    padding: 0 !important;
    font-size: 10.5pt;
    line-height: 1.65;
  }
  pre, table, blockquote, .callout, .mermaid, .frontmatter, figure {
    break-inside: avoid;
  }
  h1, h2, h3, h4 {
    break-after: avoid;
  }
  a[href] {
    color: inherit;
    text-decoration: none;
  }
  /* Word 「适中」: 上/下 2.54cm · 左/右 1.91cm. Must be @page so every sheet gets it. */
  @page {
    size: A4;
    margin: 2.54cm 1.91cm;
  }
  @page {
    @top-left { content: none; }
    @top-center { content: none; }
    @top-right { content: none; }
    @bottom-left { content: none; }
    @bottom-center { content: none; }
    @bottom-right { content: none; }
  }
}
