/* 外层容器 */
.blog-container {
    margin: 80px auto;
    padding: 0 20px;
}

/* 标题 */
.blog-title {
    text-align: center;
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #333;
}

/* 卡片网格布局 */
.blog-grid {
    display: grid;
    gap: 35px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 单个卡片 */
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 缩略图 */
.blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-thumb-placeholder {
    width: 100%;
    height: 220px;
    background: #eee;
}

/* 卡片内文 */
.blog-card-body {
    padding: 22px;
}

/* 文章标题 */
.blog-post-title {
    font-size: 21px;
    margin-bottom: 14px;
}

.blog-post-title a {
    font-family: Baloo2, var(--backup-family);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    text-decoration: none;
    line-height: 1.6rem;
}

.blog-post-title a:hover {
    color: #78A75A;
}

/* 摘要 */
.blog-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* 阅读更多按钮 */
.blog-readmore {
    font-size: 15px;
    color: #78A75A;
    text-decoration: none;
    font-weight: 500;
}

.blog-readmore:hover {
    text-decoration: underline;
}

/* 分页 */
.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 3px;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #444;
    transition: background .2s, color .2s;
}

.blog-pagination .page-numbers.current {
    background: #78A75A;
    color: #fff;
    border-color: #78A75A;
}

.blog-pagination .page-numbers:hover {
    background: #78A75A;
    color: #fff;
}

/* 分类区块外层 */
.blog-category-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}

/* 单个分类按钮 */
.blog-cat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #f4f4f4;
    border-radius: 30px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    transition: 0.25s;
    border: 1px solid #e3e3e3;
}

.blog-cat-item:hover {
    background: #78A75A;
    color: #fff;
    border-color: #78A75A;
}

.blog-cat-item .cat-count {
    opacity: 0.7;
    font-size: 14px;
}

/* 分类标题横线样式 */
.category-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0 20px;
    color: #2e2e2e;
}

.category-title-line::before,
.category-title-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #000;
    margin: 0 20px;
}

.category-title-line span {
    font-size: 36px;
    font-weight: 700;
}

/* 增加标题与文章之间的距离 */
.category-title-spacer {
    height: 40px;
}
