﻿@media only screen and (max-width: 479px) and (min-width: 320px){#cd-menu-trigger{display:block!important;}}
  #cd-menu-trigger{display:none;}
  /* 移动端导航 */
  .cd-main-content {
    /* set a min-height and a z-index to be sure that the main element completely covers the lateral menu */
    min-height: 100%;
    position: relative;
    z-index: 2;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    transition-property: transform;
    -webkit-transition-duration: 0.4s;
    -moz-transition-duration: 0.4s;
    transition-duration: 0.4s;
  }

  .cd-main-content.lateral-menu-is-open {
    /* translate to show the lateral menu - all content needs to be put in the .cd-main-content to translate*/
    -webkit-transform: translateX(-260px);
    -moz-transform: translateX(-260px);
    -ms-transform: translateX(-260px);
    -o-transform: translateX(-260px);
    transform: translateX(-260px);
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    height: 50px;
    width: 100%;
    z-index: 3;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-transition-property: -webkit-transform;
    -moz-transition-property: -moz-transform;
    transition-property: transform;
    -webkit-transition-duration: 0.4s;
    -moz-transition-duration: 0.4s;
    transition-duration: 0.4s;
  }

  header.lateral-menu-is-open {
    /* translate to show the lateral menu */
    -webkit-transform: translateX(-260px);
    -moz-transform: translateX(-260px);
    -ms-transform: translateX(-260px);
    -o-transform: translateX(-260px);
    transform: translateX(-260px);
  }

  header.is-fixed {
    position: fixed;
  }

  @media only screen and (min-width: 768px) {
    header {
      height: 70px;
    }
  }

  #cd-logo {
    display: block;
    float: left;
    margin: 12px 0 0 20px;
  }

  #cd-logo img {
    display: block;
  }

  @media only screen and (min-width: 768px) {
    #cd-logo {
      margin: 22px 0 0 30px;
    }
  }

  #cd-top-nav {
    position: absolute;
    top: 0;
    right: 120px;
    height: 100%;
    display: none;
  }

  #cd-top-nav ul {
    height: 100%;
    padding-top: 18px;
  }

  #cd-top-nav li {
    display: inline-block;
    margin-right: 1em;
  }

  #cd-top-nav a {
    display: inline-block;
    padding: .5em;
    color: #FFF;
    text-transform: uppercase;
    font-weight: 600;
  }

  #cd-top-nav a.current {
    background-color: #242e30;
  }

  .no-touch #cd-top-nav a:hover {
    color: rgba(255, 255, 255, 0.7);
  }

  @media only screen and (min-width: 768px) {
    #cd-top-nav {
      display: block;
    }
  }

  #cd-menu-trigger {
    position: absolute;
    right: 5%;
    top: 200%;
    height: .78rem;
    width: 4%;
    /* background-color: #f0f4f7; */
    border-radius: .1rem;
  }

  #cd-menu-trigger .cd-menu-text {
    height: 100%;
    text-transform: uppercase;
    color: #FFF;
    font-weight: 600;
    display: none;
  }

  #cd-menu-trigger .cd-menu-icon {
    /* this span is the central line in the menu menu */
    display: inline-block;
    position: absolute;
    left: 73%;
    top: 50%;
    bottom: auto;
    right: auto;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 18px;
    height: 2px;
    background-color: #0168b7;
    color: #0168b7;
    /* these are the upper and lower lines in the menu menu */
  }

  #cd-menu-trigger .cd-menu-icon::before,
  #cd-menu-trigger .cd-menu-icon:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: inherit;
    left: 0;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }

  #cd-menu-trigger .cd-menu-icon::before {
    bottom: 5px;
  }

  #cd-menu-trigger .cd-menu-icon::after {
    top: 5px;
  }

  #cd-menu-trigger.is-clicked .cd-menu-icon {
    background-color: rgba(255, 255, 255, 0);
  }

  #cd-menu-trigger.is-clicked .cd-menu-icon::before,
  #cd-menu-trigger.is-clicked .cd-menu-icon::after {
    background-color: #0168b7;
  }

  #cd-menu-trigger.is-clicked .cd-menu-icon::before {
    bottom: 0;
    left: 2.6rem;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  #cd-menu-trigger.is-clicked .cd-menu-icon::after {
    top: 0;
    left: 2.6rem;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  @media only screen and (min-width: 768px) {

    #cd-menu-trigger .cd-menu-text {
      display: inline-block;
      line-height: 70px;
    }

    /* 移动端导航 */
    .cd-main-content {
      /* set a min-height and a z-index to be sure that the main element completely covers the lateral menu */
      min-height: 100%;
      position: relative;
      z-index: 2;
      /* Force Hardware Acceleration in WebKit */
      -webkit-transform: translateZ(0);
      -webkit-backface-visibility: hidden;
      -webkit-transition-property: -webkit-transform;
      -moz-transition-property: -moz-transform;
      transition-property: transform;
      -webkit-transition-duration: 0.4s;
      -moz-transition-duration: 0.4s;
      transition-duration: 0.4s;
    }

    .cd-main-content.lateral-menu-is-open {
      /* translate to show the lateral menu - all content needs to be put in the .cd-main-content to translate*/
      -webkit-transform: translateX(-260px);
      -moz-transform: translateX(-260px);
      -ms-transform: translateX(-260px);
      -o-transform: translateX(-260px);
      transform: translateX(-260px);
    }


    header {
      position: fixed;
      top: 0;
      left: 0;
      height: 50px;
      width: 100%;
      z-index: 3;
      /* Force Hardware Acceleration in WebKit */
      -webkit-transform: translateZ(0);
      -webkit-backface-visibility: hidden;
      -webkit-transition-property: -webkit-transform;
      -moz-transition-property: -moz-transform;
      transition-property: transform;
      -webkit-transition-duration: 0.4s;
      -moz-transition-duration: 0.4s;
      transition-duration: 0.4s;
    }

    header.lateral-menu-is-open {
      /* translate to show the lateral menu */
      -webkit-transform: translateX(-260px);
      -moz-transform: translateX(-260px);
      -ms-transform: translateX(-260px);
      -o-transform: translateX(-260px);
      transform: translateX(-260px);
    }

    header.is-fixed {
      position: fixed;
    }

    #cd-logo {
      display: block;
      float: left;
      margin: 12px 0 0 20px;
    }

    #cd-logo img {
      display: block;
    }

    @media only screen and (min-width: 768px) {
      #cd-logo {
        margin: 22px 0 0 30px;
      }
    }

    #cd-top-nav {
      position: absolute;
      top: 0;
      right: 120px;
      height: 100%;
      display: none;
    }

    #cd-top-nav ul {
      height: 100%;
      padding-top: 18px;
    }

    #cd-top-nav li {
      display: inline-block;
      margin-right: 1em;
    }

    #cd-top-nav a {
      display: inline-block;
      padding: .5em;
      color: #FFF;
      text-transform: uppercase;
      font-weight: 600;
    }

    #cd-top-nav a.current {
      background-color: #242e30;
    }

    .no-touch #cd-top-nav a:hover {
      color: rgba(255, 255, 255, 0.7);
    }

    @media only screen and (min-width: 768px) {
      #cd-top-nav {
        display: block;
      }
    }

    #cd-menu-trigger .cd-menu-text {
      height: 100%;
      text-transform: uppercase;
      color: #FFF;
      font-weight: 600;
      display: none;
    }

    #cd-menu-trigger .cd-menu-icon::before,
    #cd-menu-trigger .cd-menu-icon:after {
      content: '';
      width: 100%;
      height: 100%;
      position: absolute;
      background-color: inherit;
      left: 0;
      /* Force Hardware Acceleration in WebKit */
      -webkit-transform: translateZ(0);
      -webkit-backface-visibility: hidden;
    }

    #cd-menu-trigger .cd-menu-icon::before {
      bottom: 5px;
    }

    #cd-menu-trigger .cd-menu-icon::after {
      top: 5px;
    }

    #cd-menu-trigger.is-clicked .cd-menu-icon::before,
    #cd-menu-trigger.is-clicked .cd-menu-icon::after {
      background-color: #0168b7;
    }

    #cd-menu-trigger.is-clicked .cd-menu-icon::before {
      bottom: 0;
      -webkit-transform: rotate(45deg);
      -moz-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      transform: rotate(45deg);
    }

    #cd-menu-trigger.is-clicked .cd-menu-icon::after {
      top: 0;
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      transform: rotate(-45deg);
    }

    #cd-lateral-nav {
      position: fixed;
      height: 100%;
      left: 0;
      top: 2rem;
      /* the secondary navigation is covered by the main element */
      z-index: 1;
      width: 4.6rem;
      background-color: #007fe0;

      right: 0;
      top: 0;
      /* the secondary navigation is covered by the main element */
      z-index: 1;
      width: 190px;
      background-color: rgba(0, 0, 0, 0.6);

      -webkit-transform: translateZ(0);
      -webkit-backface-visibility: hidden;
      -webkit-transition-property: -webkit-transform;
      -moz-transition-property: -moz-transform;
      transition-property: transform;
      -webkit-transition-duration: 0.4s;
      -moz-transition-duration: 0.4s;
      transition-duration: 0.4s;

      -webkit-transform: translateX(-260px);
      -moz-transform: translateX(260px);
      -ms-transform: translateX(260px);
      -o-transform: translateX(260px);
      transform: translateX(-260px);
      border-top-right-radius: 0.1rem;
    }

    .item-has-children {
      width: 1.9rem;
    }

    #cd-lateral-nav .item-has-children .click {
      background: #bfe2fe;
      color: #000;
      -webkit-transform: translateX(260px);
      -moz-transform: translateX(260px);
      -ms-transform: translateX(260px);
      -o-transform: translateX(260px);
    }

    #cd-lateral-nav .sub-menu {

      position: absolute;
      left: 1.9rem;
      top: 0;
      padding: 0 10px 20px 15px;
      display: none;
      width: 2.7rem;
      height: 100%;
      background: #bfe2fe;
    }

    #cd-lateral-nav .sub-menu a {
      color: #000;
      padding: 0 10px 20px 15px;
      display: none;
    }


    #cd-lateral-nav a {
      display: block;
      line-height: .7rem;
      font-size: .22rem;
      padding: 0 16px 0 32px;
      color: #FFFFFF;
    }

    #cd-lateral-nav a.current {
      background-color: #3a4a4d;
      color: #FFF;
    }

    .no-touch #cd-lateral-nav a:hover {
      color: #FFF;
    }

    /* #cd-lateral-nav .cd-navigation li{border-bottom:.01rem solid #FFFFFF;} */

    #cd-lateral-nav.lateral-menu-is-open {
      -webkit-transform: translateX(0);
      -moz-transform: translateX(0);
      -ms-transform: translateX(0);
      -o-transform: translateX(0);
      transform: translateX(0);
      /* smooth the scrolling on touch devices - webkit browsers */
      -webkit-overflow-scrolling: touch;
    }

    /* style menu items which have a submenu  */
    #cd-lateral-nav .item-has-children>a {
      position: relative;
      text-transform: uppercase;
      font-weight: 600;

    }

    #cd-lateral-nav .item-has-children>a::after {
      content: '';
      display: block;
      height: 11px;
      width: 8px;
      position: absolute;
      top: 50%;
      bottom: auto;
      -webkit-transform: translateY(-50%);
      -moz-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
      -o-transform: translateY(-50%);
      transform: translateY(-50%);
      right: 1em;
      /* background: url("cd-arrow.svg") no-repeat center center; */
      background-size: 8px 11px;
      -webkit-transition-property: -webkit-transform;
      -moz-transition-property: -moz-transform;
      transition-property: transform;
      -webkit-transition-duration: 0.2s;
      -moz-transition-duration: 0.2s;
      transition-duration: 0.2s;
    }

    #cd-lateral-nav .item-has-children>a.submenu-open::after {
      -webkit-transform: translateY(-50%) rotate(90deg);
      -moz-transform: translateY(-50%) rotate(90deg);
      -ms-transform: translateY(-50%) rotate(90deg);
      -o-transform: translateY(-50%) rotate(90deg);
      transform: translateY(-50%) rotate(90deg);
    }

    #cd-lateral-nav .socials {
      padding: 0 32px;
    }

    #cd-lateral-nav .socials:after {
      content: "";
      display: table;
      clear: both;
    }

    #cd-lateral-nav .socials a {
      height: 32px;
      width: 32px;
      float: left;
      padding: 0;
      /* background-image: url("../img/cd-socials.svg"); */
      background-repeat: no-repeat;
      background-size: 128px 64px;
      background-color: #FFF;
      margin-right: .5em;
      border-radius: 0.25em;
    }

    #cd-lateral-nav .socials a.cd-twitter {
      background-position: 0 0;
    }

    #cd-lateral-nav .socials a.cd-github {
      background-position: -32px 0;
    }

    #cd-lateral-nav .socials a.cd-facebook {
      background-position: -64px 0;
    }

    #cd-lateral-nav .socials a.cd-google {
      background-position: -96px 0;
    }

    .no-touch #cd-lateral-nav .socials a:hover {
      background-color: #4e6361;
    }

    .no-touch #cd-lateral-nav .socials a:hover.cd-twitter {
      background-position: 0 -32px;
    }

    .no-touch #cd-lateral-nav .socials a:hover.cd-github {
      background-position: -32px -32px;
    }

    .no-touch #cd-lateral-nav .socials a:hover.cd-facebook {
      background-position: -64px -32px;
    }

    .no-touch #cd-lateral-nav .socials a:hover.cd-google {
      background-position: -96px -32px;
    }

    #cd-lateral-nav {
      display: block;
    }

    /* 顶部导航 END */