@import url("theme.css");

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Arial", "微软雅黑", "黑体", "Helvetica Neue", "Source Han Sans CN", "sans-serif", "Hiragino Sans GB";
}

.rst-content a,
#docname-zh a {
    color: rgb(187, 142, 77) !important;
}

.wy-nav-content {
    max-width: 100%;
}
pre.literal-block{
    background-color: #eeffcc;
}
.highlight .k{
    color: #444444;
    font-weight: normal;
}

.wy-side-nav-search,
.wy-nav-side {
    background: #f4f4ff;
    background: #f4f4ff;
}

.icon.icon-home {
    line-height: 24px;
}

.wy-menu-vertical a,
.wy-menu-vertical header,
.wy-menu-vertical p.caption,
.wy-side-nav-search .wy-dropdown>a,
.wy-side-nav-search>a {
    color: #000;
}

.wy-menu-vertical a:hover {
    background-color: #d4d4f1;
    cursor: pointer;
}

.wy-body-for-nav::before {
    content: "后摩智能文档中心";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    font-size: 18px;
    right: 0;
    bottom: 0;
    background: #000;
    color: #ffffff;
    z-index: 999;
    height: 60px;
    line-height: 60px;
    padding-left: 45px;
    width: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", "Arial", "微软雅黑", "黑体", "Helvetica Neue", "Source Han Sans CN", "sans-serif", "Hiragino Sans GB";
    box-shadow: 0px 3px 4px #02020259;
}

.wy-nav-side {
    top: 60px;
}

.wy-nav-content {
    margin-top: 60px;
}

.wy-side-nav-search {
    display: block;
    width: 300px;
    padding: .809em 36px;
    margin-bottom: .809em;
    z-index: 200;
    text-align: left;
    color: #fcfcfc;
    margin-top: 18px;
}

.wy-menu-vertical {
    width: 300px;
    padding: 0px 30px 0px 14px;
}

.rst-content > div:first-child hr {
    display: none;
}

.rst-content > .document {
    margin-top: 30px;
}

.wy-side-nav-search input[type=text] {
    border-color: #aaaaed;
}

.wy-menu-vertical a {
    /* border-radius: 6px; */
}

.wy-breadcrumbs a {
    /* color: #6f6fff !important; */
}

.wy-side-nav-search a::before {
    display: none;
}

.wy-menu-vertical li.current {
    /* background-color: #e0e0f5; */
    background-color: transparent;
}

.wy-menu-vertical li.toctree-l1.current>a {
    border-width: 0px;
}

.wy-menu-vertical li.current>a {
    /* background-color: #d4d4f1;*/
    background-color: transparent;
}

.wy-nav-side {
    border-right: 1px solid #e7e7e7;
}

.wy-menu-vertical li.toctree-l2.current>a {
    /* background: #a5a5ff; */
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a {
    background: transparent;
}

.wy-menu-vertical li.current a:hover {
    background-color: #d4d4f1;
}

.wy-menu-vertical li.current>a:hover, .wy-menu-vertical li.on a:hover {
    background-color: #d4d4f1;
}

.wy-menu-vertical li.current a {
    border-width: 0px;
}

.highlight pre {
    background-color: #ebebeb !important;
}

.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a {
    background: #d5d5d5;
}


.attention .admonition-title {
    background-color: #ffa500;
}

.warning .admonition-title {
    background-color: #ff7878 !important;
}

.warning {
    background-color: #ffd9d9 !important;
}

html.writer-html4 .rst-content dl:not(.docutils)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt {
    background: #ebebeb !important;
    color: #bb9069 !important;
    border-top: 3px solid #b1b1b1  !important;
}

.rst-content .note .admonition-title, .rst-content .note .wy-alert-title, .rst-content .seealso .admonition-title, .rst-content .seealso .wy-alert-title, .rst-content .wy-alert-info.admonition-todo .admonition-title, .rst-content .wy-alert-info.admonition-todo .wy-alert-title, .rst-content .wy-alert-info.admonition .admonition-title, .rst-content .wy-alert-info.admonition .wy-alert-title, .rst-content .wy-alert-info.attention .admonition-title, .rst-content .wy-alert-info.attention .wy-alert-title, .rst-content .wy-alert-info.caution .admonition-title, .rst-content .wy-alert-info.caution .wy-alert-title, .rst-content .wy-alert-info.danger .admonition-title, .rst-content .wy-alert-info.danger .wy-alert-title, .rst-content .wy-alert-info.error .admonition-title, .rst-content .wy-alert-info.error .wy-alert-title, .rst-content .wy-alert-info.hint .admonition-title, .rst-content .wy-alert-info.hint .wy-alert-title, .rst-content .wy-alert-info.important .admonition-title, .rst-content .wy-alert-info.important .wy-alert-title, .rst-content .wy-alert-info.tip .admonition-title, .rst-content .wy-alert-info.tip .wy-alert-title, .rst-content .wy-alert-info.warning .admonition-title, .rst-content .wy-alert-info.warning .wy-alert-title, .rst-content .wy-alert.wy-alert-info .admonition-title, .wy-alert.wy-alert-info .rst-content .admonition-title, .wy-alert.wy-alert-info .wy-alert-title {
    background: #e3b879 !important;
}

.rst-content .note, .rst-content .seealso, .rst-content .wy-alert-info.admonition, .rst-content .wy-alert-info.admonition-todo, .rst-content .wy-alert-info.attention, .rst-content .wy-alert-info.caution, .rst-content .wy-alert-info.danger, .rst-content .wy-alert-info.error, .rst-content .wy-alert-info.hint, .rst-content .wy-alert-info.important, .rst-content .wy-alert-info.tip, .rst-content .wy-alert-info.warning, .wy-alert.wy-alert-info {
    background: #fff3e1 !important;
}

.rst-content .admonition.seealso {
    background-color: #ececec !important;
}

.rst-content .admonition.seealso .admonition-title {
    background-color: #aeaeae !important;
}

.wy-side-nav-search>div.version {
    color: #717171;
    font-size: 12px;
    padding-left: 6px;
    margin-top: -1.2em;
    margin-bottom: 1em;
}
/* --- 1. 容器设置：允许横向和纵向滚动 --- */
.wy-table-responsive {
    max-height: 600px;
    overflow: auto !important; /* 必须是 auto 或 scroll */
    position: relative;
}

/* --- 2. 强制表格按内容自动收缩 --- */
/* 使用 table[class*="auto-width"] 增强选择器优先级 */
table.docutils.auto-width {
    width: auto !important;         /* 撤销 100% 宽度 */
    table-layout: auto !important;  /* 恢复自动布局 */
    min-width: 0 !important;
}

/* 关键：强制忽略 <colgroup> 或 <col> 中的百分比设置 */
table.docutils.auto-width colgroup,
table.docutils.auto-width col {
    width: auto !important;
}

/* --- 3. 单元格设置：最小化宽度 --- */
table.docutils.auto-width thead th,
table.docutils.auto-width tbody td {
    width: auto !important;
    white-space: nowrap !important; /* 强制不换行，从而让列宽缩到最小 */
    padding: 8px 15px !important;   /* 留出舒适的间距 */
}

/* --- 4. 固定表头设置 --- */
table.docutils.auto-width thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #ffffff; !important; /* 你之前选定的棕金色 */
    color: #000000 !important;           /* 白色文字 */
    font-weight: bold;
    border-bottom: 2px solid #ccc;
}

/* 处理 Sphinx 特有的 th 内部 p 标签 */
table.docutils.auto-width thead th p {
    margin: 0 !important;
    background-color: transparent !important;
    color: inherit !important;
}