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

@media print {
  /* 隐藏元素 */
  .header,
  .footer,
  .banner,
  .back-to-top,
  .menu-toggle,
  .breadcrumb,
  .page-sidebar,
  .nav,
  .btn,
  .back-to-top,
  .banner-dots,
  .partner-section,
  .contact-section,
  .data-section,
  .highlights,
  .pagination,
  .article-tags,
  .related-articles,
  .article-nav,
  .form-submit,
  .search-box,
  .faq-item,
  .map-container {
    display: none !important;
  }

  /* 重置样式 */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

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

  /* 确保内容可见 */
  .section,
  .page-content,
  .article-section {
    padding: 0 !important;
    background: #fff !important;
  }

  .page-main {
    width: 100% !important;
  }

  /* 链接处理 */
  a {
    color: #000 !important;
    text-decoration: none !important;
  }

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

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

  /* 避免元素被截断 */
  p, li, blockquote {
    orphans: 3;
    widows: 3;
  }

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

  /* 表格处理 */
  table {
    page-break-inside: avoid;
  }

  pre, blockquote {
    page-break-inside: avoid;
  }

  /* 页眉页脚 */
  @page {
    margin: 2cm;
  }
}
