body {
  font-size: 16px;
}
.wy-body-for-nav {
background: #fff;
}

footer {
  margin-top: 30px;
}

@font-face {
  font-family: FontAwesome;
  src: url(fonts/fontawesome/fontawesome-webfont.eot?v=4.6.3);
  src: url(fonts/fontawesome/fontawesome-webfont.eot?#iefix&v=4.6.3) format('embedded-opentype'),url(fonts/fontawesome/fontawesome-webfont.woff2?v=4.6.3) format('woff2'),url(fonts/fontawesome/fontawesome-webfont.woff?v=4.6.3) format('woff'),url(fonts/fontawesome/fontawesome-webfont.ttf?v=4.6.3) format('truetype'),url(fonts/fontawesome/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular) format('svg');
  font-weight: 400;
  font-style: normal
}

ul.language-dropdown {
  display: none;
  position: absolute;
  background: #f3f6f6;
  padding: 5px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 1px 1px 2px -1px rgba(255,255,255,0.5) inset, 0px -1px 0px 0px rgba(0,0,0,0.1) inset;
}

ul.language-dropdown li {
  display: block;
}

.rst-content code {
  white-space: pre-wrap;
  border: none;
  padding: 0;
  background: none;
}

.rst-content pre {
  padding: 12px 12px;
  border: 1px solid #e1e4e5;
  background: #f8f8f8;
}



/* code highlights */
div.rst-content pre .hljs-comment,
div.rst-content code .hljs-comment,
div.rst-content pre .hljs-title,
div.rst-content code .hljs-title {
color: #408080;
}
/*
div.rst-content pre .hljs-variable,
div.rst-content code .hljs-variable,
div.rst-content pre .hljs-attribute,
div.rst-content code .hljs-attribute,
div.rst-content pre .hljs-tag,
div.rst-content code .hljs-tag,
div.rst-content pre .hljs-regexp,
div.rst-content code .hljs-regexp,
div.rst-content pre .hljs-deletion,
div.rst-content code .hljs-deletion,
div.rst-content pre .ruby .hljs-constant,
div.rst-content code .ruby .hljs-constant,
div.rst-content pre .xml .hljs-tag .hljs-title,
div.rst-content code .xml .hljs-tag .hljs-title,
div.rst-content pre .xml .hljs-pi,
div.rst-content code .xml .hljs-pi,
div.rst-content pre .xml .hljs-doctype,
div.rst-content code .xml .hljs-doctype,
div.rst-content pre .html .hljs-doctype,
div.rst-content code .html .hljs-doctype,
div.rst-content pre .css .hljs-id,
div.rst-content code .css .hljs-id,
div.rst-content pre .css .hljs-class,
div.rst-content code .css .hljs-class,
div.rst-content pre .css .hljs-pseudo,
div.rst-content code .css .hljs-pseudo {
color: #c82829; 
}
*/
div.rst-content pre .hljs-number,
div.rst-content code .hljs-number,
div.rst-content pre .hljs-preprocessor,
div.rst-content code .hljs-preprocessor,
div.rst-content pre .hljs-pragma,
div.rst-content code .hljs-pragma,
div.rst-content pre .hljs-built_in,
div.rst-content code .hljs-built_in,
div.rst-content pre .hljs-literal,
div.rst-content code .hljs-literal,
div.rst-content pre .hljs-params,
div.rst-content code .hljs-params,
div.rst-content pre .hljs-constant,
div.rst-content code .hljs-constant {
color: #666666;
}
div.rst-content pre .ruby .hljs-class .hljs-title,
div.rst-content code .ruby .hljs-class .hljs-title,
div.rst-content pre .css .hljs-rules .hljs-attribute,
div.rst-content code .css .hljs-rules .hljs-attribute {
color: #eab700;
}
div.rst-content pre .hljs-string,
div.rst-content code .hljs-string,
div.rst-content pre .hljs-value,
div.rst-content code .hljs-value,
div.rst-content pre .hljs-inheritance,
div.rst-content code .hljs-inheritance,
div.rst-content pre .hljs-header,
div.rst-content code .hljs-header,
div.rst-content pre .hljs-addition,
div.rst-content code .hljs-addition,
div.rst-content pre .ruby .hljs-symbol,
div.rst-content code .ruby .hljs-symbol,
div.rst-content pre .xml .hljs-cdata,
div.rst-content code .xml .hljs-cdata {
color: #BA2121;
}
div.rst-content pre .css .hljs-hexcolor,
div.rst-content code .css .hljs-hexcolor {
color: #3e999f;
}
div.rst-content pre .hljs-function,
div.rst-content code .hljs-function,
div.rst-content pre .python .hljs-decorator,
div.rst-content code .python .hljs-decorator,
div.rst-content pre .python .hljs-title,
div.rst-content code .python .hljs-title,
div.rst-content pre .ruby .hljs-function .hljs-title,
div.rst-content code .ruby .hljs-function .hljs-title,
div.rst-content pre .ruby .hljs-title .hljs-keyword,
div.rst-content code .ruby .hljs-title .hljs-keyword,
div.rst-content pre .perl .hljs-sub,
div.rst-content code .perl .hljs-sub,
div.rst-content pre .javascript .hljs-title,
div.rst-content code .javascript .hljs-title,
div.rst-content pre .coffeescript .hljs-title,
div.rst-content code .coffeescript .hljs-title {
color: #4271ae;
}
div.rst-content pre .hljs-keyword,
div.rst-content code .hljs-keyword,
div.rst-content pre .javascript .hljs-function,
div.rst-content code .javascript .hljs-function {
color: #008000;
}
div.rst-content pre .coffeescript .javascript,
div.rst-content code .coffeescript .javascript,
div.rst-content pre .javascript .xml,
div.rst-content code .javascript .xml,
div.rst-content pre .tex .hljs-formula,
div.rst-content code .tex .hljs-formula,
div.rst-content pre .xml .javascript,
div.rst-content code .xml .javascript,
div.rst-content pre .xml .vbscript,
div.rst-content code .xml .vbscript,
div.rst-content pre .xml .css,
div.rst-content code .xml .css,
div.rst-content pre .xml .hljs-cdata,
div.rst-content code .xml .hljs-cdata {
opacity: 0.5;
}


/* Customized CSS */
.wy-nav-content {
max-width: unset;
}

.wy-menu-vertical a {
  color: #fbfbfb;
}

.wy-menu-vertical a, .wy-menu-vertical li.toctree-l1.current>a, .wy-menu-vertical li.current a  {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

/* 避免英文题目过长造成溢出。将其折叠 */
.wy-menu-vertical .caption {
  height: unset !important;
  white-space: unset !important;
  line-height: 1.7em !important;
}

h1 {
  font-size: 1.5rem;
}

/* 修改图片样式 */
.rst-content img {
  /* box-shadow: 0px 3px 8px 0px rgba(178, 178, 178, 0.4); */
  margin: 20px 0;
}
.wy-nav-side {
  background: #111111;
}
/* p {
  line-height: 2em;
} */

/* .wy-nav-side {
background:#fefefe;
border-right: 1px solid #eee;
}
.wy-menu-vertical a {
color: #222;
}
.wy-menu-vertical a:hover {
color: #51BAF9;
background: #fff;
}
.wy-menu-vertical li.current {
background: #efefef;
}
.wy-menu-vertical li.current > a {
border-top: none !important;
border-bottom: none !important;
}
.wy-menu-vertical li.current > a::after {
content: "";
position: absolute;
right: 0;
top: 0;
height: 100%;
width: 7px;
background: #51BAF9;
}

.wy-menu-vertical li.current > a:hover {

}
.wy-menu-vertical li.toctree-l2.current>a {

background: unset;

}
.wy-menu-vertical li.toctree-l2.current>a:hover {

background: unset;
}
.wy-menu-vertical li.toctree-l2.current {
background: #e3e3e3;
}
.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a {
background: #efefef;
}
.wy-menu-vertical li.toctree-l3.current {
background: #e6e6e6;
}
.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a {
background: #efefef;
}


.btn {
border: none;
cursor: pointer;
font-size: 18px;
padding-left: 20px;
padding-right: 19px;
padding-top: 12px;
padding-bottom: 11px;
color: #FEFFFF;
border-radius: 100px;
transition: all .2s;
} */

/* 调整文章宽度 */
.document {
  display: flex;
}
#book-search-results {
  max-width: calc(100% - 300px - 35px - 100px);
}


@media screen and (max-width: 1440px) {
  p, section li {
    font-size: 0.875rem;
  }
  #book-search-results {
    max-width: calc(100% - 250px + 10px);
  }
}



