/* =========================================================
   产品详情页专属样式
   ========================================================= */
.product-detail-wrap {
	padding: 40px 0 0px 0;
}

/* =========================================================
   核心区域：左图右文
   ========================================================= */
.pd-main {
	display: flex;
	gap: 50px;
	align-items: flex-start;
	clear: both;
	margin-bottom: 50px;
}

/* 左侧主图 */
.pd-left {
	flex: 1;
	min-width: 0;
}
.pd-image-box {
	width: 100%;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 490px; /* 与右侧等高 */
}
.pd-image-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* 右侧信息卡片区 */
.pd-right {
	flex: 0 0 420px;
	background: #fff;
	padding: 20px 0;
	display: flex;
	flex-direction: column;
	height: 490px;
}

.pd-product-name {
	font-size: 28px;
	color: #222;
	font-weight: bold;
	line-height: 1.4;
	margin: 0 0 20px 0;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

/* 重要参数 */
.pd-params-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
	min-height: 0;
}
.pd-info-label {
	display: block;
	font-size: 16px;
	color: #c52525;
	font-weight: bold;
	margin-bottom: 12px;
	flex-shrink: 0;
}

/* 限制高度，超出出滚动条 */
.pd-params-content {
	flex: 1;
	overflow-y: auto;
	background: #fafafa;
	border: 1px solid #f0f0f0;
	border-radius: 6px;
	padding: 15px 20px;
	font-size: 14px;
	color: #555;
	line-height: 1.8;
}
/* 滚动条美化 */
.pd-params-content::-webkit-scrollbar { width: 6px; }
.pd-params-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.pd-params-content::-webkit-scrollbar-track { background: transparent; }

