Fair value measurements - Additional Information (Details) - CNY (¥) ¥ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2024 |
Dec. 31, 2023 |
Dec. 31, 2022 |
|
| Fair value measurements | |||
| Credit impairment related to available-for-sale debt investments | ¥ 66,339 | ¥ 14,987 | |
| Non-credit losses | (79,119) | (20,824) | |
| Gain on fair value changes of investment | 0 | 0 | |
| Impairment loss of investments | 166,127 | 210,813 | ¥ 55,201 |
| Fair Value, Inputs, Level 3 | Impaired Investments | |||
| Fair value measurements | |||
| Equity securities without readily determinable fair value | ¥ 15,438 | ¥ 65,936 | |
| X | ||||||||||
- Definition Amount of expense for credit impairment on available-for-sale debt investments. No definition available.
|
| X | ||||||||||
- Definition Amount of non-credit losses on available-for-sale debt investments, which was reported in other comprehensive income (loss). No definition available.
|
| X | ||||||||||
- Definition Amount of investment in equity security without readily determinable fair value. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of impairment loss on investment in equity security without readily determinable fair value. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition For each line item in the statement of financial position, the amounts of gains and losses from fair value changes included in earnings. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|