/* 阅读建议 - 三篇文章样式 */
.relatedPosts {
    margin-top: 40px;
}

.relatedPosts > .headline {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.relatedPosts > .headline i {
    margin-right: 0.5rem;
    color: var(--heo-main);
}

.relatedPosts > .headline span {
    font-size: 1.43em;
    font-weight: bold;
}

/* 三篇文章网格布局 */
.relatedPosts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.relatedPosts-list > div {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.relatedPosts-list > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.relatedPosts-list a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.relatedPosts-list .cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.relatedPosts-list > div:hover .cover {
    transform: scale(1.1);
}

.relatedPosts-list .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.relatedPosts-list .date {
    font-size: 0.85em;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.relatedPosts-list .title {
    font-size: 1em;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 平板适配 */
@media screen and (max-width: 768px) {
    .relatedPosts-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .relatedPosts-list > div:last-child {
        grid-column: 1 / -1;
    }
}

/* 手机适配 */
@media screen and (max-width: 500px) {
    .relatedPosts-list {
        grid-template-columns: 1fr;
    }
    
    .relatedPosts-list > div {
        height: 180px;
    }
    
    .relatedPosts-list > div:last-child {
        grid-column: auto;
    }
}

