/**
 * YARPP 相关文章样式
 */

.yarpp-related-section {
	margin-top: 50px;
	
}

.yarpp-related-title {
	font-size: 28px;
	font-weight: 700;
	color: #1f2933;
	text-align: center;
	margin-bottom: 40px;
	position: relative;
}

.yarpp-related-title::after {
	content: '';
	position: absolute;
	bottom: -12px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: var(--xny-green);
	border-radius: 2px;
}

.yarpp-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.yarpp-related-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
}

.yarpp-related-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 120, 61, 0.15);
}

.yarpp-card-link {
	display: block;
	text-decoration: none;
}

.yarpp-card-media {
	display: block;
	aspect-ratio: 16 / 11;
	background: var(--xny-gray-bg);
	overflow: hidden;
}

.yarpp-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.yarpp-related-card:hover .yarpp-card-media img {
	transform: scale(1.08);
}

.yarpp-card-body {
	padding: 20px 16px 24px;
	text-align: center;
}

.yarpp-card-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #1f2933;
	transition: color 0.3s ease;
}

.yarpp-related-card:hover .yarpp-card-title {
	color: var(--xny-green);
}

/* 响应式样式 */
@media screen and (max-width: 1199px) {
	.yarpp-related-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 24px;
	}
}

@media screen and (max-width: 991px) {
	.yarpp-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
	
	.yarpp-related-title {
		font-size: 24px;
	}
}

@media screen and (max-width: 767px) {
	.yarpp-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
	
	.yarpp-related-section {
		margin-top: 40px;
		padding-top: 30px;
	}
	
	.yarpp-related-title {
		font-size: 22px;
		margin-bottom: 30px;
	}
	
	.yarpp-card-body {
		padding: 16px 12px 20px;
	}
	
	.yarpp-card-title {
		font-size: 15px;
	}
}

@media screen and (max-width: 480px) {
	.yarpp-related-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}
