.header-top {
  background: rgba(100,249,255,1);
  background: -moz-linear-gradient(left, rgba(100,249,255,1) 0%, rgba(38,206,255,1) 42%, rgba(252,106,179,1) 100%);
  background: -webkit-gradient(left top, right top, color-stop(0%, rgba(100,249,255,1)), color-stop(42%, rgba(38,206,255,1)), color-stop(100%, rgba(252,106,179,1)));
  background: -webkit-linear-gradient(left, rgba(100,249,255,1) 0%, rgba(38,206,255,1) 42%, rgba(252,106,179,1) 100%);
  background: -o-linear-gradient(left, rgba(100,249,255,1) 0%, rgba(38,206,255,1) 42%, rgba(252,106,179,1) 100%);
  background: -ms-linear-gradient(left, rgba(100,249,255,1) 0%, rgba(38,206,255,1) 42%, rgba(252,106,179,1) 100%);
  background: linear-gradient(to right, rgba(100,249,255,1) 0%, rgba(38,206,255,1) 42%, rgba(252,106,179,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#64f9ff', endColorstr='#fc6ab3', GradientType=1 );
}
.header-top i{
  font-size: 130%;
}
.header-top a:hover,
.header-top a:focus{
  color: #00ACDE !important;
}
.header-top{
  font-size: 12px;
}
@media (min-width: 992px) {
  .header-top{
    font-size: 17px;
  }
}
.header-fixed-top {
  position: fixed;
  top: 60px;
  right: 0;
  left: 0;
  z-index: 1030;
  transition: top 0.35s ease;
}
.header-fixed-top.scrolled {
  top: 15px !important;
}

/* Logo */
.navbar-brand{
  padding: 10px 20px;
  background-color: #fff;
  border-radius: 40px;
}
.logo {
  max-height: 40px;
  transition: all 0.3s;
}
.navbar .dropdown-item,
.home .navbar .menu-right a,
.navbar .nav-link{
  font-size: 14px;
  font-weight: bold;
}
.home .navbar:not(.scrolled) .menu-right a,
.home .navbar:not(.scrolled) .nav-link{
  color: #fff !important;
}
@media (min-width: 992px) {
  .header-fixed-top {
    top: 80px;
  }
  .navbar-brand{
    padding: 15px 20px;
    border-radius: 90px;
  }
  .logo {
    max-height: 40px;
  }
  .navbar .dropdown-item,
  .home .navbar .menu-right a,
  .navbar .nav-link{
    font-size: 15px;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 15px;
    padding-left: 15px;
  }
}
@media (min-width: 1440px) {
  .logo {
    max-height: 90px;
  }
  .navbar .dropdown-item,
  .home .navbar .menu-right a,
  .navbar .nav-link{
    font-size: 17px;
  }
}

#site-header .navbar.fixed-navbar {
  border-radius: 40px;
  padding: 0;
  margin-left: 15px;
  margin-right: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
  #site-header .navbar.fixed-navbar {
    background: transparent !important;
    backdrop-filter: blur(30px) brightness(1.15);
    -webkit-backdrop-filter: blur(30px) brightness(1.15);
  }
}

@media (min-width: 992px) {
  #site-header .navbar.fixed-navbar{
    border-radius: 90px;
    margin-left: 20px;
    margin-right: 20px;
    padding-right: 40px;
  }
}

@media (min-width: 1320px) {
  #site-header .navbar.fixed-navbar{
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (min-width: 1600px) {
  #site-header .navbar.fixed-navbar{
    margin-left: 100px;
    margin-right: 100px;
  }
  .navbar-brand{
    padding: 15px 30px;
  }
}

/* collapse-right 增加在nav上与navbar-collapse collapse同时使用 手机版（侧边出）样式菜单*/

@media (max-width: 992px) {
  .navbar .navbar-collapse.collapse-right {
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    height: 100% !important;
    position: fixed;
    top: 0;
    bottom: 0;
    background-color: #fff;
    right: 0;
    display: block;
    transition: all 0.3s ease-out;
    transform: translateX(100%);
  }
}

.navbar .collapse.collapse-right.show {
  right: 0;
  transition: all 0.3s ease-out;
  transform: translateX(0);
}

/* 弹出搜索，搜索模式为输入框，可以将此代码注释 */
.search-fullscreen-wrapper {
  position: fixed;
  /* background: rgba(0, 0, 0, 0.8); */
  left: 0;
  right: 0;
  top: 200px;
  bottom: 0;
  color: #000;
  z-index: 10000;
  display: none;
}

.search-fullscreen-wrapper .search-fullscreen-form {
  margin: 0 auto;
  margin-top: 200px;
  display: table;
}

.search-close-btn {
  position: absolute;
  top: 50px;
  right: 50px;
  cursor: pointer;
}

@media (min-width: 992px) {
  .search-close-btn {
    top: 100px;
    right: 100px;
  }
}

.search-fullscreen-wrapper .search-fullscreen-form input[type="search"] {
  font-size: 20px;
  line-height: 35px;
  height: auto;
  color: #000;
  background: none;
  border: none;
  border-bottom: 3px solid #000;
  padding-left: 10px;
  padding-right: 0;
  width: 700px;
  outline: none;
}

.search-fullscreen-wrapper .search-fullscreen-form #searchsubmit {
  display: none;
}

.search-fullscreen-wrapper .search-fullscreen-form input::placeholder {
  color: rgba(0, 0, 0, 0.6) !important;
}

.search-close-btn i {
  font-size: 28px;
}

/* 菜单开合按钮 */

