@navbar-height: 60px;

.navbarWrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-2);
}

.navbar {
  position: relative;
  display: flex;
  width: 100%;
  height: @navbar-height;
  min-height: @navbar-height;
  max-height: @navbar-height;
  box-sizing: border-box;
  z-index: 999;
}

.left {
  display: flex;
  align-items: center;
  width: 260px;
  height: @navbar-height;
}

.right {
  display: flex;
  flex: 1;
  height: @navbar-height;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: @navbar-height;
  box-sizing: border-box;
  text-decoration: none;
}

.nav {
  position: relative;
  width: 100%;
  height: @navbar-height;
  box-sizing: border-box;
  padding-right: 24px;
}

.navLeft {
  display: flex;
  align-items: center;
  float: left;
  height: @navbar-height;
}

:global(.highlight-word) {
  font-weight: 600;
  color: rgb(var(--arcoblue-6));
}

.ac-search-summary {
  font-size: 12px;
  color: var(--color-text-2);
  padding: 12px 20px 4px 20px;
  font-weight: 400;
}

.ac-search-title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 2px;
}

.ac-search-description {
  font-size: 12px;
  font-weight: 400;
  white-space: pre-wrap;
  color: var(--color-text-2);
}

.ac-search-loading {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-2);
}

.ac-search-no-data {
  height: 100px;
  line-height: 100px;
  text-align: center;
  font-weight: 400;
}

.ac-search-footer {
  font-size: 12px;
  line-height: 12px;
  padding: 12px 20px;
  font-weight: 400;
  text-align: right;
  background-color: var(--color-fill-1);
  border-top: 1px solid var(--color-border);

  code {
    display: inline-block;
    transform: scale(0.833);
    background: var(--color-bg-5);
    border: 1px solid var(--color-border);
    box-sizing: border-box;
    border-radius: 2px;
    padding: 1px 6px;
  }
}

.navRight {
  float: right;
  height: @navbar-height;
  display: flex;

  ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
}

.btnIcon {
  font-size: 18px !important;
  color: var(--color-text-1) !important;
  margin: 0 10px;
  line-height: 24px !important;
}

.mask {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-mask-bg);
  top: 0;
  left: 0;
  z-index: 990;
}

:global(.fadeIn-enter),
:global(.fadeIn-appear) {
  opacity: 0;
}

:global(.fadeIn-enter-active),
:global(.fadeIn-appear-active) {
  opacity: 1;
  transition: opacity 0.3s;
}

:global(.fadeIn-exit) {
  opacity: 1;
}

:global(.fadeIn-exit-active) {
  opacity: 0;
  transition: opacity 0.3s;
}

@media only screen and (max-width: 1100px) {
  .navRight ul {
    display: none;
  }
}

@media only screen and (max-width: 900px) {
  .navRight {
    display: none;
  }
}

.navbarM {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-2);

  a {
    display: flex;
    align-items: center;

    svg {
      height: 20px;
    }
  }
}

.menuM {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 48px;
  color: var(--color-text-1);

  svg {
    font-size: 18px;
  }
}

.menu {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  width: 110px;

  a {
    color: var(--color-text-1);
    text-decoration: none;
    white-space: nowrap;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }
}

// profile
.avatar {
  background-color: var(--color-bg-4) !important;
  cursor: pointer;
  box-sizing: content-box !important;
  padding: 2px;
  transition: all 0.2s;

  &:hover {
    filter: drop-shadow(0 2px 3px rgba(78, 89, 105, 0.14));
  }
}

.avatarNotLogin {
  background-color: var(--color-fill-4) !important;
}
