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

@media print {
  /* Hide unnecessary elements */
  .main-header,
  .main-footer,
  .breadcrumb,
  .sidebar,
  .banner-carousel,
  .back-to-top,
  .menu-toggle,
  .btn,
  .pagination,
  .related-links,
  .article-nav {
    display: none !important;
  }

  /* Reset backgrounds */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Links */
  a {
    color: #000 !important;
    text-decoration: underline;
  }

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

  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
  }

  p {
    orphans: 3;
    widows: 3;
  }

  /* Layout */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .page-content,
  .article-page {
    padding: 0 !important;
  }

  .article-layout,
  .two-column {
    display: block !important;
  }

  /* Content */
  .article-content,
  .content-section {
    width: 100% !important;
  }

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

  /* Tables */
  table {
    page-break-inside: avoid;
    width: 100% !important;
  }

  thead {
    display: table-header-group;
  }

  tr {
    page-break-inside: avoid;
  }

  /* Cards and boxes */
  .card,
  .content-section,
  .article-list-item {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }

  /* Page breaks */
  .content-section {
    page-break-inside: avoid;
  }

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