/* 轮播图满屏样式 */
.carousel-container {
	width: 100vw;
	min-width: 100vw;
	max-width: 100vw;
	margin: 0;
	left: 50%;
	right: 50%;
	transform: translateX(-50%);
	position: relative;
	height: 100vh;
	overflow: hidden;
	border-radius: 0;
}

.carousel {
	width: 100vw;
	height: 100vh;
	position: relative;
	overflow: hidden;
	border-radius: 0;
	box-shadow: none;
}

.carousel-track {
	display: flex;
	height: 100%;
	transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
	transform: translateX(0);
}

/* 初始化时禁用过渡效果 */
.carousel-track.initializing {
	transition: none !important;
}

.carousel-slide {
	flex: 0 0 100vw;
	margin: 0;
	height: 100vh;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-slide:first-child {
	margin-left: 0;
}

.carousel-slide:last-child {
	margin-right: 0;
}

.carousel-slide img {
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	filter: brightness(0.95);
	border-radius: 0;
}

.carousel-content {
	position: absolute;
	top: 54%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: white;
	z-index: 2;
	max-width: 800px;
	padding: 0 20px;
}

.carousel-content h2 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	animation: slideInDown 1s ease-out;
	color: #ffffff;
}

.carousel-content p {
	font-size: 1.3rem;
	margin-bottom: 2rem;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	animation: slideInUp 1s ease-out 0.3s both;
	color: #ffffff;
}

/* 轮播图左右按钮 */
.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	font-size: 1.8rem;
	padding: 15px 12px;
	cursor: pointer;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	z-index: 3;
}

.carousel-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
	transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
	left: 30px;
}

.carousel-btn.next {
	right: 30px;
}

.carousel-btn i {
	font-size: 1.2rem;
}

/* 轮播图指示器 */
.carousel-dots {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 15px;
	z-index: 3;
}

.dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #bbb;
	cursor: pointer;
	transition: all 0.3s ease;
}

.dot:hover {
	background: rgba(255, 255, 255, 0.8);
	transform: scale(1.2);
}

.dot.active {
	background: #fff;
}

/* 轮播图动画 */
@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(50px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 轮播图渐变遮罩 */
.carousel-slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {

	.carousel-container,
	.carousel,
	.carousel-slide,
	.carousel-slide img {
		height: 670px;
		min-width: 100vw;
		width: 100vw;
	}

	.carousel-content h2 {
		font-size: 2.6rem;
	}

	.carousel-content p {
		font-size: 1.1rem;
	}
}

@media (max-width: 900px) {
	.carousel-container,
	.carousel,
	.carousel-slide,
	.carousel-slide img {
		height: 470px;
		min-width: 100vw;
		width: 100vw;
	}

	.carousel-btn {
		font-size: 1.6rem;
		padding: 12px 10px;
		width: 45px;
		height: 45px;
	}

	.carousel-content h2 {
		font-size: 1.6rem;
	}

	.carousel-content p {
		font-size: 0.9rem;
	}

	.carousel-btn.prev {
		left: 15px;
	}

	.carousel-btn.next {
		right: 15px;
	}
}



@media (max-width: 768px) {
	.carousel-btn {
		font-size: 1.5rem;
		padding: 10px 8px;
		width: 40px;
		height: 40px;
	}

	.carousel-btn.prev {
		left: 10px;
	}

	.carousel-btn.next {
		right: 10px;
	}

	.carousel-dots {
		bottom: 20px;
		gap: 10px;
	}

	.dot {
		width: 15px;
		height: 15px;
	}
}

@media (max-width: 600px) {
	.carousel-container,
	.carousel,
	.carousel-slide,
	.carousel-slide img {
		height: 270px;
		min-width: 100vw;
		width: 100vw;
	}
}

@media (max-width: 480px) {

	.carousel-container,
	.carousel,
	.carousel-slide,
	.carousel-slide img {
		height: 220px;
	}

	.carousel-content h2 {
		font-size: 1.4rem;
	}

	.carousel-content p {
		font-size: 0.8rem;
	}

	.carousel-btn {
		font-size: 1.2rem;
		padding: 8px 6px;
		width: 35px;
		height: 35px;
	}

	.carousel-btn.prev {
		left: 8px;
	}

	.carousel-btn.next {
		right: 8px;
	}
}

/* 自动播放指示器 */
.carousel-autoplay-indicator {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	backdrop-filter: blur(10px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 5px;
}

.autoplay-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: white;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

/* 轮播图加载动画 */
.carousel-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 4;
}

.carousel-loading::after {
	content: '';
	display: block;
	width: 40px;
	height: 40px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top: 4px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}