/* 保持 Docsify Vue 原生主题，只补充阅读辅助控件。 */

.reader-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 300px;
  height: 3px;
  pointer-events: none;
}

.reader-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--theme-color, #42b983);
  transform: scaleX(0);
  transform-origin: left center;
}

body.close .reader-progress {
  left: 0;
}

.reader-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.25rem;
  margin: -0.35rem 0 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  color: #6b7280;
  font-size: 0.85rem;
}

.reader-word-count {
  margin: 0 !important;
}

.reader-word-count span {
  float: none !important;
  color: #6b7280 !important;
  font-size: 0.85rem !important;
}

/* 右侧仅展示当前页 H2/H3，不增加左侧菜单层级。 */
aside.toc-nav {
  z-index: 20;
  top: 78px;
  right: 24px;
  width: 215px;
  max-height: calc(100vh - 110px);
  margin-right: 0;
  padding-right: 8px;
}

.page_toc::before {
  display: block;
  margin-bottom: 0.55rem;
  color: #34495e;
  content: '本页导航';
  font-size: 0.85rem;
  font-weight: 600;
}

.page_toc div,
.page_toc div.lv2,
.page_toc div.lv3 {
  padding: 0.16rem 0 0.16rem 0.65rem;
  text-indent: 0;
}

.page_toc div.lv3 {
  padding-left: 1.3rem;
}

.page_toc div[class^='lv'] a {
  font-size: 0.8rem;
  line-height: 1.55;
}

@media only screen and (max-width: 1299px) {
  aside.toc-nav {
    display: none !important;
  }

  section.content {
    padding-right: 0;
  }
}

@media only screen and (max-width: 768px) {
  .reader-progress {
    left: 0;
  }

  .reader-toolbar {
    flex-wrap: wrap;
  }
}
