/* 公告系统样式 */

.announcement {
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(80, 80, 80, 0.5);
    color: rgb(255, 255, 255);
    width: 30%;
    padding: 12px 16px;
    margin: 10px auto;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.5s ease-out;
    position: relative;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.announcement:hover {
    background: rgba(55, 55, 55, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(15px);
    border-color: rgba(120, 120, 120, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 公告中的链接样式 */
.announcement a {
    color: #66d9ef;
    text-decoration: underline;
    transition: all 0.3s ease;
    font-weight: 500;
}

.announcement a:hover {
    color: #00b09b;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(102, 217, 239, 0.5);
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.15);
}

/* 防止关闭按钮的悬浮影响公告栏的悬浮效果 */
.close-btn:hover + * {
    pointer-events: none;
}

/* 公告隐藏动画 */
.announcement.hide {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* 公告滑入动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
