/* 文章内页：1920 居中，图片等比缩放 */
.article-page {
	width: 100%;
	background: #fff;
}

.article-wrap {
	max-width: 1920px;
	margin: 0 auto;
	width: 100%;
}

.article-block {
	width: 100%;
	line-height: 0;
}

.article-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}

/* 轮播：高度随当前图自适应 */
.article-banner {
	position: relative;
	overflow: hidden;
}

.article-banner__slides {
	position: relative;
	width: 100%;
}

.article-banner__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.45s ease;
}

.article-banner__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.article-banner__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.article-banner__arrow:hover,
.article-banner__arrow:focus-visible {
	background: rgba(0, 0, 0, 0.55);
	outline: none;
}

.article-banner__arrow--prev {
	left: 16px;
}

.article-banner__arrow--next {
	right: 16px;
}

.article-banner__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
	pointer-events: none;
}

.article-banner__dot {
	pointer-events: auto;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.article-banner__dot.is-active {
	background: #fff;
	transform: scale(1.15);
}

.article-banner__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.article-banner__arrow {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.article-banner__arrow--prev {
		left: 8px;
	}

	.article-banner__arrow--next {
		right: 8px;
	}

	.article-banner__dots {
		bottom: 10px;
	}
}
