/*
 * nature.css_t
 * ~~~~~~~~~~~~
 *
 * Sphinx stylesheet -- nature theme.
 *
 * :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
 * :license: BSD, see LICENSE for details.
 *
 */

@import url("basic.css");

/* -- page layout ----------------------------------------------------------- */

body {
    /* font-family: 'Consolas', 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva','Verdana', sans-serif; */
    font-family: "Anthropic Sans", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 100%;
    /*background-color: #111;*/
    color: #555;
    margin: 0;
    padding: 0;
}


div.documentwrapper {
    float: left;
    width: 100%;
}

div.bodywrapper {
    margin: 0 0 0 230px;
}

hr {
    border: 1px solid #B1B4B6;
}

div.document {
    background-color: #eee;
}

div.body {
    background-color: #ffffff;
    color: #3E4349;
    padding: 0 30px 30px 30px;
    font-size: 0.9em;
    min-width: 450px;
    /* 控制页面宽度占满屏幕 */
    /* max-width: 100vh; */
    min-height: 100vh;
}

div.footer {
    color: #555;
    width: 100%;
    padding: 13px 0;
    text-align: center;
    font-size: 75%;
}

div.footer a {
    color: #444;
    text-decoration: underline;
}

div.related {
    background-color: #6BA81E;
    line-height: 32px;
    color: #fff;
    overflow: auto;
    font-size: 0.9em;
}

div.related a {
    color: #E2F3CC;
}

div.sphinxsidebar {
    font-size: 0.75em;
    line-height: 1.5em;
    position: relative;
}

div.sphinxsidebarwrapper{
    /*padding: 20px 0;*/
    position: relative;
}

div.sphinxsidebar h3,
div.sphinxsidebar h4 {
    font-family: Arial, sans-serif;
    color: #222;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    padding: 5px 10px;
    background-color: #ddd;
    border-radius: 5px;
    line-height: 130%;
}

div.sphinxsidebar h4{
    font-size: 1.0em;
}

div.sphinxsidebar h3 a {
    color: #444;
}


div.sphinxsidebar p {
    color: #888;
    padding: 5px 20px;
}

div.sphinxsidebar p.topless {
}

div.sphinxsidebar ul {
    /*margin: 10px 20px;*/
    padding: 0;
    color: #000;
}

div.sphinxsidebar a {
    color: #444;
}

div.sphinxsidebar input {
    border: 1px solid #ccc;
    font-family: sans-serif;
    font-size: 1em;
    border-radius: 3px;
}

div.sphinxsidebar input[type=text]{
    max-width: 150px;
}


@media only screen and (max-width: 768px) {
    div.related:first-child li.responsive-menu {
        display: inline-block;
    }
    div.related:nth-child(3) li {
        display: none;
    }
    div.related:nth-child(3) li.right {
        display: inline-block;
    }
    div.related:nth-child(3) {
        height: 5ex;
    }
    div.sphinxsidebar {
        margin: 0;
        width: 100%;
        border-top: 2px solid #777;
    }
    div.bodywrapper {
        margin: 0;
    }
    div.body {
        padding: 0;
    }
    #sidebarbutton {
        display: none;
    }
    div.sphinxsidebarwrapper {
        position: inherit;
    }
}


/* -- body styles ----------------------------------------------------------- */

a {
    color: #005B81;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #E32E00;
    text-decoration: underline;
    cursor: pointer;
}

div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
    font-family: Arial, sans-serif;
    background-color: #BED4EB;
    font-weight: normal;
    color: #212224;
    margin: 30px 0px 10px 0px;
    padding: 5px 0 5px 10px;
    /*text-shadow: 0px 1px 0 white*/
}

div.body h1 { border-top: 20px solid white; margin-top: 0; font-size: 200%; }
div.body h2 { font-size: 150%; background-color: #C8D5E3; }
div.body h3 { font-size: 120%; background-color: #D8DEE3; }
div.body h4 { font-size: 110%; background-color: #D8DEE3; }
div.body h5 { font-size: 100%; background-color: #D8DEE3; }
div.body h6 { font-size: 100%; background-color: #D8DEE3; }

a.headerlink {
    color: #c60f0f;
    font-size: 0.8em;
    padding: 0 4px 0 4px;
    text-decoration: none;
    cursor: pointer;
}

a.headerlink:hover {
    background-color: #c60f0f;
    color: white;
    cursor: pointer;
}

div.body p, div.body dd, div.body li {
    line-height: 1.5em;
}

div.admonition p.admonition-title + p {
    display: inline;
}

div.highlight{
    background-color: white;
}

div.note {
    background-color: #eee;
    border: 1px solid #ccc;
}

div.seealso {
    background-color: #ffc;
    border: 1px solid #ff6;
}

div.topic {
    background-color: #eee;
}

div.warning {
    background-color: #ffe4e4;
    border: 1px solid #f66;
}

p.admonition-title {
    display: inline;
}

p.admonition-title:after {
    content: ":";
}

pre {
    padding: 10px;
    background-color: White;
    color: #222;
    line-height: 1.2em;
    border: 1px solid #C6C9CB;
    font-family: Consolas, Arial, sans-serif;
    font-size: 1.1em;
    margin: 1.5em 0 1.5em 0;
    -webkit-box-shadow: 1px 1px 1px #d8d8d8;
    -moz-box-shadow: 1px 1px 1px #d8d8d8;
}

code {
    background-color: #ecf0f3;
    color: #222;
    /* padding: 1px 2px; */
    font-size: 1.1em;
    font-family: monospace;
}

.viewcode-back {
    font-family: Arial, sans-serif;
}

div.viewcode-block:target {
    background-color: #f4debf;
    border-top: 1px solid #ac9;
    border-bottom: 1px solid #ac9;
}

div.code-block-caption {
    background-color: #ddd;
    color: #222;
    border: 1px solid #C6C9CB;
}





/* -- table styles ----------------------------------------------------------- */



table.docutils {
    border: 1px solid #ddd;
    min-width: 20%;
    border-radius: 3px;
    margin: 10px 0px 0px 0px;
}

table.docutils td, table.docutils th {
    border: 1px solid #ddd !important;
    border-radius: 3px;
}

table p, table li {
    text-align: left !important;
}

table.docutils th {
    background-color: #eee;
    padding: 0.3em 0.5em;
}

table.docutils td {
    background-color: white;
    padding: 0.3em 0.5em;
}

table.footnote, table.footnote td {
    border: 0 !important;
}

/* 固定左侧边栏 */
div.sphinxsidebar {
    position: -webkit-sticky; /* 兼容 Safari */
    position: sticky;
    top: 20px; /* 距离页面顶部 20px 时固定 */
    height: calc(100vh - 40px); /* 让侧边栏高度不超过视窗高度 */
    overflow-y: auto; /* 如果侧边栏内容太长，自动生成滚动条 */
}