/* =====================================================================
   科梁官网首页 V3 —— 大图沉浸式叙事（scoped: #kl-home）
   设计：docs/superpowers/specs/2026-08-18-homepage-redesign-v2-design.md
   风格基准：阳光电源 × 小米澎程N90（一屏一图一话，明暗随图）
   ===================================================================== */
#kl-home {
	--kl-dark: #0a1830;
	--kl-dark-2: #0e2138;
	--kl-blue: #1890ff;
	--kl-tint: #f5f8fc;
	--kl-text: #12263f;
	--kl-mut: #5b6b80;
	--kl-line: #e6edf5;
	font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
	color: #fff;
	background: var(--kl-dark);
}

/* —— 整屏轮播（Swiper 纵向 + 滚轮，同 keliangtek.com） —— */
.kl-pages {
	width: 100%;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	position: relative;
}
.kl-pages .swiper-slide {
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}
.kl-pages__dots {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	flex-direction: column;
}
.kl-pages__dots .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 5px 0;
	background: rgba(125, 145, 175, 0.55);
	opacity: 1;
	border-radius: 50%;
	transition: background 0.3s, transform 0.3s;
}
.kl-pages__dots .swiper-pagination-bullet-active {
	background: #1890ff;
	transform: scale(1.3);
}

/* —— 屏骨架：每屏一图 —— */
.kl-screen {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 120px 0 72px; /* 顶部预留固定导航 */
}
.kl-screen__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.kl-screen__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.kl-screen--hero .kl-screen__bg::after,
.kl-screen--stats .kl-screen__bg::after,
.kl-screen--aud .kl-screen__bg::after,
.kl-screen--cta .kl-screen__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 24, 48, 0.5), rgba(10, 24, 48, 0.15) 55%, rgba(10, 24, 48, 0.55));
}
/* 首屏单独再提亮一档（覆盖上面分组规则）；中段透明，靠文字投影保对比度 */
.kl-screen--hero .kl-screen__bg::after {
	background: linear-gradient(180deg, rgba(10, 24, 48, 0.2), rgba(10, 24, 48, 0) 55%, rgba(10, 24, 48, 0.25));
}
/* 首屏文字一圈投影：贴身暗环 + 柔和外扩，蒙版调轻后保白字可读 */
.kl-screen--hero .kl-eyebrow,
.kl-screen--hero .kl-hero__title,
.kl-screen--hero .kl-hero__sub {
	text-shadow:
		0 0 2px rgba(10, 24, 48, 0.65),
		0 0 16px rgba(10, 24, 48, 0.45),
		0 2px 18px rgba(10, 24, 48, 0.5);
}
.kl-screen__body {
	position: relative;
	z-index: 1;
	width: min(1440px, 92vw); /* 与顶部导航栏 w1440 对齐 */
	text-align: center;
}

/* —— 明暗变体 —— */
.kl-screen--light {
	background: #fff;
	color: var(--kl-text);
}
.kl-screen--tint {
	background: var(--kl-tint);
	color: var(--kl-text);
}
.kl-screen--dark {
	background: var(--kl-dark);
	color: #fff;
}

/* —— 文字层级 —— */
.kl-head {
	/* 反制 css.css 全局 header{width:1440px;height:78px;line-height:78px}，否则标题溢出被图片盖住 */
	width: auto;
	height: auto;
	line-height: normal;
}
.kl-eyebrow {
	font-size: 14px;
	letter-spacing: 0.35em;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 26px;
}
.kl-eyebrow--dark {
	color: var(--kl-mut);
}
.kl-hero__title {
	font-size: clamp(42px, 6vw, 78px);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.15;
}
.kl-hero__sub {
	margin-top: 26px;
	font-size: clamp(17px, 1.6vw, 22px);
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.12em;
}
.kl-lead {
	font-size: clamp(24px, 2.6vw, 38px);
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-bottom: 64px;
}
.kl-head__title {
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 700;
	letter-spacing: 0.05em;
	color: inherit;
	margin: 10px 0 18px;
}
.kl-head__line {
	font-size: clamp(15px, 1.4vw, 19px);
	color: var(--kl-mut);
	letter-spacing: 0.1em;
}
.kl-screen:not(.kl-screen--light):not(.kl-screen--tint) .kl-head__line {
	color: rgba(255, 255, 255, 0.75);
}

