/* ---------- 打印样式（C）：客户打印文档时只出正文，界面框架全部隐藏 ---------- */

/* 隐藏界面元素：吸顶导航 / 侧栏目录 / 遮罩 / 底部标签栏 / 返回顶部 / 页脚 / 反馈栏 / PDF 按钮 / 页内目录 / 锚点 / 灯箱 */
.site-header,
.sidebar,
.drawer-overlay,
.tabbar,
.back-top,
.footer,
.feedback-bar,
.pdf-btn,
.page-toc,
.anchor-link,
.anchor-tip,
.img-lightbox {
    display: none !important;
}

/* 正文占满纸面，收缩留白与投影 */
.page {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

/* 省墨：纯黑正文，字号回归纸面习惯 */
body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt !important;
}
.article-content {
    font-size: 12pt !important;
    line-height: 1.8 !important;
}
.article-content a {
    color: #000 !important;
    text-decoration: none !important;
}

/* 图片：不超出纸面、不跨页断裂 */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    break-inside: avoid;
}

/* 表格：整行不断；跨页时 thead 自动重复（display: table-header-group） */
.article-content table {
    width: 100% !important;
    font-size: 10.5pt !important;
    page-break-inside: auto;
}
.article-content tr {
    page-break-inside: avoid;
    break-inside: avoid;
}
.article-content thead {
    display: table-header-group;
}

/* 标题不孤悬页尾；代码块不断裂且不横向溢出 */
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    page-break-after: avoid;
    break-after: avoid;
}
.article-content pre {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    page-break-inside: avoid;
}
