/**
 * 文章内页（single post）阅读舒适化。
 * 主问题：正文 .entry-content 宽度无限制（铺满约 1900px），每行过长、段距偏松，读起来累。
 * 对策：限制阅读行宽（measure）、优化行高与段落/标题节奏、统一图片与列表样式。
 * 仅作用于 body.single-post，不影响页面(Page)/归档。
 */

body.single-post .entry-content {
	--xs-measure: 800px;
	--xs-blue: #1A75FF;
	/* 与标题对齐：把整宽的正文容器收回到主题容器宽度并居中 */
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin-inline: auto;
	box-sizing: border-box;
	font-size: 17px;
	line-height: 1.9;
	color: #3a424b;
}

/* 限制正文各块的行宽，左对齐到容器左边（= 标题左边）。
   WP 的 is-layout-constrained 用 margin:auto!important 居中，这里需用 !important 覆盖。 */
body.single-post .entry-content > * {
	max-width: var(--xs-measure);
	margin-left: 0 !important;
	margin-right: auto !important;
}
/* 窄屏给正文容器内边距，避免贴边 */
@media (max-width: 1330px) {
	body.single-post .entry-content {
		padding-inline: 24px;
	}
}
/* 整宽/宽幅块不受限 */
body.single-post .entry-content > .alignfull,
body.single-post .entry-content > .alignwide {
	max-width: none;
}

/* 段落：去顶距、收紧段间距 */
body.single-post .entry-content > p {
	margin-top: 0;
	margin-bottom: 1.15em;
}

/* 标题层级与上下节奏 */
body.single-post .entry-content > h2 {
	margin: 2em auto 0.7em;
	font-size: clamp(22px, 2.4vw, 27px);
	line-height: 1.45;
	font-weight: 800;
	color: #0E0D12;
	letter-spacing: 0.01em;
}
body.single-post .entry-content > h3 {
	margin: 1.6em auto 0.5em;
	font-size: clamp(19px, 2vw, 21px);
	line-height: 1.5;
	font-weight: 700;
	color: #16212b;
}
body.single-post .entry-content > h2:first-child,
body.single-post .entry-content > h3:first-child {
	margin-top: 0;
}

/* 列表可读性 */
body.single-post .entry-content > ul,
body.single-post .entry-content > ol {
	margin: 0 auto 1.15em;
	padding-left: 1.4em;
	line-height: 1.85;
}
body.single-post .entry-content li {
	margin-bottom: 0.4em;
}

/* 图片：圆角 + 居中 + 适度留白 */
body.single-post .entry-content img {
	height: auto;
	border-radius: 10px;
}
body.single-post .entry-content figure,
body.single-post .entry-content .wp-block-image {
	margin-top: 1.6em;
	margin-bottom: 1.6em;
}
body.single-post .entry-content figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: #8a93a0;
	text-align: center;
}

/* 链接 / 强调 */
body.single-post .entry-content a {
	color: var(--xs-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
}
body.single-post .entry-content strong {
	color: #0E0D12;
}

/* 引用块 */
body.single-post .entry-content blockquote {
	margin: 1.6em auto;
	padding: 6px 0 6px 20px;
	border-left: 4px solid var(--xs-blue);
	color: #434F58;
	font-style: normal;
}

@media (max-width: 600px) {
	body.single-post .entry-content {
		font-size: 16px;
		line-height: 1.85;
	}
}
