/* 轮播图样式 */
.carousel {
	width: 100%;
	height: calc(50vh - 20px);
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	padding: 50px 0;
}

.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;
	color: #fff;
	/* padding: 0 25% 0 25%; */
}

.carousel-text h2 {
	font-size: 36px;
	margin-bottom: 20px;
	line-height: 1.3;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-text p {
	/* width: 500px; */
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 30px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.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;
}

.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);
}

/* 导航栏 */
.search-bar {
	display: flex;
	align-items: center;
	background-color: #fff;
	border-radius: 30px;
	/* 大圆角匹配图片风格 */
	padding: 10px 20px;
	width: 650px;
	max-width: 1000px;
	/* 和p标签宽度对齐 */
	margin: 0 auto;
	/* 居中 */
}


.search-label {
	color: #333;
	font-weight: 500;
	padding-right: 10px;
	border-right: 1px solid #eee;
	/* 分隔线 */
}
.search-label img {
	width: 25px;
	height: 25px;
	float: left;
}
.search-label span{
	float: left;
	margin-left: 8px;
	
}

.search-input {
	border: none;
	outline: none;
	background: transparent;
	flex: 1;
	/* 占满剩余空间 */
	padding: 5px 10px;
	font-size: 14px;
	color: #333;
}

.search-input::placeholder {
	color: #999;
	/* 浅灰色提示文字 */
}

/* 响应式调整 */
@media (max-width: 992px) {
	.case-large {
		height: 320px;
	}

	.case-small {
		height: 240px;
	}

	.case-text {
		padding: 30px;
	}

	.case-small .case-text {
		padding: 20px;
	}
}

@media (max-width: 768px) {
	.navbar {
		padding: 0 20px;
	}

	.navbar-menu {
		display: none;
	}

	.carousel {
		height: calc(100vh - 70px);
	}

	.carousel-text h2 {
		font-size: 28px;
	}

	.carousel-text p {
		width: 100%;
		font-size: 16px;
	}

	/* 搜索栏响应式 */
	.search-bar {
		max-width: 400px;
	}

	.search-input {
		font-size: 13px;
	}

	.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-text h2 {
		font-size: 24px;
	}

	.carousel-text p {
		font-size: 14px;
		margin-bottom: 20px;
	}

	.nav-btn {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	/* 搜索栏响应式 */
	.search-bar {
		max-width: 300px;
	}

	.search-label {
		font-size: 13px;
	}

	.search-input {
		font-size: 12px;
	}

	.case-small-img img {
		height: 150px;
	}

	.case-small-text {
		padding: 20px 15px;
	}
}