*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: fangzheng;
    /* font-weight: bold; */
}
@font-face{
    font-family: kaishu;
    src: url(../day9/font/方正/方正北魏楷书简体.ttf);
}
@font-face{
    font-family: fangzheng;
    src: url(../day9/font/方正/FZY1K.TTF);
}
h1{
    font-family: kaishu;
    color: white;
}
#slogen{
    position: absolute;
    top: 38%;
    left: 15%;
    z-index: 1;
    font-size: 50px;
    color: rgba(255, 255, 255, 0.812);
}
body{
    /* background-color: rgb(232,232,232); */
    background-color: #fafafc;
}
#logo{
    transform: translateY(8px);
    height: 30px;
    /* background-color: aquamarine; */
}
#my{
    transform: translateY(8px);
    height: 30px;
    /* background-color: blue; */
}
main{
    width: 100%;
    height: 100vh;
}
.banner{
    width: 100%;
    height: 100vh;
    background-image: url(./img/sofa.png);
    background-size: cover;
    background-position: center;
}
.banner::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(160, 160, 160, 0.5);
}
header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* background-color: rgb(7,147,56); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
header ul li{
    list-style: none;
    display: inline-block;
    margin-left: 40px;
    height: 30px; 
    line-height: 30px;
    /* background-color: blue; */
}
header ul li a{
    text-decoration: none;
    color: white;
    display: inline-block;
    /* background-color: aquamarine; */
    height: 30px; 
    line-height: 30px;
    /*垂直居中*/
}
header ul li a:hover{
    color: rgb(8, 99, 69);
}
header ul li a:hover .list{
    display: block;
}
.list{
    display: none; 
    position: absolute;
    top: 60px;
    left: 39%;
    color: white;
}
.list>li{
    display: block;
}
.list>li:hover{
    color: rgb(8, 99, 69);
}
#san3{
    width: 0px;
    height: 0px;
    border: 5px solid transparent;
    border-top: 5px solid white;
    position: relative;
    top: 15px;
    left: 5px;
}
header ul li a:hover #san3{
    border: 5px solid transparent;
    border-bottom: 5px solid white;
    position: relative;
    top: -15px;
}
.container-img{
    position:absolute ;
    top: 600px;
    /*border:  1px solid black;*/
    display: flex;
    width: 100%;
    height: 400px;
    /* background-color: aquamarine; */
}
.left-box{
    flex: 1;
    height: 400px;
    /* background-color: rgb(224, 195, 252); */
}
.center-box{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 940px;
    height: 400px;
    /* background-color: rgb(80, 80, 154); */
}
.right-box{
    flex: 1;
    height: 400px;
    /* background-color: rgb(224, 195, 252); */
}
.center-box>img{
    width: 300px;
}
.content{
    display: flex;
}
.left{
    flex: 1;
    height: 400px;
    /* background-color: antiquewhite; */
}
.center{
    width: 940px;
    height: 400px;
    /* background-color: rgb(222, 174, 112); */
    display: flex;
}
.right{
    flex: 1;
    height: 400px;
    /* background-color: antiquewhite; */
}
.box1{
    flex: 1;
    height: 400px;
    /* background-color: rgb(206, 135, 214); */
    display: flex;
    justify-content: left;
    align-items: center;
}
.box2{
    flex: 1;
    height: 400px;
    /* background-color: rgb(196, 231, 172); */
    display: flex;
    justify-content: right;
    align-items: center;
}
.box1>div{
    width: 80%;
    height: 80%;
    /* background-color: rgb(231, 172, 172); */
}
.box2>img{
    height: 80%;
}
.box1>div>p{
    line-height: 30px;
    font-size: 18px;
}
.btn-t{
    text-decoration: none;
    color: black;
    border-bottom: 2px solid rgb(234, 142, 142);
    padding-bottom: 5px;
}
.btn-t:hover{
    color: rgb(101, 199, 217);
    border-bottom: 2px solid rgb(241, 144, 144);
}
.box1>img{
    height: 85%;
}
.box2>div{
    text-align: right;
    width: 80%;
    height: 80%;
    /* background-color: rgb(231, 172, 172); */
}
.box2>div>p{
    line-height: 30px;
    font-size: 18px;  
}
.left-img{
    flex: 1;
    /* background-color: antiquewhite; */
}
.center-img{
    display: flex;
    width: 940px;
    justify-content: space-between;
}
.right-img{
    flex: 1;
    /* background-color: antiquewhite; */
}
.center-img>img{
    height: 430px;
}
.left-img>img{
    width: 100%;
    height: 430px;
}
.center-img{
    height: 300px;
}
.btn-2{
    height: 30px;
    margin-top: 3px;
    text-decoration: none;
    color: black;
    border-bottom: 2px solid rgb(234, 142, 142);
}
.btn-2:hover{
    color: rgb(101, 199, 217);
    border-bottom: 2px solid rgb(241, 144, 144);
}
footer{
    display: flex;
    justify-content: center;
    align-items: center;
}
.footer-left,.footer-right{
    flex: 1;
    height: 200px;
    /* background-color: rgb(136, 202, 220); */
}
.footer-center{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 940px;
    text-align: center;
    /* background-color: rgb(137, 228, 137); */
}
.footer-center > div {
    width: 100%; 
}

h1 {
    margin: 0; 
    font-size: 50px; 
    color: black; 
}
.nav{
    display: flex;
    margin-top: 10px;
    justify-content: center; 
    margin-bottom: 10px;
}
.nav-item{
    text-decoration: none;
    color: black;
    padding: 0px 30px;
    border-right: 1px solid black;
}
.nav-item:last-child{
    border-right: none;
}
.nav-item:hover{
    color:rgb(101, 199, 217);
}
#backtop{
    position: fixed;
    right: 50px;
    bottom: 50px;
    width: 50px;
    height: 50px;
    background-color: rgb(238, 238, 238);
    border-radius: 5px;
    border: 1px solid rgb(52, 50, 50);
    box-shadow: 2px 2px 2px  rgb(94, 94, 93);
}
#backtop:hover{
    background-color: rgb(63, 229, 232);
    cursor: pointer;
    color: #faf7f8;
}