.nav {
  position: relative;
  width: 100%;
  background: #252b42;

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

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

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

        /* light-text-color */

        color: #ffffff;
        font-weight: 700;
        font-size: 24px;

        /* h3 */

        font-family: "Montserrat";
        font-style: normal;
        line-height: 32px;
        /* identical to box height, or 133% */

        letter-spacing: 0.1px;
      }

      .logo2 {
        /* HIPO 高潜 */
        position: absolute;
        top: 13px;
        left: 0px;
        width: 300px;
        height: 32px;

        /* light-text-color */

        color: #ffffff;
        font-weight: 500;
        font-size: 20px;

        /* h3 */

        font-family: "Montserrat";
        font-style: normal;
        line-height: 32px;
        /* identical to box height, or 133% */

        letter-spacing: 0.1px;
      }
    }

    .navbar-collapse {
      position: absolute;
      top: 40px;
      left: calc(50% - 373px / 2 + 310.5px);
      width: 373px;
      height: 24px;

      .navbar-content {
        position: absolute;
        top: calc(50% - 24px / 2);
        left: calc(50% - 660px / 2 - 46.5px);
        /* Auto layout */
        display: flex;
        flex-direction: row;
        gap: 21px;
        align-items: center;
        width: 660px;
        height: 24px;
        padding: 0px;
      }

      .navbar-login {
        position: absolute;
        top: 0px;
        left: 355px;
        width: 65px;
        height: 24px;
      }

      .navbar-register {
        position: absolute;
        top: 0px;
        left: 413px;
        width: 65px;
        height: 24px;
      }

      .navbar-user {
        position: absolute;
        top: 0px;
        left: 355px;
        width: 100px;
        height: 24px;
        text-align: center;

        .link {
          color: #ffffff;
          font-weight: 600;
          font-size: 14px;
          font-family: "Montserrat";
          font-style: normal;
          line-height: 24px;
          letter-spacing: 0.2px;
          transition: box-shadow 0.3s ease, color 0.3s ease;
        }

        .hide-drop {
          position: absolute;
          display: none;
          top: 100%;
          left: 0;
          text-align: center;
          padding-top: 20px;
          padding-bottom: 5px;
          background-color: rgba(0, 0, 0, 0.2);
          min-width: 100px;
          z-index: 1000;
        }

        .show-drop {
          position: absolute;
          display: block;
          top: 100%;
          left: 0;
          text-align: center;
          padding-top: 20px;
          padding-bottom: 5px;
          background-color: rgba(0, 0, 0, 0.2);
          min-width: 100px;
          z-index: 1000;
        }
      }
      .navbar-user:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        background-color: rgba(0, 0, 0, 0.2); /* 可选：微弱的背景颜色 */
      }

      .link {
        /* light-text-color */

        color: #ffffff;
        font-weight: 600;
        font-size: 14px;
        /* link */
        font-family: "Montserrat";
        font-style: normal;
        line-height: 24px;
        letter-spacing: 0.2px;
        /* identical to box height, or 171% */

        text-align: center;
      }
    }
  }

  .nav-container {
    position: relative;
    left: calc(50% - 1160px / 2);
    z-index: 3;
    /* Auto layout */
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: flex-start;
    width: 1160px;
    height: 679px;
    padding: 80px 0px;

    .main-content {
      /* Auto layout */
      display: flex;

      flex: none;
      flex-direction: column;
      flex-grow: 0;
      order: 0;
      width: 860px;
      height: 411px;
      padding: 180px 0px;

      .content1 {
        flex: none;
        flex-grow: 0;
        order: 0;
        width: 800px;
        color: #ffffff;
        font-weight: 800;
        font-size: 60px;
        font-family: "SourceHanSansCN-Bold";
        font-style: normal;
        letter-spacing: 0.2px;
      }

      .line {
        width: 110px;
        margin-top: 6px;
        margin-bottom: 8px;
        border-bottom: 4px solid white;
      }

      .content2 {
        flex: none;
        flex-grow: 0;
        order: 0;
        width: 800px;
        color: #ffffff;
        font-weight: 400;
        font-size: 46px;
        font-family: "SourceHanSansCN-Bold";
        font-style: normal;
        letter-spacing: 0.2px;
      }

      .content4 {
        flex: none;
        flex-grow: 0;
        order: 1;
        width: 600px;
        height: 60px;
        color: #ffffff;
        font-weight: 500;
        font-size: 20px;
        font-family: "SourceHanSansCN-Bold";
        font-style: normal;
        line-height: 36px;
        letter-spacing: 0.2px;
      }

      .buttons {
        /* Auto layout */
        display: flex;

        /* Inside auto layout */

        flex: none;
        flex-direction: row;
        flex-grow: 0;
        gap: 10px;
        align-items: flex-start;
        order: 2;

        width: 268px;
        height: 48px;
        margin-top: 40px;
        padding: 0px;

        .button-a {
          /* Auto layout */
          display: flex;

          /* Inside auto layout */

          flex: none;
          flex-direction: column;
          flex-grow: 0;
          gap: 10px;
          align-items: center;
          order: 0;

          width: 129px;
          height: 48px;
          padding: 10px 36px;

          /* primary-color */

          background: #ff7b47;
          border-radius: 37px;
        }

        .button-b {
          /* Auto layout */

          display: flex;

          /* Inside auto layout */

          flex: none;
          flex-direction: column;
          flex-grow: 0;
          gap: 10px;
          align-items: center;
          order: 1;
          box-sizing: border-box;

          width: 129px;
          height: 48px;
          padding: 10px 36px;

          /* light-background-color */

          border: 1px solid #ffffff;
          border-radius: 37px;
        }

        .button-text {
          /* Inside auto layout */

          flex: none;
          flex-grow: 0;
          order: 0;
          width: 57px;
          height: 28px;

          /* light-text-color */

          color: #ffffff;
          font-weight: 700;
          font-size: 14px;

          /* btn-text */

          font-family: "Montserrat";
          font-style: normal;
          line-height: 28px;
          letter-spacing: 0.2px;
          /* identical to box height, or 200% */

          text-align: center;
        }
      }
    }
  }

  .nav-background {
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0px;
    z-index: 1;
    height: 793px;

    background: rgba(0, 0, 0, 0.5);
  }

  .nav-cover {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 793px;
    object-fit: cover;
  }
}

