/* 輪播容器 */
.carousel {
	position: relative;
	width: 100%;
	height: 90vh;
	overflow: hidden;
}

/* 輪播項目 */
.carousel-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transform: scale(1.1); /* 初始稍微放大 */
	transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.carousel-item.active {
	opacity: 1;
	transform: scale(1); /* 活動項目縮放到正常大小 */
}

/* 圖片樣式 */
.carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 點點導航 */
.carousel-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index:11;
}

.carousel-dots .dot {
	width: 12px;
	height: 12px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s, transform 0.3s;
}

.carousel-dots .dot.active {
	background: white;
	transform: scale(1.3); /* 活動點點稍微放大 */
}

/* 標題文字動畫 */
.carousel_animation {
	opacity: 0;
	animation: fadeInUp 0.8s ease-out forwards;
}

/* 淡入並向上移動的動畫 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}