body {
    background-color: #f9f6fe;
}
.news {
    width: 100%;
    margin-bottom: 50px;
    padding: 80px 20px;
}

.grid-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-news .tag {
    display: block;
    font-size: 12px;
    color: #060097;
    font-weight: 700;
    margin-bottom: 15px;
}
.grid-news .time {
    font-size: 13px;
    color: #a3a3a3;
}

.grid-news .item {
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.grid-news .item header {
    margin-bottom: 15px;
}
.grid-news h3 a {
    font-size: 33px;
    color: #000;
}

.grid-news p {
    font-size: 18px;
    color: #a3a3a3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*设置对齐模式*/
    -webkit-line-clamp: 8;
    /*设置多行的行数*/
}

.grid-news a {
    font-size: 12px;
    color: #fff;
}
@media (max-width: 850px) {
    .news .grid-news {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {
    .news .grid-news {
        grid-template-columns: repeat(1, 1fr);
    }
}