/**
 * 解决方案详情页样式
 * Editorial/Magazine风格设计
 */

/* ==================== Hero区域 ==================== */
.jjfa-detail-hero {
	position: relative;
	height: 50vh;
	min-height: 400px;
	overflow: hidden;
}

.jjfa-detail-hero-bg {
	position: absolute;
	inset: 0;
}

.jjfa-detail-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jjfa-detail-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(10, 22, 40, 0.85) 0%,
		rgba(26, 45, 74, 0.75) 50%,
		rgba(10, 22, 40, 0.6) 100%
	);
}

/* 对角装饰 */
.jjfa-detail-hero::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	z-index: 1;
}

.jjfa-detail-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--base-color) 0%, var(--accent-color) 50%, transparent 100%);
	z-index: 1;
}

.jjfa-detail-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	padding: 0 var(--cbasta);
	max-width: 1400px;
	margin: 0 auto;
}

/* 面包屑导航 */
.jjfa-detail-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
}

.jjfa-detail-breadcrumb a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.3s;
}

.jjfa-detail-breadcrumb a:hover {
	color: #fff;
}

.jjfa-detail-breadcrumb span {
	color: rgba(255, 255, 255, 0.4);
}

.jjfa-detail-breadcrumb .current {
	color: rgba(255, 255, 255, 0.9);
}

.jjfa-detail-title {
	font-family: "Noto Sans SC", sans-serif;
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
	max-width: 800px;
}

.jjfa-detail-subtitle {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
	max-width: 600px;
	font-weight: 400;
}

/* 装饰线条 */
.jjfa-detail-title-line {
	display: inline-block;
	width: 80px;
	height: 4px;
	background: var(--base-color);
	margin-bottom: 1.5rem;
}

/* ==================== 内容区域 ==================== */
.jjfa-detail-content {
	padding: 5rem var(--cbasta) 6rem;
	max-width: 1200px;
	margin: 0 auto;
}

.jjfa-detail-content-wrapper {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 4rem;
	align-items: start;
}

/* 主内容 */
.jjfa-detail-main {
	min-width: 0;
}

.jjfa-detail-section {
	margin-bottom: 3rem;
}

.jjfa-detail-section:last-child {
	margin-bottom: 0;
}

.jjfa-detail-section-title {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.jjfa-detail-section-title::before {
	content: '';
	width: 4px;
	height: 1.5rem;
	background: var(--base-color);
	border-radius: 2px;
}

.jjfa-detail-section-title h2 {
	font-family: "Noto Sans SC", sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0;
}

/* 富文本内容样式 */
.jjfa-detail-rich {
	font-size: 1rem;
	line-height: 1.9;
	color: #444;
}

.jjfa-detail-rich p {
	margin-bottom: 1.25rem;
}

.jjfa-detail-rich h2,
.jjfa-detail-rich h3,
.jjfa-detail-rich h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #1a1a1a;
	font-weight: 600;
}

.jjfa-detail-rich h2 {
	font-size: 1.5rem;
}

.jjfa-detail-rich h3 {
	font-size: 1.25rem;
}

.jjfa-detail-rich ul,
.jjfa-detail-rich ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.jjfa-detail-rich li {
	margin-bottom: 0.5rem;
}

.jjfa-detail-rich img {
	max-width: 100%;
	height: auto;
	border-radius: 0.75rem;
	margin: 1.5rem 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jjfa-detail-rich table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: 0.9375rem;
}

.jjfa-detail-rich th,
.jjfa-detail-rich td {
	padding: 0.875rem 1rem;
	border: 1px solid #e8e8e8;
	text-align: left;
}

.jjfa-detail-rich th {
	background: #f8f8f8;
	font-weight: 600;
	color: #333;
}

.jjfa-detail-rich tr:hover td {
	background: #fafafa;
}

.jjfa-detail-rich blockquote {
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
	border-left: 4px solid var(--base-color);
	border-radius: 0 0.5rem 0.5rem 0;
	font-style: italic;
	color: #555;
}

/* 侧边栏 */
.jjfa-detail-sidebar {
	position: sticky;
	top: 120px;
}

.jjfa-detail-sidebar-card {
	background: #fff;
	border-radius: 1rem;
	padding: 1.75rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	margin-bottom: 1.5rem;
}

.jjfa-detail-sidebar-card:last-child {
	margin-bottom: 0;
}

