/* 版心 w */

body {
    background: rgb(245, 245, 245);
}

.w {
    width: 1200px;
    margin-top: 20px;
    margin-left: 50%;
    transform: translate(-50%);
}

header {
    background: #fff;
}

.header_div {
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
}

.header_div h1 {
    font-size: 30px;
    font-weight: 600;
    color: #000;
}

.header_right {
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
}

.header_right i {
    color: #f60;
    font-family: 'times new roman', times, serif;
    font-size: 30px;
    font-weight: bolder;
    font-style: italic;
    margin-left: 15px;
}


/* 导航栏部分 */

nav {
    background: #f60;
}

.nav_con ul {
    display: flex;
    /* border: 1px solid black; */
}

.nav_con ul li {
    padding: 12px 40px;
    margin-right: 30px;
    cursor: pointer;
    position: relative;
}

.nav_con ul li:hover,
.none div span:hover {
    background: #fff;
}

.nav_con ul li:hover a span,
.none div span:hover a {
    color: #f60;
}

.nav_con ul li:hover .none div {
    display: flex;
}

.nav_con ul li a {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.none {
    width: 100%;
    position: absolute;
    top: 48px;
    z-index: 2;
    left: 0;
    background: #f60;
}

.none div {
    width: 100%;
    display: none;
    /* align-items: center; */
    flex-direction: column;
}

.none div span a {
    width: 100%;
    text-align: center;
    display: block;
    padding: 7px 0;
    color: rgb(245, 245, 245);
}


/* 中间部分 */

main {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
}

.main_div {
    width: 32.5%;
    border-radius: 10px;
    padding: 10px 0;
    background-color: #fff;
    margin-bottom: 20px;
}

.main_div h1 {
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.main_div div img {
    width: 100%;
    height: 150px;
    transition: all 0.5s linear;
}

.main_div div img:hover {
    transform: scale(0.95);
    transition: all 0.5s linear;
}


/* 动画 */

.hd {
    display: flex;
    justify-content: center;
}

.hd .form-mess {
    height: 102.27px;
    overflow: hidden;
}


/*这儿就能动十次，0%~100% 如果上动的格子再多了是不是得再多分几次百分比  */

@keyframes updowm {
    0% {
        transform: translateY(0px);
    }
    20% {
        transform: translateY(-30.9px);
    }
    40% {
        transform: translateY(-60.8px);
    }
    60% {
        transform: translateY(-90.7px);
    }
    80% {
        transform: translateY(-120.6px);
    }
    100% {
        transform: translateY(-150.5px);
    }
}


/* 左右动的 就写个 transform: translateX(里面是负值) */

.hd .form-mess .box {
    width: 100%;
    overflow: hidden;
}

.lis {
    width: 100%;
    /* border: 1px solid red; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* 使用updowm 动画*/

.hd .form-mess .box .ul2 {
    animation: updowm 10s ease infinite forwards;
}

.hd .form-mess .box .ul2:hover {
    animation-play-state: paused;
}

.hd .form-mess .box .ul2 li {
    padding-left: 15.5px;
    box-sizing: border-box;
}

.hd .form-mess .box .ul2 .lis {
    height: 40px;
    font-size: 13.28px;
    line-height: 40px;
    color: #333333;
}


/* 底部 */

footer {
    /* height: 400px; */
    background-color: #171717;
}

.footer_div {
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
    padding: 50px 40px;
    box-sizing: border-box;
    justify-content: space-between;
}


/* 左边 */

.footer_div_left {
    color: #fff;
    border: 1px solid #5c5c5c;
    border-top: none;
    padding: 20px 60px;
    box-sizing: border-box;
}

.footer_div_left h1 {
    width: 90px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #5c5c5c;
}

.footer_div_left ul {
    border-top: 1px solid #5c5c5c;
}

.footer_div_left ul li {
    font-size: 14px;
    margin-top: 10px;
}

.footer_div img {
    width: 100px;
    border: 1px solid #fff;
    padding: 5px;
}

.login {
    float: right;
    font-size: 20px;
}