/* 通知公告 */

/* 公告列表卡片 */
.notice-card {
    display: block;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 24px 30px;
    margin-top: 23px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:first-child {
    margin-top: 0;
}

.notice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.notice-card-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notice-card:hover .notice-card-title {
    color: #1890ff;
}

.notice-card-date {
    margin-top: 12px;
    font-size: 14px;
    color: #999;
}

@media (max-width: 768px) {
    .notice-card {
        padding: 20px;
    }

    .notice-card-title {
        font-size: 16px;
    }
}

/* 公告详情 */
.notice-detail-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.notice-detail-title {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 16px;
}

.notice-detail-date {
    font-size: 14px;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.notice-detail-content {
    padding-top: 24px;
}

.notice-detail-content p {
    font-size: 16px;
    color: #333;
    line-height: 30px;
    margin-bottom: 20px;
}

.notice-detail-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .notice-detail-card {
        padding: 20px;
    }

    .notice-detail-title {
        font-size: 18px;
    }
}

/* 首页通知公告条 */
.notice-bar-section {
    position: relative;
    z-index: 999;
    /* 上移一半高度，压在横幅上 */
    margin-top: -32px;
}

.notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px 30px;
    text-decoration: none;
}

.notice-bar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.notice-bar-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 公告滚动区（可视高度为单条高度，多条向上切换） */
.notice-scroll {
    flex: 1;
    min-width: 0;
    height: 24px;
    overflow: hidden;
}

.notice-scroll-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notice-scroll-item {
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-scroll-item a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.notice-scroll-item a:hover {
    color: #1890ff;
}

.notice-bar-more {
    flex-shrink: 0;
    font-size: 14px;
    color: #2B6BFF;
    text-decoration: none;
    margin-left: 30px;
}

@media (max-width: 768px) {
    .notice-bar {
        padding: 15px 20px;
    }

    .notice-bar-more {
        margin-left: 15px;
    }
}
