
/* 轮播容器样式*/
.fairy-carousel {
	/* margin-top: 100px; */
	width: 100%;
	margin: 0 auto;
	/* 居中显示 */
	padding: 100px 80px;
	/* 左右预留空间显示前后图片 */
	box-sizing: border-box;
	position: relative;
	/* 为绝对定位的子元素提供上下文 */
}

.fairy-carousel .swiper-slide {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	width: 70%;
	/* 每张幻灯片宽度 */
	height: 450px;
	/* 调整图片高度 */
	transition: transform 0.3s ease;
}

/* 当前激活的幻灯片样式 */
.fairy-carousel .swiper-slide-active {
	transform: scale(1.05);
	/* 稍微放大当前幻灯片 */
	z-index: 2;
}

.fairy-carousel__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 文字内容区域 */
.fairy-carousel__content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
	width: 100%;
	padding: 0 20px;
	box-sizing: border-box;
	z-index: 3;
}

.fairy-carousel__title {
	font-size: 30px;
	margin-top: 40px;
	margin-bottom: 10px;
}

.fairy-carousel__subtitle {
	font-size: 20px;
	margin-bottom: 20px;
}

.fairy-carousel__btn {
	display: inline-block;
	padding: 10px 25px;
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 25px;
	color: #fff;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid #fff;
	font-size: 15px;
}

.fairy-carousel__btn:hover {
	background-color: rgba(255, 255, 255, 0.4);
}

/* 自定义分页器 */
.fairy-carousel__pagination {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.fairy-carousel__pagination-bullet {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	overflow: hidden;
	/* 确保内部进度条被裁剪 */
}


/* 激活状态的分页器 */
.fairy-carousel__pagination-bullet.swiper-pagination-bullet-active .fairy-carousel__pagination-progress {
	width: 100%;
}

/* 导航按钮 */
.fairy-carousel__nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	cursor: pointer;
	z-index: 10;
	transition: background-color 0.3s ease;
}

.fairy-carousel__nav-btn:hover {
	background-color: rgba(0, 0, 0, 0.5);
}

.fairy-carousel__nav-btn img {
	width: 30px;
	height: 30px;
	/* filter: invert(2); */
	/* 图标反色为白色，适配深色背景 */
}

.fairy-carousel__nav-btn--prev {
	left: 22%;
}

.fairy-carousel__nav-btn--next {
	right: 22%;
}