/* ==========================================
   list.html 财大红主题 CSS
   核心色值与category.css保持一致：
   主色：#901C1C（财大红）
   辅助色：#F9F0F0（浅红背景）、#701616（深色红）
   中性色：#333（正文）、#666（次要文本）、#999（辅助文本）、#eee（分割线）
========================================== */

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    line-height: 1.7;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease; /* 统一过渡动画 */
}

/* 核心容器样式 */
.list-container {
    width: 1400px;
    margin: 0 auto;
    padding: 30px 0;
    min-height: 900px;
    display: flex;
    gap: 24px; /* 替代tailwind的gap-6 */
}

/* 左侧侧边栏 */
.list-sidebar {
    width: 260px;
    flex-shrink: 0; /* 替代tailwind的shrink-0 */
}

.sidebar-wrap {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(144, 28, 28, 0.08);
    padding: 25px;
    border: 1px solid #f8f8f8;
}

/* 左侧面包屑 */
.sidebar-crumb {
    font-size: 14px;
    color: #495057;
    margin-bottom: 24px;
}

.crumb-home {
    color: #901C1C;
    font-weight: 500;
}

.crumb-home:hover {
    color: #701616;
}

.crumb-sep {
    margin: 0 8px;
    color: #adb5bd;
}

.crumb-parent {
    color: #495057;
}

.crumb-parent:hover {
    color: #901C1C;
}

/* 左侧分类导航 */
.sidebar-nav {
    margin-top: 10px;
}

.sidebar-nav li {
    margin-bottom: 6px;
    border-radius: 8px;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: #343a40;
    border-radius: 8px;
    font-size: 16px;
}

/* 导航hover效果 */
.nav-link:hover {
    background-color: #F9F0F0;
    color: #901C1C;
    transform: translateX(2px);
}

/* 导航选中状态（对应JS中的on类） */
.nav-link.active {
    background-color: #901C1C;
    color: #fff !important;
}

/* 右侧内容区 */
.list-content {
    flex: 1; /* 替代tailwind的flex-1 */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(144, 28, 28, 0.08);
    padding: 30px;
    border: 1px solid #f8f8f8;
}

/* 右侧标题栏 */
.content-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.header-title {
    color: #901C1C;
    font-weight: 700;
    font-size: 20px;
}

.header-crumb {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
}

/* 适配大屏，取消标题栏的margin-top */
@media (min-width: 768px) {
    .header-crumb {
        margin-top: 0;
    }
}

.header-crumb .crumb-home,
.crumb-item {
    color: #6c757d;
}

.header-crumb .crumb-home:hover,
.crumb-item:hover {
    color: #901C1C;
}

/* 新闻列表区域 */
.content-list {
    width: 100%;
}

.news-list {
    border-top: 1px solid #f1f1f1;
}

.news-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

/* 列表项布局 */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.list-item a {
    color: #333;
    font-size: 16px;
    max-width: calc(100% - 120px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item a:hover {
    color: #901C1C;
    font-weight: 500;
}

.list-item span {
    color: #999;
    font-size: 14px;
    font-family: "Consolas", "Monaco", monospace;
}

/* 分页区域 */
.content-pagination {
    margin-top: 48px;
    text-align: center;
    position: relative;
    height: 38px;
    overflow: hidden;
}

.pagination-wrap {
    display: inline-block;
}

/* 分页样式美化（适配财大红主题） */
.pagination-wrap a,
.pagination-wrap span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 6px;
    color: #666;
    border: 1px solid #eee;
}

.pagination-wrap a:hover {
    background-color: #F9F0F0;
    color: #901C1C;
    border-color: #901C1C;
}

.pagination-wrap .current {
    background-color: #901C1C;
    color: #fff;
    border-color: #901C1C;
}

/* 响应式适配 */
@media (max-width: 1440px) {
    .list-container {
        width: 95%;
    }
    
    .list-sidebar {
        width: 240px;
    }
    
    .list-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .list-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .list-sidebar {
        width: 100%;
    }
    
    .list-item a {
        max-width: calc(100% - 90px);
    }
}