
.nav {
  background: white;
  width: 100%;
  position: relative;

  .nav-line {
    height: 1px;
    width: 100%;
    background-color: #EEE;
    margin-top: 80px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  }

  .nav-bar {
    position: absolute;
    width: 1322px;
    height: 80px;
    left: calc(50% - 1322px / 2);
    top: 0px;
    z-index: 5;

    .navbar-brand {
      position: absolute;
      width: 187px;
      height: 80px;
      left: calc(50% - 187px / 2 - 488.5px);

      .logo {
        /* HIPO 高潜 */
        position: absolute;
        width: 121px;
        height: 32px;
        top: 24px;
        left: 0px;
        /* h3 */

        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 700;
        font-size: 24px;
        line-height: 32px;
        /* identical to box height, or 133% */

        letter-spacing: 0.1px;

        /* light-text-color */

        color: #333333;
      }
    }

    .navbar-collapse {
      position: absolute;
      width: 600px;
      height: 80px;
      right: 0;

      .navbar-content {
        /* Auto layout */
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
        gap: 21px;

        position: absolute;
        height: 24px;
        top: calc(50% - 24px / 2);
      }

      .link {
        /* link */
        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 600;
        font-size: 14px;
        line-height: 24px;
        /* identical to box height, or 171% */

        text-align: center;
        letter-spacing: 0.2px;

        /* light-text-color */

        color: #333333;
      }

      .linkChecked {
        /* link */
        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 600;
        font-size: 14px;
        line-height: 24px;
        text-align: center;
        letter-spacing: 0.2px;


        color: #1773c8;
      }
    }
  }
}

@media screen and (max-width: 767px) {
  .nav-fixed {
    position: fixed;
    background: white;
    width: 100%;
    z-index: 999;
    color: white;

    .nav-line {
      height: 1px;
      width: 100%;
      background-color: #EEE;
      box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    }

    .header {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-top: 18px;
      margin-bottom: 18px;

      .logo {
        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 600;
        font-size: 18px;
        flex: 1;
        color: #333333;
        line-height: 32px;
        display: inline-block;
        margin-left: 24px;
      }

      .menu {
        width: 24px;
        height: 15px;
        margin-right: 24px;
      }
    }

    .hide {
      animation: hide-keyframes 200ms ease-in forwards;
    }

    .show {
      animation: show-keyframes 200ms ease-in forwards;
    }

    @keyframes hide-keyframes {
      0% {
        height: 450px;
      }

      100% {
        height: 0;
      }
    }

    @keyframes show-keyframes {
      0% {
        height: 0;
      }

      100% {
        height: 450px;
      }
    }


    .nav-sub {
      text-align: center;
      height: 450px;
      padding-top: 25px;
      padding-bottom: 25px;

      .item {
        height: 50px;
        font-family: 'Montserrat';
        font-style: normal;
        font-size: 20px;
        color: #333333;
      }
    }

  }
}
