* {
    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: #333;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 300px;
    background: #f5f5f5;
    padding: 2rem;
    position: fixed;
    left: 0;
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    width: calc(100% - 300px);
    margin-left: 300px;
    padding: 2rem;
    max-width: 750px;
}

.site-title {
    font-size: 1.5rem;
    margin-top: 0rem;
    margin-bottom: 1rem;
}

.home-link {
    margin-bottom: 1rem;
}

.home-link a {
    color: #2b6cc2;
    font-size: 1.5rem;
    padding: 0.5rem 0;
    display: inline-block;
}

.home-link a:hover {
    color: #2b6cc2;
}

.site-description {
    color: #666;
    margin-bottom: 2rem;
}

.social-links {
    margin-bottom: 2rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icon:hover {
    opacity: 1;
}

.author-info {
    margin-top: 2rem;
}

.post-item {
    margin-top: 0.6rem;
    margin-bottom: 2rem;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 2rem;
}

.post-item .post-summary p {
    text-indent: 2em;
    margin-bottom: 1em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* 确保列表和其他元素不会被缩进 */
.post-item .post-summary ul,
.post-item .post-summary ol,
.post-item .post-summary blockquote,
.post-item .post-summary h1,
.post-item .post-summary h2,
.post-item .post-summary h3,
.post-item .post-summary h4,
.post-item .post-summary h5,
.post-item .post-summary h6 {
    text-indent: 0;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.post-meta time {
    margin-right: 1rem;
}

.post-author {
    color: #666;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .home-link a {
        font-size: 1.3rem;
    }
}

.post-content {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    line-height: 2rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

article.post .post-content p {
    text-indent: 2em;
    margin-bottom: 1em;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 确保列表和其他元素不会被缩进 */
article.post .post-content ul,
article.post .post-content ol,
article.post .post-content blockquote,
article.post .post-content h1,
article.post .post-content h2,
article.post .post-content h3,
article.post .post-content h4,
article.post .post-content h5,
article.post .post-content h6 {
    text-indent: 0;
}

a {
    color: #2b6cc2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 文章页面样式优化 */
.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.post-meta time {
    margin-right: 1rem;
}

.post-author {
    color: #666;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #666;
} 