/* 帖子页 Tag - 弱化视觉 + 折叠（源码保留全部链接） */
.xnseo-tags-wrap {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-left: 8px;
	vertical-align: middle;
	max-width: 100%;
}

.xnseo-tags {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 6px;
}

.xnseo-tag {
	display: inline-block;
	padding: 2px 8px;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.4;
	color: #7a8494 !important;
	background: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 4px;
	text-decoration: none !important;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.xnseo-tag:hover {
	color: #5a6a7e !important;
	border-color: rgba(0, 0, 0, 0.12);
	background: rgba(0, 0, 0, 0.06);
}

/* 折叠：仍在 DOM 中，仅视觉隐藏（利于 SEO 抓取） */
.xnseo-tags-wrap:not(.is-expanded) .xnseo-tag--after-d {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 767px) {
	.xnseo-tags-wrap:not(.is-expanded) .xnseo-tag--after-m {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
		opacity: 0;
		pointer-events: none;
	}

	.xnseo-tags-wrap:not(.is-expanded) .xnseo-tag--after-d:not(.xnseo-tag--after-m) {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		padding: 2px 8px;
		overflow: visible;
		clip: auto;
		white-space: normal;
		opacity: 1;
		pointer-events: auto;
	}
}

.xnseo-tags-toggle {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	font-size: 0.75rem;
	color: #8b95a5;
	background: transparent;
	border: 1px dashed rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
}

.xnseo-tags-toggle:hover {
	color: #5a6a7e;
	border-color: rgba(0, 0, 0, 0.2);
}

.xnseo-tags-toggle em {
	font-style: normal;
	opacity: 0.85;
}

.xnseo-tags-wrap.is-expanded .xnseo-tags-toggle-more {
	display: none;
}

.xnseo-tags-wrap:not(.is-expanded) .xnseo-tags-toggle-less {
	display: none;
}

.xnseo-tags-wrap.is-expanded .xnseo-tag--after-d,
.xnseo-tags-wrap.is-expanded .xnseo-tag--after-m {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	padding: 2px 8px;
	overflow: visible;
	clip: auto;
	opacity: 1;
	pointer-events: auto;
}

.xnseo-tag--list {
	font-size: 0.6875rem;
	padding: 1px 6px;
	margin-left: 2px;
}

.xnseo-tag-more {
	font-size: 0.6875rem;
	color: #9aa3af;
}
