/* Lab Testing Categories Section - 2x2分类展示模块（大型实验基地） */

.lab-testing-categories {
	position: relative;
	padding: 56px 0 64px;
	background: #ffffff;
}

.lab-testing-categories__inner {
	position: relative;
}

/* ========== 顶部标题区 ========== */
.ltc-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 40px;
}

/* 左侧橙色圆形徽章 */
.ltc-header__badge {
	flex-shrink: 0;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #ff8a1f;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(255, 138, 31, 0.25);
}

.ltc-header__badge-text {
	font-size: 36px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1;
	letter-spacing: 1px;
}

/* 右侧文字区 */
.ltc-header__text {
	flex: 0 1 auto;
	min-width: 0;
	text-align: left;
}

.ltc-header__title {
	margin: 0 0 8px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.25;
	color: #1e8a47;
	letter-spacing: 0.5px;
}

.ltc-header__title-num {
	color: #ff8a1f;
}

.ltc-header__subtitle {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #666666;
}

/* ========== 2x2 卡片网格 ========== */
.ltc-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* 单张卡片 */
.ltc-card {
	display: flex;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 2px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.ltc-card:hover {
	border-color: #ff8a1f;
	box-shadow: 0 0 0 1px #ff8a1f, 0 6px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

/* 卡片左侧图片 */
.ltc-card__image {
	flex: 0 0 45%;
	max-width: 45%;
	position: relative;
	overflow: hidden;
	background: #f3f4f6;
}

.ltc-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ltc-card:hover .ltc-card__image img {
	transform: scale(1.04);
}

/* 卡片右侧内容 */
.ltc-card__body {
	flex: 1;
	min-width: 0;
	padding: 24px 22px 20px;
	display: flex;
	flex-direction: column;
}

.ltc-card__title {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #222222;
	letter-spacing: 0.3px;
}

/* 子分类/文章列表 - 两列布局 */
.ltc-card__items {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px 16px;
	flex: 1;
}

.ltc-card__item {
	margin: 0;
	padding: 0;
	min-width: 0;
}

.ltc-card__item a {
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: #555555;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 4px 10px;
	border-radius: 2px;
}

.ltc-card__item a:hover {
	background: #ff8a1f;
	color: #ffffff;
}

/* 查看更多按钮 */
.ltc-card__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	padding: 6px 18px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: #ffffff;
	background: #1e8a47;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	letter-spacing: 0.3px;
}

.ltc-card__more:hover {
	background: #ff8a1f;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(255, 138, 31, 0.3);
}

/* 空状态 */
.ltc-empty {
	padding: 40px;
	text-align: center;
	color: #888888;
	font-size: 15px;
	border: 1px dashed #dddddd;
	border-radius: 4px;
	background: #fafafa;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1199px) {
	.ltc-header__title {
		font-size: 30px;
	}

	.ltc-header__badge {
		width: 60px;
		height: 60px;
	}

	.ltc-header__badge-text {
		font-size: 32px;
	}

	.ltc-grid {
		gap: 20px;
	}

	.ltc-card__body {
		padding: 20px 18px 18px;
	}

	.ltc-card__title {
		font-size: 17px;
		margin-bottom: 14px;
	}

	.ltc-card__item a {
		font-size: 13px;
	}
}

@media (max-width: 991px) {
	.lab-testing-categories {
		padding: 44px 0 52px;
	}

	.ltc-header {
		margin-bottom: 32px;
	}

	.ltc-header__title {
		font-size: 26px;
	}

	.ltc-header__subtitle {
		font-size: 15px;
	}

	/* 卡片改上下结构：图片在上，文字在下 */
	.ltc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}

	.ltc-card {
		flex-direction: column;
	}

	.ltc-card__image {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
		aspect-ratio: 16 / 10;
	}

	.ltc-card__body {
		padding: 18px 18px 16px;
	}
}

@media (max-width: 767px) {
	.lab-testing-categories {
		padding: 36px 0 44px;
	}

	.ltc-header {
		gap: 14px;
		margin-bottom: 28px;
	}

	.ltc-header__badge {
		width: 52px;
		height: 52px;
	}

	.ltc-header__badge-text {
		font-size: 28px;
	}

	.ltc-header__title {
		font-size: 22px;
	}

	.ltc-header__subtitle {
		font-size: 14px;
	}

	.ltc-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ltc-card {
		flex-direction: column;
	}

	/* 移动端隐藏图片 */
	.ltc-card__image {
		display: none !important;
	}

	.ltc-card__body {
		flex: 1;
		padding: 16px 14px 14px;
	}

	.ltc-card__title {
		font-size: 16px;
		margin-bottom: 12px;
	}

	.ltc-card__items {
		gap: 4px 12px;
		margin-bottom: 12px;
	}

	.ltc-card__item a {
		font-size: 12px;
	}

	.ltc-card__more {
		padding: 5px 14px;
		font-size: 12px;
	}
}

@media (max-width: 560px) {
	.ltc-card__body {
		padding: 14px 12px 12px;
	}
}

@media (max-width: 480px) {
	.lab-testing-categories {
		padding: 28px 0 36px;
	}

	.ltc-header {
		gap: 12px;
		align-items: flex-start;
	}

	.ltc-header__badge {
		width: 46px;
		height: 46px;
		margin-top: 2px;
	}

	.ltc-header__badge-text {
		font-size: 24px;
	}

	.ltc-header__title {
		font-size: 19px;
		margin-bottom: 6px;
	}

	.ltc-header__subtitle {
		font-size: 13px;
		line-height: 1.5;
	}

	.ltc-grid {
		gap: 14px;
	}

	.ltc-card__body {
		padding: 14px 12px 12px;
	}

	.ltc-card__title {
		font-size: 15px;
		margin-bottom: 10px;
	}

	.ltc-card__items {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.ltc-card__item a {
		font-size: 13px;
	}
}
