/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e1e4e8;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 2rem;
    margin-bottom: 3rem;
}

.site-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.site-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.breadcrumb {
    padding: 1rem 0;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

/* 文章列表 */
.posts-list {
    margin-bottom: 3rem;
}

.post-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.tag {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.post-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 文章详情 */
.post-content {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.post-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-body {
    font-size: 1.05rem;
}

.post-body .lead {
    font-size: 1.15rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.post-body h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-body h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.post-body blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.post-body blockquote p {
    margin-bottom: 0;
}

.post-body .quote {
    text-align: right;
    font-style: italic;
    color: var(--text-light);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-location {
    color: var(--text-light);
    font-style: italic;
}

/* 底部 */
footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 4rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin-bottom: 0.5rem;
}

.footer-beian {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.footer-beian a {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
}

.footer-beian a:hover {
    color: var(--secondary-color);
}

.beian-icon {
    height: 10px;
    vertical-align: middle;
    margin-right: 4px;
}

.beian-separator {
    color: var(--text-light);
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .site-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }

    .site-header h1 {
        font-size: 1.8rem;
    }

    .site-header .subtitle {
        font-size: 1rem;
    }

    .post-card {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.4rem;
    }

    .post-content {
        padding: 2rem 1.5rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.25rem;
    }

    .post-meta {
        flex-wrap: wrap;
    }

    .post-footer {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.5rem;
    }

    .post-title {
        font-size: 1.25rem;
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .post-card {
        padding: 1.25rem;
    }

    .post-content {
        padding: 1.5rem 1rem;
    }
}
