/* ucfree：PC 居中铺满 + H5 目录/列表对齐，覆盖 weuix 与固定 rem 宽度 */

.swiperBg,
.swipslider {
	width: 100%;
}

.swipslider .sw-slide a {
	display: block;
	width: 100%;
	height: 100%;
}

.swipslider .sw-slide img,
.swiperBg img.img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ban-btn ul {
	width: 100%;
	left: 0;
	right: 0;
	justify-content: space-around;
	padding: 0;
}

.ban-btn ul li {
	width: auto;
	margin-right: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ban-btn ul li .icon {
	width: 3.25rem;
}

.xbRecommend {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem 0.5rem;
}

.xbRecommend .li {
	width: auto !important;
}

.xbRecommend .li:nth-child(n+3) {
	margin-left: 0 !important;
}

.xbRecommend .li img {
	width: 100%;
	height: auto;
	aspect-ratio: 110 / 148;
	object-fit: cover;
}

.xbRecommend .li:first-child {
	grid-column: 1 / -1;
	width: 100% !important;
	height: auto !important;
	margin-bottom: 0;
	display: flex;
	gap: 0.75rem;
}

.xbRecommend .li:first-child > a {
	flex: 0 0 6.875rem;
	width: 6.875rem;
}

.xbRecommend .li:first-child img {
	width: 100%;
	height: 9.25rem;
	aspect-ratio: auto;
}

.xbRecommend .li:first-child .bookInfo {
	width: auto !important;
	flex: 1;
	min-width: 0;
}

.xbRecommend2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9375rem;
	justify-content: stretch;
}

.xbRecommend2 .li {
	width: auto !important;
}

.xbRecommend2 .li:nth-child(n+3) {
	margin-top: 0 !important;
}

.xbRecommend2 .li img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.rankListLi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem 0.5rem;
}

.rankListLi .li,
.rankListLi .li:nth-child(n+4),
.rankListLi .li:nth-child(3n+1) {
	width: auto !important;
	margin: 0 !important;
}

.rankListLi .li .img,
.rankListLi .li .img img {
	width: 100%;
	height: auto;
	aspect-ratio: 110 / 148;
	object-fit: cover;
}

.bookChapterList {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.625rem 0.5rem;
	overflow: hidden;
}

.bookChapterList .list,
.bookChapterListAll .list,
.bookChapterList .list:nth-child(n+5),
.bookChapterList .list:nth-child(4n) {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.booksdetail-list .lists-book {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	overflow: hidden;
}

.booksdetail-list .lists-book li,
.booksdetail-list .lists-book li:nth-last-child(1) {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.booksdetail-list .lists-book .book-img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.info-top img {
	object-fit: cover;
}

.footer-btn .left {
	width: 32%;
}

.footer-btn .right {
	width: 68%;
}

.footer-btn .left .div {
	cursor: pointer;
}

.footer-btn .left .div.is-collected .wsc {
	background-image: url("/static/themes/ucfree/Public/home/mub5/image/collection_sel@2x.png");
	font-weight: 700;
}

@media (max-width: 767px) {
	.footer-btn {
		bottom: 3.1rem !important;
		width: 100%;
		left: 0;
	}
}

@media (min-width: 768px) {
	html {
		font-size: 18px !important;
	}

	.weui-footer {
		max-width: 800px;
		margin-left: auto;
		margin-right: auto;
	}

	.swiperBg,
	.swipslider,
	.info-top {
		height: 22rem;
	}

	.xbRecommend2 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rankListLi {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.bookChapterList {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.booksdetail-list .lists-book {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.xbRecommend .li:first-child > a {
		flex: 0 0 10rem;
		width: 10rem;
	}

	.xbRecommend .li:first-child img {
		width: 100%;
		height: 13.5rem;
	}

	.footer-btn {
		left: 50% !important;
		right: auto !important;
		width: 800px !important;
		max-width: 100%;
		bottom: 0 !important;
		transform: translateX(-50%);
		border-radius: 16px 16px 0 0;
	}
}
