
.news-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 101px 20px 40px 20px;
}

.news-header {
    padding-top: 80px;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.tag-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tag-item {
    padding: 6px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    background: #fff;
}

.tag-item.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.tag-item:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.news-count {
    font-size: 14px;
    color: #999;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    width: 220px;
}

.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    overflow: hidden;
}

.news-card:hover {
    .news-title {
        color: #007aff;
    }

    img {
        transform: scale(1.08);
        transition: transform 0.3s ease; /* 添加过渡效果 */
    }
}

.news-image {
    width: 100%;
    height: 220px;
    margin-bottom: 12px;
    border-radius: 4px;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

h3, div {
    cursor: pointer;
}

.news-title {
    line-height: 32px;
    height: 64px;
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    margin-top: 16px;
    line-height: 20px;
    color: #767676;
    font-size: 14px;
}

.news-tags {
    display: flex;
    margin-top: 32px;
}

.news-tag {
    padding: 0 9px;
    height: 32px;
    line-height: 30px;
    color: #767676;
    font-size: 14px;
    border-radius: 30px;

    margin: 0 10px 8px 0;
    border: 1px solid #d9d9d9;
    background-color: #ffffff;
}

.load-more {
    display: flex;
    justify-content: end;
    margin-top: 20px;
}

.load-more-btn {
    padding: 10px 30px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    margin-left: 20px;
}

.btn_normal:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.disabled {
    cursor: not-allowed;
    background: #fff;
    color: #666;
    opacity: 0.6;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .news-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .search-input {
        width: 100%;
    }
}

@media (max-width: 1280px) {
    .news-container {
        max-width: 1280px;
    }

    .news-header {
        padding-top: 0;
        margin-bottom: 40px;
    }

    .news-header h1 {
        margin-bottom: 18px;
        color: #111111;
        font-size: 32px;
        line-height: 42px;
    }

    .news-toolbar {
        margin-bottom: 20px;
    }

    .news-count {
        color: #111111;
        font-size: 16px;
        line-height: 36px;
        font-weight: 700;
    }


    .news-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .news-card {
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .news-card:hover {
        .news-title {
            color: #007aff;
        }

        img {
            transform: scale(1);
        }
    }

    .news-image {
        height: auto;
        margin-bottom: 16px;
    }

    h3, div {
        cursor: pointer;
    }

    .news-title {
        margin-top: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 16px;
        line-height: 22px;
        height: 44px;
    }

    .news-date {
        font-size: 12px;
        line-height: 18px;
    }

    .news-tags {
        display: flex;
        margin-top: 16px;
    }

    .news-tag {
        margin: 5px 4px 5px 0;
        font-size: 12px;
        line-height: 18px;
        padding: 3px 8px;
        height: 24px;
        color: #767676;
        border-radius: 12px;
    }

    .load-more {
        display: flex;
        justify-content: end;
        margin-top: 20px;
    }

    .load-more-btn {
        padding: 10px 30px;
        border: 1px solid #d0d0d0;
        border-radius: 20px;
        background: #fff;
        cursor: pointer;
        font-size: 14px;
        color: #666;
        transition: all 0.3s;
        margin-left: 20px;
    }

    .btn_normal:hover {
        border-color: #0066cc;
        color: #0066cc;
    }

    .disabled {
        cursor: not-allowed;
        background: #fff;
        color: #666;
        opacity: 0.6;
    }

}
