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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    text-align: center;
    padding: 30px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.site-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.site-header .subtitle {
    font-size: 14px;
    color: #888;
}

.main-content {
    flex: 1;
}

.note-item {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.note-meta {
    margin-bottom: 15px;
}

.note-date {
    font-size: 13px;
    color: #999;
}

.note-content {
    margin-bottom: 25px;
    font-size: 15px;
    color: #444;
}

.photo-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.photo-item {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.02);
}

.site-footer {
    text-align: center;
    padding: 25px 0 15px;
    color: #aaa;
    font-size: 12px;
    margin-top: auto;
}

/* ========== 文章页面样式 ========== */
.article-page {
    background: #fff;
    border-radius: 8px;
    padding: 30px 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-meta {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-date {
    font-size: 13px;
    color: #999;
}

.article-body {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 19px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.article-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    border-left: 4px solid #bbb;
    background: #f5f5f5;
    border-radius: 0 4px 4px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

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

.article-body hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 30px 0;
}

.article-body ul,
.article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-body strong {
    color: #2c3e50;
}

.article-body .article-note {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
    margin-bottom: 0;
}

.back-to-list {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 20px;
    font-size: 14px;
    color: #2c3e50;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: background 0.2s;
}

.back-to-list:hover {
    background: #f0f0f0;
}

@media (max-width: 600px) {
    .site-header h1 {
        font-size: 20px;
    }
    
    .note-detail {
        padding: 18px;
    }
    
    .photo-gallery {
        gap: 8px;
    }

    .article-page {
        padding: 20px 16px;
    }

    .article-title {
        font-size: 19px;
    }

    .article-body {
        font-size: 15px;
    }

    .article-body h2 {
        font-size: 17px;
        margin-top: 28px;
    }

    .article-body h3 {
        font-size: 16px;
    }

    .article-body blockquote {
        padding: 12px 14px;
        font-size: 14px;
    }
}