/**
 * YARPP 相关文章样式
 */

:root {
	--yarpp-primary: #18c8ff;
	--yarpp-secondary: #8b5cf6;
	--yarpp-bg: rgba(12, 28, 55, 0.88);
	--yarpp-bg-alt: rgba(5, 16, 36, 0.72);
	--yarpp-text: #ffffff;
	--yarpp-text-sub: #b8c7df;
	--yarpp-border: rgba(34, 211, 238, 0.28);
}

.yarpp-related-section {
	margin-top: 50px;
	
}

.yarpp-related-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--yarpp-text);
	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: linear-gradient(90deg, var(--yarpp-primary), var(--yarpp-secondary));
	border-radius: 2px;
}

.yarpp-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.yarpp-related-card {
	background: var(--yarpp-bg);
	border: 1px solid var(--yarpp-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: inset 0 0 30px rgba(24, 200, 255, 0.06);
	transition: all 0.3s ease;
}

.yarpp-related-card:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.65);
	box-shadow: 0 18px 45px rgba(0, 180, 255, 0.18);
}

.yarpp-card-link {
	display: block;
	text-decoration: none;
}

.yarpp-card-media {
	display: block;
	aspect-ratio: 16 / 11;
	background: var(--yarpp-bg-alt);
	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: var(--yarpp-text);
	transition: color 0.3s ease;
}

.yarpp-related-card:hover .yarpp-card-title {
	color: var(--yarpp-primary);
}

/* 响应式样式 */
@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));
	}
}
