/*!
 * DUX Print Stylesheet
 * 打印时隐藏非内容元素，优化阅读体验
 */
@media print {
	/* 隐藏导航和装饰元素 */
	.header,
	.header-notice,
	.site-navbar,
	.m-navbar,
	.m-icon-nav,
	.topbar,
	.site-search,
	.breadcrumbs,
	.sidebar,
	.footer,
	.article-nav,
	.post-actions,
	.shares,
	.article-tags,
	.comt-ctrl,
	.orbui,
	.dux-popup-notice,
	.karbar-totop,
	.karbar,
	.m-mask,
	.fcode,
	.flinks,
	.branding,
	.footer-plus,
	#respond,
	#comments .title,
	.pagination,
	.sign,
	.sign-mask,
	.tbmodal,
	.rewards-popover,
	.rewards-popover-mask,
	.article-update-tips,
	.post-copyright,
	.post-copyright-custom,
	.widget,
	.site-search-form {
		display: none !important;
	}

	/* 重置布局 */
	body,
	.container,
	.content-wrap,
	.content {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
		display: block !important;
	}

	/* 优化排版 */
	body {
		font-size: 12pt;
		line-height: 1.6;
		color: #000;
		background: #fff;
	}

	.article-title,
	.article-title a {
		font-size: 18pt;
		font-weight: 700;
		color: #000;
		margin-bottom: 0.5em;
		text-decoration: none;
	}

	.article-content {
		font-size: 11pt;
		line-height: 1.8;
		color: #000;
	}

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

	/* 显示链接URL */
	.article-content a[href^="http"]:after {
		content: " (" attr(href) ")";
		font-size: 0.9em;
		color: #666;
		word-break: break-all;
	}

	/* 避免图片跨页 */
	.article-content img {
		max-width: 100% !important;
		page-break-inside: avoid;
	}

	/* 标题不应孤立 */
	.article-content h1,
	.article-content h2,
	.article-content h3,
	.article-content h4 {
		page-break-after: avoid;
	}

	/* 段落跨页控制 */
	.article-content p {
		widows: 3;
		orphans: 3;
	}

	/* 代码块处理 */
	.article-content pre,
	.article-content code {
		background: #f5f5f5;
		border: 1px solid #ddd;
		font-size: 10pt;
		white-space: pre-wrap;
		word-wrap: break-word;
	}

	/* 隐藏 iframe 等嵌入内容 */
	.article-content iframe,
	.article-content video,
	.article-content embed {
		display: none;
	}
}
