/**
 * 文章详情（post）— Figma 1050-4178
 * 依赖 tsingoal.css；本页 Figma 主区域宽 1600：仅在此处覆盖 .section
 */

/* 抵消 Avada / 页面背景上的渐变或杂色，与设计稿 #f5f5f7 一致 */
.section {
	width: 100rem !important;
	max-width: 100rem !important;
}
body.single-post #wrapper,
body.single-post #main,
body.single-post #primary.site-main,
body.single-post .site-main {
	background-color: #f5f5f7 !important;
	background-image: none !important;
}

/* Figma 主内容 1600px（AGENT.md） */
.is-view-single-post .section {
	width: 100rem !important;
	max-width: 100rem !important;
}

.is-view-single-post {
	position: relative;
	width: 100%;
	overflow-x: hidden;
	overflow-y: visible;
	background-color: #f5f5f7;
}

.single-post-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 67.56rem;
	z-index: 0;
	pointer-events: none;
	overflow: visible;
}

/* ---------- 英雄区 ---------- */
.is-view-single-post .news-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	z-index: 1;
	background-color: transparent;
}

.is-view-single-post .news-hero__layer {
	position: absolute;
}

.is-view-single-post .news-hero__layer--image26 {
	left: 0;
	top: -15.625rem;
	z-index: 3;
	display: flex;
	width: 100%;
	height: 67.56rem;
	align-items: center;
	justify-content: center;
}

.is-view-single-post .news-hero__image26-rotate {
	position: relative;
	flex: none;
	width: 67.56rem;
	height: 120rem;
	transform: rotate(-90deg);
}

.is-view-single-post .news-hero__image26-inner {
	position: relative;
	width: 100%;
	height: 100%;
}

.is-view-single-post .news-hero__image26-inner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.is-view-single-post .news-hero__image26-fade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		#f5f5f7 18.394%,
		rgba(255, 255, 255, 0.71) 21.829%,
		rgba(255, 255, 255, 0) 39.296%
	);
	pointer-events: none;
}

.is-view-single-post .news-intro {
	position: relative;
	z-index: 4;
	padding-top: 6.25rem;
	background-color: transparent;
}

/* 副标题下沿到面包屑上沿：132px（Figma） */
.is-view-single-post .news-intro--single {
	padding-bottom: 8.25rem;
}

.is-view-single-post .news-intro__title {
	margin: 0 auto 2.5rem auto !important;
	text-align: center;
	font-size: 3.5rem !important;
	line-height: 1 !important;
	color: #252b3a !important;
	font-family: s-semibold, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.is-view-single-post .news-intro__title--single {
	margin-bottom: 2.5rem !important;
}

.is-view-single-post .news-intro__desc {
	margin: 0 auto;
	max-width: 45.0875rem;
	text-align: center;
	font-size: 1.625rem !important;
	line-height: normal !important;
	color: #435566 !important;
}

/* ---------- 灰底主区 ---------- */
.single-post-outer {
	position: relative;
	z-index: 5;
	width: 100%;
	max-width: 100rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem 8.25rem;
	box-sizing: border-box;
}

/* 面包屑：在灰底上，与白卡同宽对齐，不在白卡内 */
.single-post-breadcrumb-wrap {
	width: 100%;
	max-width: 75rem;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1rem;
	padding-left: 1rem;
	padding-right: 2.5rem;
	box-sizing: border-box;
}

.single-post-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	font-family: s-regular, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.875rem;
	line-height: normal;
	color: #435566;
}

.single-post-breadcrumb__link {
	color: #435566;
	opacity: 0.5;
	text-decoration: none;
}

.single-post-breadcrumb__link:hover {
	opacity: 0.75;
	text-decoration: underline;
}

.single-post-breadcrumb__sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #435566;
	opacity: 0.5;
}

.single-post-breadcrumb__current {
	color: #435566;
	opacity: 1;
	max-width: 100%;
	word-break: break-word;
}

.single-post-breadcrumb__icon {
	display: block;
	flex-shrink: 0;
}

/* ---------- 白卡（不含面包屑与上下篇） ---------- */
.single-post-card {
	position: relative;
	width: 100%;
	max-width: 75rem;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	padding: 5rem 2.5rem 3rem;
	background: #ffffff;
	border-radius: 1.25rem;
	box-sizing: border-box;
	box-shadow: 0 0.25rem 2rem rgba(37, 43, 58, 0.06);
}

