Taxation - Components of deferred tax assets (liabilities) (Details) - CNY (¥) ¥ in Thousands |
Dec. 31, 2025 |
Dec. 31, 2024 |
Dec. 31, 2023 |
|---|---|---|---|
| Deferred tax assets: | |||
| Net operating loss carryforwards | ¥ 2,102,111 | ¥ 1,564,993 | |
| Warranty reserves | 1,917,812 | 1,397,501 | |
| Others | 413,950 | 378,106 | |
| Total deferred tax assets | 4,433,873 | 3,340,600 | |
| Less: Valuation allowance | (876,765) | (381,506) | ¥ (299,355) |
| Deferred tax assets, net of valuation allowance | 3,557,108 | 2,959,094 | |
| Deferred tax liabilities: | |||
| Accelerated tax depreciation and others | (909,589) | (1,264,976) | |
| Fair value change of certain investments | (4,965) | (16,937) | |
| Total deferred tax liabilities | (914,554) | (1,281,913) | |
| Deferred tax assets, net | ¥ 2,642,554 | ¥ 1,677,181 |
| X | ||||||||||
- Definition Amount of deferred tax liability attributable to taxable temporary differences from accelerated tax depreciation and others. No definition available.
|
| X | ||||||||||
- Definition Amount of deferred tax liability attributable to taxable temporary differences. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after allocation of valuation allowances and deferred tax liability, of deferred tax asset attributable to deductible differences and carryforwards, without jurisdictional netting. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from warranty reserves. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of deferred tax liability attributable to taxable temporary differences from investments (excludes investments in subsidiaries and equity method investments). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|