* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: rgb(235, 242, 248);
	font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.gallery {
	width: 1200px;
	margin-top: 30px;
	box-shadow: 0px 1px 3px 1px rgb(235 242 248), 1px 0px 3px 1px rgb(140 223 231 / 65%), 0px 1px 3px 1px rgb(140 223 231 / 65%), 1px 0px 3px 1px rgb(140 223 231 / 65%);
	padding: 20px 60px;
}

.gallery-title {
	text-align: center;
	font-size: 28px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 32px;
	letter-spacing: -0.3px;
}

.image-grid {
	display: grid;
	grid-template-columns: repeat(4, 300px);
	justify-content: center;
}

.image-card {
	cursor: pointer;
	width: 300px;
	height: 330px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-align: center;
	margin-top: 10px;
}

.image-img-wrapper {
	width: 280px;
	height: 300px;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.image-card-img {
	max-width: 80%;
	width: auto;
	height: 260px;
}

.image-card-name {
	text-align: center;
	padding: 12px 8px;
	font-size: 15px;
	font-weight: 500;
	background: rgba(22, 125, 135, .68);
	color: #fff;
	border-top: 1px solid #e2e8f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 50px;
	line-height: 24px;
}

/* 弹框遮罩层 */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.2s, opacity 0.2s ease;
}

.modal-overlay.active {
	visibility: visible;
	opacity: 1;
}


.modal-container {
	width: 85%;
	max-width: 850px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
	position: relative;
	transform: scale(0.96);
	transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
	border-radius: 0;
}

.modal-overlay.active .modal-container {
	transform: scale(1);
}


.modal-header {
	display: flex;
	justify-content: flex-end;
	padding: 12px 20px 0;
}

.close-modal {
	background: #f1f5f9;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	color: #1e293b;
	font-weight: 500;
	border-radius: 0;
}

.close-modal:hover {
	background: #e2e8f0;
	color: #0f172a;
}


.swiper-container-modal {
	width: 100%;
	padding: 20px 40px 20px 40px;
	position: relative;
}

.swiper {
	width: 100%;
	height: auto;
}

.swiper-slide {
	text-align: center;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.modal-img {
	width: 100%;
	max-height: 55vh;
	height: 490px;
	object-fit: contain;
	background: #f1f5f9;
}

.modal-img-name {
	margin-top: 20px;
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	background: rgba(22, 125, 135, .68);
	padding: 8px 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 自定义导航按钮样式 */
.swiper-button-prev-custom,
.swiper-button-next-custom {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	background: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: background 0.2s;
	color: #1e293b;
	font-size: 32px;
	padding-bottom: 9px;
	border-radius: 50%;
	font-weight: bold;
	user-select: none;
}

.swiper-button-prev-custom {
	left: 8px;
}

.swiper-button-next-custom {
	right: 8px;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
	background: #f1f5f9;
}

/* 脚注 */
.footer-note {
	text-align: center;
	margin-top: 32px;
	font-size: 13px;
	color: #94a3b8;
}