@charset "UTF-8";

/*文章列表头部*/
.category-list {
    display: flex;
    gap: 10px;
    box-sizing: border-box;
    flex-wrap: wrap;
    margin-top: 16px;
}

.category-list li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333333;
    transition: all .3s ease-in;
    background: #f4f4f4;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 6px;
}

.category-list li a:hover {
    background: #020617;
    color: #ffffff;
}

.category-list li.current-cat a {
    background: #020617;
}

.category-list li.current-cat a {
    color: #ffffff;
}

.sub-category-list {
    display: flex;
    gap: 10px;
}

/* 父分类 */
.parent-category {
    display: block; /* 父分类占用一行 */
    font-weight: bold; /* 父分类加粗 */
}

/* 子分类 */
.sub-category {
    display: block; /* 子分类占用一行 */
    margin-left: 20px; /* 子分类稍微缩进 */
}

/* 子分类列表 */
.sub-category-list {
    list-style-type: none; /* 去掉子分类列表的默认样式 */
    padding-left: 0; /* 去掉左侧内边距 */
}


.article-banner {
    text-align: center;
    background-color: #232526;
    padding: 24px 16px;
}

.article-banner-title {
    font-size: 1.5rem;
    color: #ffffff;
}

.article-banner-desc {
    font-size: 1rem;
    color: #cccccc;
    margin-top: 8px;
}


/*文章列表内容*/
.article-list-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
}

.article-list-posts .post {
    width: 100%;
    border-bottom: 1px solid #f5f6f7;
    word-wrap: break-word;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding-bottom: 24px;
}

.article-list-posts .title {
    margin: -7px 0 4px;
    display: inherit;
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
}

.article-list-posts p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 24px;
    color: #999999;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height: fit-content;
}

.article-list-posts .post-info {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.article-list-posts .post-info img {
    width: 100%;
    min-width: 140px;
    max-width: 140px;
    display: block;
    max-height: 100px;
    height: auto;
    object-fit: cover;
}

.article-list-posts .entry-meta {
    color: #666666;
    font-size: 14px;
    display: flex;
    gap: 8px;
}

.article-list-posts .entry-meta span{
    color: #888888;
}

.article-list-posts .entry-meta i {
    font-size: 14px;
}


@media only screen and (max-width: 768px) {
    .article-list-posts .post-info img {
        min-width: 100px;
        max-width: 100px;
    }

    .article-list-posts p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        height: 47px;
    }

    .article-list-posts .post {
        padding-bottom: 16px;
    }

}