* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #202122;
    line-height: 1.6;
}
.wiki-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    background-color: #fff;
    min-height: 100vh;
}
.wiki-sidebar {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #a7d7f9;
    padding: 20px 15px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.wiki-sidebar h3 {
    font-size: 14px;
    font-weight: bold;
    color: #0645ad;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #a7d7f9;
}
.wiki-sidebar h3:first-child {
    margin-top: 0;
}
.wiki-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.wiki-sidebar li {
    margin: 5px 0;
}
.wiki-sidebar a {
    color: #0645ad;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 3px 5px;
    border-radius: 2px;
}
.wiki-sidebar a:hover {
    background-color: #eaecf0;
    text-decoration: underline;
}
.wiki-sidebar a.current {
    font-weight: bold;
    background-color: #eaecf0;
}
.wiki-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 900px;
}
.wiki-header {
    border-bottom: 1px solid #a7d7f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.wiki-header h1 {
    font-size: 32px;
    font-weight: normal;
    color: #000;
    margin-bottom: 5px;
}
.wiki-header .subtitle {
    font-size: 14px;
    color: #54595d;
    font-style: italic;
}
.wiki-header-nav {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.wiki-header-nav .nav-btn {
    padding: 4px 8px;
    font-size: 11px;
    background-color: #3366cc;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.wiki-header-nav .nav-btn:hover {
    background-color: #2a52a3;
}
.wiki-header-nav .nav-btn:active {
    background-color: #1e3d7a;
}
.wiki-header-nav .nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
h2 {
    font-size: 24px;
    font-weight: normal;
    border-bottom: 1px solid #a7d7f9;
    padding-bottom: 5px;
    margin: 30px 0 15px 0;
}
h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0 10px 0;
}
p {
    margin: 12px 0;
}
.definition-box, .key-point, .equation-box, .example-box, .problem-box {
    margin: 20px 0;
    padding: 15px;
    border-left: 4px solid #f0ad4e;
    background-color: #fff3cd;
}
.key-point {
    border-left-color: #f0ad4e;
    background-color: #fff3cd;
}
.equation-box {
    border-left-color: #3366cc;
    background-color: #e7f3ff;
}
.example-box {
    border-left-color: #5cb85c;
    background-color: #ecf8e7;
}
.problem-box {
    border-left-color: #f4b5ff;
    background-color: #f6e7f8;
}
.math-display {
    text-align: center;
    margin: 0px 0;
    padding: 5px;
    border-radius: 4px;
}
ul {
    margin: 12px 0;
    padding-left: 30px;
}
li {
    margin: 6px 0;
}
strong {
    font-weight: bold;
}
a {
    color: #0645ad;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.toc-section {
    margin: 25px 0;
}
.toc-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #0645ad;
}
.toc-list {
    list-style: none;
    padding-left: 20px;
}
.toc-list li {
    margin: 8px 0;
}
.toc-list a {
    color: #0645ad;
    text-decoration: none;
    font-size: 16px;
}
.toc-list a:hover {
    text-decoration: underline;
}