* {
    padding: 0;
    margin: 0;
    /* 盒子模型 */
    box-sizing: border-box;
}

body {
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* align-items: center; */
    /* flex-wrap: wrap; */
    /* height: 100vh; */
    background-color: #282c34;
    /* background: url(https://imglf6.lf127.net/img/2a1fab49086b607a/RmpJaGZGcmxuWUsrb0lCNjJTNmwyMUF6SERiRFRDVGVhSm9YUVJpY1lUWT0.png?imageView&thumbnail=1920y2364&type=png&quality=96&stripmeta=0) no-repeat; */
    /* background: url(https://imglf5.lf127.net/img/0f7d0f7e7f7959e6/RmpJaGZGcmxuWUp1bEFyejlHZkQ0dGZoVUFSdk00dS93ZzZCZXdwalZIaz0.png?imageView&thumbnail=1920y2250&type=png&quality=96&stripmeta=0) no-repeat; */
    background: url(https://pic.imgdb.cn/item/6328a1b616f2c2beb10cebc8.png) no-repeat;
    /* background-size: contain; */
    background-size: cover;
}

.tab {
    width: 1200px;
    /* height: 950px; */
    /* height: 1350px; */
    /* height: 1500px; */
    /* height: 1000px; */
    height: 1280px;
    color: #607291;
    background-color: #fff;
    overflow: hidden;
    /* margin-top: 240px;
    margin-bottom: 240px; */
    margin: 240px auto 100px;
    border-radius: 15px;
}

input {
    display: none;
}

label {
    float: left;
    /* width: 140px; */
    width: 300px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    background-color: #e5e9ea;
    transition: all .3s;
}

label:hover {
    background-color: #fff;
}


/* label img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-top: -5px;
    margin-right: 5px;
} */

ul {
    /* 清除浮动 */
    clear: both;
    /* width: 3500px; */
    width: 4800px;
    height: 210px;
    transition: all .5s;
}

ul li {
    float: left;
    list-style: none;
    width: 1200px;
    /* height: 210px; */
    /* padding: 40px; */
    /* padding: 40px 40px 0 80px; */
    /* padding: 40px; */
}

ul li img {
    float: left;
    width: 130px;
    height: 130px;
    margin-right: 20px;
}

ul li p {
    /* 首行缩进两个字符 */
    /* text-indent: 2em; */
    /* 伸缩盒子模型 */
    display: -webkit-box;
    /* 在伸缩盒子模型里让子元素垂直排列 */
    -webkit-box-orient: vertical;
    /* 这个不是css的标准语句，需要配合以上两种属性一起使用，意思是只显示三行 */
    -webkit-line-clamp: 3;
    /* 溢出隐藏 */
    overflow: hidden;
    /* 溢出隐藏的文字呈现省略号 */
    text-overflow: ellipsis;
    margin-top: 20px;
}

#tab1:checked~ul {
    margin-left: 0;
}

#tab2:checked~ul {
    /* margin-left: -700px; */
    margin-left: -1200px;
}

#tab3:checked~ul {
    /* margin-left: -1400px; */
    margin-left: -2400px;
}

#tab4:checked~ul {
    /* margin-left: -2100px; */
    margin-left: -3600px;
}

#tab5:checked~ul {
    /* margin-left: -2800px; */
    margin-left: -4800px;
}

#tab1:checked~label[for="tab1"] {
    background-color: #fff;
}

#tab2:checked~label[for="tab2"] {
    background-color: #fff;
}

#tab3:checked~label[for="tab3"] {
    background-color: #fff;
}

#tab4:checked~label[for="tab4"] {
    background-color: #fff;
}

#tab5:checked~label[for="tab5"] {
    background-color: #fff;
}