.notifications-container { padding: 20px; } .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid #e3e3e3; padding-bottom: 15px; } .notification-actions { display: flex; gap: 10px; } .filter-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #dee2e6; } .filter-tab { padding: 10px 20px; color: #495057; text-decoration: none; border-bottom: 2px solid transparent; font-weight: 500; } .filter-tab:hover { color: #007bff; text-decoration: none; } .filter-tab.active { color: #007bff; border-bottom-color: #007bff; } .notifications-list { margin-top: 20px; } .notification-card { background-color: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); padding: 20px; margin-bottom: 15px; transition: transform 0.2s, box-shadow 0.2s; } .notification-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .notification-card.unread { border-left: 4px solid #007bff; background-color: #f8fbff; } .notification-title { display: flex; align-items: center; margin-top: 0; margin-bottom: 10px; font-size: 1.2rem; } .notification-title a { color: #333; text-decoration: none; } .notification-title a:hover { color: #007bff; } .unread-badge { background-color: #007bff; color: white; font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; margin-left: 10px; } .notification-text { color: #495057; margin-bottom: 15px; line-height: 1.5; } .notification-meta { display: flex; justify-content: space-between; color: #6c757d; font-size: 0.85rem; } .notification-type { background-color: #f1f1f1; padding: 2px 8px; border-radius: 4px; } .no-records { text-align: center; padding: 50px 20px; background-color: #f8f9fa; border-radius: 8px; color: #6c757d; } .no-records i { font-size: 3rem; margin-bottom: 15px; } .no-records p { font-size: 1.2rem; } /* 通知下拉菜单样式 */ .notification-dropdown { width: 320px; padding: 0; max-height: 400px; overflow-y: auto; } .notification-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; } .mark-all-read { font-size: 0.8rem; color: #007bff; } .notification-items { max-height: 300px; overflow-y: auto; } .notification-item { padding: 10px 15px; border-bottom: 1px solid #f1f1f1; } .notification-item.unread { background-color: #f8fbff; } .notification-content h6 { margin-bottom: 5px; font-size: 0.9rem; } .notification-text { font-size: 0.8rem; color: #6c757d; margin-bottom: 5px; } .notification-time { font-size: 0.75rem; color: #999; } .view-all { text-align: center; font-weight: 500; } .no-notifications { padding: 20px; text-align: center; color: #6c757d; }