/**
 * 首页 — Banner 纵向满屏 scroll-snap 多屏 + 大事记里程碑（设计稿 1920 等比）
 *
 * 缩放方案（参照 page-careers.css 画布等比）：PC 段所有承重尺寸 = calc(N × var(--u))，
 * --u = 100vw/1920（本文件挂在 body.home .site-main--home / body.blog.is-banner-home .site-main 上，
 * 中英首页 main 类名不同，故未复用 main.css 的 .nyocor-u-page）；
 * 浏览器 Ctrl+滚轮缩放（视口变化）时整页等比缩放，版式不变形。
 * 仅装饰性细节（发丝线/圆角/阴影/无单位行高）保留 px；窄屏 ≤1024 断点接管为可读字号兜底。
 * 保守例外（保持 px / 视口单位，勿改 --u）：
 *  ① 屏高 100vh/100dvh、min-height 兜底、大事记 padding-top 16vh（随视口高，不随宽）；
 *  ② .milestone-stage__canvas（1205×650）及其内部所有元素 —— JS 以 --ms-scale 整体缩放该画布，
 *     内部必须保持固定 px 坐标系，改 --u 会双重缩放、节点脱线；
 *  ③ .banner-screen__hint 的鼠标图形 span/::after 与两个 keyframes（动画位移写死 px，需整体一致）；
 *  ④ 文件末「旧版 Banner 轮播」段：section-banner.php 只输出 .banner-stack，该段无模板输出，纯遗留兜底，未改造。
 */

/* 首页全局重置 - 确保全屏无间距 */
html {
	margin: 0;
	padding: 0;
	overflow-x: hidden; /* 防止横向滚动 */
}

body.home {
	margin: 0;
	padding: 0;
	overflow-x: hidden; /* 防止横向滚动 */
}

/* 英文首页 /en/ 无英文翻译页时走博客索引模板，body class 为 blog 而非 home；
   含 banner 的 blog 页即英文首页，套用同一套首页布局规则。
   用 functions.php 输出的 is-banner-home 标记类判定（等价于 :has(.banner-stack)），
   兼容不支持 :has() 的旧内核浏览器（旧版华为浏览器等 Chromium < 105） */
body.blog.is-banner-home {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

body.home #page {
	margin: 0;
	padding: 0;
	width: 100%;
}

body.blog.is-banner-home #page {
	margin: 0;
	padding: 0;
	width: 100%;
}

/* 首页 --u 缩放单位：与全站 .nyocor-u-page 同规格（1920 设计稿等比）。
   banner 文案/控件统一用 calc(N × var(--u))：随视口平滑等比缩放，
   Ctrl+滚轮缩放（视口变化）整页等比不变形；窄屏可读性由 ≤1024 断点兜底。
   中/英首页 main 类名不同（.site-main--home / blog 分支），统一在此声明 */
body.home .site-main--home,
body.blog.is-banner-home .site-main {
	--u: calc(100vw / 1920);
}

/* 首页主容器重置 - 确保全屏（页头悬浮于 banner 之上，内容从视口顶铺满） */
body.home .site-main--home {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100vh !important; /* 旧浏览器回退 */
	height: 100dvh !important; /* 动态视口高：规避 iOS Safari 地址栏裁切 */
	min-height: 100vh !important;
	display: block !important;
}

/* 英文首页（index.php 首页分支）的 main 无 --home 修饰类，用 is-banner-home 标记类锁定（兼容无 :has 的旧内核） */
body.blog.is-banner-home .site-main {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100vh !important; /* 旧浏览器回退 */
	height: 100dvh !important; /* 动态视口高：规避 iOS Safari 地址栏裁切 */
	min-height: 100vh !important;
	display: block !important;
}

/* ============================================
   首页页头悬浮 — 透明玻璃态悬浮于 banner 之上
   仅本文件（首页）加载；其他页面仍为 main.css 白底吸顶页头
   ============================================ */

.site-header {
	position: fixed; /* 悬浮：脱离文档流，banner 从视口顶(y=0)开始 */
	top: var(--admin-bar-h);
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: none;
}

/* 不支持 backdrop-filter 的浏览器：加深底色保证白字可读 */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
	.site-header {
		background: rgba(7, 30, 56, 0.55);
	}
}

/* 滚动后仍保持玻璃态（压过 main.js 的 is-scrolled 投影） */
.site-header.is-scrolled {
	box-shadow: none;
}

/* 汉堡按钮（PC隐藏/移动端显示）：白色线条 */
.menu-toggle span {
	background: #FFFFFF;
}

.menu-toggle:hover span {
	background: #FFFFFF;
}

/* 语言切换：白色（激活项不透明，未激活自带 0.55 透明度；悬停保持白色不回退品牌蓝） */
.lang-switch-btn,
.lang-option,
.lang-option:hover,
.lang-divider {
	color: #FFFFFF;
	text-decoration: none;
}

.lang-switch-btn:hover,
.lang-switch-btn:hover .lang-option,
.lang-switch-btn:hover .lang-option--active,
.lang-switch-btn:hover .lang-divider {
	color: #FFFFFF;
}

