.navbar {
  height: 100%;
  position: relative;

  .navbar-wrapper {
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
    height: 84px;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    display: flex;
    line-height: 84px;
    transition: background-color .5s ease-out;

    .logo {
      display: block;
      width: 195px;
      height: 52px;
      background-image: url('https://file.funcheergame.com/office/image/logowhite.png') ;
      position: absolute;
      left: 42px;
      top: 18px;
      z-index: 99;
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
    }

    .navbar-item-wrapper {
      display: flex;
      margin: 0 auto;
      z-index: 2;

      .navbar-item {
        cursor: pointer;
        text-align: center;
        width: 130px;
        height: 100%;
        position: relative;

        .navbar-item-link {
          font-family: "黑体";
          display: block;
          width: 100%;
          height: 100%;
          font-size: 18px;
          color: #fff;
          letter-spacing: 2px;

          .line {
            position: absolute;
            display: block;
            bottom: 0;
            height: 2px;
            width: 0;
            background: #e4004f;
            left: 76px;
          }
        }

        .navbar-item-detail-wrapper {
          z-index: 2;
          height: 180px;
          position: absolute;
          font-size: 14px;
          border-right: 1px solid #ddd;
          top: 100px;
          left: 0;
          width: 100%;
          display: none;
          transform: translateY(20px);

          a {
            display: block;
            height: 30px;
            line-height: 30px;
            opacity: 1;
            white-space: nowrap;

            &:hover {
              color: #e4004f;
            }
          }
        }
      }

    }

    .header-bg {
      position: absolute;
      z-index: 1;
      width: 100%;
      overflow: hidden;
      height: 0;
      top: 85px;
      left: 0;
    }

    .write-bg {
      background-color: #fff;
      height: 100%;
      width: 100%;

    }
  }

  .shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: .4;
    z-index: 1;
    display: none;
  }

}

.navbar.show {
  .navbar-wrapper {
    position: fixed;
    min-width: 1400px;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .1);

    .logo {
      background-image: url('https://file.funcheergame.com/office/image/logo.png');
    }

    .navbar-item-wrapper {
      .navbar-item {
        .navbar-item-link {
          color: #000;

          .line.show {
            width: 100%;
            left: 0;
          }
        }
      }
    }
  }

  .shadow {
    display: block;
  }

}

.navbar.open {
  .navbar-wrapper {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .1);

    .logo {
      background-image: url('https://file.funcheergame.com/office/image/logo.png');
    }

    .navbar-item-wrapper {
      .navbar-item {
        .navbar-item-link {
          color: #000;

          .line.show {
            width: 100%;
            left: 0;
          }
        }

        .navbar-item-detail-wrapper {
          display: block !important;
          transform: translateY(0px) !important;
        }
      }
    }

    .header-bg {
      height: 208px;
    }
  }

}
