/* 最终版公告弹窗CSS */
.announcement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    overflow: hidden;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

/* 顶部控制栏 */
.announcement-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 20px;
    background: #161616;
    position: relative;
}

.announcement-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 18px;
    margin: 0;
}

.announcement-countdown {
    font-size: 14px;
    margin-right: 15px;
    color: rgba(255,255,255,0.8);
}

.announcement-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    color: #4fc3f7;
}

/* 内容区域 - 完全居中 */
.announcement-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.announcement-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.announcement-text {
    line-height: 2;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

/* 新增：居中按钮样式 */
.announcement-link {
    display: inline-block;
    padding: 12px 30px;
    background: #1e5b96;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

.announcement-link:hover {
    background: #343434;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .announcement-popup {
        width: 90%;
    }
    .announcement-header {
        padding: 10px 15px;
    }
    .announcement-countdown {
        font-size: 12px;
        margin-right: 10px;
    }
    .announcement-close {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    .announcement-link {
        padding: 10px 25px;
        font-size: 14px;
    }
}