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

/* ==================== Hero区域 ==================== */
.jjfa-hero {
	position: relative;
	height: 45vh;
	min-height: 380px;
	overflow: hidden;
	background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0d1929 100%);
}

.jjfa-hero-bg {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	mix-blend-mode: luminosity;
}

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

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

.jjfa-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, var(--base-color) 0%, transparent 80%);
}

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

.jjfa-hero-title {
	font-family: "Noto Sans SC", sans-serif;
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

.jjfa-hero-title span {
	display: inline-block;
	position: relative;
}

.jjfa-hero-title span::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 60px;
	height: 4px;
	background: var(--base-color);
}

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

/* 顶部导航标签 */
.jjfa-hero-tabs {
	display: flex;
	gap: 0.75rem;
	margin-top: 2.5rem;
	flex-wrap: wrap;
}

.jjfa-hero-tab {
	display: flex;
	align-items: center;
	padding: 0.875rem 1.75rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.jjfa-hero-tab::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--base-color);
	opacity: 0;
	transition: opacity 0.4s;
}

.jjfa-hero-tab:hover::before,
.jjfa-hero-tab.active::before {
	opacity: 1;
}

.jjfa-hero-tab:hover,
.jjfa-hero-tab.active {
	color: #fff;
	border-color: var(--base-color);
	transform: translateY(-2px);
}

.jjfa-hero-tab span {
	position: relative;
	z-index: 1;
}

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

/* 解决方案列表 */
.jjfa-solutions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4rem;
}

/* 单个解决方案卡片 */
.jjfa-solution-card {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 0;
	align-items: stretch;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jjfa-solution-card.visible {
	opacity: 1;
	transform: translateY(0);
}

/* 反向布局 */
.jjfa-solution-card:nth-child(even) {
	grid-template-columns: 1.2fr 1fr;
}

.jjfa-solution-card:nth-child(even) .jjfa-solution-visual {
	order: 2;
	border-radius: 0 1rem 1rem 0;
}

.jjfa-solution-card:nth-child(even) .jjfa-solution-info {
	order: 1;
	border-radius: 1rem 0 0 1rem;
}

/* 视觉区域 */
.jjfa-solution-visual {
	position: relative;
	overflow: hidden;
	border-radius: 1rem 0 0 1rem;
	aspect-ratio: 4/3;
}

.jjfa-solution-visual::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(10, 22, 40, 0.4) 100%);
	opacity: 0;
	transition: opacity 0.4s;
}

.jjfa-solution-card:hover .jjfa-solution-visual::before {
	opacity: 1;
}

.jjfa-solution-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.jjfa-solution-card:hover .jjfa-solution-visual img {
	transform: scale(1.08);
}

/* 卡片编号 */
.jjfa-solution-number {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	font-family: "DM Mono", "Courier New", monospace;
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	background: rgba(10, 22, 40, 0.7);
	padding: 0.5rem 0.875rem;
	letter-spacing: 0.15em;
	z-index: 2;
}

/* 斜角装饰边框 */
.jjfa-solution-visual::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--base-color);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jjfa-solution-card:hover .jjfa-solution-visual::after {
	transform: scaleX(1);
}

/* 信息区域 */
.jjfa-solution-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.5rem 3rem;
	background: #fff;
	position: relative;
	overflow: hidden;
	border-radius: 0 1rem 1rem 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jjfa-solution-card:nth-child(even) .jjfa-solution-info {
	background: #fff;
}

