@charset "UTF-8";

/* mianyoyo_homecarousel — 对齐 zaesky / 主题蓝 */

.myh-carousel-wrap {
	padding: 0 !important;
	overflow: hidden;
}

.myh-carousel {
	position: relative;
	border-radius: 5px;
	overflow: hidden;
	background: var(--xtr-aid, #f2f3f5);
}

.myh-carousel-track {
	position: relative;
	width: 100%;
	padding-top: var(--myh-carousel-ratio, 32%);
}

.myh-carousel-slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity .55s ease, visibility .55s ease;
	text-decoration: none;
	color: #fff;
	overflow: hidden;
}

.myh-carousel-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.myh-carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.myh-carousel-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2rem 1rem .85rem;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.35;
	background: linear-gradient(transparent, rgba(0, 0, 0, .55));
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	pointer-events: none;
}

.myh-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 2rem;
	height: 2rem;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .88);
	color: #303133;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	opacity: 0;
	transition: opacity .2s ease, background .2s ease;
}

.myh-carousel:hover .myh-carousel-btn {
	opacity: 1;
}

.myh-carousel-btn:hover {
	background: #fff;
	color: var(--bs-primary, #409eff);
}

.myh-carousel-prev {
	left: .5rem;
}

.myh-carousel-next {
	right: .5rem;
}

.myh-carousel-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: .55rem;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: .35rem;
	pointer-events: none;
}

.myh-carousel-dot {
	width: .45rem;
	height: .45rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
	pointer-events: auto;
	transition: width .25s ease, background .25s ease;
}

.myh-carousel-dot.active {
	width: 1.1rem;
	background: #fff;
}

@media (max-width: 767.98px) {
	.myh-carousel-wrap {
		margin-left: -.15rem;
		margin-right: -.15rem;
		border-radius: 0;
	}

	.myh-carousel {
		border-radius: 0;
	}

	.myh-carousel-track {
		padding-top: calc(var(--myh-carousel-ratio, 32%) + 4%);
	}

	.myh-carousel-btn {
		display: none;
	}

	.myh-carousel-caption {
		font-size: .85rem;
		padding: 1.5rem .75rem .65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.myh-carousel-slide {
		transition: none;
	}
}
