/* ========== 产品详情页 - 图片轮播 & 放大镜 ========== */
.fp_box_1 {
	width: 100%;
	max-width: 1380px;
	margin: 40px auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* 整体左右布局：左侧图片略宽 */
.fp_layout {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 60px;
}
.fp_gallery {
	flex: 0 0 58%;
	max-width: 58%;
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
.fp_info {
	flex: 1;
	min-width: 0;
	padding-top: 10px;
}
.fp_info_title {
	font-size: 30px;
	line-height: 1.25;
	font-weight: 400;
	color: #333;
	margin: 0 0 24px;
}
.fp_info_desc {
	font-size: 15px;
	line-height: 1.7;
	color: #666;
	margin: 0 0 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e5e5;
}
.fp_info_actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.fp_info_btn {
	display: block;
	text-align: center;
	padding: 14px 20px;
	color: #d40016;
	border: 1px solid #d40016;
	background: #fff;
	font-size: 15px;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.fp_info_btn:hover {
	background: #d40016;
	color: #fff;
}

/* -------- 左侧缩略图 -------- */
.fp_thumbs {
	width: 90px;
	flex-shrink: 0;
}
.fp_thumbs_swiper {
	width: 100%;
	height: 500px;
}
.fp_thumbs_swiper .swiper-slide {
	position: relative;
	height: 90px !important;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-sizing: border-box;
	cursor: pointer;
	overflow: hidden;
	opacity: .55;
	transition: opacity .25s ease;
}
.fp_thumbs_swiper .swiper-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
	box-sizing: border-box;
}
.fp_thumbs_swiper .swiper-slide:hover {
	opacity: 1;
}
.fp_thumbs_swiper .swiper-slide-thumb-active {
	opacity: 1;
	border-color: #e5e5e5;
}
.fp_thumbs_swiper .swiper-slide-thumb-active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #d40016;
}

/* -------- 右侧大图 -------- */
.fp_main {
	flex: 1;
	min-width: 0;
}
.fp_main_inner {
	position: relative;
}
.fp_main_swiper {
	position: relative;
	width: 100%;
	padding-top: 100%;              /* 用 padding 撑出 1:1 正方形 */
	height: 0;
	background: linear-gradient(180deg, #ffffff 0%, #e9e9e9 100%);
	overflow: hidden;
}
.fp_main_swiper > .swiper-wrapper {
	position: absolute !important;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100% !important;
	height: 100% !important;
}
.fp_main_swiper .swiper-slide {
	position: relative;
	width: 100% !important;
	height: 100% !important;
	box-sizing: border-box !important;
	overflow: hidden;
}
.fp_main_swiper .swiper-slide .fp_zoom {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: crosshair;
}
.fp_main_swiper .swiper-slide .fp_zoom img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
}
/* 放大镜 lens（半透明灰色方框，跟随鼠标） */
.fp_zoom_lens {
	position: absolute;
	width: 220px;
	height: 220px;
	background: rgba(180, 180, 180, .35);
	border: 1px solid rgba(0, 0, 0, .15);
	pointer-events: none;
	display: none;
	z-index: 5;
}
.fp_zoom.is-active .fp_zoom_lens {
	display: block;
}

/* -------- 放大后的结果面板（右侧灰色区域） -------- */
.fp_zoom_result {
	position: absolute;
	top: 0;
	left: calc(100% + 20px);
	width: 100%;
	max-width: 560px;
	aspect-ratio: 1 / 1;
	background: #f0f0f0 no-repeat;
	background-size: 300% 300%;
	border: 1px solid #e5e5e5;
	display: none;
	z-index: 20;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}
.fp_main_inner.is-zooming .fp_zoom_result {
	display: block;
}

/* -------- 左右切换箭头（hover 大图区才显示） -------- */
.fp_nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: rgba(0, 0, 0, .75);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 15;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease, background .2s ease;
	user-select: none;
}
.fp_nav svg {
	width: 22px;
	height: 22px;
	display: block;
}
.fp_nav_prev { left: 12px; }
.fp_nav_next { right: 12px; }

.fp_main_inner:hover .fp_nav {
	opacity: 1;
	visibility: visible;
}
.fp_nav:hover {
	background: #000;
}
.fp_nav.swiper-button-disabled {
	opacity: 0 !important;
	visibility: hidden !important;
	cursor: default;
}

