﻿
body {
    margin: 0 0 0;
    background: #fff;
}

.main-menu {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

    .main-menu .logo {
        height: 100px;
        text-align: center;
    }

        .main-menu .logo img {
            margin-top: 30px;
            height: 50px;
        }

    .main-menu .season {
        float: right;
    }

        .main-menu .season .line {
            width: 100px;
            float: left;
            color: black;
            height: 40px;
            line-height: 40px;
            cursor: pointer;
        }

            .main-menu .season .line:hover {
                color: red;
            }

.menu-box {
    width: 100%;
    height: 80px;
    background: #fff;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    -moz-box-shadow: 0px 2px 5px #333333;
    -webkit-box-shadow: 0px 2px 5px #333333;
    box-shadow: 0px 2px 5px #333333;
}

.header-box-btn {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10;
}

.burger-icon {
    position: relative;
    transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    margin: 27.5px 60px;
    cursor: pointer;
    /*margin: -5px 0 -6px;*/
}

    .burger-icon:hover {
        cursor: pointer;
    }

    .burger-icon.active .line:first-child {
        transform: translateY(8px) rotate(45deg);
        -webkit-transform: translateY(8px) rotate(45deg); /* Webkit内核浏览器 */
        -ms-transform: translateY(8px) rotate(45deg);
    }

    .burger-icon.active .line:nth-child(2) {
        opacity: 0;
        /*This works in IE 8 & 9 too*/
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        /* IE 4-9 */
        filter: alpha(opacity=0);
        /*IE4-IE9*/
        filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    }

    .burger-icon.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(135deg);
        -ms-transform: translateY(-8px) rotate(135deg);
        -webkit-transform: translateY(-8px) rotate(135deg); /* Webkit内核浏览器 */
    }

    .burger-icon .line {
        width: 25px;
        height: 2px;
        background-color: #1a1a1a;
        display: block;
        margin: 6px auto;
        transition: all .3s ease-in-out;
    }

.menu-contain {
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    z-index: 1001;
    display: none;
    font-size: 14px;
}

.menu-cover {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.menu-list {
    width: 200px;
    position: absolute;
    top: 0px;
    left: -200px;
    padding: 50px 0;
    background: rgb(167, 149, 99);
    height: 100%;
    z-index: 1001;
}

    .menu-list .line {
        width: 90%;
        margin: 0 5%;
        float: left;
        height: 30px;
        line-height: 30px;
        cursor: pointer;
        color: #fff;
    }

        .menu-list .line:hover {
            color: gray;
        }

    .menu-list .lang {
        width: 90%;
        margin: 0 5%;
        float: left;
        display: none;
        color: #fff;
    }

        .menu-list .lang .block {
            width: 100%;
            font-size: 12px;
            height: 20px;
            height: 20px;
            cursor: pointer;
        }

            .menu-list .lang .block:hover {
                color: gray;
            }


@media screen and (min-width: 900px) {
    .main-menu .logo {
        width: 100%;
    }

    .main-menu .season {
        width: 100%;
    }
}

@media screen and ( max-width: 900px ) {

    .main-menu .logo {
        width: 100%;
        height: 60px;
        text-align: center;
    }

        .main-menu .logo img {
            margin-top: 20px;
            height: 30px;
        }

    .main-menu .season .line {
        height: 80px;
        line-height: 80px;
        text-align: center;
    }

    .menu-box {
        width: 100%;
        height: 50px;
        background: #fff;
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        -moz-box-shadow: 0px 2px 5px #333333;
        -webkit-box-shadow: 0px 2px 5px #333333;
        box-shadow: 0px 2px 5px #333333;
    }

    .header-box-btn {
        position: absolute;
        top: 0px;
        left: 0px;
        z-index: 10;
    }

    .burger-icon {
        position: relative;
        transition: all .3s ease-in-out;
        -ms-transition: all .3s ease-in-out;
        margin: 12.5px 20px;
        cursor: pointer;
        /*margin: -5px 0 -6px;*/
    }
}

/* 动画 */
.toRightMove {
    animation: leftmove 1s ease 1 forwards;
    -webkit-animation: leftmove 1s ease 1 forwards;
    animation-fill-mode: forwards;
}

.toLeftMove {
    animation: leftmoveback 1s ease 1 forwards;
    -webkit-animation: leftmoveback 1s ease 1 forwards;
    animation-fill-mode: forwards;
}

@keyframes leftmove {
    from {
        left: -200px;
    }

    to {
        left: 0px;
    }
}

@-webkit-keyframes leftmove {
    from {
        left: -200px;
    }

    to {
        left: 0px;
    }
}

@keyframes leftmoveback {
    from {
        left: 0px;
    }

    to {
        left: -200px;
    }
}

@-webkit-keyframes leftmoveback {
    from {
        left: 0px;
    }

    to {
        left: -200px;
    }
}

.toShow {
    animation: show 1s ease 1 forwards;
    -webkit-animation: show 1s ease 1 forwards;
    animation-fill-mode: forwards;
}

@keyframes show {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes leftmoveback {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.toHide {
    animation: hide 1s ease 1 forwards;
    -webkit-animation: hide 1s ease 1 forwards;
    animation-fill-mode: forwards;
}

@keyframes hide {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@-webkit-keyframes hide {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
