.toggle-notify {
    position: relative;
}

.notify-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 14px;
    height: 14px;
    padding: 0;
    background: #f44336;
    color: white;
    border-radius: 50%;
    font-size: 9px;
    line-height: 14px;
    text-align: center;
    font-weight: 500;
    border: 1.5px solid #fff;
    box-sizing: content-box;
}

/* 通知下拉菜单 */
.notification-dropdown {
    position: absolute;
    top: calc(100% - 5px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e6f0ff;
}

.notification-item a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.no-notification {
    padding: 32px 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* 站点公告样式 */
.notification-item.site-notice {
    padding: 16px;
}

.notification-item.site-notice .notify-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.notification-item.site-notice .notify-content div {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

/* 暗色主题支持 */
.dark .notification-dropdown {
    background: #2c2c2c;
    border-color: #3a3a3a;
}

.dark .notification-header {
    background: #2c2c2c;
    border-color: #3a3a3a;
    color: #fff;
}

.dark .notification-item {
    border-color: #3a3a3a;
}

.dark .notification-item:hover {
    background: #333;
}

.dark .notification-item.unread {
    background: #2d3748;
}

.dark .notification-item.unread:hover {
    background: #2d3748;
}

.dark .notification-item a {
    color: #fff;
}

.dark .notification-time {
    color: #888;
}

.dark .notification-item.site-notice .notify-content h3 {
    color: #fff;
}

.dark .notification-item.site-notice .notify-content div {
    color: #888;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}