* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #faf8f3;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: 100vh;
    border-right: 1px solid #e8e8e8;
    padding: 2.5rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    background: #ffffff;
}

.sidebar-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.sidebar-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav a {
    font-size: 14px;
    color: #888;
    text-decoration: none;
    display: block;
    padding: 3px 0;
}

.sidebar-nav a:hover {
    color: #1a1a1a;
}

.sidebar-nav a.active {
    color: #888;
    font-weight: 400;
}

.sidebar-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.sidebar-links a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    display: block;
    padding: 2px 0;
}

.sidebar-links a:hover {
    color: #1a1a1a;
}

/* Main content */
.main {
    margin-left: 260px;
    padding: 2.5rem 3rem;
    max-width: 720px;
    width: 100%;
    background: #faf8f3;
}

/* Home page */
.post-list {
    list-style: none;
}

.post-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-date {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 4px;
}

.post-title a {
    font-size: 16px;
    font-weight: 500;
    color: #0066cc;
    text-decoration: none;
}

.post-title a:hover {
    color: #0066cc;
}

.post-desc {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.post-tags {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Blog post */
.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.post-header h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.post-meta {
    font-size: 13px;
    color: #aaa;
}

.post-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: #1a1a1a;
}

.post-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #1a1a1a;
}

.post-content p {
    margin-bottom: 1rem;
    color: #333;
    text-align: justify;
}

.post-content ul, .post-content ol {
    margin: 0.5rem 0 1rem 1.5rem;
    color: #333;
}

.post-content li {
    margin-bottom: 0.4rem;
}

.post-content a {
    color: #0066cc;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content code {
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 13px;
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    color: #d63031;
}

.post-content pre {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #1a1a1a;
    font-size: 13px;
}

.figure {
    margin: 2rem 0;
    text-align: center;
}

.figure img {
    max-width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.figure-caption {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

.finding-box {
    background: #f8f9fa;
    border-left: 3px solid #1a1a1a;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.finding-box p {
    margin: 0;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 13px;
}

th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid #e8e8e8;
    font-weight: 600;
    color: #1a1a1a;
}

td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

tr:last-child td {
    border-bottom: none;
}

.highlight {
    font-weight: 600;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    body { flex-direction: column; }
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 1.5rem;
    }
    .main {
        margin-left: 0;
        padding: 1.5rem;
    }
}
