#pagefind-search-page {
  margin-top: 12px;
}

#pagefind-search-page .pagefind-ui__search-input {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid #ccd4dd;
}

#pagefind-search-page .pagefind-ui__message {
  font-size: 14px;
}

#pagefind-search-page .pagefind-ui__result {
  border-top: 1px solid #e8ebef;
  padding-top: 12px;
  padding-bottom: 8px;
}

#pagefind-search-page .pagefind-ui__result-title {
  font-size: 18px;
  line-height: 1.5;
}

#pagefind-search-page .pagefind-ui__result-link {
  text-decoration: none;
}

#pagefind-search-page .pagefind-ui__result-excerpt {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #3d4653;
}

#pagefind-search-page mark {
  background: #ffef8a;
  color: #202020;
  border-radius: 2px;
  padding: 0 2px;
}

/* Pagefind 跳转到文档页后的正文高亮（pagefind-highlight.js / Mark.js） */
.pagefind__highlight,
mark.pagefind__highlight {
  background: #ffef8a !important;
  color: #202020 !important;
  border-radius: 2px;
  padding: 0 2px;
}

/* Ensure old left-sidebar Pagefind drawer never appears. */
.wy-side-nav-search #pagefind-search,
.wy-side-nav-search .pagefind-ui__drawer {
  display: none !important;
}

/* Fix double scrollbar: theme sets html{overflow-x:hidden} which makes body
   an independent scroll container per CSS spec, creating two scrollbars.
   Fix: keep html overflow visible so body's overflow propagates to viewport,
   and move horizontal overflow control to body instead. */
html {
  overflow: visible !important;
}
body.wy-body-for-nav {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Fix double scrollbar: height:100% + padding causes overflow */
.wy-nav-content {
  box-sizing: border-box;
}
