body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

header.main-header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
}

header.main-header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1em;
    margin-bottom: 20px;
    display: inline-block;
}
nav a:hover {
    text-decoration: underline;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.post-list li:last-child {
    border-bottom: none;
}

.post-list h2 a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.8em;
}
.post-list h2 a:hover {
    color: #0056b3;
}

.post-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.post-tags span, .author-info .post-tags span {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 0.85em;
    display: inline-block;
    margin-top: 5px;
}

/* 单篇博文页 */
.post-full-content header h1 {
    font-size: 2.2em;
    color: #333;
    text-align: left;
}
.post-full-content .post-meta {
    text-align: left;
    margin-bottom: 25px;
}

.post-content {
    margin-top: 20px;
    font-size: 1.1em;
}
.post-content h1, .post-content h2, .post-content h3 {
    color: #333;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
}
.post-content pre {
    background-color: #282c34; /* 暗色代码块背景 */
    color: #abb2bf; /* 代码块文字颜色 */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}
.post-content code {
     font-family: 'Courier New', Courier, monospace;
}
.post-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 15px;
    margin-left: 0;
    color: #555;
    font-style: italic;
}


/* 作者信息 */
.author-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}
.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #ddd;
}
.author-details p {
    margin: 0;
}
.author-name {
    font-weight: bold;
    color: #333;
}


footer.main-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    color: #888;
    border-top: 1px solid #eee;
}