/* 自定义基础样式与动效 */
body {
	background-color: #F8FAFC;
	color: #334155; /* Slate 700 */
}

/* 滚动条美化 */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: #F1F5F9; 
}
::-webkit-scrollbar-thumb {
	background: #94A3B8; 
}
::-webkit-scrollbar-thumb:hover {
	background: #2563EB; 
}

/* 渐隐动效初始状态 */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s ease-out;
}
.reveal.active {
	opacity: 1;
	transform: translateY(0);
}

/* 视差背景效果 */
.parallax-bg {
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% auto;
}

/* Banner轮播 */
.banner-slider {
	position: relative;
	overflow: hidden;
}
.banner-slider .banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}
.banner-slider .banner-slide.active {
	opacity: 1;
}
/* 轮播指示器 */
.banner-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 10;
}
.banner-dot {
	width: 30px;
	height: 4px;
	background: rgba(255,255,255,0.4);
	cursor: pointer;
	transition: all 0.4s ease;
	border-radius: 2px;
}
.banner-dot.active {
	background: white;
	width: 50px;
}
.banner-dot:hover {
	background: rgba(255,255,255,0.7);
}

/* Logo白色滤镜 */
.logo-white {
	filter: brightness(0) invert(1);
}
.logo-dark {
	filter: none;
}

/* 蓝色主题独有：产品卡片悬停上浮 */
.product-card {
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
}

/* 限制内容最大宽度为 1500px */
.custom-container {
	max-width: 1500px;
	margin-left: auto;
	margin-right: auto;
}



.nav-link.cur1,.nav-link.cur{
	color:rgb(219 234 254 / var(--tw-text-opacity, 1))
}
.nav-link.cur2{
	color:rgb(37 99 235 / var(--tw-text-opacity, 1))
}




/* 荣誉图片卡片悬停效果 */
.honor-card {
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 5px solid #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.honor-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.12), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
}
/* Lightbox 样式 */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.85);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
}
.lightbox-overlay.active {
	display: flex;
}
.lightbox-img {
	max-width: 85vw;
	max-height: 85vh;
	object-cover;
	border-radius: 8px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}






/* 左侧导航激活状态 */
.side-nav-item {
	position: relative;
	transition: all 0.3s ease;
}
.side-nav-item.active,
.side-nav-item:hover {
	background-color: #EFF6FF;
	color: #2563EB;
}
.side-nav-item.active::before,
.side-nav-item:hover::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 60%;
	background-color: #2563EB;
	border-radius: 0 2px 2px 0;
}






/* ------------------------------------- */
/* 电商风格图片放大镜效果 - 更新后样式      */
/* ------------------------------------- */
.image-zoom-container {
	position: relative;
	cursor: crosshair;
	width: 100%;
	aspect-ratio: 1 / 1;
}

/* 放大镜的方形半透明遮罩 */
.zoom-lens {
	position: absolute;
	background-color: rgba(37, 99, 235, 0.15); /* 品牌蓝色半透明 */
	border: 1px solid rgba(37, 99, 235, 0.3);
	pointer-events: none;
	display: none; /* 默认隐藏，鼠标移入时显示 */
	z-index: 10;
}

/* 右侧展示放大部分的独立窗口 */
.zoom-window {
	position: absolute;
	top: 0;
	/* 根据外层布局的 lg:gap-12 (3rem) 设置偏移，使其恰好覆盖右侧文字区域 */
	left: calc(100% + 1rem); 
	width: 100%;
	height: 95%;
	background-color: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	
	z-index: 50;
	display: none; /* 默认隐藏，鼠标移入时显示 */
	background-repeat: no-repeat;
	pointer-events: none;
}

@media (max-width: 1023px) {
	/* 移动端/平板竖屏尺寸较小，禁用独立的放大镜窗口 */
	.zoom-window, .zoom-lens {
		display: none !important;
	}
}

/* 详情表格样式 */
.detail-table tr td:first-child {
	width: 140px;
	font-weight: 600;
	color: #1e293b;
	background-color: #f8fafc;
}
.detail-table tr:not(:last-child) td {
	border-bottom: 1px solid #e2e8f0;
}

/* 表单输入框聚焦效果 */
.form-input:focus {
	outline: none;
	ring: 2px;
	ring-color: #2563EB;
	border-color: #2563EB;
}




.mypage{
	padding-top:50px;
	text-align:center;
}
.products-list .mypage{
	padding-top:30px;
}
.mypage ul li{
	display:inline-block;
	width:35px;
	height:35px;
	line-height:35px;
	text-align:center;
	background:#eff1f4;
	border-radius:3px;
	margin:0 4px;
}
.mypage ul li a{
	display:block;
	color:#333;
	font-size:14px;
}
.mypage ul li.active{
	background:#bd0c13;
	color:#fff;
	font-size:14px;
}
.mypage ul li.active span{
	color:#fff;
}





#products-main .content{
	line-height:2;
}


.back-to{
	background:rgb(101, 146, 246);
	margin-left:10px;
	margin-top:10px;
}





.pro-tt{
	color:#fff;
	padding:1rem 0;
	background:#1e3a8a;
	font-size:1.125rem;
	font-weight:700;
	width:100%;
	text-align:center;
	border-radius:10px;
	line-height:1;
}
.pro-con{
	background:#fff;
	position:fixed;
	top:5rem;
	left:100%;
	transition:all ease .5s;
	width:250px;
	height:100vh;
	z-index:100;
}
.pro-con.on{
	left:calc(100% - 250px);
}
.back_bg{
	position:fixed;
	width:100%;
	height:100%;
	background:rgba(0,0,0,0.6);
	display:none;
	z-index:50;
	left:0;
	top:5rem;
}






@media screen and (max-width:570px){
	.py-24,.py-16{
		padding-top:2.5rem!important;
		padding-bottom:2.5rem!important;
	}
	.gap-16{
		gap:2.5rem!important;
	}
	.mt-10{
		margin-top: 2rem!important;
	}
	.mt-16{
		margin-top:2rem!important;
	}
	.mb-16{
		margin-bottom:2rem!important;
	}
	#home{height:20vh;}
	
	.mypage{padding-top:20px;}
	.mypage ul li{width:30px;height:30px;line-height:30px;margin:3px;}
	.pfst{padding-bottom:calc(2.5rem - 20px)!important}
	.banner-dots {bottom: 10px;}
	.footb{padding-top:1.5rem!important;padding-bottom:1.5rem!important;}
	.footb .text-sm{line-height:1.5rem;}
}





