/* 新闻项样式 - 水平布局，左侧图片，右侧内容 */
.news-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    flex-direction: row;
}
.search-btn{
    background:#1b2f41;
    color:#fff;
    padding:12px;
    border-top-right-radius: 4px;    /* 左上角圆角 */
    border-bottom-right-radius: 4px;
    right: 0px;
}
.news-item:last-child {
    border-bottom: none;
}
.search-box input {
    padding: 12px 20px 12px 15px;
    border-radius: 4px;
}
/* 左侧图片区域 */
.news-image {
    flex: 0 0 120px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 20px;
    background-color: #f5f5f5;
    flex-shrink: 0;
    margin-top: 20px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧内容区域 */
.news-content {
    flex: 1;
}

/* 新闻头部：标题 + 标签 */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid blue;
}
.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    margin-right: 10px; /* 与标签之间留有间隙 */
}

.category-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #1b2f41;
    color: white;
    font-size: 12px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* 新闻简述 */
.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻底部：日期 + 阅读更多 */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.news-date {
    color: #666;
    font-size: 14px;
}

.read-more {
    display: inline-block;
    color: #1b2f41;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #e60012;
    text-decoration: underline;
}

/* 响应式调整 - 小屏幕设备 */
@media (max-width: 768px) {
    .category-tabs{
        margin:0 auto;
    }
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 100%;
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-badge {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .news-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .news-date {
        order: 2;
    }
    
    .read-more {
        order: 1;
        margin-bottom: 5px;
    }
}