/* * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Microsoft YaHei", sans-serif;
}

body {
	background-color: #f9fafc;
} */

/* 轮播图样式 */
.carousel {
	width: 100%;
	height: calc(100vh - 50px);
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	transition: all 0.3s ease; 
}

.carousel-imgs {
	width: 100%;
	height: 100%;
}

.carousel-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
	background-clip: cover;
}

.carousel-img img {
	position: relative;
	width: 100%;
	height: 100%;
}

.carousel-img.active {
	opacity: 1;
}

.carousel-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-85%, -60%);
	transform: translate(-50%, -50%);
	text-align: center;
	text-align: left;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	/* padding:0 25% 0 25%; */
}

.carousel-text h2 {
	font-size: 36px;
	margin-bottom: 20px;
	line-height: 1.3;
	color: #fff;
	text-align: center;
}

.carousel-text p {
	width: 500px;
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 30px;
	text-align: center;
}

.carousel-btns {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.carousel-btn {
	padding: 12px 30px;
	border: none;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-secondary {
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid #fff;
	text-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
	background-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* 轮播箭头（参考图样式：圆形半透明） */
.carousel-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 30px;
	z-index: 10;
}

.nav-btn {
	width: 60px;
	height: 60px;
	background-color: rgba(0, 0, 0, 0.2);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.nav-btn img {
	width: 40px;
	height: 40px;
}

.nav-btn:hover {
	background-color: rgba(0, 0, 0, 0.4);
}

/* 轮播指示器（参考图样式：横线） */
.carousel-indicators {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 15px;
	z-index: 10;
}

.indicator {
	width: 40px;
	height: 4px;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.indicator.active {
	background: linear-gradient(90deg, rgba(52, 85, 252, 0.9), rgba(155, 16, 255, 0.9));
	width: 80px;
}

/* 响应式调整 */
@media (max-width: 992px) {
	.carousel {
		height: calc(90vh - 50px);
	}
	
	.case-large {
		height: 320px;
	}

	.case-small {
		height: 240px;
	}

	.case-text {
		padding: 30px;
	}

	.case-small .case-text {
		padding: 20px;
	}
}

@media (max-width: 900px) {{
	.carousel {
		height: calc(80vh - 50px);
	}
}
@media (max-width: 800px) {{
	.carousel {
		height: calc(70vh - 50px);
	}
}

@media (max-width: 768px) {
	.navbar {
		padding: 0 20px;
	}

	.navbar-menu {
		display: none;
		/* 简化移动端菜单 */
	}

	.carousel {
		height: calc(60vh - 50px);
	}

	.carousel-text h2 {
		font-size: 28px;
	}

	.carousel-text p {
		font-size: 16px;
	}

	.cases-small {
		flex-direction: column;
		/* 小盒子在移动端纵向排列，但每个仍保持左图右文 */
		gap: 20px;
	}

	.case-large,
	.case-small {
		height: auto;
		/* 高度自适应 */
		min-height: 280px;
		/* 保证最小高度，避免内容过少时布局变形 */
	}

	.case-text h3 {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.carousel {
		height: calc(50vh - 30px);
	}

	.carousel-text h2 {
		font-size: 24px;
	}

	.carousel-text p {
		font-size: 14px;
		margin-bottom: 20px;
	}

	.nav-btn {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.case-small-img img {
		height: 150px;
	}

	.case-small-text {
		padding: 20px 15px;
	}
}