/* ==========================================================================
   解决方案详情页样式
   ========================================================================== */

/* === 顶部图片区域 === */
.solution-image-section {
	position: relative;
	width: 100%;
	background: #000;
}

.solution-hero-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.solution-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* === 页面标题和信息区域 === */
.solution-header-section {
	padding: 40px 0;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
}

.solution-categories {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.category-tag {
	padding: 6px 16px;
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
	color: #1d4ed8;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.category-tag.scene-tag {
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #059669;
}

.solution-page-title {
	font-size: 42px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 24px;
	line-height: 1.2;
}

.solution-page-meta {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

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

.meta-icon {
	font-size: 24px;
	line-height: 1;
}

.meta-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.meta-label {
	font-size: 12px;
	color: #6b7280;
	font-weight: 500;
}

.meta-value {
	font-size: 16px;
	color: #1f2937;
	font-weight: 600;
}

/* === 内容区域 === */
.solution-content-section {
	padding: 60px 0;
	background: #f9fafb;
}

.content-wrapper {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
}

/* 左侧内容 */
.content-left {
	background: #fff;
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-body {
	line-height: 1.8;
	color: #374151;
}

.content-body h2 {
	font-size: 28px;
	font-weight: 700;
	color: #1f2937;
	margin-top: 40px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e5e7eb;
}

.content-body h2:first-child {
	margin-top: 0;
}

.content-body h3 {
	font-size: 22px;
	font-weight: 600;
	color: #1f2937;
	margin-top: 32px;
	margin-bottom: 12px;
}

.content-body p {
	margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
	margin-bottom: 20px;
	padding-left: 24px;
}

.content-body li {
	margin-bottom: 8px;
}

.content-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 24px 0;
}

.no-content {
	text-align: center;
	padding: 60px 20px;
	color: #6b7280;
}

/* 右侧信息栏 */
.content-right {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.info-card {
	background: #fff;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e5e7eb;
}

.info-list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px 16px;
}

.info-list dt {
	font-size: 13px;
	color: #6b7280;
	font-weight: 500;
}

.info-list dd {
	font-size: 15px;
	color: #1f2937;
	font-weight: 600;
}

.back-to-list {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.back-to-list:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.back-to-list svg {
	transition: transform 0.3s ease;
}

.back-to-list:hover svg {
	transform: translateX(-4px);
}

/* === 相关案例区域 === */
.solution-related-section {
	padding: 60px 0;
	background: #fff;
}

.related-title {
	font-size: 32px;
	font-weight: 700;
	color: #1f2937;
	text-align: center;
	margin-bottom: 40px;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* === 响应式 === */
@media (max-width: 1024px) {
	.content-wrapper {
		grid-template-columns: 1fr;
	}

	.content-right {
		order: -1;
	}

	.info-card {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}

	.info-card-title {
		grid-column: 1 / -1;
	}

	.related-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.solution-page-title {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.solution-header-section {
		padding: 24px 0;
	}

	.solution-page-title {
		font-size: 28px;
	}

	.solution-page-meta {
		flex-direction: column;
		gap: 16px;
	}

	.solution-content-section {
		padding: 40px 0;
	}

	.content-left {
		padding: 24px;
	}

	.content-body h2 {
		font-size: 24px;
	}

	.content-body h3 {
		font-size: 20px;
	}

	.info-card {
		grid-template-columns: 1fr;
	}

	.solution-related-section {
		padding: 40px 0;
	}

	.related-title {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.related-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 480px) {
	.solution-hero-image {
		aspect-ratio: 4/3;
	}

	.solution-page-title {
		font-size: 24px;
	}

	.content-left {
		padding: 16px;
	}

	.meta-item {
		font-size: 14px;
	}

	.back-to-list {
		width: 100%;
		justify-content: center;
	}
}

/* === 动画效果 === */
@media (prefers-reduced-motion: no-preference) {
	.back-to-list {
		transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.category-tag {
		transition: transform 0.2s ease;
	}

	.category-tag:hover {
		transform: translateY(-2px);
	}
}

/* ==========================================================================
   老内核兜底：不支持 aspect-ratio（Chromium 79–87 档 / Safari 12.1–14）。
   ========================================================================== */
@supports not (aspect-ratio: 1 / 1) {
	.solution-hero-image { height: 0; padding-top: 56.25%; /* 9 / 16 */ }
	.solution-hero-image img { position: absolute; top: 0; left: 0; height: 100%; }

	@media (max-width: 480px) {
		.solution-hero-image { padding-top: 75%; /* 3 / 4，同步手机档比例 */ }
	}
}
