/* XREAL Aura Definition — 基础样式 */
.xad {
	position: relative;
	width: 100%;
	margin: 0;
	background-color: #0a0c10;
	box-sizing: border-box;
}

/* 视口固定容器：CSS sticky 固定在视口内。
   文档流定位 → 与上一区块自然衔接（无 absolute 重叠、无 z-index 盖压）；
   末尾 sticky 释放 = 最后场景平滑向上滑出（无瞬移、无黑色区）。
   注意：父级 .xad 不能有 overflow（会破坏 sticky），圆角裁剪由本容器自身承担。 */
.xad__sticky {
	position: sticky;
	top: 0;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	border-radius: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	/* 起手式缩放：从基础场景的小比例(80vw 级)随滚动放大到 100% 全宽 */
	transform: scale(var(--xad-scale, 1));
	transform-origin: center center;
	will-change: transform;
}

/* 场景媒体层（背景图） */
.xad__media {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.xad__scene {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	/* 过渡曲线用 ease-in-out：前后带缓冲、中段线性，视觉上更明显地按
	   场景切换过渡时间(var --xad-fade)完成淡入淡出 */
	transition: opacity var(--xad-fade, 0.58s) ease-in-out;
	will-change: opacity;
}
.xad__scene.is-active {
	opacity: 1;
}
/* 初始场景（基础场景背景图）：始终全宽覆盖（与各场景一致） */
.xad__scene--intro {
	inset: 0;
}

/* 文字层 */
.xad__copy {
	position: relative;
	z-index: 2;
	max-width: 960px;
	padding: 32px 40px;
	text-align: center;
	color: #fff;
	box-sizing: border-box;
	transform: translateY(var(--xad-copy-y, 0px));
	will-change: transform;
}
.xad__eyebrow {
	margin: 0 0 18px;
	font-size: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}
.xad__title {
	margin: 0 0 20px;
	font-size: 76px;
	line-height: 1.06;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}
.xad__desc {
	margin: 0 auto 24px;
	max-width: 60ch;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
}
.xad__scene-caption {
	min-height: 3.4em;
	opacity: 0;
	/* 切换淡入淡出 0.3s（内容替换过渡，避免字号瞬跳） */
	transition: opacity 0.3s ease-in-out;
}
.xad__scene-caption.is-visible {
	opacity: 1;
}

/* 场景指示器（右下角圆点，数量 = 场景数） */
.xad__dots {
	position: absolute;
	right: 24px;
	bottom: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 6;
}
.xad__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.38);
	transition: background 0.35s ease, transform 0.35s ease;
}
.xad__dot.is-active {
	background: #ffffff;
	transform: scale(1.5);
}
.xad__scene-title {
	margin: 0 0 6px;
	font-size: 36px;
	line-height: 1.2;
	color: #fff;
	transform: translateY(var(--xad-cap-y, 0px));
	will-change: transform, font-size;
}
.xad__scene-desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
	.xad__title { font-size: 44px; }
	.xad__copy { padding: 20px; }
	.xad__scene-caption { min-height: 4.2em; }
}

/* 无障碍：减少动效用户关闭全部动画 */
@media (prefers-reduced-motion: reduce) {
	.xad__scene { transition: none; }
	.xad__copy { transform: none; transition: none; }
}