/* 文章列表页样式 */
.posts-section {
    margin-top: 80px;
    padding: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-link {
    text-decoration: none;
    color: inherit;
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border-radius: 15px;
    font-size: 0.9rem;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

/* 单篇文章页面样式 */
.post-page {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.post-body {
    line-height: 1.8;
}

.post-body h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

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

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .posts-section {
        padding: 1rem;
    }

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

    .post-meta {
        flex-direction: column;
        align-items: center;
    }
}
