/* 新闻页面专用样式 */

/* 容器宽度限制 */
div.container {
    max-width: 1120px !important;
}

/* 主内容区域 */
.main-content {
    padding-bottom: 50px;
}

/* 左侧分类菜单 */
.category-menu {
    border-right: 1px solid #1e6db5;
    padding-right: 10px;
    text-align: center;
}

.category-item {
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    white-space: nowrap;
}

.category-item:hover {
    color: #1e6db5;
}

.category-item.active {
    color: #1e6db5;
    font-weight: bold;
}

/* 新闻列表 */
.news-list {
    padding-left: 20px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    padding-left: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 24px;
}

.news-title:hover {
    color: #1e6db5;
}

.news-icon {
    display: none;
    width: 28px;
    height: 28px;
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-40%);
}

.news-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-title:hover .news-icon {
    display: block;
}

.news-date {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
    margin-left: 20px;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 6px 12px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #f5f5f5;
    color: #1e6db5;
}

.page-item.active .page-link {
    background-color: #1e6db5;
    color: #fff;
    border-color: #1e6db5;
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .category-menu {
        border-right: none;
        border-bottom: 1px solid #1e6db5;
        padding-right: 100px;
        padding-left:40px;
        /* padding-bottom: 15px; */
        /* margin-bottom: 20px; */
    }
    
    .news-list {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .news-item {
        flex-direction: row;
        align-items: center;
        padding-left: 0;
        padding: 12px 20px;
        flex-wrap: nowrap;
    }
    
    .news-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 0;
        flex: 1;
        min-width: 0;
    }
    
    .news-title:hover .news-icon {
        display: none;
    }
    
    .news-date {
        margin-left: 10px;
        font-size: 13px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .pagination-wrapper {
        justify-content: center;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .page-link {
        padding: 4px 8px;
        font-size: 12px;
        border-radius: 3px;
    }
}
