James Bond seems to have become a problem. Obviously, a literary character that generates billions of dollars over more than six decades is not the worst sort of problem to have, but he presents a problem all the same. Since the death of Ian Fleming in 1964, Bond has passed through the hands of numerous authors – four of them since 2008. Sebastian Faulks, Jeffery Deaver and William Boyd wrote a single novel each, and now we get Trigger Mortis, Anthony Horowitz’s attempt at reviving the cold war relic. The truth is that, payday aside, stepping into Fleming’s blade-heeled brogues seems a thankless business. It’s not that Fleming is exactly inimitable, but the parts of his style that are easy to pastiche are also intolerably obnoxious, while the things that are worth copying are as elusive as they are distinctive.

It’s a literary cliche to acknowledge that Fleming was a sadist, a racist and a misogynist, and there is nothing covert about the viciousness that infuses Bond’s world. Women are bitches, anyone non-white and non-anglophone is definitively subhuman, and torture is lingering and explicitly erotic. A modern Bond-chronicler could copy these things and create a distinctively Flemingish fiction, but also one that would repulse all but the most unapologetic Ukipper. Yet even with all his brutishness, Fleming was a gifted and striking prose stylist. Within the first three pages of Casino Royale, you know everything you need to know about Bond and his universe, a headrush-inducing gasp of smoke and sleaze and ambiguity that makes you long for another poisoned drag.

Horowitz’s job, then, is both simple and borderline impossible: do Bond exactly the same, and make it different. There are two things that give Trigger Mortis a leg-up. First, Horowitz has already proved his feel for Fleming with the Alex Rider series, which consciously updates the Bond mythos for the 21st century. (Occasionally, it tests the line between tribute and straight-up borrowing: Stormbreaker, for example, is a Moonraker-ish jaunt featuring a villain with Hugo Drax’s inferiority complex and Le Chiffre’s eyes, topped off with a last-second salvation for the hero that matches Bond’s reprieve from Soviet counterintelligence agency SMERSH in Casino Royale.) Second, Trigger Mortismakes use of previously unpublished material by Fleming (a treatment for an episode of a Bond TV series that was never made), and follows on directly from Goldfinger – we get a continuation of Bond’s relationship with Pussy Galore.

When it comes, the Fleming chapter slips in almost seamlessly, a testament to how attentive Horowitz has been to his master’s style. He delivers the tersely precise prose that makes Bond so compelling, but more than that, he also supplies touches of Fleming’s cruel poetry: a Maserati engine sounds like “a vast sheet of calico endlessly torn”, the burnt-out scene of a murder is “a black, ugly advertisement for hatred, violence and desperation”, and the Nürburgring race track (the plot has Bond going undercover as a playboy racing driver) is “a long, green scream”. I suspect that the latter is an original Flemingism, but it is notable that it doesn’t stand out, although sadly the lumpen pun of the title does. Horowitz also shares Fleming’s pleasure in real-world detail: engine specs, firearms models and contemporary news stories are all lovingly incorporated. And Jason Sin is a worthy entry to the pantheon of Bond villains, with his malevolent bent for gambling with others’ lives.

As long as Trigger Mortis follows the contours established by Fleming, it’s a brisk and effective ride. The problems arise when Horowitz deviates from the model. For example, the return of Pussy Galore may be a banker for the dust jacket, but Bond rarely went in for long-term relationships and she is also a deeply difficult character to revive for a modern audience: a lesbian gang boss who is turned by Bond (having never met a “real man” before), and who reveals in pillow talk that she is the victim of incestuous child sexual abuse. It’s to Horowitz’s credit that he brings her back as something like a three-dimensional woman, giving her an arc that surpasses Bond’s hackneyed Freudian masculinity. On the other hand, that arc takes up fully the first quarter of the book, which feels like a long time to defer the thrills of a thriller in order to make a joke at the hero’s expense, however gratifying the punchline.

And then there’s Bond himself, who is curiously not quite Bond. He’s still a sexist and a xenophobe, although the narrator no longer endorses this chauvinism. But this Bond is uncharacteristically cultured: he has a habit of literary allusion that suggests a sudden personality change, and when he notes a young woman’s resemblance to Jean Seberg, the implied vision of Bond taking time out from double-O duties to catch a screening of Otto Preminger’s Saint Joan, the only film she’d made in 1957, when the book is set, is almost unbearably funny. Even weirder, this Bond has qualms about killing – not the after-the-fact ruefulness on show at the beginning of Goldfinger, but a genuine respect for human life that intercedes in acts of violence. As revolting as Fleming’s hero is, I prefer the Bond who squirts Oddjob out of a plane window like toothpaste to this merciful, interior-monologuing shadow. Horowitz certainly comes closer than most to solving the Bond conundrum, but Trigger Mortis is in many ways inferior to the Alex Riders as Fleming fan service. The insoluble problem with Bond, in the end, is Bond.