/*
 * 丽芳跑马灯：在非「丽芳园林」主题下提供的基础样式。
 *
 * 全部选择器使用 :where()（优先级为 0）：「丽芳园林」主题启用时，主题样式（与旧站一致）
 * 始终优先生效，本文件不会与主题样式冲突。
 */

/* 尺寸与位置（与旧站 style.css 一致）。 */
:where(.lfyl-carousel[allbanner]) {
	position: relative;
	width: 100%;
	height: 840px;
	overflow: hidden;
}
:where(.lfyl-carousel .homeban) {
	position: relative;
	width: 100%;
	height: 840px;
}

/* 图片。 */
:where(.lfyl-carousel .lfyl-carousel-link) {
	display: block;
	height: 100%;
}
:where(.lfyl-carousel .img) {
	width: 100%;
	height: 100%;
	overflow: hidden;
}
:where(.lfyl-carousel .img img) {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
:where(.lfyl-carousel .img.wap) {
	display: none;
}

/* 文字层：切换时淡入上移。 */
:where(.lfyl-carousel .textbox) {
	position: absolute;
	top: 85%;
	left: 50%;
	opacity: 0;
	transform: translate3d(-50%, -50%, 0);
	transition: 1.4s ease-in-out 0s;
}
:where(.lfyl-carousel .textbox.cur) {
	top: 50%;
	opacity: 1;
}
:where(.lfyl-carousel .textbox img) {
	width: auto;
	height: auto;
	max-width: 100%;
}

/* 分页圆点。 */
:where(.lfyl-carousel .swiper-container-horizontal > .swiper-pagination-bullets) {
	bottom: 50px;
}
:where(.lfyl-carousel .swiper-pagination-bullet) {
	width: 12px;
	height: 12px;
	background-color: #fff;
	opacity: 1;
}
:where(.lfyl-carousel .swiper-pagination-bullet-active) {
	background-color: #004099;
}

@media ( max-width: 1620px ) {
	:where(.lfyl-carousel[allbanner]),
	:where(.lfyl-carousel .homeban) {
		height: 730px;
	}
}

@media ( max-width: 1440px ) {
	:where(.lfyl-carousel[allbanner]),
	:where(.lfyl-carousel .homeban) {
		height: 640px;
	}
	:where(.lfyl-carousel .textbox img) {
		width: 584px;
	}
}

@media ( max-width: 1280px ) {
	:where(.lfyl-carousel[allbanner]),
	:where(.lfyl-carousel .homeban) {
		height: 540px;
	}
	:where(.lfyl-carousel .textbox img) {
		width: 444px;
	}
}

@media ( max-width: 1024px ) {
	:where(.lfyl-carousel[allbanner]),
	:where(.lfyl-carousel .homeban) {
		height: auto;
	}
	:where(.lfyl-carousel .homeban) {
		position: static;
	}
	:where(.lfyl-carousel .img),
	:where(.lfyl-carousel .img img) {
		height: auto;
	}
	:where(.lfyl-carousel .img.pc) {
		display: none;
	}
	:where(.lfyl-carousel .img.wap) {
		display: block;
	}
	:where(.lfyl-carousel .textbox) {
		left: 0;
		margin-top: -66px;
		transform: translate3d(0, 0, 0);
	}
	:where(.lfyl-carousel .textbox img) {
		width: 85%;
	}
	:where(.lfyl-carousel .swiper-container-horizontal > .swiper-pagination-bullets) {
		bottom: 15px;
	}
}
