/**
 * 轮播图样式文件
 * 用于定义网站首页轮播图组件的所有样式
 */

/* 轮播图容器样式 */
.carousel-container {
	width: 100%;
	/* max-width: 400px; */
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	/* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
	background: white;
}

.carousel {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	height: 250px;
}

.carousel-item {
	flex: 0 0 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.indicators {
	position: absolute;
	bottom: 15px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 10;
}

.indicator {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

.indicator.active {
	background-color: white;
	transform: scale(1.2);
}

.prev-btn, .next-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.3);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.3s, background-color 0.3s;
}

.carousel-container:hover .prev-btn,
    .carousel-container:hover .next-btn {
	opacity: 1;
}

.prev-btn:hover, .next-btn:hover {
	background-color: rgba(255, 255, 255, 0.6);
}

.prev-btn {
	left: 15px;
}

.next-btn {
	right: 15px;
}

.arrow {
	border: solid white;
	border-width: 0 3px 3px 0;
	display: inline-block;
	padding: 4px;
}

.arrow.right {
	transform: rotate(-45deg);
}

.arrow.left {
	transform: rotate(135deg);
}

.auto-play-control {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
}

.play-toggle {
	background: rgba(0, 0, 0, 0.3);
	border: none;
	color: white;
	padding: 5px 10px;
	border-radius: 15px;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.3s;
}

.play-toggle:hover {
	background: rgba(0, 0, 0, 0.5);
}

.status-bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.8);
	width: 0%;
	transition: width 0.1s linear;
	z-index: 10;
}

@media (max-width: 480px) {
	.prev-btn, .next-btn {
		width: 35px;
		height: 35px;
	}
}