/* 前台文章内容中保留空格的展示
 * 注意：仅对被插件包裹的「新内容」生效
 * 解决方案：使用 white-space: pre-wrap 并彻底控制所有行高相关属性
 */



.gsf-real-space {
	white-space: pre-wrap !important;
	overflow-wrap: break-word !important;
	hyphens: auto;
	text-wrap: pretty;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
}

/* 彻底重置所有内部元素的间距 */
.gsf-real-space * {
	line-height: inherit !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* 特别处理段落 - 最小化间距 */
.gsf-real-space p {
	margin-top: 0 !important;
	margin-bottom: 0.3em !important;
}

/* 处理连续段落 - 使用负间距减少空行高度 */
.gsf-real-space p + p {
	margin-top: -0.2em !important;
}

/* 完全隐藏 br 标签，因为 pre-wrap 已经处理换行 */
.gsf-real-space br {
	display: none !important;
	height: 0 !important;
	line-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* 处理 div 和其他块级元素 */
.gsf-real-space div,
.gsf-real-space section,
.gsf-real-space article {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: inherit !important;
}

/* 特殊处理：减少换行符产生的额外高度 */
.gsf-real-space {
	--line-height-multiplier: 0.7;
}

/* 确保文本换行时保持美观 */
.gsf-real-space {
	word-break: break-word;
	overflow-wrap: anywhere;
}

