/* ==========================================================================
   P0-8 打印样式（考生打印真题/政策刚需）
   ========================================================================== */
@media print {
  /* 隐藏非正文元素 */
  .site-header,
  .site-footer,
  .sidebar,
  .post-nav,
  .related-posts,
  .comments-area,
  .float-toolbar,
  .urgent-enroll-bar,
  .official-info-card,
  .post-tags,
  .page-hero,
  .breadcrumbs,
  .skip-link,
  .nav-toggle,
  .single-meta,
  .post-cover,
  .single-cover {
    display: none !important;
  }

  /* 重置页面 */
  * {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

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

  /* 布局 */
  .container { width: 100%; max-width: 100%; padding: 0; }
  .layout { display: block; }
  .content-area { width: 100%; }

  /* 标题 */
  .single-title {
    font-size: 18pt;
    color: #000;
    margin: 0 0 12pt;
    padding-bottom: 8pt;
    border-bottom: 2pt solid #000;
  }

  /* 正文 */
  .entry-content {
    font-size: 12pt;
    line-height: 1.7;
    color: #000;
  }
  .entry-content p { margin: 0 0 1em; }
  .entry-content h2 {
    font-size: 14pt;
    margin: 18pt 0 10pt;
    padding-bottom: 6pt;
    border-bottom: 1pt solid #666;
    page-break-after: avoid;
  }
  .entry-content h3 { font-size: 13pt; margin: 14pt 0 8pt; page-break-after: avoid; }

  /* 链接：显示 URL */
  .entry-content a {
    color: #000;
    text-decoration: underline;
  }
  .entry-content a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #444;
    word-break: break-all;
  }
  /* 锚点链接不显示 URL */
  .entry-content a[href^="#"]::after { content: ""; }

  /* 列表 */
  .entry-content ul,
  .entry-content ol { page-break-inside: avoid; }
  .entry-content li { margin-bottom: 6pt; }

  /* 表格 */
  .entry-content table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
  }
  .entry-content th,
  .entry-content td {
    border: 1pt solid #000;
    padding: 6pt;
  }
  .entry-content thead th {
    background: #eee !important;
    font-weight: 700;
  }

  /* 引用 */
  .entry-content blockquote {
    border-left: 3pt solid #666;
    padding: 8pt 12pt;
    margin: 12pt 0;
    page-break-inside: avoid;
  }

  /* 图片 */
  .entry-content img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  /* 代码 */
  .entry-content code,
  .entry-content pre {
    font-family: Consolas, Menlo, monospace;
    font-size: 10pt;
    background: #f5f5f5 !important;
    border: 1pt solid #ccc;
    page-break-inside: avoid;
  }
  .entry-content pre {
    padding: 8pt;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  /* 分页控制 */
  .entry-content h2,
  .entry-content h3,
  .entry-content h4 {
    page-break-after: avoid;
  }
  .entry-content table,
  .entry-content figure,
  .entry-content blockquote {
    page-break-inside: avoid;
  }
}
