/* ============================================
   太原市斯航网络科技有限公司 - 打印样式
   文件名：print.css
   作用：打印时优化页面显示
   ============================================ */

@media print {
  /* 隐藏不需要打印的元素 */
  .header,
  .footer,
  .banner-section,
  .breadcrumb,
  .back-to-top,
  .menu-toggle,
  .banner-arrow,
  .banner-dots,
  .article-sidebar,
  .contact-form-wrapper,
  .pagination,
  .related-articles,
  .article-nav,
  .article-tags,
  .banner-slide:not(.active) {
    display: none !important;
  }
  
  /* 基础打印设置 */
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  /* 页面布局 */
  .page-wrapper {
    min-height: auto;
  }
  
  .page-main {
    margin-top: 0 !important;
  }
  
  /* 文章内容 */
  .article-page {
    display: block;
  }
  
  .article-main {
    width: 100%;
  }
  
  .article-header h1 {
    font-size: 24pt;
    margin-bottom: 15px;
  }
  
  .article-body {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .article-body h2 {
    font-size: 18pt;
    margin-top: 25px;
  }
  
  .article-body h3 {
    font-size: 14pt;
    margin-top: 20px;
  }
  
  /* 链接处理 */
  a {
    text-decoration: underline;
    color: #000 !important;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
  
  a[href^="javascript:"]::after,
  a[href^="#"]::after {
    content: "";
  }
  
  /* 图片 */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  /* 表格 */
  table {
    page-break-inside: avoid;
    border-collapse: collapse;
  }
  
  th, td {
    border: 1px solid #000;
    padding: 8px;
  }
  
  /* 代码块 */
  pre, code {
    background-color: #f5f5f5 !important;
    border: 1px solid #ddd;
  }
  
  /* 引用块 */
  blockquote {
    border-left: 3px solid #000;
    padding-left: 15px;
    margin-left: 0;
  }
  
  /* 分页控制 */
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  p {
    page-break-inside: avoid;
    orphans: 3;
    widows: 3;
  }
  
  .article-body p {
    page-break-inside: auto;
  }
  
  /* 打印页眉页脚 */
  @page {
    margin: 2cm;
    size: A4;
  }
  
  @page :first {
    margin-top: 1cm;
  }
  
  /* 显示打印标题 */
  .article-header::before {
    content: "太原市斯航网络科技有限公司";
    display: block;
    font-size: 10pt;
    color: #666;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
  }
  
  /* 打印URL信息 */
  .article-header::after {
    content: "来源: https://www.emailvz.com/";
    display: block;
    font-size: 9pt;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
  }
}
