/* ============================================================
   资讯详情页（newsdetail）专用样式
   依赖：common.css + news.css（页头/菜单/横幅/轮播/内容区/页脚）
   ============================================================ */

/* 详情页内容区占满整列（无右侧栏） */
.detail-page .content {
	display: block;
}
.detail-page .cleft {
	margin-right: 0;
	width: 100%;
}

/* ---- 面包屑 ---- */
.crumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	min-height: 40px;
	line-height: 40px;
	font-size: 14px;
	color: #666;
	padding: 0 4px;
	box-sizing: border-box;
	border-bottom: 1px solid #e6e6e5;
	margin-bottom: 15px;
}
.crumb a {
	font-size: 14px;
	color: #295280;
	text-decoration: none;
}
.crumb .sp {
	margin: 0 8px;
	color: #bbb;
}
.crumb .cur {
	color: #999;
}

/* ---- 文章正文区 ---- */
.box-n.art {
	padding: 5px 5px 25px;
}
.art .d-title {
	font-size: 24px;
	font-weight: bold;
	color: #333;
	line-height: 1.4;
	text-align: center;
	padding: 15px 10px 10px;
	box-sizing: border-box;
}
.art .d-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 13px;
	color: #999;
	padding: 0 10px 18px;
	box-sizing: border-box;
	border-bottom: 1px solid #e6e6e5;
}
.art .d-meta span {
	margin: 0 15px;
}
.art .d-content {
	padding: 20px 10px 10px;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.9;
	color: #333;
	word-break: break-word;
}
.art .d-content p {
	margin-bottom: 15px;
	text-align: justify;
	text-indent: 2em;
}
.art .d-content img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 15px auto;
}
.art .d-content a {
	color: #295280;
}
.art .d-content h2,
.art .d-content h3,
.art .d-content h4 {
	margin: 18px 0 10px;
	color: #295280;
}
.art .d-content blockquote {
	margin: 15px 0;
	padding: 10px 15px;
	border-left: 3px solid #295280;
	background: #edf2f5;
	color: #424242;
}
.art .d-content table {
	border-collapse: collapse;
	margin: 15px auto;
	max-width: 100%;
}
.art .d-content table td,
.art .d-content table th {
	border: 1px solid #ccc;
	padding: 6px 10px;
}

/* ---- 底部图片 ---- */
.box-n.artimg {
	padding: 0;
}
.artimg img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
}

/* ---- 移动端（≤768px）---- */
@media screen and (max-width: 768px) {
	.crumb {
		min-height: 36px;
		line-height: 36px;
		padding: 0 2px;
		margin-bottom: 10px;
	}
	.art .d-title {
		font-size: 19px;
		padding: 10px 4px 8px;
	}
	.art .d-meta span {
		margin: 0 8px;
	}
	.art .d-content {
		font-size: 14px;
		padding: 15px 4px 5px;
	}
}

/* ---- 暗色模式（跟随系统，全局规则见 dark.css）---- */
@media (prefers-color-scheme: dark) {
	.crumb {
		color: #8a8a8a;
		border-bottom-color: #3a3d45;
	}
	.crumb a {
		color: #6ea8d8;
	}
	.crumb .cur {
		color: #8a8a8a;
	}
	.art .d-title {
		color: #e8e8e8;
	}
	.art .d-meta {
		color: #8a8a8a;
		border-bottom-color: #3a3d45;
	}
	.art .d-content {
		color: #c5c5c5;
	}
	.art .d-content a {
		color: #6ea8d8;
	}
	.art .d-content h2,
	.art .d-content h3,
	.art .d-content h4 {
		color: #6ea8d8;
	}
	.art .d-content blockquote {
		border-left-color: #6ea8d8;
		background: #24272c;
		color: #b0b0b0;
	}
	.art .d-content table td,
	.art .d-content table th {
		border-color: #3a3d45;
	}
}

/* ============================================================
   数据库图文区块：顶部图 / 滚动图banner / 摘要
   （图片均 100% 宽，对应字段无数据时不渲染对应区块）
   ============================================================ */
.art .d-topimg {
	margin-bottom: 20px;
}
.art .d-topimg img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
}

.art .d-banner {
	position: relative;
	margin-bottom: 20px;
}
.art .d-banner .swiper-slide img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 3px;
}
.art .d-banner-prev,
.art .d-banner-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 38px;
	height: 38px;
	line-height: 38px;
	text-align: center;
	color: #fff;
	font-size: 22px;
	font-weight: bold;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 50%;
	cursor: pointer;
	user-select: none;
	transition: background .25s;
}
.art .d-banner-prev {
	left: 12px;
}
.art .d-banner-next {
	right: 12px;
}
.art .d-banner-prev:hover,
.art .d-banner-next:hover {
	background: rgba(0, 0, 0, 0.6);
}

.art .d-summary {
	background: #f5f7fa;
	border-left: 3px solid #295280;
	color: #666;
	font-size: 14px;
	line-height: 1.8;
	padding: 12px 15px;
	margin-bottom: 20px;
	border-radius: 2px;
}

/* 移动端（≤768px）箭头/摘要精简 */
@media screen and (max-width: 768px) {
	.art .d-banner-prev,
	.art .d-banner-next {
		width: 30px;
		height: 30px;
		line-height: 30px;
		font-size: 18px;
	}
	.art .d-banner-prev {
		left: 8px;
	}
	.art .d-banner-next {
		right: 8px;
	}
	.art .d-summary {
		font-size: 13px;
		padding: 10px 12px;
	}
}

/* 暗色模式（跟随系统，全局规则见 dark.css） */
@media (prefers-color-scheme: dark) {
	.art .d-summary {
		background: #24272c;
		border-left-color: #6ea8d8;
		color: #b0b0b0;
	}
}