/* 全局顶部导航栏样式 */

.nav-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* 余额显示 */
.nav-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-balance:hover {
    background: rgba(255,255,255,0.1);
}

.balance-label {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1;
}

.balance-amount {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    line-height: 1.2;
}

/* 充值按钮 */
.nav-recharge-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-recharge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* 通知铃铛 */
.nav-notification {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    color: #94a3b8;
}

.nav-notification:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 通知面板 */
.notification-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 360px;
    max-height: 500px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 10000;
    overflow-y: auto;
    display: none;
}

.notification-panel.active {
    display: block;
}

.notification-loading,
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255,255,255,0.05);
}

.notification-item.unread {
    border-left: 3px solid #3b82f6;
}

.notification-title {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.notification-content {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: #64748b;
}

/* 用户下拉菜单优化 */
.user-dropdown-menu {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-role {
    font-size: 12px;
    color: #64748b;
}

.dropdown-item {
    padding: 10px 16px;
    color: #e2e8f0;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.05);
}

.dropdown-item-danger {
    color: #ef4444;
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}
