/* 公告弹窗样式 - 高优先级显示 */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999 !important; /* 最高优先级 */
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.announcement-modal.active {
    display: flex !important;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.announcement-content {
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #1a1c2d 0%, #2d3250 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(50px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100000 !important; /* 内容也设置高优先级 */
}

.announcement-modal.active .announcement-content {
    transform: translateY(0) scale(1);
}

.announcement-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.announcement-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.announcement-body {
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
    color: #e0e0e0;
}

.announcement-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.announcement-body li {
    margin-bottom: 8px;
    position: relative;
}

.announcement-body li:before {
    content: "•";
    color: #6a11cb;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.announcement-footer {
    display: flex;
    justify-content: flex-end;
}

.announcement-button {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    position: relative;
    overflow: hidden;
}

.announcement-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.announcement-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.5);
}

.announcement-button:hover:before {
    left: 100%;
}

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

/* 确保弹窗在所有内容之上 */
.announcement-modal,
.announcement-modal * {
    box-sizing: border-box;
}

/* 覆盖可能存在的其他高z-index元素 */
body.announcement-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .announcement-content {
        padding: 20px;
        width: 85%;
        margin: 20px;
    }
    
    .announcement-title {
        font-size: 18px;
    }
    
    .announcement-body {
        font-size: 14px;
    }
    
    .announcement-button {
        padding: 10px 20px;
    }
}

/* 强制显示优先级 */
#announcementModal {
    display: none !important;
}

#announcementModal.active {
    display: flex !important;
}