.app-header { background: var(--header-bg); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08); height: 64px; border-bottom: 1px solid var(--border-color); color: var(--text-color); } /* 左侧区域 */ .header-left { display: flex; align-items: center; gap: 16px; } /* Logo 区域 */ .header-logo { display: flex; align-items: center; justify-content: center; width: 168px; transition: width 0.2s; } .trigger { font-size: 18px; cursor: pointer; transition: color 0.3s; padding: 8px; border-radius: 4px; color: var(--text-color-secondary); display: flex; align-items: center; } .trigger:hover { color: #1677ff; background: rgba(22, 119, 255, 0.08); } /* 右侧区域 */ .header-right { display: flex; align-items: center; gap: 16px; } .header-actions { display: flex; align-items: center; gap: 16px; } /* Icon Buttons */ .header-icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; color: var(--text-color-secondary); transition: all 0.2s; background: transparent; } .header-icon-btn:hover { background-color: var(--item-hover-bg); color: var(--text-color); } /* 通知面板样式 */ .header-notification-popover .ant-popover-inner-content { padding: 0; } .notification-popover { width: 320px; } .popover-header { padding: 12px 16px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .popover-header .title { font-weight: 600; font-size: 16px; color: var(--text-color); } .notification-list { max-height: 400px; overflow-y: auto; } .notification-item { padding: 12px 16px !important; cursor: pointer; transition: background 0.3s; background: var(--bg-color); } .notification-item:hover { background: var(--item-hover-bg); } .notification-item.unread { background: #e6f7ff; } /* Dark mode adjustment for unread */ body.dark .notification-item.unread { background: #111d2c; } .notification-item.unread:hover { background: #bae7ff; } body.dark .notification-item.unread:hover { background: #112a45; } .content-text { font-size: 13px; color: var(--text-color-secondary); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .time { font-size: 12px; color: var(--text-color-secondary); opacity: 0.8; margin-top: 4px; } .popover-footer { padding: 8px; border-top: 1px solid var(--border-color); text-align: center; }