
/* 清除默认边距 包含body的8px;*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    color: #333;
    background-color: #eee;
}

.header {
    width: 100%;
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0px 2px 8px 5px hsl(205deg, 16%, 77%);
}

.header-center {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 8px;
    display: flex;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    /* 垂直居中 */
    align-items: center;
    width: 40%;
    height: 100%;
    
}

.header-logo img {
    width: auto;
    height: 76%;
}

.header-logo h3 {
    margin-left: 16px;
    font-size: 23px;
    font-weight: 400;
    color: #333;
    letter-spacing: 2px;
}

.header-nav {
    width: 50%;
    height: 100%;
    padding: 20px 90px;
}

.header-nav ul {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav ul li {
    margin: 0 20px;
    list-style: none;
}

.header-nav ul li.active a {
    color: coral;
}

.header-nav ul li a {
    text-decoration: none;
    color: #333;
    
}

.header-nav ul li a:hover {
    color: coral;
}


/* banner */
.banner {
    width: 1200px;
    height: 380px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
}

.banner-left {
    width: 800px;
}

.banner-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-right {
    width: 380px;
    height: 100%;
    padding: 20px;
    background-color: #fff;
}

.banner-search {
    width: 90%;
    height: 40px;
    margin: 0 auto;
    background-color: #999;
    border-radius: 8px;
    overflow: hidden;
    /* 去除两个元素之间默认的空格间距 */
    font-size: 0;
}

.banner-search input {
    width: 80%;
    height: 100%;
    background-color: #fff;
    padding-left: 15px;
    border: none;
}

.banner-search input:active {
    /* 去除输入时的边框 */
    outline: none;
}

.banner-search button {
    width: 20%;
    height: 100%;
    color: #fff;
    background-color: rgb(8, 145, 231);
    border: none;
}

.banner-list {
    width: 90%;
    height: 80%;
    margin: 20px auto;
}

.banner-list-title {
    border-bottom: 1px solid #ccc;
}

.banner-list-title h4 {
    display: inline-block;
    font-size: 20px;
    border-bottom: 2px solid rgb(8, 145, 231);
    padding-bottom: 8px;
}

.banner-list-content ul li {
    list-style: none;
    margin: 10px 2px;
    display: flex;
    justify-content: space-between;
}

/* 推荐文章 */

.home-te {
    width: 1200px;
    height: 180px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-te-list {
    width: 30%;
    height: 100%;
}

.home-te-list h4{
    font-size: 20px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.home-te-list span{
    font-weight: 700;
}

.home-te-list p{
    padding: 8px 0;
    color: #ccc;
}

/* 分类栏目 */
.section {
    width: 1200px;
    height: 300px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
}

.section-title {
    /* margin: 12px 16px; */
    padding: 8px 8px 0 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

.section-title h4 {
    display: inline-block;
    font-size: 20px;
    line-height: 40px;
    letter-spacing: 2px;
    border-bottom: 2px solid rgb(8, 145, 231);
}

.section-content {
    width: 100%;
    height: 82%;
    display: flex;
    justify-content: space-between;
}

.section-content-s {
    width: 23%;
    height: 100%;
    font-size: 0;
    border-radius: 2px;
    overflow: hidden;
}

.section-content-s:hover {
    cursor: pointer;
    box-shadow: 2px 2px 5px 5px #ccc;
}

.section-content-s img {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.section-content-s p {
    width: 100%;
    height: 20%;
    font-size: 16px;
    padding: 8px 0;
    text-align: center;
}



