/* ===== 侧边导航 ===== */
.biojx-sidebar-nav {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    background: #fff;
}
.biojx-nav-parent {
    margin-bottom: 15px;
}
.biojx-nav-parent a {
    display: inline-block;
    padding: 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s;
}
.biojx-nav-parent a:hover {
    color: #178b30;
}
.biojx-nav-siblings {
    list-style: none;
    padding: 0;
    margin: 0;
}
.biojx-nav-siblings li {
    margin-bottom: 4px;
}
.biojx-nav-siblings a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    color: #444;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}
.biojx-nav-siblings a:hover {
    background-color: #f0f5f0;
    color: #178b30;
}
.biojx-nav-siblings li.active a {
    background-color: #178b30;
    color: #ffffff;
}

/* ===== 推荐文章 ===== */
.biojx-recommended-posts {
    display: grid;
    grid-template-columns: 45% 45%;
    justify-content: center;
    gap: 10%;
    margin-bottom: 30px;
}
@media (max-width: 600px) {
    .biojx-recommended-posts {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
.biojx-rec-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.biojx-rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.biojx-rec-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f5f5f5;
}
.biojx-rec-title {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    display: block;
}

/* ===== 子文章网格 ===== */
.biojx-article-grid {
    margin-bottom: 40px;
}
.biojx-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 992px) {
    .biojx-grid-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .biojx-grid-container { grid-template-columns: 1fr; }
}
.biojx-grid-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.biojx-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.biojx-grid-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f0f0f0;
}
.biojx-grid-title {
    padding: 14px 16px;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

/* ===== 分页 ===== */
.biojx-grid-pagination {
    margin-top: 30px;
    text-align: center;
}
.biojx-grid-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.biojx-grid-pagination .page-numbers.current {
    background: #178b30;
    color: #fff;
}
.biojx-grid-pagination .page-numbers:hover:not(.current) {
    background: #e0e0e0;
    color: #178b30;
}

/* ===== 子文章网格分页（居中靠下） ===== */
.biojx-grid-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}
.pagination-links {
    display: inline-flex;
    gap: 5px;
}
.page-link {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}
.page-link.active {
    background: #178b30;   /* 主题绿色 */
    color: #fff;
}
.page-link:hover:not(.active) {
    background: #ddd;
}
/* 省略号样式（可选） */
.page-link.ellipsis {
    cursor: pointer;
    background: transparent;
    border: none;
}