/* 全局公告弹窗样式 */
.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.announcement-overlay.active {
    opacity: 1;
    visibility: visible;
}

.announcement-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.announcement-overlay.active .announcement-modal {
    transform: translateY(0);
}

.announcement-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.announcement-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
}

.announcement-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    color: #475569;
    line-height: 1.6;
}

.announcement-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}

.announcement-close {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.announcement-close:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

/* 发光 */
.announcement-modal {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 2px 2px 8px #d1d9e6,
               -2px -2px 8px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}