/**
 * 新闻/文章详情页
 */

body.hcn-single-post-page {
	background: #ececea;
}

body.hcn-single-post-page main.hcn-single-post {
	margin-top: 0;
	padding: 0 0 72px;
	background: #ececea;
}

/* 阅读进度 */
.hcn-single-post .reading-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: rgba(14, 52, 91, 0.08);
	z-index: 10001;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.12s linear;
	pointer-events: none;
}

.hcn-single-post .reading-progress {
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #f47629 0%, #ff9a4d 100%);
	box-shadow: 0 0 12px rgba(244, 118, 41, 0.45);
}

/* Hero */
.hcn-single-hero {
	position: relative;
	background: linear-gradient(135deg, #0e345b 0%, #1a4f82 55%, #0e345b 100%);
	overflow: hidden;
}

.hcn-single-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 85% 20%, rgba(244, 118, 41, 0.18), transparent 55%),
		radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 255, 255, 0.06), transparent 50%);
	pointer-events: none;
	z-index: 1;
}

.hcn-single-hero__media {
	position: relative;
	min-height: clamp(220px, 38vw, 420px);
	max-height: 480px;
	overflow: hidden;
}

.hcn-single-hero__media .wp-block-post-featured-image {
	margin: 0 !important;
	width: 100%;
	height: 100%;
	min-height: clamp(220px, 38vw, 420px);
	max-height: 480px;
}

.hcn-single-hero__media .wp-block-post-featured-image img {
	width: 100% !important;
	height: 100% !important;
	min-height: clamp(220px, 38vw, 420px);
	max-height: 480px !important;
	object-fit: cover !important;
	object-position: center center;
	display: block;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.hcn-single-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(14, 52, 91, 0.15) 0%,
		rgba(14, 52, 91, 0.45) 55%,
		rgba(14, 52, 91, 0.92) 100%
	);
	pointer-events: none;
	z-index: 1;
}

body.hcn-single-post--no-hero-image .hcn-single-hero__media {
	display: none;
}

.hcn-single-hero__body {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: -88px auto 0;
	padding: 0 24px 0;
}

body.hcn-single-post--no-hero-image .hcn-single-hero__body {
	margin-top: 0;
	padding-top: 48px;
	padding-bottom: 8px;
}

.hcn-single-hero__card {
	background: #ffffff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -8px 40px rgba(14, 52, 91, 0.12);
	padding: 36px 44px 28px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-bottom: none;
}

body.hcn-single-post--no-hero-image .hcn-single-hero__card {
	border-radius: 16px;
	border-bottom: 1px solid rgba(14, 52, 91, 0.06);
	box-shadow: 0 12px 40px rgba(14, 52, 91, 0.1);
	margin-bottom: 0;
}

.hcn-single-hero__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.hcn-single-hero__cats .wp-block-post-terms,
.hcn-single-hero__cats .taxonomy-category {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.hcn-single-hero__cats a {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #fff4eb, #ffe8d4);
	color: #d45f1a !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background 0.2s ease, color 0.2s ease;
}

.hcn-single-hero__cats a:hover {
	background: linear-gradient(135deg, #f47629, #ff9a4d);
	color: #fff !important;
}

.hcn-single-hero__card .wp-block-post-title {
	margin: 0 0 20px !important;
	font-size: clamp(26px, 3.2vw, 36px) !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: #0e345b !important;
	letter-spacing: 0.01em;
}

.hcn-single-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	padding-top: 18px;
	border-top: 1px solid #ececea;
}

.hcn-single-hero__meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.4;
}

.hcn-single-hero__meta .meta-item i {
	color: #f47629;
	font-size: 15px;
	width: 16px;
	text-align: center;
}

.hcn-single-hero__meta .meta-item--author .hcn-meta-label {
	color: #64748b;
}

/* 主体布局 */
.hcn-single-body {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.hcn-single-body .article-content-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 32px;
	align-items: start;
}

