:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --bg-color: #f5f6fa;
    --sidebar-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.header-content h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.header-content p {
    color: var(--secondary-color);
    font-size: 1rem;
}

.container {
    margin: 1rem auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 1.5rem;
    min-height: auto;
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow-y: visible;
    scrollbar-width: auto;
    -ms-overflow-style: auto;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar:hover {
    scrollbar-width: auto;
}

.sidebar:hover::-webkit-scrollbar {
    display: none;
}

.sidebar::-webkit-scrollbar-thumb {
    display: none;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    display: none;
}

.sidebar {
    scrollbar-color: auto;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 14px;
    height: auto;
    min-height: auto;
}

.article-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 0.5rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--sidebar-bg);
}

.article-link:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.article-link:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
}

.article-link:last-child {
    border-bottom: none;
}

.content {
    flex: 1;
    background-color: var(--sidebar-bg);
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-y: visible;
    max-height: none;
}

.markdown-body {
    max-width: 900px;
    margin: 0 auto;
}

footer {
    background-color: var(--footer-bg);
    padding: 1rem 0;
    text-align: center;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 14px;
}

footer p {
    color: var(--secondary-color);
}

footer a {
    text-decoration: none;
    color: gray;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 1rem;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .content {
        padding: 1rem;
    }
}