/* print.css — 打印样式（全局加载，media="print"） */

@media print {
  .header,
  .footer,
  .back-to-top,
  .menu-toggle,
  .banner-dots,
  .sidebar-section,
  .related-section,
  .article-tags,
  .article-pagination {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .hero-banner,
  .page-header {
    margin-top: 0 !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
    word-break: break-all;
  }

  .article-body,
  .page-content {
    max-width: 100%;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  p, li {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  pre, blockquote {
    page-break-inside: avoid;
    border: 1px solid #ccc;
  }
}
