/* banner 见 theme.css */

/* 详情页：顶栏导航（返回 + 面包屑） */
.page-content-detail {
	background: #fff;
}

.content-toolbar {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #eaeaea;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.content-toolbar__inner {
	width: 100%;
	max-width: min(1280px, calc(100vw - 24px));
	margin: 0 auto;
	padding: 14px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	box-sizing: border-box;
}

.content-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 24px;
	background: #fff;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.content-back:hover {
	color: #f7941d;
	border-color: #f7941d;
	background: rgba(247, 148, 29, 0.06);
}

.content-back__icon {
	font-size: 16px;
	line-height: 1;
}

.content-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	font-size: 14px;
	color: #888;
}

.content-breadcrumb__link {
	color: #666;
	text-decoration: none;
}

.content-breadcrumb__link:hover {
	color: #f7941d;
}

.content-breadcrumb__sep {
	color: #ccc;
	user-select: none;
}

.content-breadcrumb__current {
	color: #333;
	font-weight: 600;
}

/* 主区域 */
.article-detail {
	width: 100%;
	padding: 24px 0 48px;
}

.article-detail__inner {
	width: 100%;
	max-width: min(1280px, calc(100vw - 24px));
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* 标题区 */
.article-header {
	background: #fff;
	border-radius: 12px;
	padding: 28px 28px 22px;
	margin-bottom: 20px;
	border: 1px solid #eee;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.article-header__title {
	margin: 0 0 18px;
	padding: 0;
	font-size: 26px;
	font-weight: 600;
	color: #222;
	line-height: 1.4;
	text-align: center;
	border: none;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 20px;
	padding-top: 4px;
	border-top: 1px solid #f0f0f0;
}

.article-meta__cat {
	display: inline-block;
	padding: 4px 12px;
	font-size: 13px;
	color: #f7941d;
	background: rgba(247, 148, 29, 0.1);
	border-radius: 4px;
	font-weight: 500;
}

.article-meta__time {
	font-size: 14px;
	color: #999;
	font-variant-numeric: tabular-nums;
}

/* 正文 iframe（与主栏同宽，减少两侧灰边） */
.knowledge-frame-wrap {
	width: 100%;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.knowledge-frame {
	width: 100%;
	min-height: 72vh;
	border: none;
	display: block;
	vertical-align: top;
}

/* 上一篇 / 下一篇 */
.article-nav {
	width: 100%;
	margin-top: 28px;
}

.article-nav__inner {
	width: 100%;
	max-width: min(1280px, calc(100vw - 24px));
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.article-nav__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #eaeaea;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.article-nav__item:hover:not(.article-nav__item--disabled) {
	border-color: #f0c080;
	box-shadow: 0 4px 14px rgba(247, 148, 29, 0.12);
}

.article-nav__item--next {
	align-items: flex-end;
	text-align: right;
}

.article-nav__item--next .article-nav__title {
	text-align: right;
}

.article-nav__label {
	font-size: 12px;
	color: #f7941d;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.article-nav__title {
	font-size: 14px;
	color: #444;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	word-break: break-word;
}

.article-nav__item--disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.article-nav__item--disabled .article-nav__title {
	color: #aaa;
}

/* 兼容旧类名（若其它片段引用） */
.news {
	width: 100%;
}
.news > .news-content {
	width: 100%;
	margin: 0 auto;
	margin-top: 0;
}

.tab-title {
	width: 100%;
	height: 200px;
	display: flex;
	justify-content: center;
	align-items: center;
}
.tab-title > div {
	width: 75%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 40px;
	border-bottom: solid #ddd 1px;
}

.tab-content {
	width: 75%;
	margin: 30px auto;
}
.tab-content > p {
	margin-bottom: 15px;
	line-height: 24px;
}
.tab-content > p > img {
	width: 100%;
}

.news-zw {
	margin-top: 20px;
	border-bottom: solid #eee 1px;
}
.news-zw > p {
	font-size: 16px;
	text-align: center;
	margin-bottom: 20px;
}
.news-zw > p > img {
	width: 100%;
}

@media (max-width: 768px) {
	.content-toolbar__inner {
		width: 100%;
		padding: 12px 14px;
		flex-direction: column;
		align-items: stretch;
	}

	.content-back {
		justify-content: center;
	}

	.content-breadcrumb {
		justify-content: center;
	}

	.article-detail {
		padding: 16px 0 36px;
	}

	.article-detail__inner {
		width: 100%;
		padding: 0 14px;
	}

	.article-header {
		padding: 20px 16px 16px;
		border-radius: 10px;
	}

	.article-header__title {
		font-size: 20px;
		margin-bottom: 14px;
	}

	.knowledge-frame-wrap {
		border-radius: 8px;
		border-left: none;
		border-right: none;
	}

	.knowledge-frame {
		min-height: 62vh;
	}

	.article-nav__inner {
		width: 100%;
		padding: 0 14px;
		grid-template-columns: 1fr;
	}

	.article-nav__item--next {
		align-items: flex-start;
		text-align: left;
	}

	.article-nav__item--next .article-nav__title {
		text-align: left;
	}
}

@media (max-width: 480px) {
	.article-header__title {
		font-size: 18px;
	}

	.article-meta__time {
		font-size: 13px;
	}

	.content-back__text {
		font-size: 13px;
	}
}
