/* 新闻页面样式 */
.news-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-container {
    width: 100%;
}

.news-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.news-sub-title {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.news-sub-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #3498db; /* 海军蓝 */
}

/* 新闻内容布局 */
.news-content {
    display: flex;
    gap: 30px;
}

/* 左侧新闻分类菜单样式 */
.news-categories {
    flex: 0 0 250px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.news-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-categories li {
    margin-bottom: 10px;
}

.news-categories li a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.news-categories li a:hover {
    background-color: #f5f5f5;
    color: #000080; /* 海军蓝 */
}

.news-categories li.active a {
    background-color: #3498db; /* 现代亮蓝色 */
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* 空新闻列表提示样式 */
.news-empty {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.news-empty p {
    font-size: 18px;
    color: #888;
}

/* 右侧新闻列表样式 */
.news-list {
    flex: 1;
}

.news-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    padding: 20px 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    min-height: 120px;
}

.news-item:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
}

.news-item-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 13px;
}

.news-item-category {
    display: inline-block;
    background-color: #e6f7ff; /* 浅蓝色背景 */
    color: #1890ff !important; /* 蓝色文字 */
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: auto; /* 确保靠右对齐 */
    flex-shrink: 0; /* 防止被压缩 */
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #fff;
    color: #555;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.active {
    background-color: #3498db; /* 现代亮蓝色 */
    color: #fff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* 新闻详情页样式 */
.news-detail-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-detail-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.news-detail-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    text-align: center;
}


.news-detail-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.news-detail-meta {
    color: #888;
    font-size: 14px;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.news-detail-meta span {
    display: inline-block;
    margin: 0 10px;
}

.news-detail-content {
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.news-detail-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.prev-news, .next-news {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prev-news:hover, .next-news:hover {
    color: #000080; /* 海军蓝 */
}

.news-detail-back {
    text-align: center;
    margin-top: 30px;
}

.back-to-list {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000080; /* 海军蓝 */
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-to-list:hover {
    background-color: #00005a;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-content {
        flex-direction: column;
    }
    
    .news-categories {
        flex: none;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .news-detail-container {
        padding: 30px;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .news-section,
    .news-detail-section {
        padding: 40px 15px;
    }
    
    .news-title {
        font-size: 28px;
    }
    
    .news-sub-title {
        font-size: 16px;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-detail-container {
        padding: 20px;
    }
    
    .news-detail-navigation {
        gap: 10px;
        padding: 15px 0;
    }
    
    .prev-news, .next-news {
        max-width: 40%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-section,
    .news-detail-section {
        padding: 30px 10px;
    }
    
    .news-title {
        font-size: 24px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-link {
        margin: 0 5px;
        padding: 6px 12px;
        font-size: 14px;
    }

    .pagination {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        padding: 10px;
    }
}