
@import url("css/remixicon.css");

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 70px;
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --black-color: #FFF;
    --black-color-light: #f5f5f5;
    --black-color-lighten: hsl(220, 20%, 18%);
    --white-color: #000;



    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-semi-bold: 400;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 999;
  }

  body {
    padding-top: var(--header-height) !important;
  }

  /*========== Responsive typography ==========*/
  @media screen and (min-width: 1024px) {
    :root {

    }
  }


  .nav__menu{
    width: 54%;
    min-width: 610px;
    font-size: 1.125rem !important;

  }

  .nav__menu ul,#nav-userinfo ul,#nav-userinfo li {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Color highlighting when pressed on mobile devices */
    /*-webkit-tap-highlight-color: transparent;*/
  }



  /*=============== REUSABLE CSS CLASSES ===============*/
  .navcontainer {
    /* padding-left: 10px; */
    margin-inline: 20px;
  }

  /*=============== HEADER ===============*/
  .header_web {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background-color: var(--black-color);
    box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
    z-index: var(--z-fixed);
    /* font-size: 1.125rem !important; */
  }

  /*=============== NAV ===============*/
  .nav {
    height: var(--header-height);
    width: 75vw;
    margin: 0 auto;
    /* overflow:visible; */

  }
  .nav a{text-decoration: none;}
  .nav__logo,
  .nav__burger,
  .nav__close {
    color: var(--white-color);
  }

  .nav__data {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: 0.625rem;
    margin-right: 1.875rem;
    font-weight: var(--font-semi-bold);
    /* Color highlighting when pressed on mobile devices */
    /*-webkit-tap-highlight-color: transparent;*/
  }

  .nav__logo i {
    font-weight: initial;
    font-size: 1rem;
  }

  .nav__toggle {
    position: relative;
    width: 2rem;
    height: 2rem;
  }

  .nav__burger,
  .nav__close {
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
  }

  .nav__close {
    opacity: 0;
  }
  #nav-userinfo-mobile2{display: none;}
  /* Navigation for mobile devices */
  @media screen and (max-width: 1118px) {
    .nav__menu {
      position: absolute;
      left: 0;
      top: 1.875rem;
      width: 100%;
      height: calc(75vh - 70px);
      overflow: auto;
      pointer-events: none;
      opacity: 0;
      transition: top .4s, opacity .3s;
    }
    .nav__menu::-webkit-scrollbar {
      width: 0;
    }
    .nav__data{width: 100%;}
    .nav__list {
      background-color: var(--black-color);
      padding-top: 0.75rem;
    }

    #top_right_links{position: absolute; top:0.75rem;right: 10.625rem}
    #nav-userinfo{display: none !important;}
    #top_right_links{display: none !important;}
    #nav-userinfo-mobile2{display: block;}
  }
  @media screen and (max-width: 1650px){
    /* #nav-search{display: none !important;} */
    /* #nav-message{display: none !important;} */
    .nav{
      width: 100%;
      padding:0 80px;
    }
  }
  @media screen and (max-width: 1350px){
    /* #nav-search{display: none !important;} */
    /* #nav-message{display: none !important;} */
    .nav{
      width: 100%;
      padding:0 20px;
    }
    .search_input{
      width: 180px !important;
    }
  }
  @media screen and (max-width: 1180px){
    #nav-search{display: none !important;}

    /* #nav-message{display: none !important;} */
    /* .nav{
      width: 100%;
      padding:0 80px;
    } */
  }
  .nav__menu{
    min-width: 720px;
  }
  .nav__link {
    color: var(--white-color);
    background-color: var(--black-color);
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
  }

  .nav__link:hover {
    background-color: var(--black-color-light);
    /* color:#93292d; */
    color: #0256FF;
    font-weight: 600;
  }

  /* Show menu */
  .show-menu {
    opacity: 1;
    top: 70px;
    pointer-events: initial;
  }

  /* Show icon */
  .show-icon .nav__burger {
    opacity: 0;
    transform: rotate(90deg);
  }
  .show-icon .nav__close {
    opacity: 1;
    transform: rotate(90deg);
  }

  /*=============== DROPDOWN ===============*/
  .dropdown__item {
    cursor: pointer;
  }

  .dropdown__arrow {
    font-size: 1.25rem;
    font-weight: initial;
    transition: transform .4s;
  }

  .dropdown__link,
  .dropdown__sublink {
    padding: 14px 30px;
    color: var(--white-color);
    background-color: var(--black-color);
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-weight: var(--font-semi-bold);
    transition: background-color .3s;
    white-space: nowrap;
  }

  .dropdown__link i,
  .dropdown__sublink i {
    font-size: 1.125rem;
    font-weight: initial;
  }

  .dropdown__link:hover,
  .dropdown__sublink:hover {
    background-color: var(--black-color);
    font-weight: bold;
  }

  .dropdown__menu,
  .dropdown__submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
  }

  /* Show dropdown menu & submenu */
  .dropdown__item:hover .dropdown__menu,
  .dropdown__subitem:hover > .dropdown__submenu {
    max-height: 1000px;
    transition: max-height .4s ease-in;
  }

  /* Rotate dropdown icon */
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }

  /*=============== DROPDOWN SUBMENU ===============*/
  .dropdown__add {
    margin-left: auto;
  }

  .dropdown__sublink {
    background-color: var(--black-color-lighten);
  }

  /*=============== BREAKPOINTS ===============*/
  /* For small devices */
  @media screen and (max-width: 340px) {
    .navcontainer {
      margin-inline: 16px;
    }

    .nav__link {
      padding-inline: 16px;
    }
  }

  /* For large devices */
  @media screen and (min-width: 1118px) {
    .navcontainer {
      margin-inline: auto;
    }

    .nav {
      height: calc(var(--header-height));
      display: flex;
      flex-wrap: nowrap;
      justify-content: space-between;
    }
    .nav__toggle {
      display: none;
    }
    .nav__list {
      height: 100%;
      display: flex;
      column-gap: 0.625rem;
    }
    .nav__link {
      height: 100%;
      padding: 0;
      justify-content: initial;
      column-gap: 0.5rem;
    }
    .nav__link:hover {
      background-color: transparent;
    }

    .dropdown__item,
    .dropdown__subitem {
      position: relative;
      flex: 1;
      display: flex;
      justify-content: center;
      border-bottom: 0.2rem solid transparent;
    }

    .dropdown__menu,
    .dropdown__submenu {
      font-size: 16px;
      max-height: initial;
      overflow: initial;
      position: absolute;
      left: 50%;
      top: 6.25rem;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s, top .3s;
      transform: translateX(-50%);
      box-shadow: 0 4px 10px rgba(0,0,0,.1);
    }

    .dropdown__link,
    .dropdown__sublink {
      /*padding-inline: 1.25rem 2.125rem;*/
    }

    .dropdown__subitem .dropdown__link {
      padding-inline: 0.75rem;
    }

    .dropdown__submenu {
      position: absolute;
      left: 100%;
      top: 0.5rem;
    }

    /* Show dropdown menu */
    .dropdown__item:hover .dropdown__menu {
      opacity: 1;
      top:70px;
      pointer-events: initial;
      transition: top .3s;
    }

    /* Show dropdown submenu */
    .dropdown__subitem:hover > .dropdown__submenu {
      opacity: 1;
      top: 0;
      pointer-events: initial;
      transition: top .3s;
    }
    .nav_active{
      border-bottom: 0.2rem solid #0256FF;
    }
    .nav_active .nav__link{
      color: #0256FF;
    }

  }
  .nav__logo img{
    /* height:1.5rem; */
    vertical-align: middle;
    height: 40px;
  }
  .menu-name{
    word-wrap: break-word;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  /* .navbar-box{padding-right:15px} */
  .navbar-box{display: flex; flex-direction: row; align-items: center;position: relative;}
  .nav-linkbtn:hover,.dropdown__menu a:hover{color:#0256FF}
  .navbar-box img{height:1.56rem}
  .navbar-box a{color:#000}
  .navbar-box a:hover{color:#0256FF;text-decoration: none;}
  #nav-userinfo{display: flex; flex-direction: row; justify-content: center;}
  #nav-userinfo .dropdown__menu{font-size: 18px;width: 200px;}
  #top_right_links{ display: flex;justify-content: space-between;font-size: 14px !important;}
  #nav-loginOrReg div{
    width: 3.6rem;
    height: 1.875rem;
    border-radius: 0.13rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  #nav-loginOrReg div:first-child {
    color: #A5A5A5;
  }
  #nav-loginOrReg div:last-child {
    color: #fff;
    background: #0256FF;
  }
  #nav-search div{
    position: relative;
  }
  .search_input{
    position: relative;
    outline: none;
    width: 240px;
    height: 2rem;
    border-radius: 0.3rem;
    background: #FFFFFF;
    box-sizing: border-box;
    border: 1px solid #898989;
    padding-left: 1.25rem;
    transition: width .5s;
  }
  .search_icon{
    position: absolute;
    top: 0;
    right: 0;
    width: 2.75rem;
    height: 2rem !important;
    border-radius: 0px 5px 5px 0px;
    /* 自动布局 */
    background: #0256FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

.search_icon img{
  width: 16px;
  height: auto;
}


  #nav-message img{
    height: 1.25rem;
    margin-left:30px;
    cursor: pointer;
  }
  #nav-userlabel img{
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    margin-left:  20px;
  }
  #nav-message{
    position: relative;
  }
  #message-num{
    position: absolute;
    left: 18px;
    top: 20px;
    background-color: #F30000;
    border-radius: 5px;
    text-align: center;
    width: 24px;
    height: 14px;
    font-size: 12px;
    line-height: 14px;
    color: #FFFFFF;
    z-index: 1;
  }
  .menu_userinfo{
    display: flex;
    background-color: var(--black-color-light);
    padding: 10px;
    font-size: 18px;
    border-bottom: 1px solid #E8E8E8;
  }
  .menu_userinfo img{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
  }
  .menu_userinfo div{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
  /* .menu_userinfo:hover{
    color: #000;
  } */
  .dropdownmenu_r{
    left: 52px;
    transform: translateX(-100%);
  }
