/* 特殊公告导航链接 - 金色醒目样式 */

/* 匹配包含 announcements.php 的 onclick 属性 */
.nav-link.nl-m-top[onclick*="announcements.php"] {
    background: linear-gradient(45deg, #ffd700, #ff8c00) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 600 !important;
}

.nav-link.nl-m-top[onclick*="announcements.php"]:hover {
    background: linear-gradient(45deg, #ffed4e, #ffa500) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 图标也用金色 */
.nav-link.nl-m-top[onclick*="announcements.php"] i {
    background: linear-gradient(45deg, #ffd700, #ff8c00) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: shake 2s infinite;
}

.nav-link.nl-m-top[onclick*="announcements.php"]:hover i {
    background: linear-gradient(45deg, #ffed4e, #ffa500) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 图标摇摆动画 */
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-3deg); }
    20%, 40%, 60%, 80% { transform: rotate(3deg); }
}
