
/* banner图和纵向分类导航 */
.banner {
    width: 100%;
    height: 600px;
    padding-top: 70px;
    display: flex;
}

/* .banner .indexbg{
    flex-shrink: 0;
    width: 1000px;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
} */
.banner .indexbg a {
    font-weight: bold;
}

.banner .indexbg a.first {
    width: 240px;
    height: 240px;
    line-height: 240px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 705px;
    top: 266px;
    font-size: 36px;
}

.banner .indexbg a.second {
    width: 196px;
    height: 196px;
    line-height: 196px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 461px;
    top: 197px;
    font-size: 36px;
}

.banner .indexbg a.third {
    width: 180px;
    height: 180px;
    line-height: 180px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 1001px;
    top: 179px;
    font-size: 36px;
}

.vnav {
    width: 250px;
    height: 100%;
    flex-shrink: 0;
}

.vnav ul {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    position: relative;
}

.vnav ul li {
    line-height: 52px;
    color: #fff;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vnav ul li:hover {
    background: #fff;
    color: var(--primary-200);
}

.vnav ul li.first {
    background: linear-gradient(45deg, var(--primary-200), var(--primary-100), var(--primary-100), var(--primary-200));
    border-radius: 10px 10px 0 0;
    justify-content: center;
    gap: 3px;
    color: #fff;
}

.vnav ul li.first:hover {
    color: #fff;
}


.vnav-dropdown {
    position: absolute;
    top: 0;
    left: 250px;
    background-color: #fff;
    color: #333;
    height: 100%;
    padding: 0 20px;
    font-size: 14px;
    display: none;
    border-radius: 10px;
    z-index: 1;
    width: 65vw;
}

.vnav-dropdown .d-flex {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* .banner .vnav-dropdown .item {
    margin-bottom: 20px;
} */
.vnav-dropdown .title {
    font-weight: bold;
}

.vnav-dropdown .content {
    display: flex;
    flex-wrap: wrap;
}

.vnav-dropdown a {
    white-space: nowrap;
    border-right: 1px solid rgba(0, 0, 0, 0.3);
    padding: 0 10px;
    line-height: 16px;
}

.vnav-dropdown a:last-child {
    border-right: none;
}

.vnav ul li:hover .vnav-dropdown {
    display: block;
}

.vnav-dropdown a:hover {
    color: #f60;
}

/* top文章列表开始 */
.hotart {
    margin-top: 22px;
    display: flex;
    gap: 22px;
}

/* 调用文章列表样式 */
.artlist .tabbox {
    width: 100%;
    display: flex;
    justify-content: center;
}

.artlist .tabbox span {
    border: 1px solid var(--primary-100);
    padding: 11px 22px;
    font-size: 18px;
    color: var(--text-200);
    cursor: pointer;
}

.artlist .tabbox span.active {
    background-color: var(--primary-100);
    color: #fff;
}

.artlist .contbox {
    margin-top: 22px;
    counter-reset: li;
    /* display: none; */
}

.artlist .contbox.active {
    display: block;
}

.artlist .contbox article {
    display: flex;
    gap: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 11px 0;
}

.artlist .contbox article .pic {
    width: 220px;
    height: 150px;
    flex-shrink: 0;
}

.artlist .contbox article .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artlist .contbox article .txt {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.artlist .contbox .title {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.artlist .contbox .title em {
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 5px;
    background: #ccc;
    text-align: center;
    margin-right: 10px;
    color: #fff;

}

.artlist .contbox .title em::after {
    content: counter(li);
    counter-increment: li;
}

.artlist .contbox p {
    width: 100%;
    color: #999;
    font-size: 14px;
    line-height: 22px;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    /* 以下是实现省略号的代码 */
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.artlist .contbox .other {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
}

.artlist .contbox .left a {
    border: 1px solid rgba(222, 135, 141, 0.3);
    padding: 6px 11px;
}

.artlist .contbox .left span {
    font-size: 20px;
    color: #fe741c;
}

/* 查看更多按钮 */
.morebtn {
    display: flex;
    justify-content: center;
    margin: 22px 0;
}

.morebtn a {
    background: var(--bg-200);
    padding: 10px 40px;
    border-radius: 22px;
    font-size: 16px;
    color: var(--text-100);
}

.morebtn a:hover {
    color: var(--accent-100);
}

/* 右侧 */
.hotart .topten {
    width: 370px;
    flex-shrink: 0;
}

.hotart .topten .itembox {
    background: url(../images/topten-bg.jpg);
    margin-bottom: 22px;
    border-radius: 10px;
    padding: 20px;
}

.hotart .topten .itembox .title {
    font-size: 20px;
    color: #fff;
    height: 44px;
    line-height: 44px;
    font-weight: bold;
}

.hotart .topten .itembox ul {
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
}

.hotart .topten .itembox ul li {
    height: 42px;
    line-height: 42px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.hotart .topten .ad {
    width: 100%;
}

.hotart .topten .ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}