/* home.css - 首页专用样式 */
.blog-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-post {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.post-image {
    width: 120px;
    flex-shrink: 0;
}

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

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

.post-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: #1e293b;
    display: block;
    transition: color 0.2s;
}

.post-title:hover {
    color: #3b82f6;
}

.post-meta {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.post-meta span {
    display: inline-block;
    margin-right: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s;
}

.pagination-link:hover {
    background-color: #f1f5f9;
}

.pagination-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

/* Responsive Design for Home */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .post-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}