/* 模态框样式 */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s;
}

.modal.show {
	opacity: 1;
}

.modal-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-img {
	max-width: 90%;
	max-height: 90vh;
	object-fit: contain;
	transition: transform 0.3s;
}

.close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	z-index: 1001;
	transition: color 0.3s;
}

.close:hover {
	color: #ff5722;
}

.prev, .next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 24px;
	z-index: 1001;
	transition: background-color 0.3s;
	display: flex;
	justify-content: center;
	align-items: center;
}

.prev {
	left: 20px;
}

.next {
	right: 20px;
}

.prev:hover, .next:hover {
	background-color: rgba(255, 255, 255, 0.4);
}

.counter {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	font-size: 16px;
	z-index: 1001;
}

/* 导航点样式 */
.dots {
	position: absolute;
	bottom: 60px;
	left: 0;
	right: 0;
	text-align: center;
	z-index: 1001;
}

.dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 5px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background-color 0.3s;
}

.dot.active {
	background-color: #fff;
}

/* 加载动画 */
.loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	border: 5px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 1s linear infinite;
	z-index: 1001;
}

@
keyframes spin { 0% {
	transform: translate(-50%, -50%) rotate(0deg);
}

100%
{
transform
:
 
translate
(-50%
,
-50%)
rotate
(360deg);
 
}
}

/* 响应式设计 */
@media ( max-width : 768px) {
	.prev, .next {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
	.close {
		font-size: 30px;
		top: 15px;
		right: 20px;
	}
}

@media ( max-width : 480px) {
	.prev, .next {
		width: 35px;
		height: 35px;
		font-size: 18px;
	}
}