/* 用户信息区域样式 */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 通知下拉面板的定位锚点：面板 top:100% 即面包屑行正下方 */
    position: relative;
}

/* 通知和用户信息容器 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 通知铃铛 */
.notification-bell {
    position: relative;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.notification-bell:hover {
    background-color: #f5f7fa;
}

.notification-bell .icon-svg,
.notification-bell .bell-icon {
    width: 20px;
    height: 20px;
    filter: grayscale(100%);
}

.notification-bell .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background-color: #dc3545;
    border-radius: 8px;
}

.notification-bell .badge:empty,
.notification-bell .badge[data-count="0"] {
    display: none;
}

/* 通知下拉菜单 */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    width: 320px;
    max-height: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.notification-header .mark-all-read {
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
}

.notification-header .mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #f0f7ff;
}

.notification-item.unread:hover {
    background-color: #e6f0ff;
}

.notification-item .notification-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.notification-item .notification-content {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-item .notification-time {
    font-size: 11px;
    color: #999;
}

.notification-empty {
    padding: 40px 16px;
    text-align: center;
    color: #999;
}

.notification-empty .empty-icon,
.notification-empty span {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    display: block;
    filter: grayscale(100%);
    opacity: 0.5;
}

.notification-empty p {
    margin: 0;
    font-size: 13px;
}

/* 用户信息区域 */
.user-area {
    position: relative;
}

.user-info-dropdown {
    position: relative;
}

.user-info-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #555;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.user-info-trigger:hover {
    border-color: #ccc;
    background-color: #fafafa;
}

.user-info-trigger .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.user-info-trigger .user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.user-info-trigger .user-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.user-info-trigger .arrow-icon {
    width: 14px;
    height: 14px;
    filter: grayscale(100%);
}

.user-info-dropdown.active .arrow-icon {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    padding: 6px 0;
    border: 1px solid #eee;
}

.user-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 10px 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f7fa;
    color: #007bff;
}

.dropdown-item .menu-icon {
    width: 16px;
    height: 16px;
    filter: grayscale(100%);
}

.dropdown-item:hover .menu-icon {
    filter: none;
}

.dropdown-item span {
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 6px 0;
}

.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

/* 个人信息弹窗样式 */
.profile-info {
    padding: 10px 0;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item label {
    width: 100px;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
}

.profile-item span {
    flex: 1;
    color: #333;
}

/* 面包屑图标 */
.breadcrumb-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    filter: grayscale(100%);
}

/* 品牌图标 */
.brand-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    filter: grayscale(100%);
}