.nav-fixed {
  display: none;
}

.nav-content {
  display: none;
}

@media screen and (max-width: 767px) {
  .nav {
    display: none;
  }

  .nav-fixed {
    display: block;
    position: fixed;
    z-index: 999;
    width: 100%;
    color: white;
    background: #252b42;

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

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

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

    .hide {
      overflow: "hidden";
      height: 0;
      z-index: 999;
      animation: hide-keyframes 200ms ease-in forwards;

      .nav-sub {
        display: none;
      }
    }

    .show {
      overflow: "hidden";
      height: 450px;
      animation: show-keyframes 200ms ease-in forwards;

      .nav-sub {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 450px;
        padding-top: 25px;
        padding-bottom: 25px;
        text-align: center;

        .item {
          height: 50px;
          color: white;
          font-size: 20px;
          font-family: "Montserrat";
          font-style: normal;
        }
      }
    }

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

      100% {
        height: 0;
      }
    }

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

      100% {
        height: 450px;
      }
    }
  }

  .nav-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 68px;
    color: white;
    font-size: 22px;
    background: #252b42;

    .content {
      position: relative;
      height: 600px;

      .nav-cover {
        position: absolute;
        top: 0;
        width: 100%;
        height: 600px;
        object-fit: cover;
      }

      .nav-bg {
        position: absolute;
        top: 0;
        width: 100%;
        height: 600px;
        background: rgba(0, 0, 0, 0.5);
      }

      .text-content {
        position: absolute;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;

        .content1 {
          margin-top: 140px;
          color: #fff;
          font-weight: 700;
          font-size: 30px;
          font-family: "SourceHanSansCN-Bold";
          font-style: normal;
          line-height: 60px;
          text-align: center;
        }

        .content2 {
          flex: none;
          flex-grow: 0;
          order: 0;
          width: 100%;
          color: #ffffff;
          font-weight: 400;
          font-family: "SourceHanSansCN-Bold";
          font-style: normal;
          letter-spacing: 0.2px;
          text-align: center;
        }

        .content4 {
          margin-top: 30px;
          margin-right: 40px;
          margin-left: 40px;
          color: #fff;
          font-weight: 400;
          font-size: 18px;
          font-family: "SourceHanSansCN-Bold";
          font-style: normal;
          line-height: 32px;
          text-align: center;
        }

        .buttons {
          /* Auto layout */
          display: flex;
          flex-direction: column;
          gap: 10px;
          margin-top: 40px;

          .button-a {
            /* Auto layout */
            display: flex;

            /* Inside auto layout */

            flex: none;
            flex-direction: column;
            flex-grow: 0;
            gap: 10px;
            align-items: center;
            order: 0;

            width: 129px;
            height: 48px;
            padding: 10px 36px;

            /* primary-color */

            background: #ff7b47;
            border-radius: 37px;
          }

          .button-b {
            display: flex;
            flex: none;
            flex-direction: column;
            flex-grow: 0;
            gap: 10px;
            align-items: center;
            order: 1;
            box-sizing: border-box;

            width: 129px;
            height: 48px;
            padding: 10px 36px;

            border: 1px solid #ffffff;
            border-radius: 37px;
          }

          .button-text {
            flex: none;
            flex-grow: 0;
            order: 0;
            width: 100px;
            height: 28px;
            color: #ffffff;
            font-weight: 700;
            font-size: 14px;
            font-family: "Montserrat";
            font-style: normal;
            line-height: 28px;
            letter-spacing: 0.2px;
            text-align: center;
          }
        }
      }
    }
  }
}
