/* 博客列表样式文件 */

/* 博客目录样式 */
.blog-directory {
    padding: 60px 20px;
}

.blog-directory .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    border-radius: 2px;
}

/* 首页博客列表样式 */
.index-blog-list {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.index-blog-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.index-blog-item:last-child {
    border-bottom: none;
}

.index-blog-title {
    font-size: 20px;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.index-blog-title a {
    color: #2c3e50;
    text-decoration: none;
}

.index-blog-title a:hover {
    color: #3498db;
}

.index-blog-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.index-blog-date {
    margin-right: 20px;
}

.index-blog-category {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.index-blog-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.index-blog-read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.index-blog-read-more:hover {
    color: #8e44ad;
}

.index-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.index-blog-tag {
    background-color: #f5f5f5;
    color: #666;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 博客页面主样式 */
.blog-list {
    max-width: 800px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header .blog-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.blog-description {
    font-size: 1.1rem;
    color: #666;
}

.posts-container {
    display: grid;
    gap: 30px;
}

.post-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007bff;
}

.post-meta {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 20px;
}

.post-meta .category {
    background-color: #f0f0f0;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.post-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-read-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-read-more:hover {
    color: #0056b3;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.post-tag {
    background-color: #e9ecef;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination button {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-list {
        padding: 20px 15px;
    }
    
    .blog-header .blog-title {
        font-size: 2rem;
    }
    
    .post-card {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .index-blog-item {
        padding: 15px 0;
    }
    
    .index-blog-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .blog-directory {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .index-blog-list {
        padding: 20px;
    }
}