/* 首页 V2 · Hero 板块：桌面按 Home02 稿（1920×730），移动按 393 稿
 * 共用样式在 nv2-base.css，本板块的覆盖在本文件 */

.nv2-hero {
	position: relative;
	min-height: clamp(440px, 44vw, 730px);
	background: linear-gradient(105deg, #2593FF 0%, #6FBEFF 42%, #CCE8FF 82%, #EAF6FF 100%);
	isolation: isolate;
}

.nv2-hero__swiper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.nv2-hero__swiper .swiper-wrapper {
	height: 100%;
}

.nv2-hero__slide {
	position: relative;
	height: 100%;
	overflow: hidden;
}

.nv2-hero__media {
	position: absolute;
	inset: 0;
	background: var(--nv2-blue-pale);
}

/* 必须带 .nv2-home：单类打不过 base 的 .nv2-home img{height:auto}，图会盖不满整屏 */
.nv2-home .nv2-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

/* 左下压暗，保证白字可读 */
.nv2-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(96deg, rgba(4, 66, 126, .46) 0%, rgba(4, 66, 126, .16) 44%, rgba(4, 66, 126, 0) 70%);
}

.nv2-hero__inner {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	align-items: center;
	padding-block: clamp(56px, 8vw, 110px);
}

.nv2-hero__copy {
	max-width: min(920px, 62%);
}

/* 必须带 .nv2-home：单类会被 base 的标题色顶成深色 */
.nv2-home .nv2-hero__title {
	margin: 0 0 clamp(14px, 1.5vw, 24px);
	font-size: clamp(40px, 3.5vw, 60px);
	font-weight: 700;
	line-height: 1.12;
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 58, 112, .3);
}

/* 同样要带 .nv2-home：单类顶不过 base 里 p 的段距和行高 */
.nv2-home .nv2-hero__desc {
	margin: 0 0 clamp(22px, 2.4vw, 42px);
	max-width: 760px;
	font-size: clamp(20px, 1.4vw, 28px);
	line-height: 1.5;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 58, 112, .26);
}

/* 分页点：短横线覆盖 swiper 默认圆点；bottom 必须带 !important，才抢得过 swiper 自带的 bottom:10px */
.nv2-home .nv2-hero__pagination {
	position: absolute;
	left: 0;
	right: 0;
	/* 改距底高度只改这一行；991 以下走下面的固定值 */
	bottom: clamp(36px, 8.1vw, 135px);
	z-index: 4;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	pointer-events: none;
}

.nv2-hero__pagination .swiper-pagination-bullet {
	width: 34px;
	height: 7px;
	margin: 0 !important;
	border-radius: 10px;
	background: #fff;
	opacity: .72;
	transition: width .3s ease, background-color .3s ease, opacity .3s ease;
	pointer-events: auto;
}

.nv2-hero__pagination .swiper-pagination-bullet-active {
	width: 46px;
	background: var(--nv2-orange);
	opacity: 1;
}

/* 移动形态：文案下移 */
@media (max-width: 991px) {
	.nv2-hero {
		min-height: clamp(480px, 168vw, 720px);
	}

	.nv2-hero__scrim {
		background: linear-gradient(180deg, rgba(4, 66, 126, .12) 0%, rgba(4, 66, 126, .1) 40%, rgba(4, 66, 126, .5) 100%);
	}

	.nv2-hero__inner {
		align-items: flex-start;
	}

	.nv2-hero__copy {
		max-width: 100%;
	}

	/* 移动端分页点只能靠下，上移会压到按钮；写法同桌面（.nv2-home + !important） */
	.nv2-home .nv2-hero__pagination {
		bottom: 80px;
	}

	/* 手机端不单独出图：直接取桌面图左上角，可视范围由容器尺寸决定 */
	.nv2-home .nv2-hero__img {
		object-position: left top;
	}
}

@media (max-width: 560px) {
	/* 这两条也必须带 .nv2-home，写成单类不会命中 */
	.nv2-home .nv2-hero__title {
		font-size: clamp(26px, 7.6vw, 34px);
	}

	.nv2-home .nv2-hero__desc {
		font-size: 15px;
		margin-bottom: 22px;
	}
}

/* 模式 B「内缩」：头图连图一起收进版心，与下面模块左右齐平；
   开关在后台「首页 V2 → 首页设置 → 头图版式」（键 layout.hero_width），默认 full 时本段不命中 */
.nv2-home .nv2-hero--boxed {
	max-width: var(--nv2-maxw);
	margin-inline: auto;
	/* 内缩后渐变底会露成图片两侧的一圈边框，所以去掉；占位底色由 .nv2-hero__media 兜 */
	background: none;
}

.nv2-home .nv2-hero--boxed .nv2-hero__swiper {
	/* width 必须显式改回 auto，否则浏览器忽略 right，图片右侧缩不进去 */
	inset: 0 var(--nv2-gutter);
	width: auto;
	/* 圆角跟卡片一致（--nv2-radius）；不想要就删这一行 */
	border-radius: var(--nv2-radius);
}

/* 内缩时图片盒已经缩进 gutter，这里的 padding-inline 必须清零，否则会多缩一档 */
.nv2-home .nv2-hero--boxed .nv2-hero__inner {
	padding-inline: 0;
}