.hcn-single-body .article-main {
	background: #ffffff;
	border-radius: 0 0 16px 16px;
	padding: 40px 44px 44px;
	box-shadow: 0 16px 48px rgba(14, 52, 91, 0.08);
	border: 1px solid rgba(14, 52, 91, 0.06);
	border-top: none;
}

body.hcn-single-post--no-hero-image .hcn-single-body .article-main {
	border-radius: 16px;
	border-top: 1px solid rgba(14, 52, 91, 0.06);
	margin-top: -8px;
}

/* 正文排版 */
.hcn-single-post .article-main .wp-block-post-content {
	font-size: 17px;
	line-height: 1.92;
	color: #334155;
	letter-spacing: 0.01em;
}

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

.hcn-single-post .article-main .wp-block-post-content h2 {
	position: relative;
	margin: 2.6em 0 1.1em;
	padding: 0 0 12px;
	border: none;
	font-size: clamp(20px, 2.2vw, 24px);
	font-weight: 700;
	color: #0e345b;
	line-height: 1.4;
}

.hcn-single-post .article-main .wp-block-post-content h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 48px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, #f47629, #ff9a4d);
}

.hcn-single-post .article-main .wp-block-post-content h3 {
	margin: 2em 0 0.85em;
	font-size: 19px;
	font-weight: 600;
	color: #1e3a5f;
	line-height: 1.45;
}

.hcn-single-post .article-main .wp-block-post-content p {
	margin: 1.15em 0;
	text-align: justify;
}

.hcn-single-post .article-main .wp-block-post-content strong {
	color: #0e345b;
	font-weight: 600;
}

.hcn-single-post .article-main .wp-block-post-content ul,
.hcn-single-post .article-main .wp-block-post-content ol {
	margin: 1.25em 0;
	padding-left: 1.35em;
}

.hcn-single-post .article-main .wp-block-post-content li {
	margin: 0.55em 0;
	padding-left: 0.25em;
}

.hcn-single-post .article-main .wp-block-post-content li::marker {
	color: #f47629;
}

.hcn-single-post .article-main .wp-block-post-content blockquote {
	margin: 1.75em 0;
	padding: 22px 28px;
	border: none;
	border-left: 4px solid #f47629;
	border-radius: 0 12px 12px 0;
	background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
	color: #475569;
	font-style: normal;
	box-shadow: inset 0 0 0 1px rgba(244, 118, 41, 0.08);
}

/* 正文配图 */
.hcn-single-post .article-main .wp-block-post-content .wp-block-image,
.hcn-single-post .article-main .wp-block-post-content figure,
.hcn-single-post .article-main .wp-block-post-content .hcn-article-product-figure,
.hcn-single-post .article-main .wp-block-post-content .hcn-news-lead-image {
	display: block;
	width: 100%;
	max-width: 720px;
	margin: 2rem auto;
	float: none !important;
}

.hcn-single-post .article-main .wp-block-post-content img,
.hcn-single-post .article-main .wp-block-post-content .hcn-article-product-image,
.hcn-single-post .article-main .wp-block-post-content .hcn-news-lead-img {
	display: block;
	max-width: 100% !important;
	width: auto !important;
	height: auto !important;
	max-height: min(46vh, 420px) !important;
	margin: 0 auto;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(14, 52, 91, 0.12);
	background: #f8fafc;
}

.hcn-single-post .article-main .wp-block-post-content .hcn-article-product-caption,
.hcn-single-post .article-main .wp-block-post-content figcaption {
	margin-top: 0.75rem;
	font-size: 13px;
	line-height: 1.55;
	color: #64748b;
	text-align: center;
}

/* 文末内链 */
.hcn-single-post .hcn-article-footer-links {
	margin-top: 48px;
	padding: 28px 32px;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	border-top: 3px solid #f47629;
}

.hcn-single-post .hcn-article-footer-title {
	font-size: 16px;
	font-weight: 700;
	color: #0e345b;
	margin: 0 0 14px;
}