/* —— ② 数字屏：玻璃拟态数字卡 —— */
.kl-screen--stats::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(900px 420px at 50% 6%, rgba(24, 144, 255, 0.16), transparent 65%),
		radial-gradient(700px 380px at 88% 92%, rgba(0, 232, 255, 0.08), transparent 60%),
		linear-gradient(rgba(148, 180, 220, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 180, 220, 0.05) 1px, transparent 1px);
	background-size: auto, auto, 48px 48px, 48px 48px;
}
.kl-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
.kl-stat {
	position: relative;
	padding: 40px 18px 32px;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 45%, rgba(16, 38, 72, 0.35));
	border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 18px 40px rgba(4, 12, 28, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* 悬浮效果需盖过 .kl-reveal 的 transition/transform */
.kl-stats .kl-stat {
	transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
/* 顶部蓝青渐变光条 */
.kl-stat::before {
	content: '';
	position: absolute;
	top: 0;
	left: 12%;
	right: 12%;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, #1890ff, #00e8ff, transparent);
	opacity: 0.85;
}
/* 底部微辉光 */
.kl-stat::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -42px;
	width: 72%;
	height: 60px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(24, 144, 255, 0.3), transparent);
	filter: blur(6px);
	pointer-events: none;
}
.kl-stats .kl-stat:hover {
	transform: translateY(-6px);
	border-color: rgba(24, 144, 255, 0.45);
	box-shadow: 0 26px 54px rgba(4, 12, 28, 0.55), 0 0 0 1px rgba(24, 144, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.kl-stat__num {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	/* 数字区固定高度=大数字字号（行盒会被中英混排字体撑大，不可靠），四卡严格同高 */
	height: clamp(52px, 5vw, 84px);
	font-size: clamp(52px, 5vw, 84px);
	font-weight: 700;
	line-height: 1;
	color: #fff;
}
.kl-stat__num em {
	font-style: normal;
	font-size: 0.35em;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
}
.kl-stat__num--txt {
	font-size: clamp(40px, 4vw, 64px);
	letter-spacing: 0.02em;
}
/* 数字蓝青渐变字（不支持渐变文字的浏览器保持纯白） */
@supports (-webkit-background-clip: text) {
	.kl-stat__num {
		background: linear-gradient(180deg, #ffffff 30%, #9fd4ff 75%, #38b6ff);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
	.kl-stat__num em {
		background: none;
		-webkit-text-fill-color: currentColor;
	}
}
@media (min-width: 481px) {
	.kl-stat__num--txt {
		white-space: nowrap; /* ns—min 一行显示，避免在四列格里折行 */
	}
}
.kl-stat__label {
	margin-top: 18px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.65);
	letter-spacing: 0.1em;
}

/* —— ③④⑤ 图表屏 —— */
.kl-fig {
	margin: 56px 0 0;
}
.kl-fig img {
	display: block;
	width: 100%;
	border: 1px solid var(--kl-line);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(18, 38, 63, 0.08);
}
.kl-fig--chain img {
	/* 高清版 chain.jpg 已补，放开旧 516×344 临时图的 1100px 展示上限 */
	margin: 0 auto;
}
.kl-chain-colors {
	display: flex;
	justify-content: center;
	gap: 34px;
	margin-top: 40px;
}
.kl-chain-colors i {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-style: normal;
	font-size: 14px;
	color: var(--kl-mut);
	letter-spacing: 0.06em;
}
.kl-chain-colors i::before {
	content: '';
	width: 22px;
	height: 5px;
	border-radius: 3px;
	background: var(--kl-accent);
}

/* —— ⑥ 硬件屏 —— */
.kl-hw-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin-top: 56px;
	text-align: left;
}
.kl-hw {
	min-width: 0; /* 解除网格子项 auto 最小宽，防止内容把 1fr 轨道顶爆 */
}
.kl-stats > .kl-stat {
	min-width: 0;
}
.kl-hw__num {
	margin-top: 22px;
	font-size: clamp(26px, 2.2vw, 34px);
	font-weight: 700;
	color: var(--kl-blue);
}
.kl-hw__name {
	margin-top: 8px;
	font-size: 17px;
	font-weight: 600;
	color: #fff;
}
.kl-hw__line {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
}
.kl-hw__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3; /* 原图 960×720，预留高度防加载抖动 */
	object-fit: cover;
	border-radius: 6px;
}

/* —— ⑦ 服务对象 / ⑧ CTA —— */
.kl-aud__line {
	font-size: clamp(26px, 3vw, 44px);
	font-weight: 700;
	letter-spacing: 0.08em;
}
.kl-aud__sub {
	margin-top: 24px;
	font-size: clamp(15px, 1.5vw, 20px);
	color: rgba(255, 255, 255, 0.78);
	letter-spacing: 0.1em;
}
.kl-cta__title {
	font-size: clamp(34px, 4.4vw, 60px);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
}
.kl-btn {
	display: inline-block;
	margin-top: 44px;
	padding: 15px 58px;
	border-radius: 999px;
	background: var(--kl-blue);
	color: #fff;
	font-size: 17px;
	letter-spacing: 0.2em;
	text-decoration: none;
	transition: transform 0.25s, box-shadow 0.25s;
}
.kl-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(24, 144, 255, 0.4);
	color: #fff;
}

