/**
 * GT Hero Slider - 前台样式
 * 前缀 gt-hero，作用域独立，不依赖主题。
 */

.gt-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 420px;
	overflow: hidden;
	background: #111;
	isolation: isolate;
	color: #fff;
}

@supports (height: 100svh) {
	.gt-hero {
		height: 100svh;
	}
}

.gt-hero *,
.gt-hero *::before,
.gt-hero *::after {
	box-sizing: border-box;
}

.gt-hero__stage {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.gt-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--gt-hero-fade, 800ms) ease, visibility 0s linear var(--gt-hero-fade, 800ms);
	will-change: opacity;
	z-index: 1;
	background: #111;
}

.gt-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--gt-hero-fade, 800ms) ease;
	z-index: 2;
}

.gt-hero__video,
.gt-hero__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	border: 0;
}

/* 半透明遮盖层：保证标题在任意画面上都可读 */
.gt-hero .gt-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	background-color: rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.gt-hero .gt-hero__content {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 37vh 24px 0;
	pointer-events: none;
}

.gt-hero .gt-hero__content > * {
	pointer-events: auto;
}

.gt-hero .gt-hero__actions {
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: auto;
}

.gt-hero .gt-hero__nav {
	position: absolute;
	inset: 0;
	z-index: 6;
	pointer-events: none;
}

.gt-hero .gt-hero__nav .gt-hero__arrow {
	pointer-events: auto;
}

/* 主题/构建器的 wpautop 可能塞进 <p>，清掉它的外边距 */
.gt-hero p {
	margin: 0;
	padding: 0;
}

.gt-hero .gt-hero__title {
	margin: 0 0 88px;
	padding: 0;
	max-width: min(1000px, 92%);
	color: #fff !important;
	font-family: Roboto, Arial, sans-serif;
	font-size: clamp(30px, 4.86vw, 70px);
	line-height: 1.28;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: none;
	text-shadow: 0 2px 26px rgba(0, 0, 0, 0.28);
}

.gt-hero .gt-hero__title b,
.gt-hero .gt-hero__title strong {
	font-weight: 700;
}

.gt-hero .gt-hero__content .gt-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 35px;
	border-radius: 30px;
	background-color: #dd3333 !important;
	color: #fff !important;
	font-size: clamp(13px, 1.18vw, 17px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: none;
	border: 0;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.gt-hero .gt-hero__content .gt-hero__btn:hover,
.gt-hero .gt-hero__content .gt-hero__btn:focus {
	background-color: #c22b2b !important;
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}

.gt-hero .gt-hero__content .gt-hero__btn span {
	color: #fff;
}

.gt-hero .gt-hero__content .gt-hero__btn .gt-hero__btn-ico {
	color: #fff;
}

.gt-hero .gt-hero__btn-ico {
	width: 0.8em;
	height: 0.8em;
	flex: 0 0 auto;
}

.gt-hero .gt-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	opacity: 0.9;
	transition: opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.gt-hero .gt-hero__arrow:hover,
.gt-hero .gt-hero__arrow:focus {
	background: none;
	opacity: 1;
	outline: none;
}

.gt-hero .gt-hero__arrow:focus-visible {
	opacity: 1;
	outline: 1px dashed rgba(255, 255, 255, 0.7);
	outline-offset: 4px;
}

.gt-hero .gt-hero__arrow svg {
	width: 34px;
	height: 34px;
	display: block;
	pointer-events: none;
	-webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.gt-hero .gt-hero__arrow--prev {
	left: 32px;
}

.gt-hero .gt-hero__arrow--next {
	right: 32px;
}

/* 单张时不显示箭头 */
.gt-hero.gt-hero--single .gt-hero__arrow {
	display: none;
}

@media (max-width: 1024px) {
	.gt-hero .gt-hero__content {
		padding: 32vh 20px 2vh;
	}

	.gt-hero .gt-hero__arrow {
		width: 48px;
		height: 48px;
	}

	.gt-hero .gt-hero__arrow svg {
		width: 30px;
		height: 30px;
	}

	.gt-hero .gt-hero__arrow--prev {
		left: 18px;
	}

	.gt-hero .gt-hero__arrow--next {
		right: 18px;
	}
}

@media (max-width: 767px) {
	/* 主题在手机端给列容器加了 15px 内边距，这里让 hero 横向出血到满屏 */
	.gt-hero {
		min-height: 380px;
		/* 手机端横向出血由 JS 按父容器实际内边距计算（见 gt-hero.js applyBleed） */
	}

	.gt-hero .gt-hero__content {
		padding: 96px 18px 40px;
	}

	.gt-hero .gt-hero__title {
		margin-bottom: 22px;
		letter-spacing: 0.5px;
		line-height: 1.3;
	}

	.gt-hero .gt-hero__content .gt-hero__btn {
		padding: 10px 26px;
	}

	.gt-hero .gt-hero__arrow {
		width: 44px;
		height: 44px;
	}

	.gt-hero .gt-hero__arrow svg {
		width: 26px;
		height: 26px;
	}

	.gt-hero .gt-hero__arrow--prev {
		left: 8px;
	}

	.gt-hero .gt-hero__arrow--next {
		right: 8px;
	}
}

/* 横屏手机 / 矮屏：压扁纵向留白，避免内容溢出 */
@media (max-height: 620px) {
	.gt-hero .gt-hero__content {
		padding: 78px 18px 24px;
	}

	.gt-hero .gt-hero__title {
		margin-bottom: 16px;
		font-size: clamp(22px, 3.2vw, 44px);
		line-height: 1.22;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gt-hero__slide,
	.gt-hero__slide.is-active {
		transition: none;
	}

	.gt-hero .gt-hero__content .gt-hero__btn {
		transition: none;
	}
}
