.article-content {
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 1.5rem 0;
}
.article-content img{
    display:inline-block;
}
/* 修改后的上一篇/下一篇导航样式 */
.prev-next-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .prev-next-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.prev-next-card {
    display: flex;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100%;
}

.prev-next-card:hover
{
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    background-color: #218ffe;
}
.prev-next-card:hover .prev-next-meta ,
.prev-next-card:hover .prev-next-title,
.prev-next-card:hover .prev-next-label{
    color: #ffffff;
}
.prev-next-label-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-width: 120px;
    border-right: 1px solid #e5e7eb;
}

.prev-next-label {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    text-align: center;
}

.prev-next-content {
    padding: 1.5rem;
    flex-grow: 1;
    min-width: 0;
    /* 确保文本截断生效 */
}

.prev-next-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prev-next-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
}

/* 移动端布局调整 */
@media (max-width: 767px) {
    .prev-next-card {
        flex-direction: column;
    }

    .prev-next-label-container {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
        min-width: auto;
    }

    .prev-next-content {
        padding: 1rem;
    }

    .prev-next-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
