/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #0366d6;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 头部样式 */
header {
    background-color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.header-content {
    padding: 0 20px;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.site-description {
    font-size: 1.2rem;
    color: #6c757d;
}

/* 导航栏样式 */
nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    padding: 0.5rem 0;
}

nav li {
    margin-right: 1.5rem;
}

nav a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

nav a:hover {
    color: #0366d6;
    text-decoration: none;
}

nav a.active {
    color: #0366d6;
}

nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0366d6;
}

/* 主要内容区域 */
main {
    margin-bottom: 4rem;
}

/* 文章列表样式 */
.post-item {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: #333;
}

.post-title a:hover {
    color: #0366d6;
    text-decoration: none;
}

.post-excerpt {
    margin-bottom: 1rem;
    color: #555;
}

.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    margin-right: 0.5rem;
    color: #0366d6;
}

/* 单篇文章页面样式 */
.post-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-content h1, .post-content h2, .post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

.post-content pre {
    background-color: #f6f8fa;
    padding: 1rem;
    border-radius: 3px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content code {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
    background-color: #f6f8fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.post-content blockquote {
    border-left: 4px solid #dfe2e5;
    padding-left: 1rem;
    color: #6a737d;
    margin-bottom: 1.5rem;
}

/* 归档页面样式 */
.archive-list {
    list-style: none;
}

.archive-year {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.archive-item {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: baseline;
}

.archive-date {
    color: #6c757d;
    width: 100px;
    flex-shrink: 0;
}

/* 关于页面样式 */
.about-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .site-description {
        font-size: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
    }

    .archive-item {
        flex-direction: column;
    }

    .archive-date {
        width: auto;
        margin-bottom: 0.25rem;
    }
}