/* -------- 自定义分页器（大图内底部居中） -------- */
.fp_pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 10;
}
.fp_pagination .swiper-pagination-bullet {
	width: 22px;
	height: 8px;
	border-radius: 0;
	background: transparent;
	border: 1px solid #d40016;
	opacity: 1;
	transition: background .2s;
	cursor: pointer;
	margin: 0 !important;
}
.fp_pagination .swiper-pagination-bullet-active {
	background: #d40016;
}

/* ================== 响应式 ================== */

/* ≤1300px：整体略微收紧 */
@media (max-width: 1300px) {
	.fp_layout { gap: 40px; }
	.fp_gallery { flex: 0 0 56%; max-width: 56%; }
	.fp_info_title { font-size: 26px; }
	.fp_thumbs_swiper { height: 460px; }
	.fp_thumbs_swiper .swiper-slide { height: 84px !important; }
	.fp_zoom_result { max-width: 480px; }
}

/* ≤1200px */
@media (max-width: 1200px) {
	.fp_layout { gap: 30px; }
	.fp_gallery { flex: 0 0 55%; max-width: 55%; gap: 15px; }
	.fp_thumbs { width: 80px; }
	.fp_thumbs_swiper { height: 420px; }
	.fp_thumbs_swiper .swiper-slide { height: 78px !important; }
	.fp_info_title { font-size: 24px; margin-bottom: 18px; }
	.fp_info_desc { font-size: 14px; margin-bottom: 24px; padding-bottom: 20px; }
	.fp_info_btn { padding: 12px 16px; font-size: 14px; }
	.fp_zoom_result { max-width: 400px; }
}

/* ≤1000px */
@media (max-width: 1000px) {
	.fp_layout { gap: 24px; }
	.fp_gallery { flex: 0 0 52%; max-width: 52%; gap: 12px; }
	.fp_thumbs { width: 70px; }
	.fp_thumbs_swiper { height: 380px; }
	.fp_thumbs_swiper .swiper-slide { height: 70px !important; }
	.fp_thumbs_swiper .swiper-slide-thumb-active::before { width: 2px; }
	.fp_info_title { font-size: 22px; }
	.fp_pagination { bottom: 12px; }
	.fp_pagination .swiper-pagination-bullet { width: 18px; height: 6px; }
	/* 放大镜结果面板此时空间不够，直接隐藏 */
	.fp_zoom_result { display: none !important; }
	.fp_zoom_lens { display: none !important; }
	.fp_zoom { cursor: default; }
}

/* ≤767px：手机端 - 上下堆叠 & 缩略图置底、横向 4 张可滑动 */
@media (max-width: 767px) {
	.fp_box_1 { margin: 20px auto; padding: 0 12px; }
	.fp_layout { flex-direction: column; gap: 24px; }
	.fp_gallery {
		flex: 1 1 100%;
		max-width: 100%;
		flex-direction: column;
		gap: 12px;
	}
	.fp_main { order: 1; width: 100%; }
	.fp_thumbs { order: 2; width: 100%; }
	.fp_thumbs_swiper { height: auto; width: 100%; }
	.fp_thumbs_swiper .swiper-wrapper { height: auto !important; }
	.fp_thumbs_swiper .swiper-slide {
		width: auto;
		height: auto !important;
		aspect-ratio: 1 / 1;
	}
	.fp_thumbs_swiper .swiper-slide-thumb-active::before {
		left: 0; right: 0;
		top: auto; bottom: 0;
		width: auto; height: 3px;
	}
	.fp_info { width: 100%; order: 3; padding-top: 0; }
	.fp_info_title { font-size: 20px; margin-bottom: 14px; }
	.fp_info_desc { font-size: 14px; margin-bottom: 20px; padding-bottom: 18px; }
	.fp_info_actions { gap: 10px; }
	.fp_info_btn { padding: 11px 14px; font-size: 14px; }
	.fp_pagination { bottom: 10px; }
	.fp_pagination .swiper-pagination-bullet { width: 16px; height: 5px; }
	.fp_zoom_result { display: none !important; }
	.fp_zoom_lens { display: none !important; }
	.fp_zoom { cursor: default; }
}

