/* ============================================================
   列表页统一修复（自适应高度 / 图片等比 / 换行不错位）
   由重建脚本之外人工维护：覆盖 style.css 里 .resistance-box li 的固定高度
   - 原问题：.resistance-box li .pic{height:385px} 固定高度 + img 只有 max-width
     → 不同比例的图片撑破卡片，标题换行后卡片高度不一，float 布局错位
   ============================================================ */

.resistance-box .w1200 ul.f-cb {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 2%;
}

.resistance-box .w1200 ul.f-cb > li {
	float: none;
	width: 23%;
	margin: 0;
	display: flex;
}

.resistance-box .w1200 ul.f-cb > li > a {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

.resistance-box .w1200 ul.f-cb > li .pic {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
}

.resistance-box .w1200 ul.f-cb > li .pic img {
	width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
}

.resistance-box .w1200 ul.f-cb > li > a > span {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 1 1 auto;
	width: auto;
	height: auto;
	min-height: 56px;
	padding: 12px 4%;
	box-sizing: border-box;
	text-align: center;
	line-height: 1.5;
	overflow: hidden;
}

/* 标题与描述各占一行并允许换行（覆盖基类 h3/.font 固定高度+overflow） */
.resistance-box .w1200 ul.f-cb > li > a > span h3 {
	height: auto;
	max-height: none;
	overflow: visible;
	white-space: normal;
	word-break: break-word;
}

.resistance-box .w1200 ul.f-cb > li > a > span .font {
	height: auto;
	max-height: none;
	overflow: visible;
	white-space: normal;
	word-break: break-word;
}

@media (max-width: 1200px) {
	.resistance-box .w1200 ul.f-cb > li { width: 31.5%; }
}

@media (max-width: 768px) {
	.resistance-box .w1200 ul.f-cb > li { width: 48%; }
}

@media (max-width: 480px) {
	.resistance-box .w1200 ul.f-cb > li { width: 100%; }
	.resistance-box .w1200 ul.f-cb > li .pic { aspect-ratio: 4 / 3; }
}