/* 兼容后台输出的 <p> 标签样式 */
.pd-params-content p {
	margin: 0 0 10px 0;
	padding-bottom: 8px;
	border-bottom: 1px dashed #e8e8e8;
}
.pd-params-content p:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* 电话区 */
.pd-phone-box {
	background: #fafafa;
	padding: 16px 20px;
	border-radius: 4px;
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid #f0f0f0;
	flex-shrink: 0;
}
.pd-phone-box .phone-label { color: #888; font-size: 14px; }
.pd-phone-box .phone-number { color: #c52525; font-weight: bold; font-size: 18px; display: flex; align-items: center; }
.pd-phone-box .phone-number i { margin-right: 6px; font-size: 16px; }
.pd-phone-box .phone-support { color: #666; font-size: 14px; }

/* 按钮区 */
.pd-btns { display: flex; gap: 15px; flex-shrink: 0; margin-top: auto; }
.pd-btn {
	flex: 1; height: 48px; line-height: 46px;
	text-align: center; font-size: 15px; font-weight: bold;
	border-radius: 4px; transition: all 0.3s ease; text-decoration: none;
	display: inline-block;
}
.pd-btn-inquiry { color: #c52525; background: #fff; border: 1px solid #c52525; }
.pd-btn-inquiry:hover { color: #fff; background: #e94e1b; border-color: #e94e1b; box-shadow: 0 4px 12px rgba(233, 78, 27, 0.2); }
.pd-btn-download { color: #555; background: #fff; border: 1px solid #ccc; }
.pd-btn-download:hover { color: #fff; background: #555; border-color: #555; }

/* =========================================================
   视频满宽居中区
   ========================================================= */
.pd-video-section { width: 100%; margin: 0 auto 50px auto; }
.pd-video-box {
	width: 100%; background: #000; border-radius: 8px;
	overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.pd-video-box video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================
   详情描述区
   ========================================================= */
.pd-content-box { margin-top: 50px; clear: both; }
.pd-content-title {
	font-size: 22px; font-weight: bold; color: #222;
	margin-bottom: 20px; padding-left: 12px; border-left: 4px solid #c52525;
}
.pd-content-box .description { font-size: 15px; color: #444; line-height: 1.9; }
.pd-content-box .description p { margin-top: 0; margin-bottom: 15px; text-align: justify; }
.pd-content-box .description img { max-width: 100%; height: auto; margin: 15px 0; display: block; }

/* 兼容 KindEditor 表格 */
.pd-content-box .description table {
	width: 100% !important; border-collapse: collapse !important; margin: 20px 0; font-size: 15px;
}
.pd-content-box .description table th,
.pd-content-box .description table td {
	border: 1px solid #e8e8e8 !important; padding: 12px 16px !important; text-align: left;
}
.pd-content-box .description table th {
	background-color: #0b3b75 !important; color: #fff !important; font-weight: bold;
}
.pd-content-box .description table tr:nth-child(even) td { background-color: #fafafa !important; }

/* =========================================================
   新增：核心部件优势模块 (Advantages of Components)
   ========================================================= */
.pd-components-section {
	width: 100%;
	clear: both;
	padding-top: 60px; /* 与上方详情的间隔 */
	padding-bottom: 20px;
}

.pd-comp-title {
	font-size: 32px;
	font-weight: bold;
	color: #f36c21; /* 橙红色标题 */
	margin-bottom: 40px;
	line-height: 1.2;
	text-align: left;
}

/* 3 列网格 */
.pd-comp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px; /* 卡片之间的间距 */
}

/* 卡片主体 */
.pd-comp-card {
	display: flex;
	flex-direction: column;
	background: #fff;
}

/* 顶部图片（固定 5:3 比例） */
.pd-comp-img {
	width: 100%;
	aspect-ratio: 5 / 3.5; /* 强制 5:3 */
	overflow: hidden;
	background: #f0f0f0;
}

.pd-comp-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /* 保证填满且不变形 */
	transition: transform 0.6s ease;
}

.pd-comp-card:hover .pd-comp-img img {
	transform: scale(1.05);
}

/* 底部文字区（浅灰色背景） */
.pd-comp-info {
	background: #f4f5f7;
	padding: 30px;
	flex: 1; /* 让同一行的卡片底部对齐 */
	transition: background 0.3s ease;
}

.pd-comp-card:hover .pd-comp-info {
	background: #eef0f4;
}

.pd-comp-info h3 {
	font-size: 18px;
	font-weight: bold;
	color: #2b2b2b;
	margin: 0 0 15px 0;
	line-height: 1.4;
	text-align: left;
}

.pd-comp-info .desc {
	font-size: 14px;
	color: #666;
	line-height: 1.9;
	margin: 0;

}

/* =========================================================
   推荐产品区
   ========================================================= */
.pd-recommend-section {
	width: 100%;
	padding-top: 60px;
	padding-bottom: 20px;
	clear: both;
}
.pd-recommend-box {
	border-top: 1px solid #f0f0f0;
}
.pd-recommend-title {
	font-size: 24px;
	font-weight: bold;
	color: #222;
	text-align: center;
	margin-top: 50px;
	margin-bottom: 40px;
	position: relative;
}
/* 标题小装饰线 */
.pd-recommend-title::after {
	content: '';
	display: block;
	width: 40px;
	height: 3px;
	background: #c52525;
	margin: 12px auto 0;
}

.pd-recommend-list { display: flex; flex-wrap: wrap; gap: 20px; }
.pd-rec-item {
	flex: 0 0 calc(25% - 15px);
	background: #fff; border: 1px solid #f0f0f0; border-radius: 6px;
	overflow: hidden; text-align: center; padding: 15px; transition: all 0.3s ease;
}
.pd-rec-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #e0e0e0; transform: translateY(-4px); }
.pd-rec-item a { display: block; text-decoration: none; }
.pd-rec-item img { width: 100%; height: 160px; object-fit: contain; display: block; margin-bottom: 15px; }
.pd-rec-item h4 { font-size: 15px; color: #333; font-weight: normal; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================
   响应式
   ========================================================= */
@media screen and (max-width: 1000px) {
	.pd-main { flex-direction: column; }
	.pd-right { flex: 0 0 100%; width: 100%; padding: 10px 0; height: auto; }
	.pd-image-box { height: 350px; }
	.pd-rec-item { flex: 0 0 calc(50% - 10px); }

	/* 核心部件优势 响应式 */
	.pd-comp-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.pd-comp-title {
		font-size: 26px;
	}
}

@media screen and (max-width: 760px) {
	.product-detail-wrap { padding: 20px 15px 40px 15px; }
	.pd-main { gap: 30px; }
	.pd-image-box { height: 260px; padding: 10px; }
	.pd-btns { flex-direction: column; gap: 10px; }
	.pd-content-box { margin-top: 30px; }
	.pd-content-title { font-size: 18px; }
	.pd-rec-item { flex: 0 0 100%; }
	.pd-product-name { font-size: 22px; margin-bottom: 20px; }
	.pd-phone-box { flex-direction: column; align-items: flex-start; gap: 8px; }
	.pd-recommend-section { padding-top: 40px; }
	.pd-recommend-title { font-size: 20px; margin-top: 30px; margin-bottom: 25px; }

	/* 核心部件优势 手机端响应式 */
	.pd-components-section {
		padding-top: 40px;
	}
	.pd-comp-grid {
		grid-template-columns: 1fr; /* 手机端 1 列 */
	}
	.pd-comp-title {
		font-size: 22px;
		margin-bottom: 25px;
	}
	.pd-comp-info {
		padding: 20px;
	}
	.pd-comp-info h3 {
		font-size: 16px;
	}
	.pd-comp-info p {
		font-size: 13px;
	}
}

/* =========================================================
   选配设备模块
   ========================================================= */
.pd-optional-section {
	width: 100%;
	padding-top: 60px;
	padding-bottom: 20px;
	clear: both;
}

.pd-optional-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 30px;
}

.pd-optional-head-text h2 {
	font-size: 28px;
	color: #2b2b2b;
	font-weight: normal;
	margin: 0 0 12px 0;
}

.pd-optional-head-text p {
	font-size: 15px;
	color: #666;
	line-height: 1.6;
	margin: 0;
	max-width: 900px;
}

/* 包裹层（用于定位箭头，同时不留 padding 确保列表左右对齐） */
.pd-optional-wrapper {
	position: relative;
	padding: 0;
}

/* 横向滚动容器 */
.pd-optional-scroll {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 15px;
	scroll-behavior: smooth;
	cursor: grab;
	width: 100%;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.pd-optional-scroll::-webkit-scrollbar { display: none; }
.pd-optional-scroll:active { cursor: grabbing; }

/* 单个卡片 */
.pd-optional-item {
	/* 严格每行显示6个 */
	flex: 0 0 calc((100% - 100px) / 6);
	min-width: 140px;
	background: #f9f9f9;
	cursor: pointer;
	transition: all 0.3s ease;
	padding-bottom: 20px;
	user-select: none;
}

.pd-optional-item:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	transform: translateY(-4px);
}

/* 图片区域（正方形） */
.pd-optional-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9f9f9;
	overflow: hidden;
	margin-bottom: 15px;
}

.pd-optional-img img {
	width: 90%;
	height: 90%;
	object-fit: contain;
	transition: transform 0.4s ease;
	pointer-events: none;
}

.pd-optional-item:hover .pd-optional-img img {
	transform: scale(1.08);
}

.pd-optional-item h4 {
	font-size: 15px;
	color: #333;
	text-align: center;
	margin: 0;
	font-weight: normal;
}

/* =========================================================
   左右箭头（悬浮在图片上，毛玻璃质感）
   ========================================================= */
.pd-opt-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.85); /* 半透明白底 */
	backdrop-filter: blur(4px); /* 毛玻璃模糊效果 */
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid #e0e0e0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* 增加悬浮阴影 */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #333;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
}

.pd-opt-arrow:hover {
	background: #e94e1b;
	color: #fff;
	border-color: #e94e1b;
}

/* 微调靠内侧距离，让箭头压在图片边缘 */
.pd-opt-prev { left: 10px; }
.pd-opt-next { right: 10px; }

/* =========================================================
   弹窗样式
   ========================================================= */
.device-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
}

.device-modal-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
}

.device-modal-content {
	position: relative;
	background: #fff;
	width: 90%;
	max-width: 800px;
	border-radius: 8px;
	padding: 30px;
	z-index: 1;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.device-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 32px;
	color: #999;
	cursor: pointer;
	line-height: 1;
	transition: color 0.3s;
}

.device-modal-close:hover {
	color: #e94e1b;
}

.device-modal-content img {
	width: 100%;
	max-height: 500px;
	object-fit: contain;
	margin-bottom: 25px;
	background: #f9f9f9;
}

.device-modal-content h3 {
	font-size: 24px;
	color: #222;
	margin: 0 0 15px 0;
	font-weight: bold;
}

.device-modal-content p {
	font-size: 15px;
	color: #666;
	line-height: 1.8;
	margin: 0;
	text-align: justify;
}

/* =========================================================
   响应式
   ========================================================= */
@media screen and (max-width: 1000px) {
	.pd-optional-head-text h2 { font-size: 24px; }
	.pd-optional-item { flex: 0 0 calc((100% - 40px) / 3); } /* 平板显示3个 */
}

@media screen and (max-width: 760px) {
	.pd-optional-section { padding-top: 40px; }
	.pd-optional-header { margin-bottom: 20px; }
	.pd-optional-head-text h2 { font-size: 22px; margin-bottom: 8px; }
	.pd-optional-head-text p { font-size: 14px; }

	/* 手机端隐藏箭头 */
	.pd-opt-arrow { display: none; }

	.pd-optional-item { flex: 0 0 calc((100% - 20px) / 2); } /* 手机显示2个 */
	.pd-optional-item h4 { font-size: 14px; }

	.device-modal-content { padding: 20px; width: 92%; }
	.device-modal-content h3 { font-size: 20px; }
	.device-modal-content p { font-size: 14px; }
}