/* ========== 原有样式保持不变 ========== */

.categories-tab .tabs {
    height: 50px;
    border-bottom: 1px solid rgba(99,99,99,.1);
    position: relative;
    margin-bottom: 10px;
}

.categories-tab .tabs .tab {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    vertical-align: middle
}

.categories-tab .tabs .tab:not(:last-child)::after {
    position: absolute;
    top: 17px;
    right: -10px;
    content: "";
    width: 1px;
    height: 16px;
    background: hsla(0, 0%, 39%, .1);
}

.categories-tab .tabs .tab a {
    display: block;
    font-size: 18px;
    color: #222;
    font-weight: 400;
    text-decoration: none;
    line-height: 48px;
    padding-bottom: 0;
}

.categories-tab .tabs .tab.active a {
    position: relative;
    font-weight: 500;
    color: #03A9F4;
    border-bottom: 1px solid #03A9F4;
    height: 50px;
}

.categories-tab ul {
    list-style: none;
    min-height: 200px;
    display: none;
    padding-bottom: 0;
    margin: 2px 0 0;
}

.categories-tab ul.active {
    display: block;
}

.categories-tab ul li {
    border-bottom: 1px dashed #ddd;
    padding: 15px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.categories-tab ul li .img {
    display: block;
    float: left;
    width: 160px;
    height: 120px;
    margin-right: 20px;
    position: relative;
}

.categories-tab ul li .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.categories-tab ul li .post-info {
    overflow: hidden;
    padding-left: 0;
}

.categories-tab ul li .post-info .title {
    font-size: 18px;
    color: #222;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4;
    margin-bottom: 10px;
}

.categories-tab ul li .post-info .title:hover {
    color: #03A9F4;
}

.categories-tab ul li .post-info .summary {
    font-size: 14px;
    line-height: 1.6;
    color: #777;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
    max-height: 45px;
}

.categories-tab ul li .post-info .meta {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.categories-tab ul li .category-title {
    position: absolute;
    left: 10px;
    top: 25px;
    padding: 5px 6px;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    filter: alpha(opacity=60);
    background: rgba(0, 0, 0, .6);
    border-radius: 2px;
    text-decoration: none;
    z-index: 2;
}

.categories-tab ul li .category-title:hover {
    background-color: #1abc9c;
    color: #fff;
}

/****************************************新增响应式*********************************/

@media screen and (max-width: 768px) {
    .categories-tab .tabs {
        height: auto;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .categories-tab .tabs .tab a {
        font-size: 16px;
        line-height: 40px;
        padding: 0 5px;
    }

    .categories-tab .tabs .tab.active a {
        height: auto;
    }

    .categories-tab ul li {
        display: flex;
        align-items: flex-start;
        padding: 12px 0;
    }

    .categories-tab ul li .img {
        float: none;
        flex-shrink: 0;
        width: 120px;
        height: 90px;
        margin-right: 12px;
    }

    .categories-tab ul li .post-info {
        flex: 1;
        min-width: 0;
    }

    .categories-tab ul li .post-info .title {
        font-size: 15px;
        margin-bottom: 6px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .categories-tab ul li .post-info .summary {
        font-size: 13px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
        max-height: none;
    }

    .categories-tab ul li .category-title {
        left: 6px;
        top: 18px;
        padding: 3px 5px;
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .categories-tab ul li .img {
        width: 100px;
        height: 75px;
        margin-right: 10px;
    }

    .categories-tab ul li .post-info .title {
        font-size: 14px;
    }

    .categories-tab ul li .post-info .summary {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
}