@import url('base.css');
@import url('../icon/iconfont.css');
.root {
    width: 1160px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}
.cate {
    display: block;
    float: left;
}

.cate .cate-category {
    display: flex;
    width: 100%;
    align-self: start;
    flex-shrink: 0;
    cursor: pointer;
}

.cate .cate-category .cate-category-title {
    overflow: hidden;
    margin-bottom: 20px;
    padding: 0 10px 0 0;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 24px;
    color: #777;
    border-width: 0.5px;
    border-color: transparent;
}

.cate .cate-category .filter-content {
    flex: 1;
    flex-wrap: wrap;
    padding-left: 0;
    overflow: visible;
    flex-direction: row;
    padding-right: 24px;
    display: flex;
}

.cate .cate-category .filter-content .filter-content-item {
    flex-direction: column;
    align-items: center;
    align-self: start;
    flex-shrink: 0;
    cursor: pointer;
}

.cate .cate-category .filter-content .filter-content-item .filter-content-item-title {
    overflow: hidden;
    margin-bottom: 20px;
    padding: 0 10px;
    position: relative;
    border-radius: 14px;
}

.cate .cate-category .filter-content .filter-content-item .filter-content-item-title .filter-content-item-title-text {
    line-height: 19.6px;
    color: #777;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    border-width: 0.5px;
    border-color: transparent;
}

.cate .cate-category .filter-content .filter-content-item .filter-content-item-title .filter-content-item-title-text:hover {
    color: var(--secondary-color) !important;
    font-weight: bold !important;   
}

.cate-on {
    color: var(--secondary-color) !important;
    font-weight: bold !important;
}

.cate-ona {
    color: #ff0000 !important;
    font-weight: bold !important;
}

.main {
    width: 100%;
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
    min-height: 100vh;
    height: auto; /* 添加这行 */
    position: relative; /* 为sticky子元素创建定位上下文 */
}

.main .main-left {
    flex: 1 1;
    display: inline-block;
    width: 756px;
}

.main-left .news-list {
    width: 100%;
    display: block;
    float: left;
}

.main-left .news-list .news-list-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #444;
}

.main-left .news-list .news-list-item:last-child {
    border-bottom: none;
}

.news-list .news-list-item .img {
    display: block;
    width: 180px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
}

.news-list .news-list-item .img img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.news-list .news-list-item .info {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    padding: 0 0 0 20px;
}

.news-list .news-list-item .info .title {
    overflow: hidden;
    font-weight: bold;
    font-size: 16px;
    display: -webkit-box;
    word-break: break-all;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 20px;
    margin-bottom: 7px;
    color: var(--text-color);
}

.news-list .news-list-item .info .title:hover {
    text-decoration: underline;
}

.news-list .news-list-item .info .text {
    line-height: 26px;
    display: -webkit-box;
    overflow: hidden;
    word-break: break-all;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
}

.news-list .news-list-item .info .p {
    height: 20px;
    line-height: 20px;
    overflow: hidden;
    display: flex;
}

.news-list .news-list-item .info .p .time {
    float: left;
    padding-right: 20px;
}

.news-list .news-list-item .info .p .cate {
    float: unset;
    color: #888;
}