.hcn-single-post .hcn-article-footer-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hcn-single-post .hcn-article-footer-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hcn-single-post .hcn-article-footer-btn:hover {
	transform: translateY(-1px);
}

.hcn-single-post .hcn-article-footer-btn--product {
	background: #0e345b;
	color: #fff;
	box-shadow: 0 4px 14px rgba(14, 52, 91, 0.25);
}

.hcn-single-post .hcn-article-footer-btn--product:hover {
	background: #1a4f82;
	color: #fff;
}

.hcn-single-post .hcn-article-footer-btn--all {
	background: #fff;
	color: #0e345b;
	border: 1px solid #cbd5e1;
}

.hcn-single-post .hcn-article-footer-btn--all:hover {
	background: #f8fafc;
}

.hcn-single-post .hcn-article-footer-btn--cta {
	background: linear-gradient(135deg, #f47629, #ff9a4d);
	color: #fff;
	box-shadow: 0 4px 14px rgba(244, 118, 41, 0.35);
}

.hcn-single-post .hcn-article-footer-btn--cta:hover {
	color: #fff;
}

.hcn-single-post .hcn-article-footer-related {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.hcn-single-post .hcn-article-footer-related li a {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: #1e3a5f;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e2e8f0;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hcn-single-post .hcn-article-footer-related li a::before {
	content: "→";
	flex-shrink: 0;
	color: #f47629;
	font-weight: 700;
}

.hcn-single-post .hcn-article-footer-related li a:hover {
	color: #f47629;
	border-color: rgba(244, 118, 41, 0.35);
	box-shadow: 0 4px 12px rgba(244, 118, 41, 0.1);
}

/* 标签 */
.hcn-single-post .article-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid #ececea;
}

.hcn-single-post .article-tags__label {
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hcn-single-post .article-tags .wp-block-post-terms,
.hcn-single-post .article-tags .taxonomy-post_tag {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.hcn-single-post .article-tags a {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border-radius: 999px;
	background: #f8fafc;
	color: #475569 !important;
	border: 1px solid #e2e8f0;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.hcn-single-post .article-tags a:hover {
	background: #0e345b;
	border-color: #0e345b;
	color: #fff !important;
}

/* 分享 */
.hcn-single-post .share-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid #ececea;
}

.hcn-single-post .share-label {
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-right: 4px;
}

.hcn-single-post .share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 999px;
	background: #f8fafc;
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: all 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.hcn-single-post .share-btn:hover {
	background: #0e345b;
	border-color: #0e345b;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(14, 52, 91, 0.2);
}

/* 侧栏 */
.hcn-single-post .article-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 96px;
}

.hcn-single-post .sidebar-widget {
	background: #ffffff;
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 8px 32px rgba(14, 52, 91, 0.08);
	border: 1px solid rgba(14, 52, 91, 0.06);
}

.hcn-single-post .widget-title {
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid #ececea;
	font-size: 16px;
	font-weight: 700;
	color: #0e345b;
	position: relative;
}

.hcn-single-post .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, #f47629, #ff9a4d);
}

/* 侧栏 CTA */
.hcn-single-sidebar-cta {
	background: linear-gradient(160deg, #0e345b 0%, #1a4f82 100%);
	border-radius: 14px;
	padding: 26px 24px;
	color: #fff;
	box-shadow: 0 12px 36px rgba(14, 52, 91, 0.28);
	position: relative;
	overflow: hidden;
}

.hcn-single-sidebar-cta::before {
	content: "";
	position: absolute;
	top: -30%;
	right: -20%;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(244, 118, 41, 0.2);
	pointer-events: none;
}

.hcn-single-sidebar-cta__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

.hcn-single-sidebar-cta__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
}

.hcn-single-sidebar-cta__desc {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.hcn-single-sidebar-cta__phone {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	margin-bottom: 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	text-decoration: none;
	transition: background 0.2s ease;
}

.hcn-single-sidebar-cta__phone:hover {
	background: rgba(255, 255, 255, 0.16);
}

.hcn-single-sidebar-cta__phone-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}