/* 桌面端导航：白字 + 白色下划线（悬停/当前项，同设计稿首页） */
@media (min-width: 1025px) {

	.site-header .main-nav .menu a {
		color: #FFFFFF;
	}

	/* 下拉子菜单（白底卡片）：豁免白字，固定深色文字（白底白字不可见） */
	.site-header .main-nav .menu .sub-menu a {
		color: #1d3557;
	}

	.site-header .main-nav .menu .sub-menu a:hover {
		color: var(--color-primary);
	}

	.site-header .main-nav .menu a:hover,
	.site-header .main-nav .menu li.current-menu-item > a,
	.site-header .main-nav .menu li.current-page-item > a,
	.site-header .main-nav .menu li.current_page_item > a {
		color: #FFFFFF;
	}

	.main-nav .menu li > a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -8px;
		height: 2px;
		background: #FFFFFF;
		border-radius: 2px;
		transform: scaleX(0);
		transform-origin: center;
		transition: transform 0.25s ease;
	}

	.main-nav .menu li:hover > a::after,
	.main-nav .menu li.current-menu-item > a::after,
	.main-nav .menu li.current-page-item > a::after,
	.main-nav .menu li.current_page_item > a::after {
		transform: scaleX(1);
	}
}

/* ============================================
   首页 Banner — 纵向满屏多屏滚动（scroll-snap）
   每屏一张图，滚轮/触摸整屏切换，右侧圆点导航
   ============================================ */

/* 吸附滚动：首页由 .site-content 承担滚动（其 overflow-x:hidden 使之成为滚动容器），
   在其上启用整屏纵向吸附。首页（中/英）恒含 .banner-stack，直接用 body.home /
   body.blog.is-banner-home 判定（section-banner.php 内另有 CSS.supports JS 兜底） */
body.home .site-content,
body.blog.is-banner-home .site-content,
body.home,
body.blog.is-banner-home {
	scroll-snap-type: y mandatory;
}

/* 吸附载体 = 真实滚动容器（body 被锁定一屏高 + overflow-y:auto）；
   .site-content 仅为 banner 包裹层（overflow-y:visible，非滚动容器），
   其上的 snap 声明无效——保留以兼容结构变动，实际生效的是 body 上的声明 */

/* 单屏：占满视口（页头悬浮，不扣高度），滚动吸附对齐 */
.banner-screen {
	position: relative;
	height: 100vh;
	height: 100dvh; /* 动态视口高：规避 iOS Safari 地址栏裁切 */
	min-height: 560px;
	scroll-snap-align: start;
	scroll-snap-stop: always; /* 一次滚动只翻一屏，防跳页 */
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font); /* banner 文字统一思源黑体（序号/标题/副标题/按钮/大事记/滚动提示） */
}

/* 背景层：持续呼吸缩放循环（1 ↔ 1.08，每轮 12s 往返，画面始终有活力） */
.banner-screen__bg {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	/* !important：压过 inline style 里 background 简写对 size/repeat 的重置，杜绝平铺拼接 */
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	animation: bannerBgBreathe 12s ease-in-out infinite alternate;
}

@keyframes bannerBgBreathe {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
	.banner-screen__bg { animation: none; transform: none; }
}

/* 遮罩：左深右浅，衬托左侧/居中文字 */
.banner-screen__overlay {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: linear-gradient( 90deg, rgba(7, 30, 56, 0.55) 0%, rgba(7, 30, 56, 0.28) 55%, rgba(7, 30, 56, 0.12) 100% );
	pointer-events: none;
}

/* 视频媒体层：未播放时隐藏（封面态 = 背景图片层呼吸缩放，零抖动），
   点击播放后由 .is-playing 显示并铺满 */
.banner-screen__media {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.45s ease;
}

.banner-screen.is-playing .banner-screen__media {
	visibility: visible;
	opacity: 1;
}