/* 主内容 900px：标题、日期、分隔线、正文、分页 */
.single-post-main {
	width: 100%;
	max-width: 56.25rem;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.single-post-article__header {
	margin-bottom: 0;
}

.single-post-card__title {
	margin: 0 0 .875rem;
	font-family: s-demibold, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.875rem;
	line-height: normal;
	font-weight: normal;
	color: #252b3a;
}

.single-post-card__date {
	display: block;
	font-family: s-regular, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.875rem;
	line-height: normal;
	color: #b1b5bb;
}

.single-post-card__rule {
	border: none;
	border-top: 0.0625rem solid #d8d8d8;
	margin: 2.25rem 0 0;
	width: 100%;
}

.single-post-main--pages {
	margin-top: 2rem;
}

.single-post-article.post,
.single-post-article .post-content--single {
	font-family: s-regular, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #252b3a;
}

.single-post-article .post-content--single {
	max-width: 56.25rem;
	margin-left: auto;
	margin-right: auto;
	margin-top: 2.5rem;
	font-size: 1rem;
	line-height: 1.75;
}

.single-post-article .post-content--single > *:first-child {
	margin-top: 0;
}

.single-post-article .post-content--single p {
	margin: 0 0 2rem;
	font-size: 1rem;
	line-height: 1.75;
}

.single-post-article .post-content--single p:last-child {
	margin-bottom: 0;
}

.single-post-article .post-content--single h2 {
	margin: 2rem 0 1rem;
	font-family: s-demibold, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.125rem;
	line-height: 1.75;
	font-weight: normal;
	color: #252b3a;
}

.single-post-article .post-content--single h3 {
	margin: 2rem 0 1rem;
	font-family: s-demibold, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.125rem;
	line-height: 1.75;
	font-weight: normal;
	color: #252b3a;
}

.single-post-article .post-content--single h4,
.single-post-article .post-content--single h5,
.single-post-article .post-content--single h6 {
	margin: 1.5rem 0 0.75rem;
	font-family: s-medium, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.75;
	font-weight: normal;
	color: #252b3a;
}

.single-post-article .post-content--single h2 + p,
.single-post-article .post-content--single h3 + p {
	margin-top: 0;
}

.single-post-article .post-content--single a {
	color: #2664f5;
	text-decoration: underline;
}

.single-post-article .post-content--single a:hover {
	color: #1378f8;
}

.single-post-article .post-content--single ul,
.single-post-article .post-content--single ol {
	margin: 0 0 2rem;
	padding-left: 1.5rem;
}

.single-post-article .post-content--single li {
	margin-bottom: 0.5rem;
}

.single-post-article .post-content--single blockquote {
	margin: 2rem 0;
	padding: 0.5rem 0 0.5rem 1rem;
	border-left: 0.25rem solid #bdcae4;
	color: #607293;
	font-style: normal;
}

.single-post-article .post-content--single img,
.single-post-article .post-content--single .wp-block-image img {
	display: grid;
	max-width: 100%;
	height: auto;
	border: 0.0625rem solid rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
}

.single-post-article .post-content--single figure {
	margin: 2rem 0;
}

.single-post-article .post-content--single pre,
.single-post-article .post-content--single code {
	font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

.single-post-article .post-content--single pre {
	overflow-x: auto;
	padding: 1rem;
	background: #f4f6f8;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.single-post-article .post-content--single code {
	font-size: 0.9em;
}

.single-post-article .post-content--single .wp-block-table {
	overflow-x: auto;
}

.single-post-article .post-content--single .wp-block-table table,
.single-post-article .post-content--single table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
}

/* ---------- 上/下篇：灰底上，白卡外；分隔线与链接区同 900px ---------- */
.single-post-fnav {
	margin-top: 1rem;
	padding-bottom: 0;
	background-color: transparent;
}

.single-post-fnav__inner {
	width: 100%;
	max-width: 75rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
	box-sizing: border-box;
}

/* .single-post-fnav__rule {
	border: none;
	border-top: 0.0625rem solid #d8d8d8;
	margin: 0 auto 1.5rem;
	width: 100%;
	max-width: 56.25rem;
} */

.single-post-fnav__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.single-post-fnav__left,
.single-post-fnav__right {
	flex: 1 1 12rem;
	min-width: 0;
}

.single-post-fnav__right {
	text-align: right;
}

.single-post-fnav__a {
	display: inline-block;
	max-width: 20rem; /* 320px */
	font-family: s-regular, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.9375rem;
	line-height: 1.667;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: top;
}

.single-post-fnav__a--prev {
	color: #266ac9;
	text-align: left;
}

.single-post-fnav__a--prev:hover {
	text-decoration: underline;
}

.single-post-fnav__a--next {
	color: #252b3a;
	text-align: right;
}

.single-post-fnav__a--next:hover {
	text-decoration: underline;
	color: #266ac9;
}

.single-post-fnav__a--disabled {
	cursor: default;
	opacity: 0.45;
}

.single-post-fnav__right .single-post-fnav__a--disabled {
	text-align: right;
	display: block;
	max-width: 20rem;
	margin-left: auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Avada 附加区块 ---------- */
.single-post-addon {
	max-width: 75rem;
	margin-left: auto;
	margin-right: auto;
	margin-top: 2.5rem;
	padding: 0 1rem;
	box-sizing: border-box;
}

body.single-post .fusion-page-title-bar {
	display: none !important;
}
