/* ========== 列表页布局 ========== */
.list-wrap {
    display: flex;
    min-height: 500px;
}

/* ========== 左侧子栏目导航 ========== */
.list-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    align-self: flex-start;
}

.sidebar-title {
    height: 56px;
    line-height: 56px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #2d7d32 0%, #1b5e20 100%);
    text-align: center;
    border-radius: 4px 4px 0 0;
    letter-spacing: 2px;
}

.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav li {
    border-bottom: 1px dashed #e8e8e8;
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav li a {
    display: block;
    padding: 14px 25px;
    font-size: 16px;
    color: #333;
    position: relative;
    transition: all 0.3s;
}

.sidebar-nav li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #2d7d32;
    transform: scaleY(0);
    transition: transform 0.3s;
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
    color: #2d7d32;
    background: #f1f8e9;
    font-weight: bold;
}

.sidebar-nav li a:hover::before,
.sidebar-nav li.active a::before {
    transform: scaleY(1);
}

/* ========== 右侧文章列表 ========== */
.list-content {
    flex: 1;
    margin-left: 30px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 30px;
}

.list-content-title {
    font-size: 22px;
    font-weight: bold;
    color: #2d7d32;
    padding-bottom: 15px;
    border-bottom: 2px solid #2d7d32;
    margin-bottom: 20px;
    position: relative;
}

.list-content-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #4caf50;
}

/* 面包屑 */
.breadcrumb {
    padding: 0;
    margin-bottom: 20px;
    background: none;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #2d7d32;
}

.breadcrumb .current {
    color: #2d7d32;
}

/* 文章列表项 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    border-bottom: 1px dashed #e8e8e8;
    padding: 18px 0;
    transition: background 0.3s;
}

.article-list li:first-child {
    padding-top: 0;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li:hover {
    background: #f9fdf7;
}

.article-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.article-list .article-title {
    flex: 1;
    font-size: 16px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.article-list li:hover .article-title {
    color: #2d7d32;
}

.article-list .article-date {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
    min-width: 100px;
    text-align: right;
}

/* ========== 分页 ========== */
.pagination-wrap {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-wrap a:hover {
    background: #2d7d32;
    color: #fff;
    border-color: #2d7d32;
}

.pagination-wrap .current {
    background: #2d7d32;
    color: #fff;
    border-color: #2d7d32;
}

.pagination-wrap .prev,
.pagination-wrap .next {
    padding: 8px 18px;
}

/* ========== 响应式：平板及以下（991px 断点，与原站一致） ========== */
@media (max-width: 991px) {
    .list-wrap {
        flex-direction: column;
    }

    .list-sidebar {
        width: 100%;
        margin-bottom: 20px;
        border-radius: 4px;
    }

    .sidebar-title {
        font-size: 18px;
        height: 48px;
        line-height: 48px;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .sidebar-nav li {
        border-bottom: none;
        margin-right: 10px;
        margin-bottom: 5px;
    }

    .sidebar-nav li a {
        padding: 8px 16px;
        font-size: 14px;
        border: 1px solid #ddd;
        border-radius: 20px;
        background: #fff;
        transition: all 0.3s;
    }

    .sidebar-nav li a::before {
        display: none;
    }

    .sidebar-nav li a:hover,
    .sidebar-nav li.active a {
        background: #2d7d32;
        color: #fff;
        border-color: #2d7d32;
    }

    .list-content {
        margin-left: 0;
        padding: 20px;
    }

    .list-content-title {
        font-size: 18px;
    }

    .article-list .article-title {
        font-size: 15px;
    }

    .article-list .article-date {
        font-size: 13px;
        min-width: 90px;
    }
}

/* ========== 手机版（768px 以下） ========== */
@media (max-width: 768px) {
    .list-content {
        padding: 15px;
    }

    .list-content-title {
        font-size: 17px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .sidebar-nav {
        padding: 8px 10px;
    }

    .sidebar-nav li {
        margin-right: 6px;
        margin-bottom: 4px;
    }

    .sidebar-nav li a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .article-list li {
        padding: 14px 0;
    }

    .article-list .article-title {
        font-size: 14px;
        padding-right: 10px;
    }

    .article-list .article-date {
        font-size: 12px;
        min-width: 75px;
    }

    .pagination-wrap a,
    .pagination-wrap span {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .article-list li a {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-list .article-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding-right: 0;
        margin-bottom: 6px;
    }

    .article-list .article-date {
        text-align: left;
    }

    .pagination-wrap a,
    .pagination-wrap span {
        padding: 5px 8px;
        font-size: 12px;
        margin: 0 1px;
    }
}
