/* 广告轮播（后台广告管理）：全站各投放位共用
 * 图层坐标以 1200px 设计宽为基准，--hero-unit 由 JS 按容器宽同步（1 设计像素的实际尺寸）
 */
.hero-banner {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f1f3f5;
}

.hero-banner .hero-track {
	position: relative;
	width: 100%;
	height: 680px;
}

/* 内页投放位（产品/资讯/单页/联系）统一矮横幅 */
.hero-banner--products .hero-track,
.hero-banner--news .hero-track,
.hero-banner--single_page .hero-track,
.hero-banner--contact .hero-track {
	height: 320px;
}

.hero-banner .hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity .55s ease;
}

.hero-banner .hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.hero-banner .hero-slide > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-banner .hero-slide[data-slide-link] {
	cursor: pointer;
}

/* 蒙版：纯色直接铺色；带透明度时叠加磨砂 blur */
.hero-banner .hero-mask {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.hero-banner .hero-mask.is-frost {
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

/* ===== 文字/按钮图层（与后台编辑器所见即所得） ===== */
.hero-banner .hero-overlay-box {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	/* JS 会按容器宽同步：--hero-unit = 容器宽 / 1200 px */
	--hero-unit: 1px;
}

.hero-banner .hero-overlay-layer {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 3;
	max-width: 90%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	color: #fff;
	font-weight: 700;
	/* 按 1200 设计宽等比缩放；移动端极窄容器时钳制最小 11px 保证可读 */
	font-size: max(calc(var(--layer-size, 28) * var(--hero-unit, 1px)), 11px);
	line-height: 1.25;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
	white-space: pre-wrap;
	word-break: break-word;
	pointer-events: auto;
	transform: translate(var(--layer-tx, -50%), -50%);
}

.hero-banner .hero-overlay-layer.is-btn {
	text-shadow: none;
	border-radius: 999px;
	padding: .55em 1.35em;
	font-weight: 600;
	white-space: nowrap;
	background: #0072ce;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
	transition: filter .2s ease, transform .2s ease;
}

.hero-banner .hero-overlay-layer.is-btn:hover {
	filter: brightness(1.08);
}

.hero-banner .hero-overlay-link {
	color: inherit;
	text-decoration: none;
}

/* 图层进场动画（切到该帧时由 JS 重挂 hero-in） */
.hero-banner .hero-overlay-layer.hero-in {
	animation: seedz2HeroOverlayIn .7s ease both;
}

.hero-banner .hero-overlay-layer.hero-in:nth-child(1) { animation-delay: .04s; }
.hero-banner .hero-overlay-layer.hero-in:nth-child(2) { animation-delay: .12s; }
.hero-banner .hero-overlay-layer.hero-in:nth-child(3) { animation-delay: .2s; }
.hero-banner .hero-overlay-layer.hero-in:nth-child(4) { animation-delay: .3s; }
.hero-banner .hero-overlay-layer.hero-in:nth-child(5) { animation-delay: .38s; }
.hero-banner .hero-overlay-layer.hero-in:nth-child(n+6) { animation-delay: .46s; }

@keyframes seedz2HeroOverlayIn {
	from {
		opacity: 0;
		transform: translate(var(--layer-tx, -50%), calc(-50% + 18px));
	}
	to {
		opacity: 1;
		transform: translate(var(--layer-tx, -50%), -50%);
	}
}

/* ===== 圆点与箭头 ===== */
.hero-banner .hero-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	z-index: 4;
	display: flex;
	justify-content: center;
	gap: 10px;
	pointer-events: none;
}

.hero-banner .hero-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	pointer-events: auto;
	transition: background .25s ease, transform .25s ease;
}

.hero-banner .hero-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

.hero-banner .hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .28);
	color: #fff;
	font-size: 16px;
	line-height: 42px;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s ease, background .25s ease;
}

.hero-banner:hover .hero-nav {
	opacity: 1;
}

.hero-banner .hero-nav:hover {
	background: rgba(0, 0, 0, .5);
}

.hero-banner .hero-prev { left: 16px; }
.hero-banner .hero-next { right: 16px; }

/* RTL 页面：坐标体系仍按物理 left/top（与后台编辑器一致），仅箭头含义不变 */

@media (prefers-reduced-motion: reduce) {
	.hero-banner .hero-overlay-layer.hero-in {
		animation: none;
	}
}

@media (max-width: 950px) {
	.hero-banner .hero-track {
		height: 360px;
	}

	.hero-banner--products .hero-track,
	.hero-banner--news .hero-track,
	.hero-banner--single_page .hero-track,
	.hero-banner--contact .hero-track {
		height: 200px;
	}

	.hero-banner .hero-nav {
		display: none;
	}

	.hero-banner .hero-dots {
		bottom: 10px;
	}
}