.navbar .navbar-toggler {
  border: none;
  border-radius: 0;
  font-size: 20px;
  padding: 0;
  z-index: 1;
  outline: none !important;
  padding-right: 30px;
  cursor: pointer;
}
.navbar .navbar-toggler:hover,
.navbar .navbar-toggler:focus,
.navbar .navbar-toggler:active{
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.navbar .navbar-toggler .line {
  display: flex;
  width: 2.2rem;
  height: 2px;
  background: rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease-out;
  animation: resize 1.3s ease-in-out infinite alternate !important;
  animation-duration: 1.3s !important;
  animation-timing-function: ease-in-out !important;
  animation-delay: 0s !important;
  animation-iteration-count: infinite !important;
  animation-direction: alternate !important;
  animation-fill-mode: none !important;
  animation-play-state: running !important;
  animation-name: resize !important;
}
.navbar.navbar-dark .navbar-toggler .line {
  background: rgba(255, 255, 255, 0.9);
}
.navbar .navbar-toggler .second-line {
  margin: 0.5rem 0;
}
.navbar-toggler[aria-expanded="true"] .first-line {
  transform: rotate(25deg) translate3d(0.5rem, 0.5rem, 0);
  transform-origin: center;
}
.navbar-toggler[aria-expanded="true"] .second-line {
  transform: scale3d(0, 1, 1);
}
.navbar-toggler[aria-expanded="true"] .third-line {
  transform: rotate(-25deg) translate3d(0.5rem, -0.5rem, 0);
  transform-origin: center;
}

/* 菜单样式 */
.dropdown-menu {
  border: 0;
  background: rgba(255, 255, 255, 0.8);
}
.dropdown-menu {
  --bs-dropdown-link-active-bg: #00ACDE;
}

/* 大屏 hover 展开子菜单，点击跳转页面 */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
  }
}

.dropdown-menu a.dropdown-item{
  font-size: 15px;
  font-weight: normal;
}

.dropdown-toggle::after {
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-style: normal;
  font-weight: 400 !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\F282";
  font-size: 0.8rem;
  border: 0 !important;
}

@media screen and (max-width: 767px){
  #main-menu{
    padding: 20px 20px 0;
  }
  #main-menu .dropdown-menu{
    background-color: transparent;
    padding: 0;
    margin: 0;
  }
  .menu-right-inner{
    padding: 0 20px 15px;
    font-size: 14px;
  }
}
@media (min-width: 992px){
  .navbar-expand-lg .navbar-nav .dropdown-menu .dropdown .dropdown-menu{
    top: 0;
    left: 100%;
  }
}

/* megamenu */

#mega-menu-wrap-primary{
  padding: 1rem;
}

@media (min-width: 992px) {
  #mega-menu-wrap-primary{
    padding: 0;
  }
}

#mega-menu-wrap-primary #mega-menu-primary .mega-description-group .mega-menu-description {
  color: #999;
}

/* 普通悬浮菜单 */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu,
/* 超级菜单 */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu {
  min-width: 200px;
}
@media (min-width: 992px) {
  #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu {
    margin-top: 35px;
  }

  .home #site-header .navbar .atcn-account-link,
  .home #site-header .navbar a.atcn-account-link,
  .home #site-header .navbar .atcn-cart-link,
  .home #site-header .navbar a.atcn-cart-link{
    color: #fff;
  }

  .home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link{
    color: #fff;
  }

  .home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
  .home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link,
  .home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
      color: #28fff6;
  }

  .home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
  .home #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus{
      color: #28fff6;
  }

  .home #site-header .navbar.menu-fixed .atcn-account-link,
  .home #site-header .navbar.menu-fixed a.atcn-account-link,
  .home #site-header .navbar.menu-fixed .atcn-cart-link,
  .home #site-header .navbar.menu-fixed a.atcn-cart-link{
    color: #000;
  }

  .home #site-header .navbar.fixed-navbar.menu-fixed{
    background: rgba(255, 255, 255, 0.7) !important;
  }

  .home .menu-fixed #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link{
    color: #000;
  }

  .home .menu-fixed #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
  .home .menu-fixed #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link,
  .home .menu-fixed #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-page-ancestor > a.mega-menu-link {
      color: #00acde;
  }

  .home .menu-fixed #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
  .home .menu-fixed #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus{
      color: #00acde;
  }

}

/* 搜索 */

.header-search-form{
  display: inline-block;
  border-radius: 100px;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.05);
}

.header-search-form .form-control,
.footer-search-form .form-control {
  border-radius: 100px;
}

.header-search-form .close-button {
  background-color: transparent;
}

@media (min-width: 992px) {
  .header-search-form{
    display: none;
  }
}

.header-search-form .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) ,
.footer-search-form .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
}
.header-search-form .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  border: 0;
}

.header-search-form .close-button {
  display: none;
}

@media (min-width: 1230px) {
  .header-search-form {
    display: inline-block;
  }
  .header-search-form.active{
    position: absolute;
    transition: all 0.5s ease-in-out;
    right: -2rem;
    left: 0;
    box-shadow: none;
  }
  .header-search-form.active .close-button{
    display: block;
    background-color: var(--bs-tertiary-bg) !important;
    width: 50px !important;
  }

  .header-search-form.active .search-button{
    border-radius: 0 !important;
  }
}

/* 无 href 的菜单项（仅作标题展示）不显示手型光标 */
#mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link:not([href]){
  cursor: default;
}

/* 手机端菜单：限制高度，超出可滚动 */
@media (max-width: 992px) {
  .navbar-collapse {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    border-radius: 40px;
  }
}

.mega-menu-link.product-categories{
  color: #333 !important;
  font-size: 28px !important;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: normal;
  text-align: left;
  margin: 0px 0px 20px 0px;
  padding: 0px;
  display: block;
  border: 0;
}

.mega-menu-link.product-categories:hover{
  color: #00acde !important;
}
