/* MES页面样式 */
.content {
	background-color: #fff;
	position: relative;
	width: 100%;
}

/* 确保 footer 撑满整个宽度 */
.footer {
	width: 100% !important;
	left: 0 !important;
	position: relative !important;
}

.detail_content {
	padding-top: 0.1rem;
}

.top-content {
	width: 100%;
	height: 5rem;
	background-color: #d8d8d8;
	background-image: url('../img/plan/banner.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.top-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
}

.header-text {
	position: relative;
	z-index: 1;
	color: #fff;
}

.header-text h1 {
	font-size: 0.64rem;
	font-weight: bold;
	margin-bottom: 0.2rem;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.separator {
	width: 0.8rem;
	height: 4px;
	background-color: #fff;
	margin: 0.2rem auto;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-text p {
	font-size: 0.28rem;
	margin-top: 0.2rem;
	opacity: 0.95;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.left_menu_box {
	width: 3.24rem;
	position: sticky;
	top: 1.5rem;
}

.left_menu_box .active_bg {
	display: none !important;
	visibility: hidden !important;
	position: absolute;
	z-index: 2;
	height: 0.5rem;
	background-color: #deedff;
	left: 0;
	top: 0.35rem;
	width: 100%;
	border-right: 4px solid #4f9bf9;
	transition: top 0.1s;
}

.left_menu {
	padding-left: 1.3rem;
	position: relative;
	z-index: 2;
	margin-top: 0.35rem;
}

.left_menu li {
	height: 0.5rem;
	line-height: 0.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
}

.left_menu li a {
	color: #353d4b;
	font-size: 0.18rem;
}

.left_menu li.active a {
	color: #4f9bf9;
}

/* 强制所有菜单项文字颜色保持一致 */
.left_menu li a {
	color: #353d4b !important;
}

.left_menu li.active a {
	color: #353d4b !important;
}

.right_content {
	width: calc(100% - 3.24rem);
	padding-right: 1.5rem;
	padding-bottom: 0.2rem;
	border-left: 1px solid #eee;
}

.right_content .right_box {
	margin-bottom: 0.6rem;
}

.right_content .box_title {
	font-size: 0.52rem;
	line-height: 0.8rem;
	padding-left: 0.55rem;
	position: relative;
}

.right_content .box_title.bor {
	border-top: 1px solid #eee;
}

.right_content .box_title .top_line {
	width: 0.8rem;
	border-top: 4px solid #4f9bf9;
	position: absolute;
	top: 0;
	left: 0.55rem;
}

.right_content .box_content {
	padding-left: 0.55rem;
	font-size: 0.14rem;
}

.right_content .box_content p {
	font-size: 0.22rem;
	line-height: 1.8;
	text-align: justify;
}

/* 方案概述左右布局 */
.overview-section {
	display: flex;
	gap: 0.6rem;
	margin-bottom: 0.4rem;
	align-items: flex-start;
}

.overview-text {
	flex: 1;
}

.overview-text p {
	margin-bottom: 0.2rem;
}

.ai-features-row {
	display: flex;
	gap: 0.4rem;
	margin-top: 0.3rem;
	align-items: flex-start;
}

.ai-features-row p {
	flex: 1;
	margin-top: 0;
}

.ai-features-images {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.ai-features-images img {
	width: 3rem;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: zoom-in;
}

.ai-features-images img:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.overview-image {
	flex: 0 0 45%;
}

.overview-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	cursor: zoom-in;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-image img:first-child {
	margin-bottom: 0.2rem;
}

.overview-image img:hover {
	transform: scale(1.02);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ai-features-images {
	display: flex;
	gap: 0.2rem;
	margin-top: 0.2rem;
}

.ai-features-images img {
	flex: 1;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: zoom-in;
}

.ai-features-images img:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 图片放大弹窗 */
.image-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	z-index: 9999;
	text-align: center;
	cursor: pointer;
}

.image-lightbox.active {
	display: flex;
	justify-content: center;
	align-items: center;
}

.image-lightbox img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	transform-origin: center center;
	transition: transform 0.1s ease-out;
	cursor: grab;
	user-select: none;
}

.image-lightbox img:active {
	cursor: grabbing;
}

.image-lightbox-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #333;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10000;
	transition: color 0.3s ease;
}

.image-lightbox-close:hover {
	color: #4f9bf9;
}

.image-lightbox-info {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	border-radius: 20px;
	padding: 12px 24px;
	border-radius: 20px;
	font-size: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	pointer-events: none;
	user-select: none;
}

.zoom-level {
	font-size: 20px;
	font-weight: bold;
	color: #4f9bf9;
}

.zoom-hint {
	font-size: 12px;
	color: #ccc;
}

.manufacturing-model {
	margin: 0.6rem 0;
	text-align: center;
}

.manufacturing-model img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 轮播样式 */
.carousel {
	display: flex;
	gap: 0.4rem;
	margin: 0.6rem 0;
	overflow-x: auto;
	padding-bottom: 0.2rem;
}

.carousel-item {
	flex: 0 0 calc(25% - 0.3rem);
	min-width: 3rem;
	height: 3rem;
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carousel-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

.circle-container {
	position: relative;
	z-index: 2;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.2rem;
}

.inner-circle {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
}

.carousel-item p {
	position: relative;
	z-index: 2;
	color: #fff;
	text-align: center;
	margin: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-item p:first-child {
	font-weight: 600;
}

/* 桌面端 - 缩小卡片描述文字字号并增加左右边距 */
@media (min-width: 769px) {
	.carousel-item {
		padding: 0 0.3rem !important;
	}

	.carousel-item p:last-child {
		font-size: 0.18rem !important;
		line-height: 1.4 !important;
	}
}

/* 前后对比 */
.before-after {
	display: flex;
	gap: 0.6rem;
	margin: 0.8rem 0;
}

.before-after .section {
	flex: 1;
	padding: 0.4rem;
	border-radius: 8px;
}

.before-after .section.before {
	background-color: #e8f5e9;
	border-left: 4px solid #4caf50;
}

.before-after .section.after {
	background-color: #ffebee;
	border-left: 4px solid #f44336;
}

.before-after h3 {
	font-size: 0.28rem;
	font-weight: bold;
	margin-bottom: 0.3rem;
	color: #333;
}

.before-after ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.before-after li {
	font-size: 0.2rem;
	line-height: 1.8;
	padding: 0.1rem 0;
	color: #555;
}

.before-after li span {
	font-weight: bold;
	margin-right: 0.1rem;
}

/* 核心优势 */
.core-advantages {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.4rem;
	margin: 0.6rem 0;
}

.core-advantages > div {
	background: #fff;
	padding: 0.4rem;
	border-radius: 8px;
	border: 1px solid #e8e8e8;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.core-advantages > div:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	border-color: #4f9bf9;
}

.core-advantages h3 {
	font-size: 0.26rem;
	font-weight: bold;
	color: #4f9bf9;
	margin-bottom: 0.2rem;
}

.core-advantages p {
	font-size: 0.18rem;
	line-height: 1.6;
	color: #666;
}

/* 相关产品 */
.product {
	background-color: #f8f9fa;
	padding: 0.8rem 0;
	margin-top: 0.8rem;
}

.product h2 {
	text-align: center;
	font-size: 0.48rem;
	color: #333;
	margin-bottom: 0.2rem;
}

.product > p {
	text-align: center;
	font-size: 0.22rem;
	color: #666;
	margin-bottom: 0.6rem;
}

.product-container {
	max-width: 16rem;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.4rem;
	padding: 0 1rem;
}

.product-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.product-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-item a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.product-item img {
	width: 100%;
	height: 2rem;
	object-fit: cover;
}

.product-item h3 {
	padding: 0.3rem;
	font-size: 0.24rem;
	font-weight: bold;
	color: #333;
	text-align: center;
	margin: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
	.left_menu_box {
		display: none;
	}

	.right_content {
		width: 100%;
		border: 0;
		padding-right: 0.3rem;
		padding-left: 0.3rem;
	}

	.right_content .box_title {
		font-size: 0.32rem;
		line-height: 0.5rem;
		padding-left: 0;
	}

	.right_content .box_title .top_line {
		left: 0;
	}

	.right_content .box_content {
		font-size: 0.16rem;
		padding-left: 0;
	}

	.right_content .box_content p {
		font-size: 0.18rem;
	}

	.overview-section {
		flex-direction: column;
	}

	.overview-image {
		flex: 0 0 100%;
		width: 100%;
		margin-top: 0.3rem;
	}

	.ai-features-images {
		flex-direction: column;
		gap: 0.15rem;
		width: 100%;
	}

	.ai-features-images img {
		width: 100%;
	}

	.top-content {
		height: 4rem;
	}

	.header-text h1 {
		font-size: 0.48rem;
	}

	.header-text p {
		font-size: 0.22rem;
	}

	.separator {
		width: 0.5rem;
	}

	.manufacturing-model {
		margin: 0.4rem 0;
	}

	.carousel {
		flex-wrap: wrap;
		gap: 0.2rem;
	}

	.carousel-item {
		flex: 0 0 calc(50% - 0.1rem);
		min-width: calc(50% - 0.1rem);
		height: 2rem;
	}

	.carousel-item p:first-child {
		font-size: 22px;
	}

	.carousel-item p:last-child {
		font-size: 12px;
	}

	.before-after {
		flex-direction: column;
		gap: 0.3rem;
	}

	.before-after h3 {
		font-size: 0.22rem;
	}

	.before-after li {
		font-size: 0.16rem;
	}

	.core-advantages {
		grid-template-columns: 1fr;
		gap: 0.3rem;
	}

	.core-advantages h3 {
		font-size: 0.22rem;
	}

	.core-advantages p {
		font-size: 0.16rem;
	}

	.product h2 {
		font-size: 0.32rem;
	}

	.product > p {
		font-size: 0.18rem;
	}

	.product-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.2rem;
		padding: 0 0.3rem;
	}

	.product-item img {
		height: 1.2rem;
	}

	.product-item h3 {
		font-size: 0.18rem;
		padding: 0.2rem;
	}

	.product-container {
		padding: 0 0.3rem;
	}

	.image-lightbox img {
		max-width: 95%;
		max-height: 95%;
	}

	.image-lightbox-close {
		top: 10px;
		right: 20px;
		font-size: 36px;
	}

	.image-lightbox-info {
		bottom: 20px;
		padding: 10px 20px;
	}

	.zoom-level {
		font-size: 18px;
	}

	.zoom-hint {
		font-size: 11px;
	}
}

@media (max-width: 768px) and (orientation: landscape) {
	.top-content {
		height: 2rem;
	}

	.header-text h1 {
		font-size: 0.32rem;
		margin-bottom: 0.1rem;
	}

	.header-text p {
		font-size: 0.16rem;
	}

	.separator {
		width: 0.5rem;
		margin: 0.1rem auto;
	}

	.ai-features-images {
		gap: 0.15rem;
	}

	.ai-features-images img {
		width: auto;
	}

	.carousel-item {
		flex: 0 0 calc(33.33% - 0.14rem);
		min-width: calc(33.33% - 0.14rem);
		height: 1.5rem;
	}

	.carousel-item p:first-child {
		font-size: 16px;
	}

	.carousel-item p:last-child {
		font-size: 11px;
	}

	.product-container {
		grid-template-columns: repeat(3, 1fr);
		gap: 0.15rem;
	}
}
