/* ============================================================
   Image Swiper Widget（无缝滚动轮播）
   ============================================================ */

.is-section {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.is-section *,
.is-section *::before,
.is-section *::after {
	box-sizing: border-box;
}

.is-swiper {
	overflow: hidden;
}

.is-swiper .swiper-slide {
	height: auto;
}

/* 图片容器 */
.is-image {
	display: block;
	width: 100%;
	height: 300px;
	overflow: hidden;
	background-color: #f5f5f5;
	position: relative;
}

.is-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s ease;
}

a.is-image:hover img {
	transform: scale(1.04);
}

/* ---- 图片标题 ---- */
.is-caption {
	display: block;
	margin-top: 10px;
	color: #333;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

/* ---- 左右导航箭头 ---- */
.is-nav-btn {
	position: absolute;
	top: 50%;
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	color: #333;
	font-size: 24px;
	background: transparent;
	border: 0;
	padding: 0;
	transition: color .3s ease;
	user-select: none;
}

.is-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.is-nav-btn:hover {
	color: #b71a33;
}

/* 默认（叠加模式）：箭头覆盖在图片内侧 */
.is-prev {
	left: 12px;
	transform: translateY(-50%);
}

.is-next {
	right: 12px;
	transform: translateY(-50%);
}

.is-section:not(.is-nav-outside) .is-nav-btn {
	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.is-nav-btn svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* 占位模式：flex 布局，箭头在两侧占位 */
.is-nav-outside {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.is-nav-outside .is-swiper {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.is-nav-outside .is-nav-btn {
	position: static;
	transform: none;
	flex-shrink: 0;
	background-color: transparent;
	border-radius: 0;
	box-shadow: none;
}

.is-nav-outside .is-pagination {
	flex-basis: 100%;
}

/* ---- 手机端：占位模式也退回叠加 ---- */
@media (max-width: 768px) {
	.is-nav-outside {
		display: block;
	}

	.is-nav-outside .is-nav-btn {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		background-color: rgba(255, 255, 255, 0.85);
		border-radius: 50%;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	}
}

/* ---- 下方分页器（小圆点） ---- */
.is-pagination {
	position: static;
	width: 100%;
	text-align: center;
	margin-top: 16px;
	line-height: 0;
}

.is-pagination .swiper-pagination-bullet {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 0 6px;
	border-radius: 50%;
	background-color: #cccccc;
	opacity: 1;
	cursor: pointer;
	transition: background-color .3s ease, transform .3s ease;
}

.is-pagination .swiper-pagination-bullet-active {
	background-color: #b71a33;
	transform: scale(1.15);
}