.jjfa-detail-sidebar-title {
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.jjfa-detail-sidebar-title::before {
	content: '';
	width: 8px;
	height: 8px;
	background: var(--base-color);
	border-radius: 2px;
}

/* 快速导航 */
.jjfa-detail-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.jjfa-detail-nav-item {
	margin-bottom: 0.5rem;
}

.jjfa-detail-nav-item a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 0.875rem;
	color: #666;
	font-size: 0.9375rem;
	text-decoration: none;
	border-radius: 0.5rem;
	transition: all 0.3s;
}

.jjfa-detail-nav-item a::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #ddd;
	border-radius: 50%;
	transition: background 0.3s;
}

.jjfa-detail-nav-item a:hover {
	color: var(--base-color);
	background: rgba(44, 48, 129, 0.05);
}

.jjfa-detail-nav-item a:hover::before {
	background: var(--base-color);
}

.jjfa-detail-nav-item.active a {
	color: var(--base-color);
	background: rgba(44, 48, 129, 0.08);
	font-weight: 500;
}

.jjfa-detail-nav-item.active a::before {
	background: var(--base-color);
}

/* 联系信息 */
.jjfa-detail-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.jjfa-detail-contact-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.jjfa-detail-contact-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(44, 48, 129, 0.08);
	border-radius: 0.5rem;
	color: var(--base-color);
}

.jjfa-detail-contact-icon svg {
	width: 20px;
	height: 20px;
}

.jjfa-detail-contact-info {
	flex: 1;
}

.jjfa-detail-contact-label {
	font-size: 0.75rem;
	color: #999;
	margin-bottom: 0.25rem;
}

.jjfa-detail-contact-value {
	font-size: 0.9375rem;
	color: #333;
	font-weight: 500;
}

/* ==================== 服务案例区域 ==================== */
.jjfa-detail-cases {
	background: #f8f9fa;
	padding: 5rem var(--cbasta);
}

.jjfa-detail-cases-inner {
	max-width: 1400px;
	margin: 0 auto;
}

.jjfa-detail-cases-header {
	text-align: center;
	margin-bottom: 3rem;
}

.jjfa-detail-cases-title {
	font-family: "Noto Sans SC", sans-serif;
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 0.75rem;
}

.jjfa-detail-cases-subtitle {
	font-size: 1rem;
	color: #666;
}

.jjfa-detail-cases-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.jjfa-detail-case-card {
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jjfa-detail-case-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.jjfa-detail-case-img {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
}

.jjfa-detail-case-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.jjfa-detail-case-card:hover .jjfa-detail-case-img img {
	transform: scale(1.08);
}

.jjfa-detail-case-info {
	padding: 1rem 1.25rem;
}

.jjfa-detail-case-name {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #333;
	line-height: 1.4;
}

/* ==================== 响应式 ==================== */
@media screen and (max-width: 1200px) {
	.jjfa-detail-content-wrapper {
		grid-template-columns: 1fr 240px;
		gap: 3rem;
	}

	.jjfa-detail-cases-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 960px) {
	.jjfa-detail-hero {
		height: 40vh;
		min-height: 300px;
	}

	.jjfa-detail-content {
		padding: 3rem var(--cbasta) 4rem;
	}

	.jjfa-detail-content-wrapper {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.jjfa-detail-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.jjfa-detail-sidebar-card {
		margin-bottom: 0;
	}

	.jjfa-detail-cases {
		padding: 3rem var(--cbasta);
	}

	.jjfa-detail-cases-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

@media screen and (max-width: 640px) {
	.jjfa-detail-hero {
		height: 35vh;
		min-height: 250px;
	}

	.jjfa-detail-title {
		font-size: 1.75rem;
	}

	.jjfa-detail-subtitle {
		font-size: 1rem;
	}

	.jjfa-detail-breadcrumb {
		font-size: 0.75rem;
	}

	.jjfa-detail-content {
		padding: 2rem var(--cbasta) 3rem;
	}

	.jjfa-detail-section-title h2 {
		font-size: 1.25rem;
	}

	.jjfa-detail-rich {
		font-size: 0.9375rem;
		line-height: 1.8;
	}

	.jjfa-detail-sidebar {
		grid-template-columns: 1fr;
	}

	.jjfa-detail-cases {
		padding: 2rem var(--cbasta);
	}

	.jjfa-detail-cases-title {
		font-size: 1.5rem;
	}

	.jjfa-detail-cases-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.jjfa-detail-case-info {
		padding: 0.75rem 1rem;
	}

	.jjfa-detail-case-name {
		font-size: 0.875rem;
	}
}