/* components/announcement-modal.css */
/* 公告弹窗样式 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.announcement-modal .modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.announcement-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.announcement-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.announcement-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.announcement-modal .close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.announcement-modal .modal-body {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.announcement-modal .modal-footer {
    text-align: right;
}

.announcement-modal .confirm-btn {
    background-color: #409eff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.announcement-modal .confirm-btn:hover {
    background-color: #66b1ff;
}

/* 悬浮铃铛样式 */
.announcement-bell {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.announcement-bell .bell-btn {
    background-color: rgba(64, 158, 255, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.announcement-bell .bell-btn:hover {
    background-color: rgba(102, 177, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
}

.announcement-bell .bell-btn svg {
    width: 24px;
    height: 24px;
}

.announcement-bell .bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #f56c6c;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .announcement-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .announcement-bell {
        bottom: 20px;
        right: 20px;
    }
    
    .announcement-bell .bell-btn {
        width: 50px;
        height: 50px;
    }
    
    .announcement-bell .bell-btn svg {
        width: 20px;
        height: 20px;
    }
}