.related-posts-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: -30px auto;
    padding: 0 15px;
}

.related-posts-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 40px 0;
}

.related-posts-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.related-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-post-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #007bff;
}

.related-post-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex: 1;
}

.related-post-meta {
    font-size: 13px;
    color: #888;
    margin-top: auto;
}

.related-post-date i {
    margin-right: 5px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-section {
        padding: 30px 0;
    }
    
    .related-posts-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
} 