/**
 * 安全洞察与深度实践 - 详情页样式
 * Insights Detail Page Styles
 */

/* ========= 面包屑导航（Banner 内）========= */
.breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
	font-size: 14px;
}

.breadcrumb-item {
	color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
	color: #36c958;
}

.breadcrumb-item.active {
	color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
	content: "/";
	color: rgba(255, 255, 255, 0.4);
	padding: 0 8px;
}

/* ========= 文章头部（Banner 内）========= */
/* 分类标签 */
.article-category {
	display: inline-block;
}

.category-badge {
	display: inline-block;
	padding: 8px 18px;
	background: linear-gradient(135deg, rgba(54, 201, 88, 0.2), rgba(45, 168, 73, 0.15));
	border: 1px solid rgba(54, 201, 88, 0.4);
	border-radius: 2px;
	color: #36c958;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	box-shadow: 0 4px 12px rgba(54, 201, 88, 0.15);
}

/* 文章标题 - 使用标准 Banner 标题样式 */
.hs-title-1a#article-title {
	margin-bottom: 20px;
}

/* 文章英文标题 - 使用标准 Banner 副标题样式 */
.hs-subtitle#article-title-en {
	margin-bottom: 30px;
}

/* 文章元信息 */
.article-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	color: rgba(255, 255, 255, 0.7);
	font-size: 15px;
	padding: 16px 24px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	backdrop-filter: blur(10px);
	display: inline-flex;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.meta-icon {
	width: 18px;
	height: 18px;
	opacity: 0.8;
}

.meta-divider {
	color: rgba(255, 255, 255, 0.3);
	font-weight: 300;
}

/* ========= 文章内容区域 ========= */
.article-body {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 2px;
	padding: 50px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
}

/* 特色图片 */
.article-featured-image {
	border-radius: 2px;
	overflow: hidden;
}

.article-featured-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-featured-image:hover img {
	transform: scale(1.02);
}

/* 文章文本内容 */
.article-text {
	font-family: "Noto Sans SC", "DM Sans", sans-serif;
}

.article-text h3 {
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	margin-top: 40px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(54, 201, 88, 0.2);
}

.article-text h3:first-child {
	margin-top: 0;
}

.article-text h4 {
	font-size: 20px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	margin-top: 30px;
	margin-bottom: 16px;
}

.article-text p {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 20px;
}

.article-text ul,
.article-text ol {
	padding-left: 24px;
	margin-bottom: 24px;
}

.article-text li {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 12px;
}

.article-text li strong {
	color: #36c958;
	font-weight: 600;
}

/* 引用块 */
.article-quote {
	position: relative;
	padding: 30px 40px;
	margin: 40px 0;
	background: linear-gradient(135deg, rgba(54, 201, 88, 0.08), rgba(45, 168, 73, 0.08));
	border-left: 4px solid #36c958;
	border-radius: 0 2px 2px 0;
	font-size: 18px;
	font-style: italic;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.article-quote cite {
	display: block;
	margin-top: 16px;
	font-size: 14px;
	font-style: normal;
	color: rgba(255, 255, 255, 0.6);
	text-align: right;
}

/* 图片网格 */
.article-image-grid {
	margin: 40px 0;
}

.article-image-grid img {
	width: 100%;
	height: auto;
	border-radius: 2px;
	transition: transform 0.3s ease;
}

.article-image-grid img:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.image-caption {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	text-align: center;
	margin-top: 12px;
	font-style: italic;
}

/* 文本链接 */
.article-text a.text-link {
	color: #36c958;
	text-decoration: none;
	border-bottom: 1px solid rgba(54, 201, 88, 0.3);
	transition: all 0.3s ease;
}

.article-text a.text-link:hover {
	color: #2da849;
	border-bottom-color: #2da849;
}

/* ========= 文章页脚 ========= */
.article-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 40px;
}

/* 标签区域 */
.article-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.tags-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
}

.tags-label i {
	width: 18px;
	height: 18px;
}

.tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
	background: rgba(54, 201, 88, 0.1);
	border-color: rgba(54, 201, 88, 0.3);
	color: #36c958;
	transform: translateY(-2px);
}

/* 分享区域 */
.article-share {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.share-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
}

.share-label i {
	width: 18px;
	height: 18px;
}

.share-buttons {
	display: flex;
	gap: 8px;
}

.share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.8);
	font-size: 18px;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 微信绿色 */
.share-btn:has(.fa-weixin):hover {
	background: #09BB07;
	border-color: #09BB07;
	color: #ffffff;
}

/* 微博橙色 */
.share-btn:has(.fa-weibo):hover {
	background: #E6162D;
	border-color: #E6162D;
	color: #ffffff;
}

