/* 工厂展示页 */

.site-page-factory,
.site-page-trade-show {
	background: #fff;
}

.factory-showcase {
	padding: 56px 0 40px;
}

.factory-showcase__inner {
	max-width: 1470px;
	margin: 0 auto;
	width: 100%;
	padding: 0 40px;
}

.factory-showcase__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.factory-showcase__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 6px;
	background: #e8e8ee;
	overflow: hidden;
	transition: background 0.25s ease;
}

.factory-showcase__media {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #d8d8de;
}

.factory-showcase__media img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.45s ease;
}

.factory-showcase__name {
	margin: 0;
	padding: 12px 6px 6px;
	font-family: 'Inter', 'Segoe UI', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	color: #1a1a1a;
	background: transparent;
	transition: color 0.25s ease;
}

.factory-showcase__card:hover {
	background: #2a2a2a;
}

.factory-showcase__card:hover .factory-showcase__media img {
	transform: scale(1.04);
}

.factory-showcase__card:hover .factory-showcase__name {
	color: #fff;
}

/* 工厂视频板块 */
.factory-video {
	padding: 24px 0 80px;
}

.factory-video--before-certs {
	padding-bottom: 48px;
}

.site-page-factory > .factory-video:first-child {
	padding-top: 56px;
}

.factory-video__inner {
	max-width: 1470px;
	margin: 0 auto;
	width: 100%;
	padding: 0 40px;
}

.factory-video__player-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

.factory-video__cover,
.factory-video__player {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.factory-video__cover {
	position: absolute;
	inset: 0;
	z-index: 1;
	transition: opacity 0.25s ease;
}

.factory-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 0.38);
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.factory-video__player {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #000;
}

.factory-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: background 0.2s ease, transform 0.2s ease;
}

.factory-video__play:hover {
	background: rgba(0, 0, 0, 0.4);
	transform: translate(-50%, -50%) scale(1.05);
}

.factory-video__play-icon {
	display: block;
	width: 0;
	height: 0;
	margin: 0 0 0 4px;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent #fff;
}

.factory-video__player-wrap.is-playing .factory-video__cover,
.factory-video__player-wrap.is-playing .factory-video__overlay,
.factory-video__player-wrap.is-playing .factory-video__play {
	opacity: 0;
	pointer-events: none;
}

/* 证书展示板块 */
.factory-certs {
	padding: 40px 0 80px;
}

.site-page-factory > .factory-certs:first-child {
	padding-top: 56px;
}

.factory-certs__inner {
	max-width: 1470px;
	margin: 0 auto;
	width: 100%;
	padding: 0 40px;
}

.factory-certs__title {
	margin: 0 0 28px;
	font-family: 'Barlow Condensed', 'Segoe UI', sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.factory-certs__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.factory-certs__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 6px;
	background: #e8e8ee;
	overflow: hidden;
	transition: background 0.25s ease;
}

.factory-certs__media {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #fff;
}

.factory-certs__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.45s ease;
}

.factory-certs__name {
	margin: 0;
	padding: 14px 6px 8px;
	font-family: 'Inter', 'Segoe UI', sans-serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	color: #1a1a1a;
	background: transparent;
	transition: color 0.25s ease;
}

.factory-certs__card:hover {
	background: #2a2a2a;
}

.factory-certs__card:hover .factory-certs__media img {
	transform: scale(1.03);
}

.factory-certs__card:hover .factory-certs__name {
	color: #fff;
}

@media (max-width: 1100px) {
	.factory-showcase {
		padding: 48px 0 32px;
	}

	.factory-showcase__inner {
		padding: 0 28px;
	}

	.factory-showcase__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.factory-video__inner {
		padding: 0 28px;
	}

	.factory-video__play {
		width: 72px;
		height: 72px;
	}

	.factory-video__play-icon {
		border-width: 11px 0 11px 18px;
		margin-left: 3px;
	}

	.factory-certs {
		padding: 32px 0 64px;
	}

	.factory-certs__inner {
		padding: 0 28px;
	}

	.factory-certs__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}
}

@media (max-width: 768px) {
	.factory-showcase__grid,
	.factory-certs__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.factory-showcase__name {
		padding: 10px 4px 4px;
		font-size: 16px;
	}

	.factory-certs__title {
		font-size: 28px;
		margin-bottom: 20px;
	}

	.factory-certs__name {
		padding: 12px 4px 6px;
		font-size: 18px;
	}
}

@media (max-width: 640px) {
	.factory-showcase {
		padding: 36px 0 24px;
	}

	.factory-showcase__inner {
		padding: 0 20px;
	}

	.factory-showcase__grid {
		gap: 10px;
	}

	.factory-showcase__name {
		padding: 8px 2px 2px;
		font-size: 15px;
	}

	.factory-video {
		padding: 16px 0 48px;
	}

	.factory-video--before-certs {
		padding-bottom: 24px;
	}

	.site-page-factory > .factory-video:first-child {
		padding-top: 36px;
	}

	.factory-video__inner {
		padding: 0 20px;
	}

	.factory-video__play {
		width: 56px;
		height: 56px;
	}

	.factory-video__play-icon {
		border-width: 9px 0 9px 15px;
		margin-left: 2px;
	}

	.factory-certs {
		padding: 24px 0 48px;
	}

	.site-page-factory > .factory-certs:first-child {
		padding-top: 36px;
	}

	.factory-certs__inner {
		padding: 0 20px;
	}

	.factory-certs__grid {
		gap: 10px;
	}

	.factory-certs__title {
		font-size: 26px;
		margin-bottom: 16px;
	}

	.factory-certs__name {
		padding: 10px 2px 4px;
		font-size: 16px;
	}
}
