/* AI 文章：侧栏特色图 + 大纲 + 参考来源 */

.hohar-ai-widget-featured {
	overflow: hidden;
}

.hohar-ai-widget-featured.card-sm .card-body {
	padding: 0 !important;
	margin: 0;
}

.hohar-ai-sidebar-featured-img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.hohar-ai-toc-list {
	line-height: 1.45;
}

.hohar-ai-toc-item {
	margin-bottom: 0.35rem;
}

.hohar-ai-toc-item:last-child {
	margin-bottom: 0;
}

.hohar-ai-toc-item a {
	color: inherit;
	text-decoration: none;
}

.hohar-ai-toc-item a:hover {
	color: var(--primary, #007bff);
	text-decoration: underline;
}

.hohar-ai-toc-level-3 {
	padding-left: 0.75rem;
}

.hohar-ai-toc-level-4 {
	padding-left: 1.25rem;
}

.hohar-ai-sources-list {
	list-style: decimal;
	padding-left: 1.25rem;
	margin-bottom: 0;
}

.hohar-ai-sources-list > li {
	margin-bottom: 0.5rem;
	line-height: 1.55;
}

.hohar-ai-sources-list > li:last-child {
	margin-bottom: 0;
}

.hohar-ai-sources-details {
	margin-top: 0.65rem;
}

.hohar-ai-sources-summary {
	display: block;
	cursor: pointer;
	color: var(--primary, #448ef6);
	font-size: 0.875rem;
	line-height: 1.4;
	list-style: none;
	user-select: none;
}

.hohar-ai-sources-summary::-webkit-details-marker {
	display: none;
}

.hohar-ai-sources-summary::before {
	content: '› ';
	opacity: 0.75;
}

.hohar-ai-sources-summary:hover {
	text-decoration: underline;
}

.hohar-ai-sources-details[open] > .hohar-ai-sources-summary {
	display: none;
}

.hohar-ai-sources-list-more {
	margin-top: 0.5rem;
}

.hohar-ai-sources-foot {
	display: none;
	margin-top: 0.75rem;
	text-align: center;
}

.hohar-ai-sources-details[open] .hohar-ai-sources-foot {
	display: block;
}

.hohar-ai-sources-collapse {
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	color: var(--primary, #448ef6);
	font-size: 0.875rem;
	line-height: 1.4;
	cursor: pointer;
}

.hohar-ai-sources-collapse:hover {
	text-decoration: underline;
}

.hohar-ai-sidebar .widget:last-child {
	margin-bottom: 0;
}

.hohar-ai-article .post-content :is(h2, h3, h4)[id] {
	scroll-margin-top: 5rem;
}

/* 正文配图圆角 */
.hohar-ai-article .post-content :is(.wp-block-image, figure.wp-block-image, .wp-block-gallery .wp-block-image) {
	border-radius: 12px;
	overflow: hidden;
}

.hohar-ai-article .post-content :is(.wp-block-image img, figure img, .wp-block-gallery img) {
	border-radius: 12px;
}

.hohar-ai-article .post-content figcaption {
	margin-top: 0.5rem;
	font-size: 0.875rem;
}
