/* 默认搜索模块不支持中文搜索，将结果隐藏 */
#mdbook-searchresults-header,
.searchresults-header,
#mdbook-searchresults-outer,
.searchresults-outer {
  display: none;
}
/* 默认搜索模块不支持中文搜索，将结果隐藏。结束 */

/* 加载进度条 */
.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.4s linear;

  .progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #007bff;
    box-shadow: 0 0 10px rgba(119, 182, 255, 0.7);
  }

  &.loading {
    opacity: 1;
    transition: none;

    .progress {
      transition: width 0.4s ease;
    }
  }
}
/* 加载进度条结束 */

/* 标题修复 */
@media only screen and (max-width: 500px) {
  #menu-bar i,
  #menu-bar .icon-button {
    padding: 0 5px;
  }
}

@media only screen and (max-width: 400px) {
  #menu-bar i,
  #menu-bar .icon-button {
    padding: 0 2px;
  }
}

@media only screen and (max-width: 430px) {
  .menu-title {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 330px) {
  .menu-title {
    font-size: 1.5rem;
  }
}
/* 标题修复结束 */

/* 翻译按钮 */
.translateSelectLanguage {
  z-index: 10;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  position: absolute;
  left: 0;
  color: var(--fg);
  background-color: var(--bg);
}
/* 翻译按钮结束 */
