/* Logo */
.logo {
  max-height: 50px;
  transition: all 0.3s;
}

@media (min-width: 992px) {
  .logo {
    max-height: 80px;
  }
}

.navbar-light.menu-fixed {
  background-color: rgba(255, 255, 255, 0.9);
}

.navbar-dark.menu-fixed {
  background-color: rgba(0, 0, 0, 0.9);
}

.menu-fixed .logo {
  max-height: 60px;
}

#site-header .navbar.fixed-navbar {
  margin: 1rem 1rem 0;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* 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);
}

.navbar .form-control {
  font-size: 14px;
}

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

.search-fullscreen-wrapper .search-fullscreen-form {
  margin: 0 auto;
  margin-top: 300px;
  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: #ffffff;
  background: none;
  border: none;
  border-bottom: 3px solid #ffffff;
  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(255, 255, 255, 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;
  padding-right: 0;
  cursor: pointer;
}
.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;
}
.dropdown-menu {
  --bs-dropdown-link-active-bg: #eebd00;
}

.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;
}