/* 视频静止铺满（占满容器 + object-fit 裁切，自身无任何动画/transform） */
.banner-screen__video {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 视频播放按钮：白底圆形 + 品牌蓝三角（96px @1920 等比，悬停放大 1.08） */
.banner-screen__play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(96 * var(--u));
	height: calc(96 * var(--u));
	margin-top: calc(40 * var(--u));
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #10497F;
	cursor: pointer;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.banner-screen__play svg {
	width: 52%;
	height: 52%; /* 三角随按钮等比缩放（覆盖 HTML 固定 width/height 属性） */
	margin-left: 4px; /* 三角视觉居中 */
}

.banner-screen__play:hover {
	background: #FFFFFF;
	transform: scale(1.08);
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

/* 播放中：文案与按钮整体淡出，视频画面接管全屏（提高优先级压过 .is-inview） */
.banner-screen.is-inview.is-playing .banner-screen__content {
	opacity: 0;
	transform: translateY(24px);
	pointer-events: none;
	transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 暂停态：画面压暗 + 中央暂停图标浮现，提示可点击继续 */
.banner-screen.is-paused .banner-screen__video {
	cursor: pointer;
}

/* 播放/暂停后：视频画面即内容本体（媒体层无动画，仅透明度过渡） */

.banner-screen.is-paused::after {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(7, 30, 56, 0.45);
	z-index: 1;
	pointer-events: none;
}

.banner-screen.is-paused .banner-pause-icon {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* 中央暂停图标（播放中隐藏，暂停时浮现；88px @1920 等比） */
.banner-pause-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.85);
	z-index: 2;
	width: calc(88 * var(--u));
	height: calc(88 * var(--u));
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #10497F;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(7 * var(--u));
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.banner-pause-icon i {
	display: block;
	width: calc(9 * var(--u));
	height: calc(30 * var(--u));
	background: currentColor;
	border-radius: 2px;
}

/* ============================================
   大事记屏（milestone）：设计稿「十年攀登」布局
   左上标题 + 登山路径虚线 + 6 个里程碑 + 登山者剪影
   ============================================ */

/* 大事记遮罩：设计稿同款 135° 深蓝渐变 */
.banner-screen__overlay--milestone {
	background: linear-gradient(135deg, rgba(3, 30, 58, 0.88) 0%, rgba(3, 30, 58, 0.55) 100%);
}

/* 大事记内容层：左上对齐，占满整屏宽度（1205px @1920 等比；padding-top 16vh 随视口高缩放） */
.banner-screen__content--milestone {
	position: relative;
	z-index: 2;
	width: min(90%, calc(1205 * var(--u)));
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	padding-top: max(120px, min(16vh, 180px));
	text-align: left;
}

.banner-screen__content--milestone .banner-screen__title {
	font-size: max(22px, calc(54 * var(--u)));
	margin-top: calc(10 * var(--u));
	/* 大事记标题最长（金开大事记·每一步都值得），窄屏单行放不下 → 允许换行
	   （2026-10 用户要求；全局 nowrap 只为保证其余屏的单行观感） */
	white-space: normal;
}

/* 大事记屏英文标题：同上降档（选择器权重与上一条一致，靠顺序覆盖） */
.banner-screen__content--milestone .banner-screen__title--en {
	font-size: max(22px, calc(43 * var(--u)));
}

/* 登山路径舞台：撑满剩余高度（画布按舞台实际尺寸由 JS 等比缩放） */
.milestone-stage {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	margin-top: calc(10 * var(--u));
	min-height: 0;
}

/* 固定设计画布：路径、节点、里程碑共用同一 px 坐标系，
   JS 计算 --ms-scale = min(舞台宽/1205, 舞台高/650) 整体缩放，
   任何窗口尺寸下节点永远贴着轨迹线、卡片互不叠压也不出界 */
.milestone-stage__canvas {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1205px;
	height: 650px;
	/* 豁免 main.css 全局 `* { max-width:100% }`：画布必须保持设计尺寸，
	   否则 px 坐标系被钳制、缩放后仍会溢出（该全局规则同样钳过 max-width 计算值） */
	max-width: none;
	transform: translate(-50%, -50%) scale(var(--ms-scale, 1));
}

/* 路径虚线铺满画布：viewBox 0 0 100 100 + preserveAspectRatio=none，
   设计稿百分比坐标直接拉伸铺满（与节点/里程碑的 % 定位天然同一坐标系） */
.milestone-stage__path {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

/* 虚线参数与原设计稿同款：viewBox 原始单位（无 pathLength / 无 non-scaling-stroke），
   dasharray 3 4 随 preserveAspectRatio=none 拉伸 → 长段粗虚线（段约 25~40px）；
   线宽 0.9（原 0.6 加宽 50%），拉伸后视觉约 6~10px */
.milestone-stage__path path {
	fill: none;
	stroke: rgba(255, 255, 255, 0.45);
	stroke-width: 0.9;
	stroke-dasharray: 3 4;
}

/* 发光节点：白色圆点 + 柔和光晕（box-shadow 全浏览器兼容，含 Safari/华为）。
   亮度克制：圆心 88% 白（非纯白）+ 光晕低透明度，避免高亮刺眼；
   % 定位与百分比拉伸路径同一坐标系；入场由 .is-inview 触发，
   路径生长完毕后自下而上逐个点亮（1.5s 起步，delay 由模板内联输出），
   对应年份/卡片在其点亮后再浮现（+0.15s），形成「线 → 点 → 文字」先后顺序。 */
.milestone-stage__node {
	position: absolute;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px; /* 圆心对准坐标点 */
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	box-shadow:
		0 0 0 3px rgba(255, 255, 255, 0.16),    /* 内圈实心晕 */
		0 0 14px 5px rgba(255, 255, 255, 0.28), /* 主光晕 */
		0 0 28px 12px rgba(255, 255, 255, 0.1); /* 外圈扩散晕 */
	z-index: 1;
	opacity: 0;
	transform: scale(0.3);
}

.banner-screen.is-inview .milestone-stage__node {
	animation: milestoneNodeOn 0.4s ease forwards;
}

/* ============================================
   大事记屏分步渲染：进入视口时
   ① 路径描边生长 → ② 里程碑依次浮现 → ③ 登山者淡入
   由 .is-inview 触发，每次进入重播
   ============================================ */

/* 初始态：路径隐藏 / 里程碑下沉淡出 / 登山者隐藏（节点延迟由模板内联输出） */
.milestone-stage__path path {
	stroke-dashoffset: 100;
	opacity: 0;
}

.milestone {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.milestone-stage__climbers {
	opacity: 0;
	transition: opacity 0.8s ease;
}

/* 路径生长动画：底层实线描边从 0 生长到全长后淡出为虚线常驻态 */
.banner-screen.is-inview .milestone-stage__path path {
	animation: milestonePathFade 1.4s ease forwards;
}

/* 里程碑文字入场：对应节点点亮后 +0.15s 浮现（线 → 点 → 文字的先后顺序） */
.banner-screen.is-inview .milestone:nth-of-type(1),
.banner-screen.is-inview .milestone:nth-child(3) { transition-delay: 1.65s; }
.banner-screen.is-inview .milestone:nth-of-type(2) { transition-delay: 1.95s; }
.banner-screen.is-inview .milestone:nth-of-type(3) { transition-delay: 2.25s; }
.banner-screen.is-inview .milestone:nth-of-type(4) { transition-delay: 2.55s; }
.banner-screen.is-inview .milestone:nth-of-type(5) { transition-delay: 2.85s; }
.banner-screen.is-inview .milestone:nth-of-type(6) { transition-delay: 3.15s; }

.banner-screen.is-inview .milestone {
	opacity: 1;
	transform: translateY(0);
}

.banner-screen.is-inview .milestone-stage__climbers {
	opacity: 0.95;
	transition-delay: 3.5s;
}

@keyframes milestonePathFade {
	to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes milestoneNodeOn {
	from { opacity: 0; transform: scale(0.3); }
	to   { opacity: 1; transform: scale(1); }
}

/* 减少动态偏好：跳过动画直接显示 */
@media (prefers-reduced-motion: reduce) {
	.milestone-stage__path path {
		animation: none !important;
		stroke-dashoffset: 0;
		opacity: 1;
	}


	.milestone,
	.milestone-stage__climbers {
		transition: none !important;
		transition-delay: 0s !important;
		opacity: 1;
		transform: none;
	}

	/* 减少动态偏好：节点直接常亮，无缩放动画 */
	.milestone-stage__node {
		animation: none !important;
		opacity: 1;
		transform: none;
	}
}

/* 单个里程碑：经典对称布局「年份 ← 圆点 → 卡片」。
   .milestone 本体是钉在节点圆心的零尺寸锚点，年份/卡片分别向两侧伸展：
   间距 = 圆点半径 7px + 空隙 14px = 21px，精确对称且与文字宽度无关。 */
.milestone {
	position: absolute;
	width: 0;
	height: 0;
	z-index: 2;
}

/* 大年份数字 + YEARS：圆点左侧（右对齐贴向圆点）。
   max-width:none：豁免 main.css 全局钳制——绝对定位子元素的包含块是
   零尺寸锚点 .milestone，全局 `*{max-width:100%}` 会把内容钳成 0 宽竖排 */
.milestone__year {
	position: absolute;
	right: 21px;
	top: 0;
	transform: translateY(-50%);
	max-width: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1;
	white-space: nowrap;
}

.milestone__year-big {
	font-family: inherit; /* 随 banner 统一使用 Source Han Sans CN（原 Inter） */
	font-size: 2.6rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #FFFFFF;
}

.milestone__year-big em {
	font-style: normal;
	font-size: 0.85rem;
	font-weight: 700;
	margin-left: 3px;
	vertical-align: super;
}

.milestone__year-label {
	font-size: 18px; /* 用户指定 */
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.65);
	margin-top: 2px;
}

/* 玻璃卡片描述：圆点右侧（左缘距圆心 21px，与年份侧对称）；max-width:none 理由同上 */
.milestone__body {
	position: absolute;
	left: 21px;
	top: 0;
	transform: translateY(-50%);
	order: 0;
	width: 330px; /* 加宽：18px 字号下中英文均 ≤3 行，压低卡片高度防叠压 */
	max-width: none;
	white-space: normal;
	text-align: left;
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	padding: 12px 14px;
}

.milestone__body p {
	margin: 0;
	font-size: 1.125rem; /* 18px（画布内部声明，随 --ms-scale 整体缩放） */
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

/* 英文文字较长：字号 −2px（html lang 属性区分语言） */
html[lang="en-US"] .milestone__body p {
	font-size: 1rem; /* 16px */
}

/* 镜像布局（.milestone--flip）：年份在圆点右、卡片在圆点左。
   用于 2022（与上/下相邻节点垂直间距不足，翻转后与两侧卡片水平错开）
   与 2025（贴近画布右缘：默认「卡片在右」会伸出画布被裁切） */
.milestone--flip .milestone__year {
	right: auto;
	left: 21px;
	align-items: flex-start;
}

.milestone--flip .milestone__body {
	left: auto;
	right: 21px;
	/* 描述文字左对齐（2026-10 按需求）：镜像布局仅保留位置镜像，
	   文字右对齐会让末行孤字悬在右侧、观感差 */
	text-align: left;
}

/* 登山者剪影：中下部 */
.milestone-stage__climbers {
	position: absolute;
	left: 38%;
	bottom: 0;
	width: 190px;
	opacity: 0.95;
	pointer-events: none;
}

/* 平板及以下（≤1024px）：散点构图缩到可用字号以下，降级为纵向列表。
   里程碑在 PHP 结构上位于画布内，故让画布本体转成列表容器（不能 display:none），
   仅隐藏路径 SVG 与登山者。 */
@media (max-width: 1024px) {
	/* 大事记内容容器：隐藏纵向滚动条（触摸滑动不受影响，视觉更干净） */
	.banner-screen__content--milestone { scrollbar-width: none; }
	.banner-screen__content--milestone::-webkit-scrollbar { display: none; }

	/* 手机端文字：列表布局下固定可读字号（18 − 4 = 14px；英文 −2 = 12px） */
	.milestone__body p { font-size: 14px; line-height: 1.6; }
	html[lang="en-US"] .milestone__body p { font-size: 12px; }

	.banner-screen__content--milestone {
		justify-content: flex-start;
		padding-top: calc(var(--header-h, 80px) + 16px);
		overflow-y: auto;
	}

	.milestone-stage {
		flex: 0 0 auto;
	}

	.milestone-stage__canvas {
		position: static;
		width: auto;
		height: auto;
		max-width: none;
		transform: none;
		display: flex;
		flex-direction: column-reverse; /* 年份降序：最新在最上（DOM 仍是 2014→2024） */
		gap: 18px;
		padding-top: 16px;
		padding-bottom: 24px;
	}

	.milestone-stage__path,
	.milestone-stage__node,
	.milestone-stage__climbers {
		display: none;
	}

	.milestone {
		position: static;
		transform: none;
		width: 100%;
		height: auto;
		white-space: normal;
	}

	/* 列表网格放在 stack 包裹层上（桌面端它是不参与定位的透明层）：
	   年份列 100px——年份数字 + 缩小后的标签均放得下，卡片不再盖住标签 */
	.milestone__stack {
		display: grid;
		grid-template-columns: 100px 1fr;
		gap: 14px;
		align-items: center;
	}

	.milestone__year-label {
		font-size: 13px;
		letter-spacing: 0.04em;
		white-space: normal;
	}

	html[lang="en-US"] .milestone__year-label { font-size: 12px; }

	.milestone__year-big {
		font-size: 1.6rem;
	}

	.banner-screen.is-inview .milestone {
		transform: none;
	}

	/* 窄屏手机：年份列收窄、标签/年份字号再降一档，给卡片让出宽度 */
	@media (max-width: 480px) {
		.milestone__stack {
			grid-template-columns: 72px 1fr;
			gap: 10px;
		}

		.milestone__year-big {
			font-size: 1.25rem;
		}

		.milestone__year-label {
			font-size: 11px;
			letter-spacing: 0.02em;
		}
	}

	/* 桌面端零尺寸锚点+绝对定位子元素 → 列表端还原静态流式 */
	.milestone__year {
		position: static;
		transform: none;
		right: auto;
		align-items: flex-start;
	}

	.milestone__body {
		position: static;
		transform: none;
		left: auto;
		width: auto;
	}

	/* 列表端撤销桌面镜像：年份回到左列、卡片右对齐还原为左对齐 */
	.milestone--flip .milestone__body {
		right: auto;
		text-align: left;
	}
}

.banner-screen.is-playing .banner-screen__bg,
.banner-screen.is-playing .banner-screen__hint {
	transition: none;
}

.banner-screen.is-playing .banner-screen__bg {
	animation-play-state: paused; /* 视频接管画面时暂停背景呼吸（隐藏层无需继续动画） */
}

/* 视频已铺满，遮罩在播放中减淡，画面更通透 */
.banner-screen.is-playing .banner-screen__overlay {
	opacity: 0.35;
}

/* 内容层：纵向满屏居中（进入视口时渐入上移）；1205px @1920 等比 */
.banner-screen__content {
	position: relative;
	z-index: 2;
	width: 90%;
	max-width: min(100%, calc(1205 * var(--u)));
	text-align: center;
	color: #FFFFFF;
	opacity: 0;
	transform: translateY(34px);
	transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.banner-screen.is-inview .banner-screen__content {
	opacity: 1;
	transform: none;
}

/* 标题：75px @1920 等比缩放（min 28px 兜底） */
.banner-screen__title {
	font-family: var(--font);
	font-weight: 700; /* 500→700：首页 banner 大标题加粗（用户要求，2026-09） */
	font-size: max(22px, calc(75 * var(--u)));
	line-height: 1.4;
	letter-spacing: 0.05em;
	color: #FFFFFF;
	margin: calc(18 * var(--u)) 0 0;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

/* 英文标题：西文 x 高度大、字距 0.05em 在同字号下视觉偏大，
   降一档字号并收紧字距（字体栈不变，中文屏不受影响） */
.banner-screen__title--en {
	font-size: max(22px, calc(60 * var(--u)));
	letter-spacing: 0.01em;
}

/* 标题不换行（2026-10 手机端用户要求）：中文标题窄屏单行显示；
   英文字符长、单行会溢出窄屏，:lang(en) 保留换行 */
.banner-screen__title {
	white-space: nowrap;
}

:lang(en) .banner-screen__title {
	white-space: normal;
}

/* 副标题：33.8px @1920 等比 */
.banner-screen__subtitle {
	font-family: var(--font);
	font-weight: 400;
	font-size: max(18px, calc(33.8 * var(--u)));
	line-height: 1.5;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.92);
	margin: calc(18 * var(--u)) auto 0;
	max-width: min(90%, calc(940 * var(--u)));
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* slide_link 按钮：18px 字号 / 14×44 内边距 @1920 等比 */
.banner-screen__btn {
	display: inline-block;
	margin-top: calc(40 * var(--u));
	padding: calc(14 * var(--u)) calc(44 * var(--u));
	background: #FFFFFF;
	color: #10497F;
	border-radius: 4px;
	font-size: max(13px, calc(18 * var(--u)));
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.banner-screen__btn:hover {
	background: #F2F7FD;
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
	color: #10497F;
}

/* 首屏滚动提示：鼠标轮廓 + 滚动小球动画 + 整体弹跳（设计稿同款）。
   仅定位/文字随 --u 缩放；鼠标图形 span/::after 与两个 keyframes 的几何写死 px
   （动画位移与图形必须同一坐标系），保持固定尺寸 */
.banner-screen__hint {
	position: absolute;
	bottom: calc(32 * var(--u));
	left: 50%;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.7);
	font-size: max(12px, calc(13 * var(--u)));
	letter-spacing: 0.1em;
	transform: translateX(-50%);
	animation: bannerStackBounce 2s infinite;
}

.banner-screen__hint span {
	width: 22px;
	height: 36px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 12px;
	position: relative;
}

.banner-screen__hint span::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 8px;
	background: #FFFFFF;
	border-radius: 2px;
	animation: bannerStackBall 2s infinite;
}

@keyframes bannerStackBounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
	40% { transform: translateX(-50%) translateY(-8px); }
	60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes bannerStackBall {
	0%   { opacity: 1; top: 6px; }
	100% { opacity: 0; top: 18px; }
}

/* 右侧圆点导航：固定于视口右缘，随滚动高亮（28px 边距 @1920 等比） */
.banner-stack__nav {
	position: fixed;
	right: calc(28 * var(--u));
	top: 50%;
	transform: translateY(-50%);
	z-index: 40;
	display: flex;
	flex-direction: column;
	gap: calc(14 * var(--u));
}

.banner-stack__nav a {
	width: calc(10 * var(--u));
	height: calc(10 * var(--u));
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	transition: background 0.25s ease, transform 0.25s ease;
}

.banner-stack__nav a:hover,
.banner-stack__nav a.is-active {
	background: #FFFFFF;
	transform: scale(1.5);
}

/* 手机：缩短屏高（避免横图竖屏裁切过多），内容左对齐留更多画面 */
@media (max-width: 640px) {
	.banner-screen { height: 100vh; height: 100dvh; min-height: 420px; } /* dvh 规避 iOS 地址栏裁切 */
	.banner-screen__content { text-align: center; }
}

/* ============================================
   窄屏（≤1024，含手机/平板）字号与控件兜底：
   --u 随视口等比缩到窄屏会低于可读下限，此处恢复等价于
   旧 clamp() 下限的固定值（须放在所有 PC 基础规则之后，靠源顺序覆盖）
   ============================================ */
@media (max-width: 1024px) {

	.banner-screen__play {
		width: 64px;
		height: 64px;
		margin-top: 20px;
	}

	.banner-pause-icon {
		width: 56px;
		height: 56px;
		gap: 4px;
	}

	.banner-pause-icon i {
		width: 6px;
		height: 18px;
	}

	.banner-screen__content--milestone .banner-screen__title {
		font-size: 26px;
		margin-top: 10px;
	}

	.banner-screen__content--milestone .banner-screen__title--en {
		font-size: 22px;
	}

	.milestone-stage {
		margin-top: 10px;
	}

	.banner-screen__title {
		font-size: 28px;
		margin: 10px 0 0;
	}

	.banner-screen__title--en {
		font-size: 24px;
	}

	.banner-screen__subtitle {
		font-size: 14px;
		margin: 10px auto 0;
	}

	.banner-screen__btn {
		margin-top: 20px;
		padding: 9px 24px;
		font-size: 14px;
	}

	.banner-screen__hint {
		bottom: 18px;
		font-size: 11px;
	}

	.banner-stack__nav {
		right: 8px;
		gap: 10px;
	}

	.banner-stack__nav a {
		width: 8px;
		height: 8px;
	}
}

/* ---- 旧版 Banner 轮播（banner-stack 未启用时兜底保留） ---- */
.banner {
	position: relative;  /* 外层相对定位，为内部绝对定位提供参照点 */
	background: var(--color-primary-dark);
	color: #fff;
	overflow: hidden;
	width: 100%;
	max-width: 1920px;  /* PC端最大宽度 */
	margin: 0 auto;     /* 居中显示 */
	height: calc(100vh - var(--header-h));      /* 视口高度减去固定页头 */
	height: calc(100dvh - var(--header-h));     /* 动态视口高：规避 iOS Safari 地址栏裁切 */
	min-height: 600px;  /* 最小高度，确保在移动端也有足够空间 */
	max-height: none;   /* 纵向满屏：不设上限，高分辨率屏也铺满 */
	border-radius: 0 !important; /* 强制去除圆角 */
}

/* 轮播轨道容器 */
.banner__track {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
}

/* 单个轮播项 */
.banner__slide {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background-size: cover !important; /* 铺满整个屏幕 */
	background-position: center center !important; /* 居中显示，均匀裁剪 */
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity .6s;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0 !important; /* 强制去除圆角 */
	overflow: hidden; /* 确保内容不溢出 */
}

/* 视频样式 */
.banner__video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
	z-index: 0;
}

/* 视频类型轮播项特殊样式 */
.banner__slide[data-slide-type="video"] {
	background: linear-gradient(135deg, #0073aa, #005a87) !important;
}

.banner__slide.is-active {
	opacity: 1;
	z-index: 1;
}

/* Banner呼吸式缩放动画：缓慢放大后缓慢还原，循环播放（仅作用于当前显示的图片轮播项） */
@keyframes bannerBreath {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.08); }
	100% { transform: scale(1); }
}

.banner__slide.is-active[data-slide-type="image"] {
	animation: bannerBreath 14s ease-in-out infinite;
	will-change: transform; /* 提示 GPU 合成，避免缩放引发重排 */
}

/* 用户偏好减少动态效果时不播放动画（无障碍） */
@media (prefers-reduced-motion: reduce) {
	.banner__slide.is-active[data-slide-type="image"] {
		animation: none;
		will-change: auto;
	}
}

/* 遮罩层 */
/*.banner__overlay {*/
/*	position: absolute;*/
/*	inset: 0;*/
/*	width: 100%;*/
/*	height: 100%;*/
/*	background: linear-gradient(90deg, rgba(7, 59, 111, .7), rgba(7, 59, 111, .25));*/
/*	z-index: 1;*/
/*}*/

/* 默认Banner样式 - 当没有轮播图时显示 */
.banner--default .banner__slide,
.banner--default {
	min-height: 100vh; /* 全屏高度 */
	min-height: 100dvh; /* 动态视口高：规避 iOS Safari 地址栏裁切 */
	background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

/* 内容容器 - 居中定位 */
.banner__inner {
	position: relative;
	z-index: 1;
	padding: 64px 20px;
}

/* Group 67: 标题和副标题容器 - 纵向满屏居中（原型「新闻中心-1.svg」：内容在 banner 高度正中） */
.banner__content-group {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 90%;
	max-width: 1205px;
	margin: 0;
	text-align: center;
	z-index: 10; /* 确保在遮罩层上方显示 */
}

/* 主标题样式 - 聚能无限·致净未来（Figma: 75px/156px 700 #FFF） */
.banner__title {
	position: relative;
	width: auto;
	max-width: 705px;
	height: auto;
	margin: 0 auto;

	font-family: var(--font);
	font-style: normal;
	font-weight: 500;
	font-size: max(28px, min(3.906vw, 75px));          /* Figma 75px @1920 */
	line-height: 2.08;                               /* Figma 156px / 75px */
	text-align: center;
	letter-spacing: 0.05em;
	color: #FFFFFF;
	white-space: nowrap; /* 保持标题在一行 */
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

/* 副标题样式 - 汇聚蓬勃无限动能...（Figma: 33.8px/46px 400 居中） */
.banner__subtitle {
	position: relative;
	top: auto;
	width: 100%;
	max-width: 940px; /* Figma 815px + 余量，避免第二行尾字折行 */
	height: auto;
	margin: max(6px, min(0.8vw, 16px)) auto 0;

	font-family: var(--font);
	font-style: normal;
	font-weight: 400;
	font-size: max(14px, min(1.76vw, 33.8px));          /* Figma 33.8px @1920 */
	line-height: 1.36;                               /* Figma 46px / 33.8px */
	letter-spacing: 0.05em;
	color: #FFFFFF;
	text-align: center;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Banner按钮样式 */
.banner__btn {
	display: inline-block;
	padding: 14px 40px;
	background: var(--color-primary);
	color: #fff;
	border-radius: 148.5px;
	font-weight: 600;
	font-size: 16px;
	min-width: 223px;
	text-align: center;
}

.banner__btn:hover {
	background: var(--color-primary-dark);
	color: #fff;
	text-decoration: none;
}

/* Banner轮播指示点 */
.banner__dots {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 30; /* 提高层级，确保在悬浮卡片之上 */
	pointer-events: auto; /* 确保可点击 */
}

.banner__dots button {
	width: 10px;
	height: 10px;
	margin: 0 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	pointer-events: auto; /* 确保按钮可点击 */
	transition: all 0.3s ease;
}

.banner__dots button:hover {
	background: rgba(255, 255, 255, .8);
	transform: scale(1.2);
}

.banner__dots button.is-active {
	background: #fff;
}

/* Banner数据统计区（Figma设计：底部4项统计） */
.banner__stats {
	position: absolute;
	bottom: 20px;
	left: 900px;
	right: 0;
	z-index: 2;
	padding: 40px 60px;
	display: flex;
	justify-content: center;
	gap: 100px;
}

.banner__stat-item {
	text-align: center;
	color: #fff;
	position: relative;
}

.banner__stat-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -50px;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 60px;
	background: rgba(255, 255, 255, 0.5);
}

.banner__stat-value {
	font-size: 50px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 8px;
}

.banner__stat-label {
	font-size: 16px;
	opacity: 0.9;
}

/* Banner底部悬浮卡片样式 */
.banner__card {
	position: absolute;
	bottom: 30px;
	z-index: 25;
	width: 486px;
}

.banner__card--left {
	left: 30px;
	height: 336px;
}

.banner__card--right {
	right: 30px;
	height: 243px;
}

.banner__card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.5);
	-webkit-backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	border-radius: 30px;
	padding: 30px;
}

.banner__card-content {
	position: relative;
	max-width: 455px;
}

.banner__card-title {
	font-family: var(--font);
	font-style: normal;
	font-weight: 500;
	font-size: 26px;
	line-height: 39px;
	color: #484848;
	margin: 20px 0 15px 0;
	padding: 0;
}

.banner__card-desc {
	font-family: var(--font);
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 26px;
	letter-spacing: 0.02em;
	color: #484848;
	margin: 0;
	padding: 0;
}

/* 响应式调整 */
/* PC端 (>1024px) - 视口高度扣除固定页头 */
@media (min-width: 1025px) {
	.banner {
		height: calc(100vh - var(--header-h));  /* PC端铺满剩余视口 */
		height: calc(100dvh - var(--header-h)); /* 动态视口高：规避 iOS Safari 地址栏裁切 */
	}
}

/* 中等屏幕 (768px - 1200px) */
@media (max-width: 1200px) and (min-width: 769px) {
	.banner {
		height: calc(100vh - var(--header-h)); /* 中等屏幕铺满剩余视口 */
		height: calc(100dvh - var(--header-h)); /* 动态视口高：规避 iOS Safari 地址栏裁切 */
	}

	.banner__stats {
		left: 600px;
		gap: 60px;
		padding: 30px 40px;
	}

	.banner__stat-item:not(:last-child)::after {
		right: -30px;
	}
}

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
	.banner {
		height: calc(100vh - var(--header-h)); /* 平板端铺满剩余视口 */
		height: calc(100dvh - var(--header-h)); /* 动态视口高：规避 iOS Safari 地址栏裁切 */
	}

	.banner__inner {
		padding: 0 30px;
	}

	.banner__content-group {
		max-width: 900px;
	}

	/* 主标题响应式（允许换行） */
	.banner__title {
		font-size: max(32px, min(6vw, 56px));
		line-height: 1.5;
		max-width: 700px;
		white-space: normal;
	}

	/* 副标题响应式 */
	.banner__subtitle {
		font-size: max(16px, min(2.6vw, 26px));
		line-height: 1.5;
		max-width: 900px;
	}

	/* 平板端悬浮卡片适配 */
	.banner__card {
		width: 380px;
	}

	.banner__card--left {
		height: 280px;
	}

	.banner__card--right {
		height: 200px;
	}

	.banner__card-inner {
		padding: 25px;
	}

	.banner__card-title {
		font-size: 28px;
		line-height: 34px;
	}

	.banner__card-desc {
		font-size: 16px;
		line-height: 24px;
	}

	.banner__stats {
		flex-wrap: wrap;
		gap: 30px;
		padding: 30px 20px;
	}

	.banner__stat-item {
		flex: 0 0 calc(50% - 15px);
		padding-right: 25px;
		border-right: 1px solid rgba(255, 255, 255, 0.3);
	}

	.banner__stat-item:not(:last-child)::after {
		display: none;
	}

	.banner__stat-item:nth-child(2n) {
		padding-right: 0;
		border-right: none;
	}

	.banner__stat-value {
		font-size: 36px;
	}

	.banner__stat-label {
		font-size: 13px;
	}
}

/* 手机设备 (最大768px) */
@media (max-width: 768px) {
	.banner {
		height: calc(100vh - var(--header-h)); /* 移动端铺满剩余视口 */
		height: calc(100dvh - var(--header-h)); /* 动态视口高：规避 iOS Safari 地址栏裁切 */
		min-height: 480px; /* 最小高度确保内容可见 */
	}

	.banner__slide,
	.banner--default {
		min-height: 480px;
	}

	.banner__content-group {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		width: 100%;
		max-width: 100%;
		margin: 0;
		padding: 20px;
		text-align: center; /* 移动端居中 */
	}

	.banner__title {
		position: relative;
		width: 100%;
		max-width: 100%;
		height: auto;
		font-size: max(26px, min(7vw, 40px));
		line-height: 1.5;
		letter-spacing: 0.04em;
		margin: 0 auto 12px auto;
		text-align: center;
		white-space: normal; /* 移动端允许换行 */
		word-wrap: break-word;
	}

	.banner__subtitle {
		position: relative;
		width: 100%;
		max-width: 100%;
		height: auto;
		font-size: max(14px, min(3.8vw, 20px));
		line-height: 1.5;
		margin: 0 auto;
		text-align: center;
		white-space: normal; /* 移动端允许换行 */
		word-wrap: break-word;
	}

	.banner__inner {
		padding: 40px 20px;
	}

	/* 移动端隐藏按钮 */
	.banner__btn {
		display: none;
	}

	/* 移动端隐藏底部悬浮卡片 */
	.banner__card {
		display: none;
	}

	/* 移动端统计样式调整 */
	.banner__stats {
		position: relative;
		bottom: auto;
		left: auto;
		right: auto;
		padding: 30px 20px;
		flex-wrap: wrap;
		gap: 30px;
	}

	.banner__stat-item {
		flex: 0 0 calc(50% - 15px);
		padding-right: 25px;
		border-right: 1px solid rgba(255, 255, 255, 0.3);
	}

	.banner__stat-item:not(:last-child)::after {
		display: none;
	}

	.banner__stat-item:nth-child(2n) {
		padding-right: 0;
		border-right: none;
	}

	.banner__stat-value {
		font-size: 36px;
	}

	.banner__stat-label {
		font-size: 13px;
	}
}

