/* 首页专用样式文件 */

/* 博客容器样式 */
.blog-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 40px;
}

.main-content {
    flex: 0 0 65%;
    max-width: 65%;
}

.sidebar {
    flex: 0 0 32%;
    max-width: 32%;
}

/* 博客文章样式 */
.blog-post {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.post-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.post-meta {
    flex-grow: 1;
}

.post-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.post-date {
    color: #666;
    font-size: 14px;
}

.post-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a73e8;
    transition: color 0.3s;
}

.post-title:hover {
    color: #0d47a1;
}

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

.post-categories {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.category-tag:hover {
    background-color: #e0e0e0;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-count {
    color: #666;
    font-size: 14px;
}

.comment-count i {
    margin-right: 5px;
    color: #1a73e8;
}

.read-more {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* 作者信息卡片样式 */
.author-card {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.author-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #1a73e8;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.author-bio {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.author-social {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s, color 0.3s;
}

.social-link:hover {
    background-color: #1a73e8;
    color: white;
}

/* 分类列表样式 */
.categories-section {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.categories-list {
    list-style: none;
}

.category-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.category-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.category-item a:hover {
    color: #1a73e8;
}

.category-count {
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 标签云样式 */
.tags-section {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.tag:hover {
    background-color: #1a73e8;
    color: white;
}

/* 热门文章样式 */
.popular-posts {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popular-post-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.popular-post-content {
    flex-grow: 1;
}

.popular-post-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.popular-post-title:hover {
    color: #1a73e8;
}

.popular-post-date {
    color: #999;
    font-size: 13px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-list {
    display: flex;
    list-style: none;
}

.pagination-item {
    margin: 0 5px;
}

.pagination-link {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: white;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-link:hover {
    background-color: #1a73e8;
    color: white;
}

.pagination-link.active {
    background-color: #1a73e8;
    color: white;
}

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

.pagination-link.disabled:hover {
    background-color: white;
    color: #666;
}

/* 订阅区样式 */
.subscribe-section {
    background-color: #1a73e8;
    color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
}

.subscribe-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: white;
}

.subscribe-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 14px;
}

.subscribe-form {
    display: flex;
    margin-top: 20px;
}

/* 响应式设计调整 */
@media (max-width: 992px) {
    .blog-container {
        flex-direction: column;
    }
    
    .main-content,
    .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .blog-post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .author-card,
    .categories-section,
    .tags-section,
    .popular-posts,
    .subscribe-section {
        padding: 20px;
    }
    
    .pagination-link {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-post {
        padding: 15px;
    }
    
    .post-header {
        flex-direction: column;
        text-align: center;
    }
    
    .post-author-img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .read-more {
        margin-top: 10px;
    }
}