body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333;
    background-color: #f2f2f7;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body.ready {
    overflow: auto;
}

#app {
    height: 100%;
}

.sidebar {
    background: #fff;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
}

.sidebar-toggle {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 48px;
    height: 48px;
    background: #fff;
    border: none;
    border-right: 1px solid #e5e5e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    padding: 0;
    overflow-y: auto;
    background: #f2f2f7;
}

.markdown-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    min-height: 100%;
}

.markdown-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.markdown-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.markdown-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.markdown-section p {
    line-height: 1.8;
    margin-bottom: 16px;
}

.markdown-section ul,
.markdown-section ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.markdown-section li {
    line-height: 1.8;
    margin-bottom: 8px;
}

.markdown-section code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.markdown-section pre {
    background: #282c34;
    color: #abb2bf;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.markdown-section pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.markdown-section blockquote {
    border-left: 4px solid #0071e3;
    padding-left: 16px;
    margin-left: 0;
    color: #666;
    font-style: italic;
}

.markdown-section a {
    color: #0071e3;
    text-decoration: none;
}

.markdown-section a:hover {
    text-decoration: underline;
}

.markdown-section img {
    max-width: 100%;
    border-radius: 8px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sidebar-nav a:hover {
    background-color: #f5f5f5;
}

.sidebar-nav .active {
    background-color: #e8f0fe;
    color: #0071e3;
}

.sidebar-nav ul {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.sidebar-nav ul a {
    font-size: 13px;
    padding: 6px 16px;
}

.search {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search input:focus {
    border-color: #0071e3;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        bottom: 0;
        width: 250px;
        z-index: 1000;
        transition: left 0.3s;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .content {
        padding-left: 48px;
    }
}
