/**
 * 博客头部容器
 * @description 博客页面头部区域的边距设置
 */
.blog-header {
    margin-bottom: 2rem;
}

/**
 * 博客标题
 * @description 博客页面主标题的样式设置
 */
.blog-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/**
 * 博客描述
 * @description 博客页面描述文本的样式设置
 */
.blog-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

/**
 * 博客筛选区域
 * @description 包含搜索和分类的筛选区域边距
 */
.blog-filters {
    margin-bottom: 2rem;
}

/**
 * 博客搜索框
 * @description 博客搜索输入框的样式设置
 */
.blog-search {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(4px);
}

/**
 * 搜索框占位符
 * @description 搜索输入框占位符文本的颜色设置
 */
.blog-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/**
 * 分类标签
 * @description 博客分类选择标签的基础样式
 */
.category-badge {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/**
 * 分类标签交互状态
 * @description 分类标签的悬停和激活状态样式
 */
.category-badge:hover, .category-badge.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/**
 * 博客文章卡片
 * @description 单个博客文章卡片的基础样式
 */
.blog-post {
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

/**
 * 博客文章卡片悬停效果
 * @description 鼠标悬停在博客文章卡片上的动效
 */
.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/**
 * 文章缩略图
 * @description 博客文章缩略图的样式设置
 */
.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/**
 * 缩略图悬停效果
 * @description 鼠标悬停时缩略图的缩放效果
 */
.blog-post:hover .post-thumbnail {
    transform: scale(1.05);
}

/**
 * 文章标题
 * @description 博客文章标题的样式设置
 */
.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

/**
 * 文章标题悬停
 * @description 鼠标悬停在文章标题上的颜色变化
 */
.post-title:hover {
    color: #f0f0f0;
}

/**
 * 文章元数据
 * @description 文章发布日期等元信息的样式
 */
.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/**
 * 文章摘要
 * @description 博客文章摘要的样式设置
 */
.post-excerpt {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/**
 * 阅读更多链接
 * @description 文章卡片中的"阅读更多"链接样式
 */
.read-more {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/**
 * 阅读更多链接悬停效果
 * @description 鼠标悬停时阅读更多链接的动效
 */
.read-more:hover {
    color: #e0e0e0;
    transform: translateX(5px);
}

/**
 * 分页容器
 * @description 分页控件的容器样式
 */
.pagination {
    margin-top: 2rem;
}

/**
 * 分页链接
 * @description 分页按钮的基础样式
 */
.page-link {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    margin: 0 4px;
}

/**
 * 分页链接悬停
 * @description 鼠标悬停在分页链接上的样式
 */
.page-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/**
 * 激活的分页链接
 * @description 当前选中的分页链接样式
 */
.page-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

/**
 * 侧边栏模块
 * @description 博客侧边栏中每个模块的边距
 */
.sidebar-module {
    margin-bottom: 2rem;
}

/**
 * 侧边栏标题
 * @description 侧边栏各模块标题的样式设置
 */
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/**
 * 最近文章项
 * @description 侧边栏中最近文章列表项的样式
 */
.recent-post-item {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

/**
 * 最近文章项悬停
 * @description 鼠标悬停时最近文章项的动效
 */
.recent-post-item:hover {
    transform: translateX(5px);
}

/**
 * 最近文章标题
 * @description 侧边栏中最近文章的标题样式
 */
.recent-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/**
 * 最近文章日期
 * @description 侧边栏中最近文章的日期样式
 */
.recent-post-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/**
 * 归档列表
 * @description 侧边栏中归档列表的基础样式
 */
.archive-list {
    list-style: none;
    padding: 0;
}

/**
 * 归档项
 * @description 侧边栏中归档列表项的样式
 */
.archive-item {
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

/**
 * 归档项悬停
 * @description 鼠标悬停时归档项的动效
 */
.archive-item:hover {
    transform: translateX(5px);
}

/**
 * 归档链接
 * @description 侧边栏中归档链接的样式，包含两端对齐布局
 */
.archive-link {
    color: white;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/**
 * 文章详情页样式
 * @description 博客文章详情页的内容样式设置
 */
.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

/**
 * 文章详情页二级标题
 * @description 文章详情页中h2标签的样式设置
 */
.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/**
 * 文章详情页三级标题
 * @description 文章详情页中h3标签的样式设置
 */
.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/**
 * 文章内容段落
 * @description 博客文章详情页中段落的边距设置
 */
.blog-content p {
    margin-bottom: 1rem;
}

/**
 * 文章内容图片
 * @description 博客文章中图片的响应式样式设置
 */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/**
 * 文章内容引用块
 * @description 博客文章中引用块的样式设置
 */
.blog-content blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/**
 * 文章内容列表
 * @description 博客文章中无序列表和有序列表的样式
 */
.blog-content ul,
.blog-content ol {
    margin: 1rem 0 1rem 1.5rem;
}

/**
 * 文章内容列表项
 * @description 博客文章中列表项的边距设置
 */
.blog-content li {
    margin-bottom: 0.5rem;
}

/**
 * 响应式调整
 * @description 在移动设备上调整博客页面元素的样式
 */
@media (max-width: 768px) {
    /**
     * 移动设备博客标题
     * @description 在小屏幕上调整博客标题的字体大小
     */
    .blog-title {
        font-size: 1.75rem;
    }
    
    /**
     * 移动设备缩略图
     * @description 在小屏幕上调整文章缩略图的高度
     */
    .post-thumbnail {
        height: 150px;
    }
    
    /**
     * 移动设备文章标题
     * @description 在小屏幕上调整文章标题的字体大小
     */
    .post-title {
        font-size: 1.3rem;
    }
}