
/* 核心布局：左右分栏 */
.blogContainer {
    width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px; /* 左右栏间距 */
}

/* 左侧文章列表 */
.blogList {
    width: 75%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 固定两列 */
    gap: 30px; /* 文章卡片间距 */
}

/* 文章卡片*/
.blogCard {
    background: #fff;
    border-radius: 12px; /* 增大圆角 */
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06); /* 优化阴影 */
    transition: all 0.3s ease;
}
.blogCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* hover 增强阴影 */
}

/* 缩略图优化 */
.blogImg img {
    width: 100%;
    height: 220px; /* 增高图片，提升视觉效果 */
    object-fit: cover;
    border-radius: 12px 12px 0 0; /* 图片单独圆角 */
    transition: transform 0.5s ease;
}
.img-hover:hover {
    transform: scale(1.03); /* 图片 hover 轻微放大 */
}

/* 文章内容区优化 */
.blogContent {
    padding: 24px; /* 增大内边距 */
}

/* 分类标签优化 */
.blogCategory a {
    display: inline-block;
    padding: 5px 12px;
    background: #e8f4ff; /* 柔和蓝色背景 */
    color: #1890ff;
    font-size: 13px;
    border-radius: 20px; /* 圆形标签 */
    margin-bottom: 12px;
    transition: background 0.3s ease;
}
.blogCategory a:hover {
    background: #1890ff;
    color: #fff;
}

/* 文章标题优化 */
.blogTitle {
    font-size: 19px; /* 增大字体 */
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 600;
}
.blogTitle a {
    color: #2d3748; /* 深灰色，更显专业 */
    text-decoration: none;
    transition: color 0.3s ease;
}
.blogTitle a:hover {
    color: #1890ff;
    text-decoration: none;
}

/* 摘要优化 */
.blogExcerpt {
    font-size: 15px;
    color: #4a5568; /* 中灰色，提升可读性 */
    line-height: 1.7;
    margin-bottom: 18px;
}

/* 元信息优化 */
.blogMeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #718096; /* 浅灰色 */
    border-top: 1px solid #f5f5f5; /* 顶部分隔线 */
    padding-top: 15px;
}
.blogReadMore {
    color: #1890ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.blogReadMore:hover {
    color: #096dd9;
    text-decoration: none;
    transform: translateX(3px);
}

/* 无文章提示优化 */
.noPost {
    grid-column: 1 / -1; /* 跨两列显示 */
    text-align: center;
    padding: 60px 0;
    color: #718096;
    background: #fafafa;
    border-radius: 12px;
}
.noPost p {
    font-size: 16px;
    margin: 0;
}

/* 分页导航 */
.blogPagination {
    grid-column: 1 / -1; /* 跨两列居中 */
    text-align: center;
    padding: 30px 0 10px;
}
.blogPagination ul {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.blogPagination li a,
.blogPagination li span {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #eee;
    border-radius: 8px; /* 圆角分页 */
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
}
.blogPagination li a:hover {
    border-color: #1890ff;
    color: #1890ff;
    background: #f0f7ff;
}
.blogPagination .current {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 右侧功能栏 */
.blogSidebar {
    width: 23%;
    display: flex;
    flex-direction: column;
    gap: 20px; /* 右侧模块间距 */
}

/* 右侧模块通用样式 */
.sidebarWidget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.sidebarWidget:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 列表文章模块样式 */
.hot-post-widget {
    min-height: 500px; /* 增大区块基础高度 */
    max-height: 800px; /* 设置最大高度，防止过高 */
    overflow-y: auto; /* 垂直方向溢出时显示滚动条 */
    overflow-x: hidden; /* 隐藏水平滚动条 */
    padding-bottom: 30px; /* 底部额外内边距，避免滚动时内容贴边 */
}

/* 优化滚动条样式 */
.hot-post-widget::-webkit-scrollbar {
    width: 6px; /* 滚动条宽度 */
}
.hot-post-widget::-webkit-scrollbar-track {
    background: #f0f7ff; /* 滚动条轨道背景 */
    border-radius: 3px;
}
.hot-post-widget::-webkit-scrollbar-thumb {
    background: #1890ff; /* 滚动条滑块颜色 */
    border-radius: 3px;
}
.hot-post-widget::-webkit-scrollbar-thumb:hover {
    background: #096dd9; /* 滚动条滑块hover颜色 */
}

/* 模块标题优化 */
.widgetTitle {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f7ff; /* 蓝色底部分隔线 */
    font-weight: 600;
    position: sticky; /* 标题粘性固定，滚动时标题不消失 */
    top: 0;
    background: #fff;
    z-index: 10;
    padding-top: 5px;
}

/* 搜索框优化*/
.searchForm {
    position: relative;
    width: 100%;
}
.search-input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #e8f4ff;
    border-radius: 12px;
    font-size: 15px;
    color: #4a5568;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: none;
}
.search-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
    background-color: #fff;
}
/* 搜索按钮图标*/
.searchForm input[type="submit"] {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid #e8f4ff;
    color: #1890ff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
}
/* 搜索按钮 */
.searchForm input[type="submit"]:hover {
    background: #f0f7ff;
    border-color: #1890ff;
    color: #1890ff;
    transform: translateY(-50%);
}
/* 搜索图标 */
.searchForm input[type="submit"]::before {
    content: "⌕"; 
    font-size: 15px;
}

/* 列表文章优化 */
.hotPostList {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hotPostItem {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #f0f0f0; /* 虚线分隔 */
}
.hotPostItem:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hotPostItem a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}
.hotPostItem a:hover .hotPostTitle {
    color: #1890ff;
    transform: translateX(5px);
    display: inline-block;
}
.hotPostDate {
    background: #fef7fb;
    color: #ed8936; /* 橙色日期 */
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .blogContainer {
        width: 90%;
        flex-direction: column;
        gap: 20px;
    }
    .blogList {
        width: 100%;
        gap: 20px;
    }
    .blogSidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sidebarWidget {
        width: calc(50% - 10px);
    }
    .hot-post-widget {
        min-height: 300px;
        max-height: 400px;
    }
}
@media (max-width: 768px) {
    .blogList {
        grid-template-columns: 1fr; /* 移动端单列文章 */
    }
    .blogImg img {
        height: 180px;
    }
    .sidebarWidget {
        width: 100%; /* 移动端单列功能栏 */
    }
    /* 响应式：搜索框适配移动端 */
    .search-input {
        padding: 11px 16px;
    }
    .searchForm input[type="submit"] {
        width: 32px;
        height: 32px;
    }
    .hot-post-widget {
        min-height: 250px;
        max-height: 350px;
    }
}
@media (max-width: 480px) {
    .blogContent {
        padding: 18px;
    }
    .blogTitle {
        font-size: 17px;
    }
    .blogPagination li a,
    .blogPagination li span {
        padding: 12px;
    }
}