/* CSS Document */
/* ========== 列表页主体区域 ========== */
.main-content {
    position: relative;
    padding: 60px 20px;
    background: #f5f5f5;
    min-height: 0 !important;              /* 不再被撑成一整屏 */
    justify-content: flex-start !important;/* 内容回到顶部 */
    margin-top: 0 !important;              /* 去掉 banner 与主体间的间隙（想留呼吸感可改 30px） */
    padding: 60px 20px;                    /* 保留 */
    background: #f5f5f5;  
}
.main-content .container {
    display: flex;
    gap: 35px;
    position: relative;
    z-index: 1;
    align-items: flex-start !important;   /* 改为顶部对齐 */
}
/* ----- 左侧菜单栏 ----- */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}
.sidebar-title {
    background: #a81010;
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    padding: 18px 24px;
    text-align: center;
    letter-spacing: 2px;
    border-radius: 2px 2px 0 0;
}
.side-menu {
    background: #fff;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}
.side-menu > li > a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.side-menu > li:last-child > a {
    border-bottom: none;
}
.side-menu > li > a:hover, .side-menu > li.selected > a {
    background: #a81010;
    color: #fff;
    padding-left: 30px;
}
.side-menu > li.selected > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #ffd700;
}
/* 侧边栏二级菜单 */
.side-submenu {
    background: #fafafa;
}
.side-submenu li a {
    display: block;
    padding: 13px 24px 13px 40px;
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}
.side-submenu li a:hover, .side-submenu li.selected a {
    color: #a81010;
    background: #fff5f5;
}
/* ----- 右侧内容区 ----- */
.content-right {
    flex: 1;
    background: #fff;
    border-radius: 2px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}
/* 页面头部：栏目标题 + 面包屑 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 12px;
    margin-bottom: 25px;
    border-bottom: 2px solid #a81010;
}
.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #a81010;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url("../images/arrow.png") center/contain no-repeat;
    display: inline-block;
    flex-shrink: 0;
}
.breadcrumb {
    font-size: 14px;
    color: #666;
}
.breadcrumb a:hover {
    color: #a81010;
}
.breadcrumb span {
    color: #a81010;
}
/* 文章列表 */
.article-list li {
    padding: 14px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}
.article-list li:last-child {
    border-bottom: none;
}
.article-list li:hover {
    padding-left: 8px;
}
.article-list a {
    font-size: 16px;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}
.article-list a:hover {
    color: #a81010;
}
.article-list .date {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}
/* 分页 */
.pagination {
    text-align: center;
    margin-top: 40px;
}
.pagination a {
    display: inline-block;
    padding: 7px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #555;
    font-size: 14px;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.pagination a:hover, .pagination a.active {
    background: #a81010;
    color: #fff;
    border-color: #a81010;
}
/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
.main-content .container {
    flex-direction: column;
}
.sidebar {
    width: 100%;
}
}

@media (max-width: 768px) {
.container {
    max-width: 94%;
    padding: 0 15px;
}
.content-right {
    padding: 20px;
}
.page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
}

@media (max-width: 600px) {
.article-list .date {
    display: none;
}
}
