/* 自定义样式 - Wiki/萌娘百科风格 */

/* 全局字体和基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

/* 侧边栏样式优化 */
.md-sidebar {
    background-color: #f8f9fa;
}

.md-sidebar__scrollwrap {
    border-right: 1px solid #e0e0e0;
}

/* 导航链接样式 */
.md-nav__link--active {
    font-weight: bold;
    color: #d32f2f !important;
}

/* 标题样式 */
.md-typeset h1 {
    color: #d32f2f;
    border-bottom: 2px solid #ffcdd2;
    padding-bottom: 0.3em;
}

.md-typeset h2 {
    color: #c62828;
    border-bottom: 1px solid #ef9a9a;
    padding-bottom: 0.3em;
}

.md-typeset h3 {
    color: #b71c1c;
}

/* 提示框样式 */
.md-typeset .admonition {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.md-typeset .note {
    border-left-color: #2196f3;
}

.md-typeset .tip {
    border-left-color: #4caf50;
}

.md-typeset .warning {
    border-left-color: #ff9800;
}

/* 表格样式 */
.md-typeset table:not([class]) {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.md-typeset table:not([class]) th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* 代码块样式 */
.md-typeset pre {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 搜索框样式 */
.md-search__input {
    background-color: #f5f5f5;
}

.md-search__input:hover {
    background-color: #eeeeee;
}

/* 返回顶部按钮 */
.md-top {
    background-color: #d32f2f;
    color: white;
}

/* 页脚样式 */
.md-footer {
    background-color: #263238;
}

/* 标签页样式 */
.md-tabs {
    background-color: #d32f2f;
}

.md-tabs__link--active {
    font-weight: bold;
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
    .md-sidebar {
        background-color: white;
    }
}
