﻿

/*
=======================================
	Reset CSS
=======================================
------------------*/
#nav {
    /*background: #191919;*/
    position: fixed;
    top: 0;
    width: 100%;
    opacity: 0.9;
    background-color: #000;
    z-index: 998;
    /*background: url(../img/menubg.png) center top no-repeat;*/
    /* CSS3 陰影*/
    /*-webkit-box-shadow: 0px 2px 3px #c3dfe4;
	-moz-box-shadow: 0px 2px 3px #c3dfe4;
	box-shadow: 0px 2px 3px #c3dfe4;*/
	/* container */


}

#nav a {
    display: block;
    padding: 10px 0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    text-shadow: 0px 0px 6px #910a0b;
}

#nav a:hover {
    color: #f2b75b;
    font-size: 21px;
    text-shadow: 0px 0px 5px #664614;
}

#nav>a {
    display: none;
}

#nav li {
    position: relative;
}

/* ==========first level============ */

#nav>ul {
    /*height: 3.75em;*/
}

#nav>ul>li {
    width: 11.1%;
    float: left;
    text-align: center;
    list-style-type: none;
    color: #000;
}

/* =================second level============== */
#nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    z-index: 998;
}

#nav li ul li {
    width: 100%;
    text-align: center;
    background-color: #191919;
    padding: 0 20px;
}

#nav li ul li a {
    width: 100%;
}

#nav li ul li a:hover {}

#nav li:hover ul {

    display: block;
}

@media screen and (min-width:640px) {
    #nav {
        background-color: #000;
        /*background: url(../img/menubg.png) center top no-repeat;*/
        /* position: relative; */
        position: fixed;
        top: 0;
        z-index: 999;
    }


}

@media only screen and (max-width: 40em)
/* 640 */

    {
    #nav>a {
        text-align: center;
        padding-top: 12px;
        height: 16px;
        width: 61px;
        margin: 0px 5px;
        /*border: 1px solid;
        border-color: #747070;
        border-radius: 5px;
        /*background-color: #747070;*/
        background: url(../image/menu.png) center top no-repeat;
        font-size: 20px;
        font-weight: 900;
        color: #fff;
        float: right;
    }

    #nav:not( :target)>a:first-of-type,
    #nav:target>a:last-of-type {
        display: block;
    }

    .menubar {}

    /* first level */

    #nav>ul {
        height: auto;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 36px;
    }

    #nav:target>ul {
        display: block;
    }

    #nav>ul>li {
        width: 100%;
        float: none;
        background-color: #05123eb3;
        border-top: 1px;
        border-bottom: 0px;
        border-left: 0px;
        border-right: 0px;
        border-style: solid;
        border-color: #547696;
    }

    /* second level */
    #nav li ul {
        position: static;
    }
}