/* RecIS 文档自定义样式 */

/* 中文字体优化 */
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

/* 代码块样式优化 */
.highlight {
    background: #f8f8f8;
    border: 1px solid #e1e4e5;
    border-radius: 4px;
    margin: 1em 0;
}

/* 表格样式 */
.rst-content table.docutils {
    border: 1px solid #e1e4e5;
    border-collapse: collapse;
}

.rst-content table.docutils th,
.rst-content table.docutils td {
    border: 1px solid #e1e4e5;
    padding: 8px 12px;
}

.rst-content table.docutils th {
    background-color: #f1f2f3;
    font-weight: bold;
}

/* 警告框样式 */
.admonition {
    margin: 1em 0;
    padding: 12px;
    border-left: 4px solid #ccc;
    background-color: #f9f9f9;
}

.admonition.note {
    border-left-color: #6ab0de;
    background-color: #e7f2fa;
}

.admonition.warning {
    border-left-color: #f0b37e;
    background-color: #ffedcc;
}

.admonition.tip {
    border-left-color: #1abc9c;
    background-color: #dbfaf4;
}

/* 导航栏优化 */
.wy-nav-side {
    width: 280px;
}

.wy-nav-content-wrap {
    margin-left: 280px;
}

/* 代码高亮优化 */
.highlight .k { color: #0000ff; } /* keyword */
.highlight .s { color: #008000; } /* string */
.highlight .c { color: #808080; } /* comment */
.highlight .n { color: #000000; } /* name */

/* 链接样式 */
a {
    color: #2980b9;
    text-decoration: none;
}

a:hover {
    color: #3091d1;
    text-decoration: underline;
}

/* 标题样式优化 */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* 搜索框样式 */
.wy-side-nav-search {
    background-color: #2980b9;
}

.wy-side-nav-search input[type=text] {
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* 版本信息样式 */
.rst-versions {
    border-top: 1px solid #d9d9d9;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .wy-nav-side {
        width: 100%;
        position: relative;
    }
    
    .wy-nav-content-wrap {
        margin-left: 0;
    }
}