.notice-main-wrap {

    margin: 0 auto;
    padding: 0 12px 36px 12px;
    max-width: 1366px;
    padding-top: 65px;
}

.news-main-wrap {
    max-width: 1366px;
    margin: 0 auto;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-bottom: 8px;
}

.news-card,
.course-card,
.recommend-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #eee;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card,
.course-card,
.share-card,
.teacher-card,
.recommend-card {
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-card .img,
.course-card .img,
.recommend-card .img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.news-card .img img,
.course-card .img img,
.recommend-card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card .tag,
.recommend-card .tag {
    display: flex;
    background: #b700ff;
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 2px 10px;
    margin-bottom: 6px;
}

.news-card .tag.blue,
.recommend-card .tag.blue {
    background: #4fc3f7;
}

.news-card .tag.green,
.recommend-card .tag.green {
    background: #7ed957;
}

.news-card .date,
.recommend-card .date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 6px;
    margin-left: auto;
}

.news-card .title,
.recommend-card .title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.news-card .desc,
.recommend-card .desc {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 4px;
}

.notice-title-bar {
    background: linear-gradient(90deg, #b700ff 0%, #a6a1ff 100%);
    color: #fff;
    padding: 32px 24px 18px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.notice-title-bar small {
    display: block;
    font-size: 1.1rem;
    margin-top: 6px;
    opacity: 0.9;
    font-weight: normal;
}

.notice-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.notice-filter-btn {
    background: #f3e6ff;
    color: #b700ff;
    border: none;
    border-radius: 18px;
    padding: 8px 22px;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.notice-filter-btn.active,
.notice-filter-btn:hover {
    background: #b700ff;
    color: #fff;
}

.notice-search-bar {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 8px #eee;
    padding: 2px 8px 2px 16px;
    min-width: 280px;
    flex: 1;
    max-width: 420px;
    box-sizing: border-box;
    overflow: hidden;
}

.notice-search-bar input {
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    padding: 8px 0;
    flex: 1;
    min-width: 0;
}

.notice-search-bar button {
    background: #b700ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    margin-left: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.notice-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 18px;
    margin-bottom: 32px;
}

.notice-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #eee;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.notice-card .img {
    width: 100%;
    height: 120px;
    background: #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
}

.notice-card .tag {
    display: inline-block;
    background: #b700ff;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 2px 12px;
    margin-bottom: 6px;
}

.notice-card .tag.blue {
    background: #4fc3f7;
}

.notice-card .tag.purple {
    background: #b700ff;
}

.notice-card .tag.green {
    background: #7ed957;
}

.notice-card .date {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 6px;
    margin-left: auto;
}

.notice-card .title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
}

.notice-card .desc {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 4px;
}

.notice-more-bar {
    text-align: center;
    margin: 32px 0 0 0;
}

.notice-more-btn {
    background: #b700ff;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 48px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.notice-more-btn:hover {
    background: #a100e6;
}

@media (max-width: 900px) {

    .notice-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .notice-search-bar {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        max-width: 100%;
    }

    .notice-search-bar input {
        width: 100%;
    }

    .notice-search-bar button {
        margin-left: 6px;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-card {
        padding: 14px;
    }

    .news-card .img,
    .course-card .img,
    .recommend-card .img {
        height: 200px;
    }

    .notice-main-wrap {
        padding: 0 12px 24px 12px;
    }

    .notice-title-bar {
        padding: 95px 18px 16px 18px;
    }

    .notice-filter-btn {
        width: 100%;
        text-align: center;
    }

    .news-card .img img {
        /* height: 200px; */
        width: 100%;
    }
}

@media (max-width: 520px) {
    .notice-main-wrap {
        padding: 0 10px 20px 10px;
    }

    .news-card .img {
        margin-bottom: 10px;
    }

    .notice-filter-bar {
        gap: 6px;
    }

    .news-card .title {
        font-size: 1rem;
    }
}