* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 12px;
    color: #fff;
}
@font-face {
    font-family: 'HarmonyOS-Medium';
    src: url('HarmonyOS_Sans_Medium.woff2') format('woff2'), /* Super Modern Browsers */
    url('HarmonyOS_Sans_Regular.woff') format('woff'), /* Pretty Modern Browsers */
}

html,body {
    height: 100%;
    background-color: #000;
    font-family: HarmonyOS-Medium;
}
h1,h2,h3,h4,h5 {
    font-weight: normal;
}
i{
    font-style: normal;
}
.cn {
    display: block;
}
.en {
    display: none;
}
header {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    align-items: center;
    width: 1200px;
    margin: 0 auto;
}
h1 {
    height: 50px;
}
.logo {
    height: 100%;
}
header a{
    display: inline-block;
    height: 100%;
}
.lang {
    padding-right: 20px;
    position: relative;
    width: 50px;
    text-align: right;
}
.lang:hover .lang-list {
    display: block;
}

.lang-title {
    font-size: 16px;
    position: relative;
}
.lang-title i {
    position: absolute;
    top: 9px;
    right: -14px;
    border: 5px solid #fff;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
}
.lang-list {
    position: absolute;
    width: 100%;
    background-color: rgba(0,0,0,.8);
    display: none;
}
.lang-list span{
    display: block;
    font-size: 14px;
    margin-top: 6px;
    text-align: center;
    padding-right: 12px;
    cursor: pointer;
    color: rgba(255,255,255,.8);

}
.lang-list span:hover {
    background-color: #000;
    color: #fff;
}
.banner {
    width: 1200px;
    height: 100px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: url('../img/新闻.png') no-repeat center center / cover;
    margin-bottom: 50px;
}
.list {
    width: 1200px;
    margin: 0 auto;
    display:grid;
    /*两个相同宽度的列。*/
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.list-item {
    width: 280px;
    margin-bottom: 40px;

}
.list-item img {
    height: 100%;
    width: 100%;
    display: block;
}
.list-item .news-title {
    margin-top: 8px;
    /*超出部分隐藏*/
    overflow: hidden;
    /*强制在一行*/
    white-space: nowrap;
    /*文本超出部分省略*/
    text-overflow: ellipsis;
}
.news-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.news-link {
    overflow: hidden;
    display: inline-block;
    height: 190px;
    width: 280px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}
.news-img:hover {
    transform: scale(1.2);
    transition: 0.5s;
}
footer{
    height: 200px;
    width: 1200px;
}
@media (max-width: 600px) {
    .banner {
        width: 100%;
        background: url('../img/新闻-H5.png') no-repeat center center / cover;

    }

    .list {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0 15px;
    }

    footer {
        width: 100%;
        height: 50px;
    }

    header {
        width: 100%;
    }

    .list-item {
        width: 100%;
    }

    .news-link {
        width: 100%;
        height: auto;
    }
}