/* 显示anchor-navigation-ex的目录条 */
#anchor-navigation-ex-navbar {
  top: 100px !important;
  right: 35px !important;
  padding: 0px !important;
  box-shadow: unset !important;
  border: 0px !important;
  border-left: 1px solid #ddd !important;
  width: 300px;
  background: none !important;
  color: #666 !important;
  z-index: 10 !important;
}

#anchor-navigation-ex-navbar ul ul {
  margin-bottom: 5px !important;
}

#anchor-navigation-ex-navbar ul li a {
  font-size: 12px !important;
  white-space: initial !important;
}

@media screen and (max-width: 1440px) {
  #anchor-navigation-ex-navbar {
    width: 220px;
  }
}

#anchor-navigation-ex-navbar .fa-navicon {
  display: none;
}

#anchor-navigation-ex-navbar ul {
display: block !important;
}

#anchor-navigation-ex-navbar ul li {
list-style-type: none !important;
padding-inline-start: 0 !important;
box-shadow: unset !important;
border-width: 0px !important;
border-left-width: 1px !important;
margin-left: 0px !important;
}

@media screen and (max-width: 600px) {
  #book-search-results {
    max-width: 100%;
  }
  #anchor-navigation-ex-navbar {
    display: none;
  }
}

@media screen and (max-width: 1000px) and (min-width: 768px) {
  #book-search-results {
    max-width: 100%;
  }
  #anchor-navigation-ex-navbar {
    display: none;
  }
}


/* 修改sidebar */

nav .caption {
  margin: 20px 0;
  color: #0bf;
  font-size: .8em !important;
  margin-left: -10px;
}

/* 修改切换语言可点击区域 */
ul.language-dropdown {
  right: 10px;
  padding: 0;
  z-index: 20;
}
ul.language-dropdown li a {
  padding: 10px !important;
  width: 100% !important;
}

ul.language-dropdown li a:hover {
 background: #ddd !important;
}

/* 修改toTop按钮 */
#anchorNavigationExGoTop {
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1em !important;
}

#anchorNavigationExGoTop:hover {
  background: #ddd;
}

/* 修改zendesk样式 */
#launcher, #webWidget {
  left: unset !important;
  right: 140px;
  bottom: 10px;
}
