/* 资讯列表页样式 */

/* 面包屑导航 */
.breadcrumb {
    background-color: #F5F5F5;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: #951D1D;
}

.breadcrumb-item.active {
    color: #951D1D;
    font-weight: bold;
}

.breadcrumb-separator {
    color: #999999;
    font-size: 14px;
}

/* 主要内容区域 */
.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px 50px;
}

.content-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* 左侧资讯列表区域 */
.news-list-section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #951D1D;
}

.section-title {
    color: #951D1D;
    font-size: 28px;
    font-weight: bold;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    margin: 0;
}

.filter-group {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #DEDEDE;
    border-radius: 5px;
    font-size: 14px;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:hover {
    border-color: #951D1D;
}

.filter-select:focus {
    outline: none;
    border-color: #951D1D;
}

/* 资讯列表项 */
.news-list {
    min-height: 600px;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #EEEEEE;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.news-item:hover {
    background-color: #F9F9F9;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-left {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    font-size: 18px;
    color: #333333;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    transition: color 0.3s;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item-title:hover {
    color: #951D1D;
}

/* 当天上传的资讯标题显示为红色 */
.news-item-title.today {
    color: #FF0000;
    font-weight: 600;
}

.news-item-title.today:hover {
    color: #CC0000;
}

.news-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999999;
    font-size: 13px;
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-date::before {
    content: '📅';
    font-size: 14px;
}

.news-item-source {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-source::before {
    content: '📰';
    font-size: 14px;
}

.news-item-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-item-views::before {
    content: '👁';
    font-size: 14px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #EEEEEE;
}

.page-btn {
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #DEDEDE;
    border-radius: 5px;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background-color: #951D1D;
    color: #ffffff;
    border-color: #951D1D;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #DEDEDE;
    border-radius: 5px;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number:hover {
    background-color: #951D1D;
    color: #ffffff;
    border-color: #951D1D;
}

.page-number.active {
    background-color: #951D1D;
    color: #ffffff;
    border-color: #951D1D;
    font-weight: bold;
}

/* 右侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-module {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.module-header {
    background: linear-gradient(135deg, #951D1D 0%, #6C1515 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    font-family: "Alibaba PuHuiTi", "阿里巴巴普惠体", sans-serif;
    margin: 0;
}

.module-more {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.module-more:hover {
    opacity: 0.8;
}

.module-content {
    padding: 0;
}

/* 侧边栏资讯列表 */
.sidebar-news-list {
    display: flex;
    flex-direction: column;
}

.sidebar-news-item {
    display: block;
    text-decoration: none;
    padding: 15px 20px;
    border-bottom: 1px solid #EEEEEE;
    transition: background-color 0.3s;
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item:hover {
    background-color: #FFF9F9;
}

.sidebar-news-title {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-news-item:hover .sidebar-news-title {
    color: #951D1D;
}

.sidebar-news-date {
    color: #999999;
    font-size: 12px;
}

/* 资讯表格(已废弃,保留兼容性) */
.news-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.news-table thead th {
    background-color: #F5F5F5;
    padding: 12px 15px;
    text-align: left;
    font-weight: bold;
    color: #333333;
    border-bottom: 2px solid #DEDEDE;
}

.news-table tbody tr {
    border-bottom: 1px solid #F0F0F0;
    transition: background-color 0.3s;
}

.news-table tbody tr:hover {
    background-color: #F9F9F9;
}

.news-table tbody tr:last-child {
    border-bottom: none;
}

.news-table tbody td {
    padding: 12px 15px;
}

.news-table tbody td a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-table tbody td a:hover {
    color: #951D1D;
}

.news-table tbody td:last-child {
    color: #999999;
    font-size: 12px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state-text {
    font-size: 16px;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .content-container {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }

    .main-content {
        padding: 0 30px 30px;
    }
}

@media screen and (max-width: 768px) {
    .content-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .breadcrumb-container {
        padding: 0 20px;
    }

    .main-content {
        padding: 0 20px 20px;
    }

    .news-list-section {
        padding: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .news-item-title {
        font-size: 16px;
    }
}
