/* reset */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}
*, :after, :before {
    box-sizing: inherit;
}
body {
    font: .24rem Source Sans Pro, Helvetica Neue, Helvetica, Arial, sans-serif;
    color: #323232;
}
body, ul {
    margin: 0;
}
ul {
    padding: 0;
}
li {
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    border: none;
    background: none;
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    -webkit-font-smoothing: inherit;
}

/* utility */
.bold {
    font-weight: 600;
}

/* icons */
.icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor
}
.icon--dropdown {
    margin-top: -2px;
    fill: #757575
}

/* nav component */

/*
    $nav-dropdown-max-height should be taller than maximum dropdown height so that dropdowns aren't cut off.
    It should also be taller than screen height on browsers (e.g. firefox, IE<10) where horizontal scroll bar can't be hidden
    65em = 910px, plenty high for 1080p screens
*/

.nav {
    font-size: .24rem;
    font-family: "微软雅黑";
    font-weight: 600;
    color: #279c63;
    width: 100%;
    height: 0.8rem;
    line-height: 0.8rem;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    -ms-overflow-style: none;

    /*
        height maintained by placeholder.
        this makes it easy to eventually make this menu position:fixed (if we ever want to do that)
    */
    position: absolute;
    z-index: 33;

}

/* hide horizontal scrollbar */

.nav ::-webkit-scrollbar { width: 0; }
/*
    allow dropdown menus to be displayed below bar
    by allowing their tall (height: $nav-dropdown-max-height) containers to be visible
*/
.nav--hovered, .nav--focused {
    overflow: visible;
}

.nav__placeholder {
    height: .8rem;
}

.nav__outer-wrap {
    display: flex;
    justify-content: space-between;
    height: 20.8rem;
    width: 1260px;
    max-width: 100%;
    margin: 0 auto;
}

/* Level 1 (header)
   ========================================================================== */
.nav__heading {
    display: inline-block;
    flex-shrink: 0;
    flex-grow: 1;
    height: .8rem;

    /* Hack: this compensates for the margin-left on the nav__item:first-child */
    margin-right: -3.2rem;
    z-index: 2 /* so leftmost nav__item doesn't cover it */

}
.nav__heading-caret {
    color: #666;
    font-size: .32rem;
    margin: 0 -.16rem;
}

.nav__inner-wrap {
    white-space: nowrap;
    height: 20.8rem;
    display: flex;
}

.nav__item {
    height: .8rem;
    width: 2.5rem;
    flex-shrink: 0; /* for iOS */
    text-align: center;
}

/* so that items w/ children contain their dropdown menus */
.nav__item.nav__menu-item--has-children {
    position: relative;
}

/* space on right edge of .nav__inner-wrap below .nav__scroll--right */
.nav__item--right-spacer {
    display: none;
    padding: 0 calc(.64rem / 2);
    background-color: transparent !important;
}
.nav--scrollable .nav__item--right-spacer {
    display: block;
}

.nav__link {
    display: block;
    padding: 0 10px;
    cursor: pointer; /* needed for all menu items, even dropdown, so iOS devices can hover over them */
    vertical-align: top; /* really only needed for children of .nav__heading so they line up with other links */
}

.nav__link--has-dropdown {
    position: relative;
}

.nav__scroll {
    position: absolute;
    top: 0;
    z-index: inherit;
    padding: 0 0 .048rem;
    width: calc(.64rem / 1);
    background-color: #eeeeee;
    font-family: Gill Sans, Futura, sans-serif;
    font-size: 200%;
    line-height: 0;
    height: calc( .8rem / 1 ); /* b/c font-size is doubled */
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s;
}

.nav__scroll:focus {
    opacity: 1;
}
.nav__scroll--left {
    left: 0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}
.nav__scroll--right {
    right: 0;
    border-left: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}
.nav__scroll--visible {
    opacity: .9;
    transition: opacity .3s;
}

.nav__link--toplevel {
    /* prevent text color from changing AFTER background color change on top-level links (not dropdowns) */
    transition: none;
}

/* Levels 2 & 3 (header)
   ========================================================================== */
/* menu item hovered/focused */
.nav__item:hover, .nav__item--has-focus {
    background-color: #279C63;
    color: white;
    border-bottom-color: #279C63;
}
/*
        tiny pseudolement to cover bottom edge of adjacent menu items to prevent accidental hover
        as mouse moves diagonally down from menu item to dropdown
     */
.nav__item:hover .nav__link--has-dropdown:before, .nav__item--has-focus .nav__link--has-dropdown:before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    width: calc(100% + .96rem);
    left: -.48rem;
    height: .384rem;
    /*background-color: red;*/
}
/* ensure tiny pseudoelement only shows up on left side (not right side) of final menu item */
.nav__item:hover .nav__link--has-dropdown:nth-last-child(2):before, .nav__item--has-focus .nav__link--has-dropdown:nth-last-child(2):before {
    width: calc(100% + .48rem);
}
.nav__item:hover .nav__dropdown, .nav__item--has-focus .nav__dropdown {
    display: block;
    padding-bottom: 0.3rem;
}
.nav__item:hover .icon--dropdown, .nav__item--has-focus .icon--dropdown {
    fill: white;
}
.nav__item:hover .nav__menu-item, .nav__item--has-focus .nav__menu-item {
    padding: 0.1rem 0;
    line-height: calc(.8rem - 8px);
}
.nav__item:hover .nav__menu-item > a, .nav__item--has-focus .nav__menu-item > a {
    display: inline-block;
    color: #fff;
}
.nav__item:hover .nav__menu-item > a:hover, .nav__item:hover .nav__menu-item > a:focus, .nav__item--has-focus .nav__menu-item > a:hover, .nav__item--has-focus .nav__menu-item > a:focus {
    background-color: #279C63;
}
.nav__item:hover .nav__menu-item > a:active, .nav__item--has-focus .nav__menu-item > a:active {
    background-color: #279C63;
}

.nav__item--repeated {
    margin-left: 0 !important;
}

.nav__dropdown {
    width: 2.5rem;
    display: none;
    position: absolute;
    z-index: 2;
    padding: 0;
    background-color: inherit;
    box-shadow: 1px 1px 4px rgba(150,150,150,.7);
}

.nav__item--right-aligned-dropdown .nav__dropdown {
    left: auto;
    right: 0;
    top: .8rem;
}
.nav--scrollable .nav__item--right-aligned-dropdown .nav__dropdown {
    right: -.64rem;
}

/*Small Phones*/
@media only screen and (max-width: 479px) {

    /* entire site nav bar is scrollable */
    .nav__outer-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/*Large Phones on up*/
@media only screen and (min-width: 480px) {

    /* nav is scrollable EXCEPT for heading (first item) */
    .nav__inner-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .nav__heading {
        background-color: #e0e0e0;
    }
}

@media screen and (min-width: 1024px) {
    .nav__outer-wrap {
        position: relative;  /*to contain nav__dropdown  */
        padding-right: 0;
    }
    .nav__heading {
        background-color: transparent;
    }
    .nav__link {
        padding: 0 .32rem;
    }
    /* remove link to see full menu (in footer) and the spacing for it */
    .nav__scroll {
        display: none;
    }
}