/* 新闻列表页面专用样式 */
.breadcrumb {
    padding: 10px 15px;
    background: white;
    font-size: 14px;
    color: #666;
    border-left: 5px solid #aa0000;
}

.breadcrumb a {
    color: #0379dd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #0379dd;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #0268c2;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

/* 加载指示器 */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden; /* 防止侧边栏内容溢出 */
}

/* 最新新闻容器 - 修复横向撑开问题 */
#latest-news {
    width: 100%; /* 确保宽度100% */
    overflow: hidden; /* 隐藏横向溢出 */
}

#latest-news .news-item {
    width: 100%; /* 确保宽度100% */
    box-sizing: border-box; /* 包含内边距和边框 */
    overflow: hidden; /* 隐藏溢出内容 */
}

#latest-news .news-item a {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap; /* 单行显示 */
    text-overflow: ellipsis; /* 超出显示省略号 */
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 图片新闻网格 */
.image-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
    width: 100%; /* 确保宽度100% */
    box-sizing: border-box; /* 包含内边距 */
}

.image-news-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: white;
    width: 100%; /* 确保宽度100% */
    box-sizing: border-box; /* 包含内边距和边框 */
}

.image-news-img-container {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.image-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-news-item:hover .image-news-img {
    transform: scale(1.05);
}

.image-news-title {
    padding: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制最多2行 */
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
    word-break: break-word; /* 允许单词断行 */
    overflow-wrap: break-word; /* 允许单词内断行 */
}

/* 分类导航激活状态 */
.emoji-nav-item.active {
    background: linear-gradient(90deg, rgba(0, 64, 128, 0.1) 0%, rgba(0, 64, 128, 0.05) 100%);
}

.emoji-nav-item.active .emoji-nav-text {
    color: #0379dd;
    font-weight: bold;
}

.emoji-nav-item.active .emoji-nav-arrow {
    color: #0379dd;
}

/* 分类导航容器 */
.emoji-nav-container {
    width: 100%;
    overflow: hidden; /* 防止横向溢出 */
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-two-columns-2-1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: -1;
    }
    
    .image-news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .image-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pagination {
        gap: 10px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        min-width: 70px;
        font-size: 13px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
    
    /* 在小屏幕上，确保最新新闻标题更小 */
    #latest-news .news-item a {
        font-size: 12.5px;
    }
    
    .image-news-title {
        font-size: 12.5px;
        height: 34px;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .image-news-grid {
        grid-template-columns: 1fr;
    }
    
    .image-news-img-container {
        height: 120px;
    }
    
    #latest-news .news-item a {
        font-size: 12px;
    }
    
    .image-news-title {
        font-size: 12px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-btn {
        width: 100%;
    }
    
    #latest-news .news-item a {
        font-size: 11.5px;
    }
}