/* 博客页面样式 */

/* 博客头部 */
.blog-header {
    background-color: #f5f7fa;
    padding: 60px 0;
}

/* 博客卡片网格 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* 博客卡片 */
.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: #3498db;
}

.blog-content p {
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 博客文章页面样式 */
.blog-post {
    padding: 60px 0;
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.blog-post-meta span i {
    margin-right: 5px;
    color: #3498db;
}

.blog-post-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #333;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-post-tags span {
    font-weight: 600;
    margin-right: 10px;
}

.blog-post-tags a {
    display: inline-block;
    background-color: #f5f7fa;
    color: #3498db;
    padding: 5px 12px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog-post-tags a:hover {
    background-color: #3498db;
    color: white;
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.prev-post a, .next-post a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.prev-post a:hover, .next-post a:hover {
    color: #2980b9;
}

.prev-post i, .next-post i {
    transition: transform 0.3s ease;
}

.prev-post:hover i {
    transform: translateX(-5px);
}

.next-post:hover i {
    transform: translateX(5px);
}

.related-posts {
    margin-bottom: 50px;
}

.related-posts h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h4 {
    padding: 15px;
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.4;
}

.related-post a {
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
    }
}