/**
 * Qing 纯图片自动轮播样式。
 *
 * 结构：.qing-imgc（相对定位容器）
 *   > .swiper.qing-imgc__swiper（overflow:hidden，承载图片与分页圆点）
 *       > .swiper-wrapper > .swiper-slide.qing-imgc__slide > (a.qing-imgc__link >) img
 *       > .swiper-pagination（底部居中圆点）
 *   > .qing-carousel__arrow.qing-carousel__prev / __next（两侧圆形箭头）
 *
 * 仅做图片切换，无文字覆盖；尺寸/圆角/填充/配色由控件覆盖。
 */

.qing-imgc {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.qing-imgc__swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
}

.qing-imgc__swiper .swiper-wrapper {
	max-width: 100%;
}

.qing-imgc__slide {
	height: 420px;
	box-sizing: border-box;
	overflow: hidden;
	/* 覆写 Swiper 错误计算的 inline width，始终使用父容器宽度的 100% */
	width: 100% !important;
}

.qing-imgc__link {
	display: block;
	width: 100%;
	height: 100%;
}

.qing-imgc__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* -------- 分页圆点：底部居中 -------- */
.qing-imgc .swiper-pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.qing-imgc .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	margin: 0 !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	opacity: 1;
	transition: width 0.3s ease, background 0.3s ease;
}

.qing-imgc .swiper-pagination-bullet-active {
	width: 24px;
	border-radius: 6px;
	background: #ffffff;
}

/* -------- 左右圆形箭头（作用域限定在 .qing-imgc 内）-------- */
.qing-imgc .qing-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: #ffffff;
	background-color: rgba(0, 0, 0, 0.3);
	border: none;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.qing-imgc .qing-carousel__arrow:hover {
	transform: translateY(-50%) scale(1.06);
}

.qing-imgc .qing-carousel__arrow svg {
	width: 46%;
	height: 46%;
	display: block;
}

.qing-imgc .qing-carousel__prev {
	left: 16px;
}

.qing-imgc .qing-carousel__next {
	right: 16px;
}

.qing-imgc .qing-carousel__arrow.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

/* -------- 移动端：降低高度、缩小箭头 -------- */
@media (max-width: 767px) {
	.qing-imgc__slide {
		height: 240px;
	}

	.qing-imgc .qing-carousel__arrow {
		width: 34px;
		height: 34px;
	}
}