/* ================== 第二板块：描述 ================== */
.fp_box_2 {
	width: 100%;
	max-width: 1380px;
	margin: 40px auto;
	padding: 0 15px;
	box-sizing: border-box;
}
.fp_desc_tabs {
	position: relative;
	display: flex;
	gap: 30px;
	border-bottom: 1px solid #d40016;
	padding-bottom: 10px;
	margin-bottom: 40px;
}
.fp_desc_tab {
	font-size: 14px;
	font-weight: 700;
	color: #222;
	cursor: pointer;
	position: relative;
	padding-bottom: 10px;
	margin-bottom: -10px;
}
.fp_desc_tab.is-active {
	color: #222;
}
.fp_desc_title {
	font-size: 26px;
	font-weight: 400;
	color: #222;
	margin: 0 0 24px;
	line-height: 1.35;
}
.fp_desc_intro {
	font-size: 15px;
	color: #333;
	margin: 0 0 14px;
	line-height: 1.6;
}
.fp_desc_list {
	list-style: disc;
	padding-left: 22px;
	margin: 0;
}
.fp_desc_list li {
	font-size: 15px;
	line-height: 1.75;
	color: #333;
	margin-bottom: 8px;
}
.fp_desc_list li:last-child { margin-bottom: 0; }

/* 响应式 */
@media (max-width: 1200px) {
	.fp_desc_title { font-size: 22px; }
}
@media (max-width: 767px) {
	.fp_box_2 { margin: 24px auto; padding: 0 12px; }
	.fp_desc_tabs { margin-bottom: 24px; }
	.fp_desc_title { font-size: 20px; margin-bottom: 16px; }
	.fp_desc_intro,
	.fp_desc_list li { font-size: 14px; }
}

/* ================== 第三板块：相关产品轮播 ================== */
.fp_box_3 {
	width: 100%;
	max-width: 1380px;
	margin: 40px auto 60px;
	padding: 0 15px;
	box-sizing: border-box;
}
.fp_related_head {
	border-bottom: 1px solid #d40016;
	padding-bottom: 10px;
	margin-bottom: 30px;
}
.fp_related_title {
	font-size: 14px;
	font-weight: 700;
	color: #222;
	margin: 0;
}
.fp_related_wrap {
	position: relative;
}
.fp_related_swiper {
	width: 100%;
	overflow: hidden;
}
.fp_card {
	display: block;
	text-decoration: none;
	color: inherit;
}
.fp_card_img {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
	overflow: hidden;
	display: block;
}
.fp_card_img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.fp_card:hover .fp_card_img img {
	transform: scale(1.05);
}
.fp_card_body {
	background: #f2f2f2;
	padding: 14px 14px 16px;
}
.fp_card_name {
	font-size: 15px;
	line-height: 1.4;
	color: #222;
	min-height: 42px;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fp_card_code {
	font-size: 13px;
	color: #666;
}

/* 左右箭头：红底白箭头 42x42，上下居中，左右贴着；hover 反色 */
.fp_related_prev,
.fp_related_next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	background: #d40016;
	color: #fff;
	border: 1px solid #d40016;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: background .2s ease, color .2s ease, opacity .25s ease;
	user-select: none;
	box-sizing: border-box;
}
.fp_related_prev { left: 0; }
.fp_related_next { right: 0; }
.fp_related_prev svg,
.fp_related_next svg {
	width: 20px;
	height: 20px;
}
.fp_related_prev:hover,
.fp_related_next:hover {
	background: #fff;
	color: #d40016;
}
.fp_related_prev.swiper-button-disabled,
.fp_related_next.swiper-button-disabled {
	opacity: .35;
	cursor: default;
}

/* 响应式 */
@media (max-width: 1200px) {
	.fp_card_name { font-size: 14px; min-height: 40px; }
	.fp_card_code { font-size: 12px; }
}
@media (max-width: 767px) {
	.fp_box_3 { margin: 24px auto 30px; padding: 0 12px; }
	.fp_related_head { margin-bottom: 20px; }
	.fp_card_body { padding: 12px; }
	.fp_card_name { font-size: 13px; min-height: 36px; }
	.fp_related_prev,
	.fp_related_next { width: 34px; height: 34px; }
	.fp_related_prev svg,
	.fp_related_next svg { width: 16px; height: 16px; }
}