/* LinkedIn蓝色 */
.share-btn:has(.fa-linkedin-in):hover {
	background: #0A66C2;
	border-color: #0A66C2;
	color: #ffffff;
}

/* ========= 相关文章区域 ========= */
#related-articles {
	background: #1a1a1a;
}

/* Note: insight-card styles are in css/insights.css */

/* ========= 返回按钮 ========= */
.btn-gradient {
	background: linear-gradient(135deg, #36c958, #2da849);
	border: none;
	color: #ffffff;
	font-weight: 600;
	padding: 14px 32px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gradient:hover {
	background: linear-gradient(135deg, #2da849, #248a3d);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(54, 201, 88, 0.3);
	color: #ffffff;
}

.btn-gradient i {
	width: 20px;
	height: 20px;
}

/* ========= 响应式设计 ========= */
@media (max-width: 991px) {
	.article-meta {
		font-size: 14px;
		padding: 14px 20px;
		gap: 16px;
	}

	.meta-icon {
		width: 16px;
		height: 16px;
	}

	.article-body {
		padding: 40px 30px;
	}

	.article-text h3 {
		font-size: 22px;
	}

	.article-text h4 {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.breadcrumb {
		font-size: 12px;
	}

	.category-badge {
		padding: 6px 14px;
		font-size: 12px;
	}

	.article-meta {
		font-size: 13px;
		gap: 12px;
		padding: 12px 18px;
	}

	.meta-icon {
		width: 14px;
		height: 14px;
	}

	.article-body {
		padding: 30px 20px;
		border-radius: 2px;
	}

	.article-text h3 {
		font-size: 20px;
		margin-top: 30px;
	}

	.article-text h4 {
		font-size: 17px;
	}

	.article-text p,
	.article-text li {
		font-size: 15px;
	}

	.article-quote {
		padding: 20px 24px;
		font-size: 16px;
	}

	.article-footer {
		padding-top: 30px;
	}

	.article-share {
		justify-content: flex-start;
		margin-top: 20px;
	}

	.insight-card-content {
		padding: 20px;
	}

	.insight-card-title {
		font-size: 16px;
		min-height: auto;
	}
}

/* ========= 深色模式专属 ========= */
.dark-mode .article-body {
	background: rgba(255, 255, 255, 0.03);
}

.dark-mode .article-text h3 {
	border-bottom-color: rgba(54, 201, 88, 0.2);
}

.dark-mode .article-footer {
	border-top-color: rgba(255, 255, 255, 0.1);
}

/* ========= 加载动画 ========= */
@keyframes fadeInContent {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.article-body {
	animation: fadeInContent 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========= 面包屑标签导航（新版） ========= */
.breadcrumb-tag-nav {
	display: flex;
	justify-content: center;
	align-items: center;
}

.breadcrumb-tag-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 2px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.breadcrumb-tag-item {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	letter-spacing: 0.3px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 2px 4px;
	border-radius: 2px;
}

.breadcrumb-tag-item:not(.active):hover {
	color: #36c958;
	background: rgba(54, 201, 88, 0.08);
}

.breadcrumb-tag-item.active {
	color: rgba(255, 255, 255, 0.95);
	font-weight: 600;
}

.breadcrumb-tag-separator {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.25);
	font-weight: 300;
	user-select: none;
}

/* 响应式：移动端 */
@media (max-width: 767px) {
	.breadcrumb-tag-wrapper {
		padding: 6px 12px;
		gap: 6px;
	}

	.breadcrumb-tag-item {
		font-size: 11px;
	}

	.breadcrumb-tag-separator {
		font-size: 10px;
	}
}

/* ========= 文章详情标题（精致版） ========= */
.article-detail-title {
	font-size: 36px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.01em !important;
	color: #ffffff !important;
	margin-bottom: 20px !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.article-detail-title span {
	background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

/* 响应式：平板端 */
@media (max-width: 1024px) {
	.article-detail-title {
		font-size: 32px !important;
	}
}

/* 响应式：移动端 */
@media (max-width: 767px) {
	.article-detail-title {
		font-size: 26px !important;
		line-height: 1.4 !important;
	}
}

/* 小屏手机 */
@media (max-width: 575px) {
	.article-detail-title {
		font-size: 24px !important;
	}
}

/* ========= 相关推荐区域标题与按钮布局 ========= */
.related-title-wrapper h2 {
	text-align: left !important;
}

.related-title-wrapper h3 {
	text-align: left !important;
}

/* 确保按钮在移动端换行显示 */
@media (max-width: 767px) {
	.related-title-wrapper {
		width: 100%;
		margin-bottom: 20px;
	}

	#related-articles .link-hover-anim {
		width: 100%;
		display: block;
		text-align: center;
	}
}
