/* Blog Styles - Clean, Minimal Design */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fafafa;
}

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

/* Header */
.blog-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}

.blog-header nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-header nav a:hover {
    color: #7c3aed;
}

/* Main Content */
main.container {
    padding-top: 40px;
    padding-bottom: 60px;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.page-subtitle {
    color: #666;
    margin-bottom: 40px;
}

/* Post List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #eee;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-title a:hover {
    color: #7c3aed;
}

.post-excerpt {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.read-more {
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-block;
    color: #7c3aed;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.back-link:hover {
    text-decoration: underline;
}

/* Post Content */
.post-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #eee;
}

.post-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.post-content p {
    margin-bottom: 16px;
    color: #444;
}

.post-content ul,
.post-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
    color: #444;
}

.post-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.post-content blockquote {
    border-left: 4px solid #7c3aed;
    padding-left: 20px;
    margin: 24px 0;
    color: #666;
    font-style: italic;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 32px 0;
}

.post-content a {
    color: #7c3aed;
    text-decoration: none;
}

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

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.post-content th,
.post-content td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
}

.post-content th {
    background: #f9f9f9;
    font-weight: 600;
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

/* 404 Page */
.not-found {
    text-align: center;
    padding: 80px 0;
}

.not-found h1 {
    font-size: 6rem;
    color: #ddd;
    margin-bottom: 16px;
}

.not-found p {
    color: #666;
    margin-bottom: 24px;
}

/* Footer */
.blog-footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 24px 0;
    text-align: center;
}

.blog-footer p {
    color: #999;
    font-size: 0.85rem;
}

.blog-footer a {
    color: #666;
    text-decoration: none;
}

.blog-footer a:hover {
    color: #7c3aed;
}

/* Responsive */
@media (max-width: 640px) {
    .post-content {
        padding: 24px;
    }

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

    .post-content h2 {
        font-size: 1.25rem;
    }

    .page-title {
        font-size: 1.5rem;
    }
}
