/* 产品详情页专用样式 */

/* 横幅样式调整 */
.banner {
	position: relative;
	height: 300px;
	overflow: hidden;
}

.banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 产品内容包装器 */
.product-content-wrapper {
	position: relative;
	margin-top: -100px; /* 调整内容区域位置，向下移动 */
	background-color: #fff;
	padding-bottom: 50px;
}

/* 面包屑导航 */
.breadcrumb-container {
	background-color: transparent;
	padding: 38px 0;
	position: relative;
	z-index: 10;
	margin-top: 0;
	border-bottom: 1px solid #f0f0f0;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.breadcrumb-container .container {
	padding-right: 308px;
	text-align: left;
}

.breadcrumb {
	font-size: 14px;
	color: #333;
	font-weight: normal;
	text-align: left;
}

.breadcrumb a {
	color: #666;
	text-decoration: none;
}

.breadcrumb a:hover {
	color: #0056b3;
}

.breadcrumb span {
	color: #333;
	font-weight: 500;
}

/* 产品详情容器 */
.product-detail-container {
	padding: 80px 0 10px 0;
	background: #fff;
	position: relative;
	z-index: 5;
}

.product-detail-container .container {
	padding-left: 300px;
	padding-right: 308px;
}

.product-detail-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding-bottom: 60px;
	border-bottom: 1px solid #f0f0f0;
}

/* 产品图片区域 */
.product-gallery {
	flex: 1;
	min-width: 300px;
	max-width: 450px;
}

.product-main-img {
	width: 100%;
	height: 350px;
	margin-bottom: 15px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-main-img img {
	max-width: 100%;
	max-height: 100%;
	width: 560px;
	height: 560px;
	display: block;
	border-radius: 10px;
}

.product-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.product-thumb {
	width: calc(20% - 8px);
	height: 70px;
	cursor: pointer;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 8px;
}

.product-thumb.active {
	border: 1px solid #0056b3;
}

.product-thumb img {
	max-width: 100%;
	max-height: 100%;
	width: 80px;
	width: 80px;
	display: block;
}

/* 产品信息区域 */
.product-info {
	flex: 1;
	min-width: 300px;
}

.product-title {
	font-size: 22px;
	margin-bottom: 10px;
	color: #333;
	font-weight: 600;
}

.product-subtitle {
	font-size: 16px;
	margin-bottom: 20px;
	color: #666;
	font-weight: normal;
}

.product-description {
	margin-bottom: 30px;
	color: #555;
	line-height: 1.6;
}

.product-description p {
	margin-bottom: 15px;
	font-size: 14px;
}

/* 联系信息 - 简化版 */
.product-contact {
	margin-top: 30px;
}

.contact-email {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.contact-icon {
	width: auto;
	height: auto;
	margin-right: 10px;
	color: #ff7700;
	font-size: 20px;
}

.contact-email span {
	font-size: 16px;
	color: #333;
}

.contact-phone {
	margin-top: 65px;
}

.phone-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #ff7700;
	color: white;
	padding: 12px 25px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s;
	font-size: 16px;
}

.phone-btn:hover {
	background-color: #e36c00;
}

.phone-btn i {
	margin-right: 8px;
	color: white;
}

/* 产品详情部分 */
.product-specs {
	padding: 40px 0;
	background-color: #fff;
}

.product-specs .container {
	padding-left: 300px;
	padding-right: 308px;
}

.section-title {
	font-size: 24px;
	margin-bottom: 30px;
	color: #333;
	font-weight: 600;
	position: relative;
	padding-bottom: 10px;
	text-align: left;
}

.specs-content {
	background: #fff;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.specs-image {
	width: 100%;
	overflow: hidden;
	height: 960px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f9f9f9;
	margin-bottom: 20px;
}

.specs-image img {
	max-width: 100%;
	max-height: 100%;
	width: 1320px;
	height: 960px;
	display: block;
}

.specs-text {
	padding: 0;
	margin-bottom: 0;
}

.specs-subtitle {
	font-size: 18px;
	color: #333;
	margin-bottom: 10px;
	font-weight: 600;
	position: relative;
	border-left: none;
	padding-left: 0;
}

.specs-text p {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin-bottom: 10px;
	text-align: justify;
}

/* 相关产品 */
.related-products {
	margin-top: 60px;
}

.related-products h3 {
	font-size: 22px;
	margin-bottom: 30px;
	text-align: center;
	position: relative;
}

.related-products h3:after {
	content: "";
	display: block;
	width: 50px;
	height: 3px;
	background: #0056b3;
	margin: 10px auto 0;
}

.related-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 30px;
}

