/* 新闻列表页面样式 */
body {
    margin: 0;
}

/* 页面容器 */
.wrap {
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #666;
}

.breadcrumb span {
    color: #333;
}

.breadcrumb span:first-child {
    color: #67a8c8;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 左侧新闻列表容器 */
.news-list-container {
    flex: 1;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 新闻列表 */
.news-list {
    padding: 0;
}

/* 新闻项目 */
.news-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f9f9f9;
}

/* 带图片的新闻项目 */
.news-item-with-image {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-image {
    flex-shrink: 0;
    width: 250px;
    height: 170px;
    overflow: hidden;
    border-radius: 5px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

/* 纯文字新闻项目 */
.news-item-text-only .news-content {
    width: 100%;
}

/* 新闻内容 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.news-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #67a8c8;
}

.news-summary {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-time {
    color: #999;
    font-size: 14px;
}

.news-detail {
    color: #f1c582;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
}

.news-detail:hover {
    color: #2c5aa0;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
    border-top: 1px solid #f0f0f0;
}

.page-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #67a8c8;
    color: #fff;
    border-color: #67a8c8;
}

#page .pagination .active span{
    background-color: #67a8c8;
    color: #fff;
    border-color: #67a8c8;
}

.page-btn.active {
    background: #67a8c8;
    color: #fff;
    border-color: #67a8c8;
}

.page-ellipsis {
    color: #999;
    padding: 0 5px;
}

.page-info {
    color: #666;
    margin-left: 20px;
}

.page-input {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    margin: 0 10px;
}

.page-go-btn {
    padding: 6px 15px;
    background: #67a8c8;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-go-btn:hover {
    background: #2c5aa0;
}

/* 右侧侧边栏 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-title {
    color: #67a8c8;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
    position: relative;
    padding-left: 25px;
}

.sidebar-list li::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #67a8c8;
    border-radius: 50%;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li:hover {
    background: #f9f9f9;
}

.sidebar-list a {
    display: -webkit-box;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    -webkit-line-clamp: 1;
    letter-spacing: 1px;
    -webkit-box-orient: vertical;
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
}

.sidebar-list a:hover {
    color: #67a8c8;
}