/* 图片列表样式优化 - 卡片式设计 */
.news .wrap-r .news-list.list1 {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 30px !important;
	padding: 0;
	list-style: none;
	flex-wrap: nowrap !important;
}

.news .wrap-r .news-list.list1 li {
	width: auto !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;
	cursor: pointer;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.news .wrap-r .news-list.list1 li:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news .wrap-r .news-list.list1 .img {
	position: relative;
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #f5f5f5;
}

.news .wrap-r .news-list.list1 .img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news .wrap-r .news-list.list1 li:hover .img img {
	transform: scale(1.1);
}

/* 标题信息样式 */
.news .wrap-r .news-list.list1 .info {
	padding: 20px;
	flex: 1;
	display: flex;
	align-items: center;
	background-color: transparent !important;
	justify-content: center;
}

.news .wrap-r .news-list.list1 .title {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	font-weight: 500;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.3s ease;
	text-align: center;
}

.news .wrap-r .news-list.list1 li:hover .title {
	color: #0066cc;
}

/* 覆盖原有的nth-child样式 */
.news .wrap-r .news-list.list1 li:nth-child(3n) {
	margin-right: 0 !important;
}

/* 响应式布局优化 */
@media (max-width: 900px) {
	.news .wrap-r .news-list.list1 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px !important;
	}
	
	.news .wrap-r .news-list.list1 .img {
		height: 200px;
	}
}

@media (max-width: 600px) {
	.news .wrap-r .news-list.list1 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 16px !important;
	}
	
	.news .wrap-r .news-list.list1 .img {
		height: 180px;
	}
	
	.news .wrap-r .news-list.list1 .info {
		padding: 12px;
	}
	
	.news .wrap-r .news-list.list1 .title {
		font-size: 14px;
		line-height: 1.5;
		-webkit-line-clamp: 2;
	}
	
	.news .wrap-r .news-list.list1 li:hover {
		transform: translateY(-4px);
	}
}

@media (max-width: 480px) {
	.news .wrap-r .news-list.list1 {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}
	
	.news .wrap-r .news-list.list1 .img {
		height: 200px;
	}
	
	.news .wrap-r .news-list.list1 .info {
		padding: 16px;
	}
	
	.news .wrap-r .news-list.list1 .title {
		font-size: 15px;
	}
}

/* 遮罩层样式 */
.image-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	animation: fadeIn 0.3s ease;
}

.image-modal.active {
	display: flex;
	justify-content: center;
	align-items: center;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* 关闭按钮 */
.modal-close {
	position: absolute;
	top: 20px;
	right: 40px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10001;
	transition: color 0.3s ease;
}

.modal-close:hover {
	color: #ff0000;
}

/* 图片容器 */
.modal-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
	from {
		transform: scale(0.5);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.modal-image {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* 图片标题 */
.modal-caption {
	position: absolute;
	bottom: -50px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 16px;
	text-align: center;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.7);
	padding: 10px 20px;
	border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.modal-close {
		top: 10px;
		right: 20px;
		font-size: 30px;
	}

	.modal-caption {
		font-size: 14px;
		padding: 8px 15px;
		bottom: -40px;
		max-width: 90%;
		white-space: normal;
	}
}

