/* ============================================================
   首页产品卡片 · 大气质感版（2026-11-18）
   复刻产品栏目页 product_cat_side.css 的卡片样式，统一到首页两个区块：
   1) 推荐产品 .eyou_tjpro .tjbox ul li（swiper 横滑）
   2) 产品展示 .eyou_cpzs ul li（四列网格）
   仅作用于首页，不动公共 style.css，删除 index.html 引入即可回滚
   ============================================================ */

/* 两个区块共用的卡片主体 */
.eyou_tjpro .tjbox ul li,
.eyou_cpzs ul li {
	position: relative;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid rgba(26, 111, 196, .09);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(20, 50, 90, .08);
	transition: box-shadow .45s ease, transform .45s ease, border-color .45s ease;
}

/* 顶部蓝色渐变条（hover 展开） */
.eyou_tjpro .tjbox ul li::before,
.eyou_cpzs ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 4px;
	z-index: 4;
	background: linear-gradient(90deg, #1a6fc4, #4aa3f0);
	transition: width .45s ease;
}

.eyou_tjpro .tjbox ul li:hover,
.eyou_cpzs ul li:hover {
	box-shadow: 0 24px 55px rgba(15, 75, 140, .2);
	transform: translateY(-8px);
	border-color: transparent;
}

.eyou_tjpro .tjbox ul li:hover::before,
.eyou_cpzs ul li:hover::before {
	width: 100%;
}

/* 产品图：等比铺满、纯白底、不强制定高 */
.eyou_tjpro .tjbox ul li .pic,
.eyou_cpzs ul li .pic {
	display: block;
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border-bottom: 0;
}

.eyou_tjpro .tjbox ul li .pic img,
.eyou_cpzs ul li .pic img {
	position: static;
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: none;
	margin: 0;
	padding: 8px;
	object-fit: contain;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.eyou_tjpro .tjbox ul li:hover .pic img,
.eyou_cpzs ul li:hover .pic img {
	transform: scale(1.09);
}

/* 标题：带左侧蓝色竖条、左对齐 */
.eyou_tjpro .tjbox ul li .name,
.eyou_cpzs ul li .name {
	position: relative;
	display: block;
	margin: 20px 22px 0;
	padding: 0 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	color: #16243a;
	text-align: left;
	white-space: normal;
	text-overflow: clip;
	text-decoration: none;
	transition: color .3s ease;
}

.eyou_tjpro .tjbox ul li .name::before,
.eyou_cpzs ul li .name::before {
	content: '';
	position: absolute;
	left: 0;
	top: 3px;
	width: 4px;
	height: 18px;
	border-radius: 2px;
	background: #1a6fc4;
}

.eyou_tjpro .tjbox ul li:hover .name,
.eyou_cpzs ul li:hover .name {
	color: #1a6fc4;
}

/* 描述：固定 2 行、左对齐，隐藏原小图标 */
.eyou_tjpro .tjbox ul li p,
.eyou_cpzs ul li p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 10px 22px 18px;
	padding: 0;
	font-size: 14px;
	line-height: 2;
	color: #999999;
	text-align: left;
	white-space: normal;
}

.eyou_tjpro .tjbox ul li p img,
.eyou_cpzs ul li p img {
	display: none;
}

/* 按钮：描边 → hover 填充 */
.eyou_tjpro .tjbox ul li .more,
.eyou_cpzs ul li .more {
	position: static;
	left: auto;
	bottom: auto;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	height: auto;
	margin: 0 22px 22px;
	padding: 9px 18px;
	background: transparent;
	border: 1px solid #1a6fc4;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #1a6fc4;
	transition: all .3s ease;
}

.eyou_tjpro .tjbox ul li .more em,
.eyou_cpzs ul li .more em {
	display: none;
}

.eyou_tjpro .tjbox ul li .more::after,
.eyou_cpzs ul li .more::after {
	content: '→';
	font-style: normal;
	transition: transform .3s ease;
}

.eyou_tjpro .tjbox ul li:hover .more,
.eyou_cpzs ul li:hover .more {
	background: #1a6fc4;
	color: #fff;
}

.eyou_tjpro .tjbox ul li:hover .more::after,
.eyou_cpzs ul li:hover .more::after {
	transform: translateX(5px);
}

/* ---------- 推荐产品 swiper：保留原轮播，卡片间距交给 swiper 的 spaceBetween ---------- */
.eyou_tjpro .tjbox .swiper-wrapper {
	transform: translate3d(0, 0, 0);
}
/* 轮播里每张卡片等高、图片区等高，视觉更整齐 */
.eyou_tjpro .tjbox .swiper-slide {
	height: auto;
}

/* ---------- 产品展示：改为三列网格、去掉原 margin/hover 位移错位 ---------- */
.eyou_cpzs ul {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.eyou_cpzs ul li:nth-child(4n) {
	margin-right: 0;
}

@media screen and (max-width:1080px) {
	.eyou_tjpro .tjbox .swiper-wrapper,
	.eyou_cpzs ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width:560px) {
	.eyou_tjpro .tjbox .swiper-wrapper,
	.eyou_cpzs ul {
		grid-template-columns: 1fr;
	}
}
