/**
 * 博客页面样式
 * @description 定义博客页面的所有样式
 */

/* 博客头部样式 */
.blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 博客列表样式 */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 博客文章项样式 */
.blog-post-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.2);
}

/* 博客文章头部样式 */
.blog-post-header {
    margin-bottom: 1rem;
}

/* 博客文章元数据样式 */
.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-category {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);
}

/* 博客文章标题样式 */
.blog-post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

.blog-post-title a:hover {
    color: #93c5fd;
}

/* 博客文章摘要样式 */
.blog-post-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 博客文章底部样式 */
.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 博客文章标签样式 */
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.blog-post-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 阅读更多按钮样式 */
.blog-post-read-more a {
    color: #93c5fd;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.blog-post-read-more a:hover {
    color: #60a5fa;
    transform: translateX(3px);
}

/* 分页样式 */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

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

.pagination-btn.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* 博客详情页面样式 */
.blog-post-detail {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 博客详情头部样式 */
.blog-post-detail-header {
    margin-bottom: 2rem;
}

/* 博客详情标题样式 */
.blog-post-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 博客详情内容样式 */
.blog-post-detail-content {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.blog-post-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-post-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.blog-post-detail-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.blog-post-detail-content ul {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    list-style-type: disc;
}

.blog-post-detail-content li {
    margin-bottom: 0.5rem;
}

/* 博客详情底部样式 */
.blog-post-detail-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 分享按钮样式 */
.blog-post-share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.share-btn:hover {
    background-color: rgba(255, 255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 相关推荐样式 */
.related-posts {
    margin-top: 2rem;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* 相关推荐文章项样式 */
.related-post-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.2);
}

/* 相关推荐文章标题样式 */
.related-post-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.related-post-title a:hover {
    color: #93c5fd;
}

/* 相关推荐文章日期样式 */
.related-post-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-post-title {
        font-size: 1.25rem;
    }
    
    .blog-post-detail {
        padding: 1.5rem;
    }
    
    .blog-post-detail-title {
        font-size: 1.75rem;
    }
    
    .related-posts-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.75rem;
    }
    
    .blog-description {
        font-size: 1rem;
    }
    
    .blog-post-item {
        padding: 1.25rem;
    }
    
    .blog-post-detail {
        padding: 1.25rem;
    }
    
    .blog-post-detail-title {
        font-size: 1.5rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}