.pj_case {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.case-card {
	background: white;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: relative;
}

.case-container {
	position: relative;
	overflow: hidden;
}

.case-slider {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.5s ease;
}

.case-slider img {
	min-width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.case-slider img:hover {
	opacity: 0.9;
}

.case-title {
	padding: 15px;
	font-size: 16px;
	font-weight: bold;
	color: #333;
	text-align: center;
	background: white;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 15px;
	background: white;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #ccc;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.dot.active {
	background-color: #007bff;
}

.dot:hover {
	background-color: #0056b3;
}

/* 图片查看器样式 */
.case-viewer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	z-index: 1000;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.case-viewer.active {
	display: flex;
	opacity: 1;
}

.viewer-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.viewer-case {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.viewer-close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 27px;
	font-weight: bold;
	color: white;
	cursor: pointer;
	z-index: 1001;
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.5);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.viewer-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.viewer-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 30px;
	font-weight: bold;
	color: white;
	cursor: pointer;
	z-index: 1001;
	width: 60px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.5);
	transition: background-color 0.3s ease, transform 0.3s ease;
	user-select: none;
}

.viewer-nav:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.viewer-nav.prev {
	left: 30px;
}

.viewer-nav.next {
	right: 30px;
}

.viewer-info {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	text-align: center;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 14px;
}

@media (max-width: 768px) {
	.pj_case {
		grid-template-columns: 1fr;
	}

	.viewer-nav {
		width: 50px;
		height: 50px;
		font-size: 30px;
	}

	.viewer-nav.prev {
		left: 10px;
	}

	.viewer-nav.next {
		right: 10px;
	}

	.viewer-close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		font-size: 30px;
	}
}