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

@media print {
  /* Reset */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Hide unnecessary elements */
  .header,
  .nav,
  .footer,
  .banner,
  .back-to-top,
  .menu-toggle,
  .banner-arrow,
  .banner-indicators,
  .btn,
  .breadcrumb,
  .sidebar,
  .related-section,
  .contact-quick,
  .partners-section,
  .stats-section,
  .core-business,
  .services-section,
  .wiki-section,
  .news-section,
  .tag-links,
  .article-nav,
  form,
  .map-container,
  .faq-item,
  .search-box {
    display: none !important;
  }

  /* Page setup */
  @page {
    margin: 2cm;
  }

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

  /* Show main content only */
  .page-content,
  .article-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .article-header h1 {
    font-size: 18pt;
    margin-bottom: 15pt;
  }

  .article-content h2 {
    font-size: 14pt;
    margin: 20pt 0 10pt;
    border-bottom: 1pt solid #000;
  }

  .article-content h3 {
    font-size: 13pt;
    margin: 15pt 0 8pt;
  }

  .article-content p {
    margin-bottom: 10pt;
    text-align: justify;
  }

  .article-content a {
    color: #000 !important;
    text-decoration: underline;
  }

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

  /* Tables */
  .article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 10pt 0;
  }

  .article-content th,
  .article-content td {
    border: 1pt solid #000;
    padding: 6pt 8pt;
  }

  /* Lists */
  .article-content ul,
  .article-content ol {
    margin: 10pt 0;
    padding-left: 25pt;
  }

  .article-content ul li {
    list-style: disc;
    margin-bottom: 5pt;
  }

  .article-content ol li {
    list-style: decimal;
    margin-bottom: 5pt;
  }

  /* Blockquote */
  .article-content blockquote {
    border-left: 3pt solid #000;
    padding: 10pt 15pt;
    margin: 10pt 0;
    background: #f5f5f5 !important;
  }

  /* Code */
  .article-content code {
    border: 1pt solid #ccc;
    padding: 2pt 5pt;
    font-size: 10pt;
  }

  .article-content pre {
    border: 1pt solid #000;
    padding: 10pt;
    font-size: 10pt;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  /* Avoid breaking inside elements */
  .article-content h2,
  .article-content h3,
  .article-content blockquote,
  .article-content pre,
  .article-content table,
  .article-content figure,
  .article-content img {
    page-break-inside: avoid;
  }

  /* Force page breaks before headings */
  .article-content h2 {
    page-break-after: avoid;
  }

  /* Keep paragraphs together */
  p {
    orphans: 3;
    widows: 3;
  }

  /* Show URL after external links in content */
  .article-content a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #333;
  }
}
