/* 博客页面样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/blog/blog-header.jpg') no-repeat center center/cover;
    padding: 150px 0 80px;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* 博客区域 */
.blog-section {
    padding: 80px 0;
}

.blog-container {
    display: flex;
    gap: 50px;
}

.blog-posts {
    flex: 2;
}

.blog-sidebar {
    flex: 1;
}

/* 博客文章卡片 */
.blog-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.blog-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-date i {
    margin-right: 5px;
    color: #2e7d32;
}

.blog-content h2 {
    margin-bottom: 15px;
}

.blog-content h2 a {
    color: #333;
    transition: all 0.3s ease;
}

.blog-content h2 a:hover {
    color: #2e7d32;
}

.blog-content p {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    font-weight: bold;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 侧边栏样式 */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

/* 热门文章样式 */
.popular-posts li {
    margin-bottom: 20px;
}

.popular-posts li:last-child {
    margin-bottom: 0;
}

.popular-posts li a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-post-content h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.popular-post-content span {
    font-size: 0.8rem;
    color: #777;
}

.popular-posts li a:hover h4 {
    color: #2e7d32;
}

/* 侧边栏联系信息 */
.sidebar-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidebar-contact p i {
    color: #2e7d32;
    margin-right: 10px;
    width: 20px;
}

/* 博客文章页面 */
.blog-article {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-article-header {
    margin-bottom: 30px;
}

.blog-article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.blog-article-meta {
    display: flex;
    color: #777;
    font-size: 0.9rem;
}

.blog-article-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.blog-article-meta i {
    margin-right: 5px;
    color: #1a73e8;
}

.blog-article-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.blog-article-content h2 {
    margin: 40px 0 20px;
    color: #333;
}

.blog-article-content h3 {
    margin: 30px 0 15px;
    color: #333;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-article-content li {
    margin-bottom: 10px;
    color: #666;
}

.blog-article-content img {
    width: 100%;
    border-radius: 8px;
    margin: 30px 0;
}

.blog-article-content blockquote {
    border-left: 4px solid #1a73e8;
    padding: 20px;
    background: #f9f9f9;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

/* 响应式样式 */
@media screen and (max-width: 1024px) {
    .blog-container {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .blog-container {
        flex-direction: column;
    }
    
    .page-header {
        padding: 130px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-image img {
        height: 250px;
    }
    
    .blog-article {
        padding: 30px;
    }
    
    .blog-article-header h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .blog-image img {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-article {
        padding: 20px;
    }
    
    .blog-article-header h1 {
        font-size: 1.8rem;
    }
    
    .popular-posts li a {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .popular-post-image {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }
} 