/* —— 滚动提示 —— */
.kl-screen__cue {
	position: absolute;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	font-size: 12px;
	letter-spacing: 0.3em;
	color: rgba(255, 255, 255, 0.6);
}
.kl-screen__cue i {
	display: block;
	width: 22px;
	height: 36px;
	margin: 0 auto 10px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 12px;
	position: relative;
}
.kl-screen__cue i::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 7px;
	width: 3px;
	height: 7px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.7);
	animation: klCue 1.6s infinite;
}
@keyframes klCue {
	0% {
		transform: translateY(0);
		opacity: 1;
	}
	70% {
		transform: translateY(12px);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

/* —— 渐入动效 —— */
.kl-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease var(--kl-d, 0ms), transform 0.8s ease var(--kl-d, 0ms);
}
.kl-reveal.is-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.kl-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* —— 响应式 —— */
@media (max-width: 1024px) {
	.kl-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 32px 24px;
	}
	.kl-hw-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 768px) {
	.kl-screen {
		padding: 96px 0 56px;
	}
	.kl-fig {
		margin-top: 36px;
	}
	.kl-chain-colors {
		flex-wrap: wrap;
		gap: 16px 22px;
	}
}
@media (max-width: 480px) {
	.kl-hw-grid {
		grid-template-columns: 1fr;
	}
	.kl-stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.kl-eyebrow {
		letter-spacing: 0.2em;
	}
}

/* —— 矮窗口压缩：保证每屏内容装得下整屏（轮播模式不允许屏内滚动） —— */
@media (max-height: 1080px) {
	.kl-screen {
		padding: 104px 0 44px;
	}
	.kl-fig {
		margin-top: 34px;
	}
	.kl-lead {
		margin-bottom: 42px;
	}
	.kl-chain-colors {
		margin-top: 26px;
	}
}
@media (max-height: 940px) {
	.kl-screen {
		padding: 96px 0 32px;
	}
	.kl-stat {
		padding: 26px 12px 20px;
		border-radius: 10px;
	}
	.kl-stat__label {
		margin-top: 10px;
	}
	.kl-eyebrow {
		margin-bottom: 12px;
	}
	.kl-head__title {
		margin: 4px 0 8px;
		font-size: clamp(26px, 3vw, 40px);
	}
	.kl-fig {
		margin-top: 20px;
	}
	.kl-fig img {
		max-height: 50vh;
		width: auto;
		max-width: 100%;
		margin: 0 auto;
	}
	.kl-fig--chain img {
		max-height: 44vh;
	}
	.kl-lead {
		font-size: clamp(20px, 2vw, 28px);
		margin-bottom: 28px;
	}
	.kl-stat__num {
		height: clamp(38px, 3.6vw, 56px);
		font-size: clamp(38px, 3.6vw, 56px);
	}
	.kl-stat__num--txt {
		font-size: clamp(30px, 3vw, 46px);
	}
	.kl-stat__label {
		margin-top: 8px;
		font-size: 13px;
	}
	.kl-hw-grid {
		margin-top: 22px;
		gap: 18px;
	}
	.kl-hw__num {
		margin-top: 12px;
		font-size: clamp(20px, 1.8vw, 26px);
	}
	.kl-hw__name {
		margin-top: 4px;
		font-size: 15px;
	}
	.kl-hw__line {
		margin-top: 4px;
		font-size: 12px;
	}
	.kl-chain-colors {
		margin-top: 16px;
	}
	.kl-hero__sub {
		margin-top: 16px;
	}
}