.related-product-item {
	border: 1px solid #eee;
	padding: 15px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-product-item img {
	width: 100%;
	height: auto;
	margin-bottom: 15px;
}

.related-product-item h4 {
	margin-bottom: 15px;
	font-size: 16px;
}

.related-product-item a {
	color: #0056b3;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.3s ease;
}

.related-product-item a:hover {
	color: #003d7f;
}

/* 响应式调整 */
@media (max-width: 1440px) {
	.product-detail-container .container,
	.product-specs .container,
	.breadcrumb-container .container {
		padding-left: 200px;
		padding-right: 208px;
	}
}

@media (max-width: 1200px) {
	.product-detail-container .container,
	.product-specs .container,
	.breadcrumb-container .container {
		padding-left: 100px;
		padding-right: 108px;
	}
}

@media (max-width: 992px) {
	.product-detail-container .container,
	.product-specs .container,
	.breadcrumb-container .container {
		padding-left: 50px;
		padding-right: 58px;
	}

	.product-detail-wrapper {
		flex-direction: column;
	}

	.product-gallery {
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.product-detail-container .container,
	.product-specs .container,
	.breadcrumb-container .container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.breadcrumb-container {
		padding: 20px 0;
	}

	.product-title {
		font-size: 20px;
	}

	.product-subtitle {
		font-size: 16px;
	}

	.product-thumb {
		width: calc(25% - 8px);
	}

	.section-title {
		font-size: 20px;
	}

	.specs-subtitle {
		font-size: 16px;
	}
}

@media (max-width: 576px) {
	.product-thumb {
		width: calc(33.33% - 7px);
	}

	.phone-btn {
		width: 100%;
	}
}

/* 产品展示动画效果 */
.fade-in {
	animation: fadeIn 0.8s ease-in-out;
}

.slide-in-left {
	animation: slideInLeft 0.8s ease-in-out;
}

.slide-in-right {
	animation: slideInRight 0.8s ease-in-out;
}

.scale-in {
	animation: zoomIn 0.5s ease-in-out;
}

/* 缩略图悬停效果 */
.product-thumb:hover {
	transform: scale(1.1);
	transition: transform 0.3s ease;
	border: 2px solid #ffb74d;
}

/* 添加过渡效果 */
.product-thumb {
	transition: all 0.3s ease;
	border: 2px solid transparent;
	cursor: pointer;
}

.product-thumb.active {
	border: 2px solid #ff8800;
	padding: 1px;
}

/* 产品详情卡片效果 */
.specs-content > div {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin-bottom: 20px;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.9);
}

.specs-content > div:hover {
	/* transform: translateY(-5px); */
	/* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
}

/* 产品标题动画效果 */
.product-title,
.product-subtitle {
	position: relative;
	overflow: hidden;
}

.product-title.animate__fadeIn:after,
.product-subtitle.animate__fadeIn:after {
	width: 100%;
}

/* 电话按钮悬停效果 */
.phone-btn {
	transition: all 0.3s ease;
	display: inline-block;
	padding: 10px 20px;
	background-color: #ff8800;
	color: white;
	border-radius: 8px;
	font-weight: bold;
}

.phone-btn:hover {
	background-color: #ff6600;
	box-shadow: 0 5px 15px rgba(255, 136, 0, 0.3);
	transform: translateY(-2px);
}

/* 产品图片悬停效果 */
.product-main-img img {
	transition: transform 0.5s ease;
}

.product-main-img:hover img {
	transform: scale(1.05);
}

/* 滚动到视图动画 */
.wow {
	visibility: hidden;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.specs-content > div:hover {
		transform: none;
		box-shadow: none;
	}

	.product-thumb:hover {
		transform: scale(1.05);
	}
}

/* 新增合并后的规格文本容器样式 */
/* .specs-text-container {
	padding: 25px !important;
} */

.specs-text-container h3 {
	/* margin-top: 25px; */
	font-size: 20px;
	position: relative;
}

.specs-text-container img {
	width: 100% !important;
}

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

.specs-text-container p {
	/* margin-bottom: 20px; */
	line-height: 1.8;
	text-align: justify;
}

.specs-text-container p:last-child {
	margin-bottom: 0;
}

/* 为合并内容添加动画元素 */
.specs-text-container h3,
.specs-text-container p {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.specs-text-container.animated h3,
.specs-text-container.animated p {
	opacity: 1;
	transform: translateY(0);
}

.specs-text-container h3:nth-of-type(1),
.specs-text-container p:nth-of-type(1) {
	transition-delay: 0.1s;
}

.specs-text-container h3:nth-of-type(2),
.specs-text-container p:nth-of-type(2) {
	transition-delay: 0.2s;
}

.specs-text-container h3:nth-of-type(3),
.specs-text-container p:nth-of-type(3) {
	transition-delay: 0.3s;
}

.specs-text-container h3:nth-of-type(4),
.specs-text-container p:nth-of-type(4),
.specs-text-container p:nth-of-type(5) {
	transition-delay: 0.4s;
}

/* 添加无动画样式，确保内容始终可见 */
.specs-text-container.no-animation h3,
.specs-text-container.no-animation p,
.no-animation .specs-text-container h3,
.no-animation .specs-text-container p {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}
