/* announcement.css */
/* 弹窗样式 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.announcement-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
}

.announcement-close {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0; /* 使关闭按钮居中 */
}

/* 公告按钮 */
#showAnnouncementsBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: #2196F3;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 公告列表样式 */
.announcement-box ul {
    list-style: none;
    padding: 0;
}

.announcement-box li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between; /* 使标题和按钮分居两侧 */
    align-items: center;
}

.announcement-box li > div {
    flex-grow: 1; /* 让标题部分占据剩余空间 */
}

.announcement-box li button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px; /* 添加左边距 */
}

/* 日期样式 */
.announcement-box li small {
    display: block;
    color: #666;
    font-size: 0.8em;
    margin-top: 3px;
}