/* 信息区装饰线条 */
.jjfa-solution-info::before {
	content: '';
	position: absolute;
	top: 1rem;
	left: 0;
	width: 1px;
	height: calc(100% - 2rem);
	background: linear-gradient(180deg, var(--base-color) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.jjfa-solution-card:nth-child(even) .jjfa-solution-info::before {
	left: auto;
	right: 0;
}

/* 大号编号装饰 */
.jjfa-solution-info-number {
	font-family: "DM Mono", monospace;
	font-size: 6rem;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.04);
	line-height: 1;
	position: absolute;
	top: 0;
	right: 1rem;
	user-select: none;
}

.jjfa-solution-card:nth-child(even) .jjfa-solution-info-number {
	right: auto;
	left: 1rem;
}

.jjfa-solution-category {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--base-color);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.jjfa-solution-category::before {
	content: '';
	width: 12px;
	height: 2px;
	background: var(--base-color);
}

.jjfa-solution-title {
	font-family: "Noto Sans SC", sans-serif;
	font-size: 1.75rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
	margin-bottom: 1.25rem;
	transition: color 0.3s;
}

.jjfa-solution-card:hover .jjfa-solution-title {
	color: var(--base-color);
}

.jjfa-solution-desc {
	font-size: 1rem;
	color: #666;
	line-height: 1.75;
	margin-bottom: 1.75rem;
	max-width: 480px;
}

.jjfa-solution-tags {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.jjfa-solution-tag {
	font-size: 0.75rem;
	color: #888;
	background: rgba(0, 0, 0, 0.05);
	padding: 0.375rem 0.75rem;
	border-radius: 2px;
	letter-spacing: 0.02em;
}

/* 查看详情按钮 */
.jjfa-solution-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #1a1a1a;
	text-decoration: none;
	position: relative;
	padding: 0.75rem 0;
	transition: color 0.3s;
}

.jjfa-solution-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: #1a1a1a;
	transform: scaleX(0.3);
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.jjfa-solution-link:hover {
	color: var(--base-color);
}

.jjfa-solution-link:hover::after {
	transform: scaleX(1);
	background: var(--base-color);
}

.jjfa-solution-link svg {
	width: 16px;
	height: 16px;
	transition: transform 0.3s;
}

.jjfa-solution-link:hover svg {
	transform: translateX(4px);
}

/* ==================== 分页 ==================== */
.jjfa-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.jjfa-pagination-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #666;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.3s;
}

.jjfa-pagination-item:hover {
	color: var(--base-color);
	border-color: var(--base-color);
}

.jjfa-pagination-item.active {
	color: #fff;
	background: var(--base-color);
	border-color: var(--base-color);
}

/* ==================== 响应式 ==================== */
@media screen and (max-width: 960px) {
	.jjfa-hero {
		height: 35vh;
		min-height: 280px;
	}

	.jjfa-hero-tabs {
		margin-top: 1.5rem;
	}

	.jjfa-hero-tab {
		padding: 0.75rem 1.25rem;
		font-size: 0.875rem;
	}

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

	.jjfa-solutions {
		gap: 2.5rem;
	}

	.jjfa-solution-card,
	.jjfa-solution-card:nth-child(even) {
		grid-template-columns: 1fr;
	}

	.jjfa-solution-card:nth-child(even) .jjfa-solution-visual,
	.jjfa-solution-card:nth-child(even) .jjfa-solution-info {
		order: unset;
	}

	.jjfa-solution-visual {
		aspect-ratio: 16/9;
		border-radius: 1rem 1rem 0 0;
	}

	.jjfa-solution-card:nth-child(even) .jjfa-solution-visual {
		border-radius: 1rem 1rem 0 0;
	}

	.jjfa-solution-info {
		padding: 1.75rem 1.5rem;
		border-radius: 0 0 1rem 1rem;
	}

	.jjfa-solution-card:nth-child(even) .jjfa-solution-info {
		border-radius: 0 0 1rem 1rem;
	}

	.jjfa-solution-info::before {
		display: none;
	}

	.jjfa-solution-info-number {
		font-size: 4rem;
		opacity: 0.03;
	}

	.jjfa-solution-title {
		font-size: 1.375rem;
	}
}

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

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

	.jjfa-hero-title span::after {
		width: 40px;
		height: 3px;
		bottom: -6px;
	}

	.jjfa-hero-subtitle {
		font-size: 0.9375rem;
	}

	.jjfa-hero-tabs {
		gap: 0.5rem;
	}

	.jjfa-hero-tab {
		padding: 0.625rem 1rem;
		font-size: 0.8125rem;
		clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
	}

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

	.jjfa-solutions {
		gap: 2rem;
	}

	.jjfa-solution-visual {
		aspect-ratio: 4/3;
	}

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

	.jjfa-solution-title {
		font-size: 1.25rem;
		margin-bottom: 0.75rem;
	}

	.jjfa-solution-desc {
		font-size: 0.9375rem;
		line-height: 1.65;
		margin-bottom: 1rem;
	}

	.jjfa-solution-tags {
		display: none;
	}

	.jjfa-pagination {
		margin-top: 2.5rem;
		padding-top: 2rem;
	}

	.jjfa-pagination-item {
		min-width: 36px;
		height: 36px;
		font-size: 0.8125rem;
	}
}