/* ========================================
   通知图标 - 小蜜阅读现代化重新设计
   温暖金色主题，蜂巢风格
   ======================================== */

/* ===== 1. 通知按钮 - 金色渐变主题 ===== */
.notification-btn {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    overflow: visible !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    margin-top: 4px !important;
    backdrop-filter: blur(10px) !important;
}

/* 内部光晕效果 */
.notification-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.notification-btn:hover::before {
    opacity: 1 !important;
}

/* 悬停效果 - 提升层次感 */
.notification-btn:hover {
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%) !important;
}

/* 点击效果 */
.notification-btn:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.4) !important;
}

/* 铃铛图标样式 */
.notification-btn i {
    font-size: 18px !important;
    transition: all 0.4s ease !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 悬停时铃铛摇晃动画 */
.notification-btn:hover i {
    animation: bell-ring 0.6s ease-in-out !important;
}

@keyframes bell-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-15deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(15deg);
    }
}

/* ===== 2. 通知红点徽章 - 跳动效果 ===== */
.notification-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    background: linear-gradient(135deg, #FF4444 0%, #FF6B6B 100%) !important;
    border-radius: 11px !important;
    font-size: 11px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5), 0 0 10px rgba(255, 68, 68, 0.3) !important;
    animation: badge-pulse 2s ease-in-out infinite !important;
    z-index: 100 !important;
    line-height: 1 !important;
    text-align: center !important;
}

/* 红点脉冲动画 */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.5), 0 0 10px rgba(255, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 6px 16px rgba(255, 68, 68, 0.7), 0 0 15px rgba(255, 68, 68, 0.5);
    }
}

/* 红点呼吸光晕效果 */
.notification-badge::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 68, 68, 0.4) !important;
    border-radius: 50% !important;
    animation: badge-ripple 2s ease-out infinite !important;
    z-index: -1 !important;
}

@keyframes badge-ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* ===== 3. 通知面板 - 现代化卡片设计 ===== */
.notification-panel {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 12px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 184, 0, 0.1) !important;
    border: none !important;
    width: 360px !important;
    max-height: 480px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-15px) scale(0.95) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1003 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    overflow: hidden !important;
}

/* 面板顶部小三角 */
.notification-panel::before {
    content: '' !important;
    position: absolute !important;
    top: -8px !important;
    right: 22px !important;
    width: 16px !important;
    height: 16px !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border: none !important;
    transform: rotate(45deg) !important;
    border-radius: 3px 0 0 0 !important;
    box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05) !important;
}

/* 激活状态 */
.notification-panel.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* ===== 4. 通知面板头部 - 金色渐变 ===== */
.notification-header {
    padding: 20px 24px !important;
    border-bottom: 1px solid rgba(255, 184, 0, 0.1) !important;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
}

.notification-header h3 {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.notification-header h3::before {
    content: '🔔' !important;
    font-size: 18px !important;
}

/* ===== 5. 通知列表 - 优化滚动条 ===== */
.notification-list {
    max-height: 360px !important;
    overflow-y: auto !important;
    padding: 12px !important;
}

/* 美化滚动条 */
.notification-list::-webkit-scrollbar {
    width: 6px !important;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03) !important;
    border-radius: 3px !important;
}

.notification-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    border-radius: 3px !important;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF6347 100%) !important;
}

/* ===== 6. 通知项 - 现代卡片式 ===== */
.notification-item {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-left: 3px solid transparent !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
}

.notification-item:hover {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 100%) !important;
    border-left-color: #FFB800 !important;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.2) !important;
    transform: translateX(5px) !important;
}

/* 未读消息样式 */
.notification-item.unread {
    background: linear-gradient(135deg, #FFF8DC 0%, #FFE4B5 100%) !important;
    border-left-color: #FFB800 !important;
    box-shadow: 0 3px 10px rgba(255, 165, 0, 0.15) !important;
}

/* 未读红点 */
.notification-item.unread::after {
    content: '' !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 10px !important;
    height: 10px !important;
    background: linear-gradient(135deg, #FF4444 0%, #FF6B6B 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4) !important;
    animation: unread-blink 2s ease-in-out infinite !important;
}

@keyframes unread-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 通知标题 */
.notification-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
}

/* 通知内容 */
.notification-message {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.5 !important;
}

/* 通知时间 */
.notification-time {
    font-size: 11px !important;
    color: #999 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.notification-time::before {
    content: '🕐' !important;
    font-size: 12px !important;
}

/* ===== 7. 空状态 - 友好提示 ===== */
.notification-empty {
    text-align: center !important;
    padding: 60px 30px !important;
    color: #999 !important;
    font-size: 14px !important;
}

.notification-empty i {
    font-size: 48px !important;
    margin-bottom: 16px !important;
    color: #FFB800 !important;
    opacity: 0.5 !important;
}

.notification-empty p {
    margin: 8px 0 0 0 !important;
    color: #999 !important;
    font-weight: 500 !important;
}

/* ===== 8. 响应式设计 ===== */
@media (max-width: 768px) {
    .notification-btn {
        width: 38px !important;
        height: 38px !important;
        margin-right: 8px !important;
        margin-top: 3px !important;
    }
    
    .notification-btn i {
        font-size: 16px !important;
    }
    
    .notification-badge {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        font-size: 10px !important;
        border-width: 2px !important;
        top: -4px !important;
        right: -4px !important;
    }
    
    .notification-panel {
        width: 320px !important;
        right: -10px !important;
        max-height: 420px !important;
    }
    
    .notification-panel::before {
        right: 28px !important;
    }
    
    .notification-list {
        max-height: 320px !important;
    }
}

@media (max-width: 480px) {
    .notification-btn {
        width: 36px !important;
        height: 36px !important;
        margin-left: 6px !important;
        margin-right: 6px !important;
        margin-top: 2px !important;
    }
    
    .notification-btn i {
        font-size: 15px !important;
    }
    
    .notification-badge {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        font-size: 9px !important;
        top: -3px !important;
        right: -3px !important;
    }
    
    .notification-panel {
        width: 290px !important;
        right: -20px !important;
        max-height: 380px !important;
        border-radius: 16px !important;
    }
    
    .notification-header {
        padding: 16px 20px !important;
    }
    
    .notification-header h3 {
        font-size: 16px !important;
    }
    
    .notification-list {
        max-height: 280px !important;
        padding: 10px !important;
    }
    
    .notification-item {
        padding: 12px 14px !important;
        margin-bottom: 6px !important;
    }
}

/* ===== 9. 辅助功能 ===== */
.notification-btn:focus {
    outline: 3px solid rgba(255, 215, 0, 0.3) !important;
    outline-offset: 3px !important;
}

/* ===== 10. 暗色模式支持（预留） ===== */
@media (prefers-color-scheme: dark) {
    .notification-panel {
        background: rgba(30, 30, 30, 0.98) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 184, 0, 0.2) !important;
    }
    
    .notification-item {
        background: rgba(40, 40, 40, 0.8) !important;
    }
    
    .notification-item:hover {
        background: rgba(50, 50, 50, 0.9) !important;
    }
    
    .notification-title {
        color: #ffffff !important;
    }
    
    .notification-message {
        color: #cccccc !important;
    }
    
    .notification-time {
        color: #999999 !important;
    }
}

/* ===== 11. 打印样式 ===== */
@media print {
    .notification-btn,
    .notification-panel {
        display: none !important;
    }
}