.hcn-single-sidebar-cta__phone-num {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.04em;
}

.hcn-single-sidebar-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hcn-single-sidebar-cta__btn {
	display: block;
	padding: 11px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hcn-single-sidebar-cta__btn--primary {
	background: linear-gradient(135deg, #f47629, #ff9a4d);
	color: #fff;
	box-shadow: 0 4px 14px rgba(244, 118, 41, 0.4);
}

.hcn-single-sidebar-cta__btn--primary:hover {
	color: #fff;
	transform: translateY(-1px);
}

.hcn-single-sidebar-cta__btn--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.hcn-single-sidebar-cta__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* 相关文章 */
.hcn-single-post .related-posts .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hcn-single-post .related-posts .wp-block-post-template > li {
	list-style: none;
	margin: 0;
}

.hcn-single-post .related-posts .wp-block-post-template > li > .wp-block-group {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 12px;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.hcn-single-post .related-posts .wp-block-post-template > li:hover > .wp-block-group {
	background: #f8fafc;
}

.hcn-single-post .article-sidebar .wp-block-post-featured-image {
	flex-shrink: 0;
	width: 88px !important;
	height: 66px !important;
	max-width: 88px !important;
	max-height: 66px !important;
	overflow: hidden;
	border-radius: 8px;
	margin: 0 !important;
	background: #f1f5f9;
}

.hcn-single-post .article-sidebar .wp-block-post-featured-image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 88px !important;
	max-height: 66px !important;
	min-height: 0 !important;
	object-fit: cover !important;
	border-radius: 8px;
	box-shadow: none !important;
	margin: 0 !important;
}

.hcn-single-post .related-posts .wp-block-post-title a {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	color: #1e3a5f !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hcn-single-post .related-posts .wp-block-post-title a:hover {
	color: #f47629 !important;
}

.hcn-single-post .related-posts .wp-block-post-date {
	font-size: 12px !important;
	color: #94a3b8 !important;
	margin-top: 4px;
}

/* 分类列表 */
.hcn-single-post .article-sidebar .wp-block-categories-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hcn-single-post .article-sidebar .wp-block-categories-list li {
	margin: 0;
}

.hcn-single-post .article-sidebar .wp-block-categories-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: #475569;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.hcn-single-post .article-sidebar .wp-block-categories-list a:hover {
	background: #f8fafc;
	color: #f47629;
}

/* 评论区 */
.hcn-single-comments {
	max-width: 860px;
	margin: 48px auto 0;
	padding: 0 20px;
}

.hcn-single-comments__inner {
	background: #ffffff;
	border-radius: 16px;
	padding: 40px 44px;
	box-shadow: 0 12px 40px rgba(14, 52, 91, 0.08);
	border: 1px solid rgba(14, 52, 91, 0.06);
}

/* 响应式 */
@media (max-width: 1024px) {
	.hcn-single-body .article-content-wrapper {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.hcn-single-post .article-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.hcn-single-sidebar-cta {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.hcn-single-hero__body {
		margin-top: -56px;
		padding: 0 16px;
	}

	.hcn-single-hero__card {
		padding: 28px 22px 22px;
		border-radius: 14px 14px 0 0;
	}

	.hcn-single-body {
		padding: 0 16px;
	}

	.hcn-single-body .article-main {
		padding: 28px 22px 32px;
	}

	.hcn-single-post .article-sidebar {
		grid-template-columns: 1fr;
	}

	.hcn-single-post .article-main .wp-block-post-content {
		font-size: 16px;
		line-height: 1.85;
	}

	.hcn-single-post .article-main .wp-block-post-content img,
	.hcn-single-post .article-main .wp-block-post-content .hcn-article-product-image,
	.hcn-single-post .article-main .wp-block-post-content .hcn-news-lead-img {
		max-height: min(40vh, 280px) !important;
	}

	.hcn-single-comments__inner {
		padding: 28px 22px;
	}
}
