/* -------------------------------------------------------------- */
/*
代码高亮
主题名称：ocodia
如果有些代码没有高亮，新增语言，然后拷贝覆盖原理的 prismjs.css 和 prismjs.js
地址在 prismjs.css prismjs.css 开头的 url
*/

pre {
  background-color: #013d3c !important;
}

.copy-to-clipboard-button {
  color: #999999 !important;
}

/* 代码高亮 */
pre code {
  background-color: #013d3c !important;
}

/* 行内代码高亮 */
p code {
  color: #e04627 !important;
  background-color: #fff5f5 !important;
  border-radius: 4px !important;
}

/* 行内代码高亮 */
li code {
  color: #e04627 !important;
  background-color: #fff5f5 !important;
  border-radius: 4px !important;
}

/* -------------------------------------------------------------- */
/* 文章导航 */

.nav_hide {
  display: none !important;
}

.nav_display {
  display: flex !important;;
}


.nav-outline {
  position: sticky;
  height: 0;
  top: 100px;
  z-index: 1000;
  max-width: 250px;
  margin-left: -270px;
}

.toc-list {
  font-size: 1rem !important;
  padding-left: 10px !important;
  margin-bottom: 10px !important;
}

.toc-list a {
  text-decoration-line: none !important;
}

/* 文章目录 行间距，文字大小 */
.toc-list-item {
  padding-top: 5px !important;
  font-size: 14px !important;
  margin-bottom: 10px !important;
}

/* 响应式设计：小屏幕调整样式 */
@media (max-width: 85rem) {
  .nav-outline {
    opacity: 0;
    visibility: hidden;
  }
}


/* -------------------------------------------------------------- */
/* 文章首图 */
.post_head_picture {
  opacity: 0.8;
}

.post_header_text_class {
  color: #ffffff !important;
}

.post_head_picture_title {
  position: absolute;
  /*display: flex;*/
  /*align-items: center !important;*/
  /*justify-content: center;*/
}


/* -------------------------------------------------------------- */
/* 无图的首页或文章 */
.no_pic_line {
  background: linear-gradient(135deg, #111, #ff1a75);
  height: 565px;
}
/*小屏幕（宽度小于768px）*/
@media (max-width: 768px) {
  .no_pic_line {
    height: 365px;
    margin-bottom: 40px;
  }
}

/* -------------------------------------------------------------- */

/* 搜索结果自动换行 */
.docsearch-modal-search-hits-item-text {
  white-space: unset !important;
}

/* 搜索结果高度 */
.docsearch-modal-search-hits-item {
  height: 110px !important;
}

/* 搜索高亮词 */
.docsearch-modal-search-hits-item--highlight {
  font-size: 1.2em !important;
  color: blue !important;
}

