/**
 * DeepSeek AI 写作助手 —— 图文混排 / 自动插图 前台展示样式
 *
 * 使用方法：请将本文件内容加入您帝国CMS网站前台模板所使用的 CSS 文件中
 * （例如模板的 style.css，或在内容页模板的 <head> 里通过 <link> 单独引入本文件），
 * 本文件不会自动生效——插件后台的样式与前台展示样式是完全独立的两套。
 *
 * 对应的 HTML 结构（由插件自动生成，写入文章正文）：
 * <figure class="dsw-content-image">
 *   <img class="dsw-content-image__img" src="..." alt="..." title="..." loading="lazy" />
 *   <figcaption class="dsw-content-image__caption">图注文字</figcaption>
 * </figure>
 */

.dsw-content-image {
	margin: 28px auto;
	text-align: center;
	max-width: 100%;
}

.dsw-content-image__img {
	display: block;
	width: 100%;
	max-width: 720px;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dsw-content-image__img:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dsw-content-image__caption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.6;
	color: #8a8f98;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 12px;
}

.dsw-content-image__caption::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 1px;
	background: #d0d3d9;
	vertical-align: middle;
	margin-right: 8px;
}

.dsw-content-image__caption::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 1px;
	background: #d0d3d9;
	vertical-align: middle;
	margin-left: 8px;
}

/* 移动端适配：缩小间距，图片始终不超出屏幕宽度 */
@media (max-width: 768px) {
	.dsw-content-image {
		margin: 20px auto;
	}

	.dsw-content-image__img {
		border-radius: 6px;
		max-width: 100%;
	}

	.dsw-content-image__caption {
		font-size: 12px;
		padding: 0 16px;
	}
}

/* 可选：若站点为深色模式，取消注释以下代码块可自动适配 */
/*
@media (prefers-color-scheme: dark) {
	.dsw-content-image__caption {
		color: #9aa0aa;
	}
	.dsw-content-image__caption::before,
	.dsw-content-image__caption::after {
		background: #454952;
	}
}
*/
