/* 正文多图幻灯片 */
.yw-prose .yw-content-slider {
	position: relative;
	margin: 20px 0 24px;
	border-radius: 16px;
	overflow: hidden;
	background: #0f172a;
	border: 1px solid var(--yw-border, #e2e8f0);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.yw-content-slider__viewport {
	position: relative;
	overflow: hidden;
	background: #111827;
}

.yw-content-slider__track {
	position: relative;
	min-height: 220px;
}

.yw-content-slider__slide {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 12px;
}

.yw-content-slider__slide[hidden] {
	display: none !important;
}

.yw-content-slider__slide img {
	display: block;
	max-width: 100%;
	max-height: min(72vh, 560px);
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
	object-fit: contain;
}

.yw-content-slider__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.55);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	backdrop-filter: blur(6px);
}

.yw-content-slider__btn:hover {
	background: rgba(79, 70, 229, 0.85);
	border-color: rgba(255, 255, 255, 0.45);
}

.yw-content-slider__btn:active {
	transform: scale(0.96);
}

.yw-content-slider__btn--prev {
	left: 12px;
}

.yw-content-slider__btn--next {
	right: 12px;
}

@media (max-width: 640px) {
	.yw-content-slider__btn {
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}

	.yw-content-slider__btn--prev {
		left: 8px;
	}

	.yw-content-slider__btn--next {
		right: 8px;
	}

	.yw-content-slider__track,
	.yw-content-slider__slide {
		min-height: 180px;
	}
}
