<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>323</ContextCount>
  <ElementCount>528</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>115</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>1001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1002 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1003 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1004 - Statement - Consolidated Statements of Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConsolidatedStatementsOfComprehensiveLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005 - Statement - Consolidated Statements of Comprehensive Loss (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConsolidatedStatementsOfComprehensiveLossParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1006 - Statement - Consolidated Statements of Changes in Shareholders' (Deficit) Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConsolidatedStatementsOfChangesInShareholdersDeficitEquity</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' (Deficit) Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1007 - Statement - Consolidated Statements of Changes in Shareholders' (Deficit) Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConsolidatedStatementsOfChangesInShareholdersDeficitEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Changes in Shareholders' (Deficit) Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1008 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>1009 - Disclosure - Organization and Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/OrganizationAndBasisOfPresentation</Role>
      <ShortName>Organization and Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>1010 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/SummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>1011 - Disclosure - Concentration of Risks</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConcentrationOfRisks</Role>
      <ShortName>Concentration of Risks</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>1012 - Disclosure - Business Combination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/BusinessCombination</Role>
      <ShortName>Business Combination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>1013 - Disclosure - Revenues</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/Revenues</Role>
      <ShortName>Revenues</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>1014 - Disclosure - Accounts Receivable, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccountsReceivableNet</Role>
      <ShortName>Accounts Receivable, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>1015 - Disclosure - Prepayments and Other Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/PrepaymentsAndOtherAssets</Role>
      <ShortName>Prepayments and Other Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>1016 - Disclosure - Property and Equipment, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/PropertyAndEquipmentNet</Role>
      <ShortName>Property and Equipment, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>1017 - Disclosure - Intangible Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/IntangibleAssetsNet</Role>
      <ShortName>Intangible Assets, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>1018 - Disclosure - Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/Goodwill</Role>
      <ShortName>Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>1019 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>1020 - Disclosure - Accrued Expenses and Other Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilities</Role>
      <ShortName>Accrued Expenses and Other Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>1021 - Disclosure - Bank Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/BankLoans</Role>
      <ShortName>Bank Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>1022 - Disclosure - Taxation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/Taxation</Role>
      <ShortName>Taxation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>1023 - Disclosure - Convertible Preferred Shares and Redeemable Convertible Preferred Shares</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConvertiblePreferredSharesAndRedeemableConvertiblePreferredShares</Role>
      <ShortName>Convertible Preferred Shares and Redeemable Convertible Preferred Shares</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>1024 - Disclosure - Share-based Payments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPayments</Role>
      <ShortName>Share-based Payments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>1025 - Disclosure - Restricted Net Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RestrictedNetAssets</Role>
      <ShortName>Restricted Net Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>1026 - Disclosure - Loss Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/LossPerShare</Role>
      <ShortName>Loss Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>1027 - Disclosure - Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareholdersEquity</Role>
      <ShortName>Shareholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>1028 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>1029 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>1030 - Disclosure - Accumulated Other Comprehensive Income (loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLoss</Role>
      <ShortName>Accumulated Other Comprehensive Income (loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>1031 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>1032 - Disclosure - Condensed Financial Information of the Parent Company</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompany</Role>
      <ShortName>Condensed Financial Information of the Parent Company</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>1033 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>1034 - Disclosure - Organization and Basis of Presentation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/OrganizationAndBasisOfPresentationTables</Role>
      <ShortName>Organization and Basis of Presentation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/OrganizationAndBasisOfPresentation</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>1035 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/SummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>1036 - Disclosure - Business Combination (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/BusinessCombinationTables</Role>
      <ShortName>Business Combination (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/BusinessCombination</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>1037 - Disclosure - Revenues (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RevenuesTables</Role>
      <ShortName>Revenues (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/Revenues</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>1038 - Disclosure - Accounts Receivable, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccountsReceivableNetTables</Role>
      <ShortName>Accounts Receivable, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/AccountsReceivableNet</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>1039 - Disclosure - Prepayments and Other Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/PrepaymentsAndOtherAssetsTables</Role>
      <ShortName>Prepayments and Other Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/PrepaymentsAndOtherAssets</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>1040 - Disclosure - Property and Equipment, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/PropertyAndEquipmentNetTables</Role>
      <ShortName>Property and Equipment, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/PropertyAndEquipmentNet</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>1041 - Disclosure - Intangible Assets, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/IntangibleAssetsNetTables</Role>
      <ShortName>Intangible Assets, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/IntangibleAssetsNet</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>1042 - Disclosure - Goodwill (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/GoodwillTables</Role>
      <ShortName>Goodwill (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/Goodwill</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>1043 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/Leases</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>1044 - Disclosure - Accrued Expenses and Other Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilitiesTables</Role>
      <ShortName>Accrued Expenses and Other Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilities</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>1045 - Disclosure - Bank Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/BankLoansTables</Role>
      <ShortName>Bank Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/BankLoans</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>1046 - Disclosure - Taxation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/TaxationTables</Role>
      <ShortName>Taxation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/Taxation</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>1047 - Disclosure - Share-based Payments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPaymentsTables</Role>
      <ShortName>Share-based Payments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/ShareBasedPayments</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>1048 - Disclosure - Loss Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/LossPerShareTables</Role>
      <ShortName>Loss Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/LossPerShare</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>1049 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/RelatedPartyTransactions</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>1050 - Disclosure - Accumulated Other Comprehensive Income (loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Income (loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLoss</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>1051 - Disclosure - Condensed Financial Information of the Parent Company (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanyTables</Role>
      <ShortName>Condensed Financial Information of the Parent Company (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompany</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>1052 - Disclosure - Organization and Basis of Presentation - Schedule of Organization and Basis of Presentation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfOrganizationAndBasisOfPresentationDetail</Role>
      <ShortName>Organization and Basis of Presentation - Schedule of Organization and Basis of Presentation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>1053 - Disclosure - Organization and Basis of Presentation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/OrganizationAndBasisOfPresentationAdditionalInformationDetail</Role>
      <ShortName>Organization and Basis of Presentation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>1054 - Disclosure - Organization and Basis of Presentation - Schedule of Operations and Cash Flows Results of Variable Interest (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfOperationsAndCashFlowsResultsOfVariableInterestDetail</Role>
      <ShortName>Organization and Basis of Presentation - Schedule of Operations and Cash Flows Results of Variable Interest (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>1055 - Disclosure - Organization and Basis of Presentation - Schedule of Assets Liabilities Results of Variable Interest Entities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfAssetsLiabilitiesResultsOfVariableInterestEntitiesDetail</Role>
      <ShortName>Organization and Basis of Presentation - Schedule of Assets Liabilities Results of Variable Interest Entities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>1056 - Disclosure - Organization and Basis of Presentation - Schedule of Assets Liabilities Results of Variable Interest Entities (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/OrganizationAndBasisOfPresentationScheduleOfAssetsLiabilitiesResultsOfVariableInterestEntitiesParentheticalDetail</Role>
      <ShortName>Organization and Basis of Presentation - Schedule of Assets Liabilities Results of Variable Interest Entities (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>1057 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>1058 - Disclosure - Summary of Significant Accounting Policies - Schedule of Property Plant and Equipment Useful Lives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfPropertyPlantAndEquipmentUsefulLivesDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Property Plant and Equipment Useful Lives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>1059 - Disclosure - Summary of Significant Accounting Policies - Schedule of Finite Lived Intangible Assets Useful Lives (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfFiniteLivedIntangibleAssetsUsefulLivesDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Finite Lived Intangible Assets Useful Lives (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>1060 - Disclosure - Concentration of Risks - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConcentrationOfRisksAdditionalInformationDetail</Role>
      <ShortName>Concentration of Risks - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>1061 - Disclosure - Business Combination - Summary of fair value of assets acquired and liabilities assumed (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/BusinessCombinationSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetail</Role>
      <ShortName>Business Combination - Summary of fair value of assets acquired and liabilities assumed (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>1062 - Disclosure - Business Combination - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/BusinessCombinationAdditionalInformationDetail</Role>
      <ShortName>Business Combination - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>1063 - Disclosure - Revenues - Summary of Disaggregation of Revenue (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RevenuesSummaryOfDisaggregationOfRevenueDetail</Role>
      <ShortName>Revenues - Summary of Disaggregation of Revenue (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>1064 - Disclosure - Revenues - Summary of Revenue, Remaining Performance Obligation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RevenuesSummaryOfRevenueRemainingPerformanceObligationDetail</Role>
      <ShortName>Revenues - Summary of Revenue, Remaining Performance Obligation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>1065 - Disclosure - Revenues - Summary of Contract with Customer Liability Recognized (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RevenuesSummaryOfContractWithCustomerLiabilityRecognizedDetail</Role>
      <ShortName>Revenues - Summary of Contract with Customer Liability Recognized (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>1066 - Disclosure - Accounts Receivable, Net - Schedule of Accounts Receivable, Net (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccountsReceivableNetScheduleOfAccountsReceivableNetDetail</Role>
      <ShortName>Accounts Receivable, Net - Schedule of Accounts Receivable, Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>1067 - Disclosure - Accounts Receivable, Net - Schedule of the Movement in the allowance for Doubtful Accounts (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccountsReceivableNetScheduleOfTheMovementInTheAllowanceForDoubtfulAccountsDetail</Role>
      <ShortName>Accounts Receivable, Net - Schedule of the Movement in the allowance for Doubtful Accounts (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>1068 - Disclosure - Accounts Receivable, Net - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccountsReceivableNetAdditionalInformationDetail</Role>
      <ShortName>Accounts Receivable, Net - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>1069 - Disclosure - Prepayments and Other Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/PrepaymentsAndOtherAssetsAdditionalInformationDetail</Role>
      <ShortName>Prepayments and Other Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>1070 - Disclosure - Prepayments and Other Assets - Schedule of Prepayments and Other Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/PrepaymentsAndOtherAssetsScheduleOfPrepaymentsAndOtherAssetsDetail</Role>
      <ShortName>Prepayments and Other Assets - Schedule of Prepayments and Other Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>1071 - Disclosure - Property and Equipment, Net - Schedule of Property and Equipment, Net (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/PropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetail</Role>
      <ShortName>Property and Equipment, Net - Schedule of Property and Equipment, Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>1072 - Disclosure - Property and Equipment, Net - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/PropertyAndEquipmentNetAdditionalInformationDetail</Role>
      <ShortName>Property and Equipment, Net - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>1073 - Disclosure - Intangible Assets, Net - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/IntangibleAssetsNetAdditionalInformationDetail</Role>
      <ShortName>Intangible Assets, Net - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>1074 - Disclosure - Intangible Assets, Net - Schedule of Intangible Assets, Net (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/IntangibleAssetsNetScheduleOfIntangibleAssetsNetDetail</Role>
      <ShortName>Intangible Assets, Net - Schedule of Intangible Assets, Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>1075 - Disclosure - Intangible Assets, Net - Schedule of Finite-Lived Intangible Assets, Future Amortization Expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/IntangibleAssetsNetScheduleOfFiniteLivedIntangibleAssetsFutureAmortizationExpenseDetail</Role>
      <ShortName>Intangible Assets, Net - Schedule of Finite-Lived Intangible Assets, Future Amortization Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>1076 - Disclosure - Goodwill - Summary of Carrying Value of Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/GoodwillSummaryOfCarryingValueOfGoodwillDetail</Role>
      <ShortName>Goodwill - Summary of Carrying Value of Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>1077 - Disclosure - Goodwill - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/GoodwillAdditionalInformationDetail</Role>
      <ShortName>Goodwill - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>1078 - Disclosure - Leases - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/LeasesAdditionalInformationDetail</Role>
      <ShortName>Leases - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>1079 - Disclosure - Leases - Summary of Undiscounted Future Minimum Payments under the Group's Operating Lease Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/LeasesSummaryOfUndiscountedFutureMinimumPaymentsUnderTheGroupSOperatingLeaseLiabilitiesDetail</Role>
      <ShortName>Leases - Summary of Undiscounted Future Minimum Payments under the Group's Operating Lease Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>1080 - Disclosure - Accrued Expenses and Other Liabilities - Schedule of Accrued Expenses and Other Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesDetail</Role>
      <ShortName>Accrued Expenses and Other Liabilities - Schedule of Accrued Expenses and Other Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>1081 - Disclosure - Accrued Expenses and Other Liabilities - Schedule of Accrued Expenses and Other Liabilities (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesParentheticalDetail</Role>
      <ShortName>Accrued Expenses and Other Liabilities - Schedule of Accrued Expenses and Other Liabilities (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>1082 - Disclosure - Bank Loans - Schedule of Bank Loans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/BankLoansScheduleOfBankLoansDetail</Role>
      <ShortName>Bank Loans - Schedule of Bank Loans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>1083 - Disclosure - Bank Loans - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/BankLoansAdditionalInformationDetail</Role>
      <ShortName>Bank Loans - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>1084 - Disclosure - Taxation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/TaxationAdditionalInformationDetail</Role>
      <ShortName>Taxation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>1085 - Disclosure - Taxation - Schedule of Income Before Income Tax, Domestic and Foreign (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/TaxationScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignDetail</Role>
      <ShortName>Taxation - Schedule of Income Before Income Tax, Domestic and Foreign (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>1086 - Disclosure - Taxation - Schedule of Components of Income Tax Expense (Benefit) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/TaxationScheduleOfComponentsOfIncomeTaxExpenseBenefitDetail</Role>
      <ShortName>Taxation - Schedule of Components of Income Tax Expense (Benefit) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>1087 - Disclosure - Taxation - Schedule of Effective Income Tax Rate Reconciliation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/TaxationScheduleOfEffectiveIncomeTaxRateReconciliationDetail</Role>
      <ShortName>Taxation - Schedule of Effective Income Tax Rate Reconciliation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>1088 - Disclosure - Taxation - Schedule of Deferred Tax Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/TaxationScheduleOfDeferredTaxAssetsAndLiabilitiesDetail</Role>
      <ShortName>Taxation - Schedule of Deferred Tax Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>1089 - Disclosure - Taxation - Schedule of Deferred Tax Assets and Liabilities (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/TaxationScheduleOfDeferredTaxAssetsAndLiabilitiesParentheticalDetail</Role>
      <ShortName>Taxation - Schedule of Deferred Tax Assets and Liabilities (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>1090 - Disclosure - Taxation - Summary of Unrecognized Tax Benefit (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/TaxationSummaryOfUnrecognizedTaxBenefitDetail</Role>
      <ShortName>Taxation - Summary of Unrecognized Tax Benefit (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>1091 - Disclosure - Convertible Preferred Shares and Redeemable Convertible Preferred Shares - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ConvertiblePreferredSharesAndRedeemableConvertiblePreferredSharesAdditionalInformationDetail</Role>
      <ShortName>Convertible Preferred Shares and Redeemable Convertible Preferred Shares - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>1092 - Disclosure - Share-based Payments - Summary of the activity under the Share Option Scheme (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityUnderTheShareOptionSchemeDetail</Role>
      <ShortName>Share-based Payments - Summary of the activity under the Share Option Scheme (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>1093 - Disclosure - Share-based Payments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPaymentsAdditionalInformationDetail</Role>
      <ShortName>Share-based Payments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>1094 - Disclosure - Share-based Payments - Summary of the activity for the restricted shares issued under the Share Award Scheme (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityForTheRestrictedSharesIssuedUnderTheShareAwardSchemeDetail</Role>
      <ShortName>Share-based Payments - Summary of the activity for the restricted shares issued under the Share Award Scheme (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>1095 - Disclosure - Share-based Payments - Summary of the activity for the options issued under the Share Award Scheme (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfTheActivityForTheOptionsIssuedUnderTheShareAwardSchemeDetail</Role>
      <ShortName>Share-based Payments - Summary of the activity for the options issued under the Share Award Scheme (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>1096 - Disclosure - Share-based Payments - Summary of assumptions used to estimate the fair value of the share options (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfAssumptionsUsedToEstimateTheFairValueOfTheShareOptionsDetail</Role>
      <ShortName>Share-based Payments - Summary of assumptions used to estimate the fair value of the share options (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>1097 - Disclosure - Share-based Payments - Summary of acquisition date fair value of each share-based award is estimated (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfAcquisitionDateFairValueOfEachShareBasedAwardIsEstimatedDetail</Role>
      <ShortName>Share-based Payments - Summary of acquisition date fair value of each share-based award is estimated (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>1098 - Disclosure - Share-based Payments - Summary of share-based compensation expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareBasedPaymentsSummaryOfShareBasedCompensationExpenseDetail</Role>
      <ShortName>Share-based Payments - Summary of share-based compensation expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>1099 - Disclosure - Restricted Net Assets - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RestrictedNetAssetsAdditionalInformationDetail</Role>
      <ShortName>Restricted Net Assets - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>1100 - Disclosure - Loss Per Share - Summary of Earnings Per Share Basic and Diluted  (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/LossPerShareSummaryOfEarningsPerShareBasicAndDilutedDetail</Role>
      <ShortName>Loss Per Share - Summary of Earnings Per Share Basic and Diluted  (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>1101 - Disclosure - Shareholders' Equity - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/ShareholdersEquityAdditionalInformationDetail</Role>
      <ShortName>Shareholders' Equity - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>1102 - Disclosure - Related Party Transactions - Schedule Of Related Parties And Nature Of Relationship (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartiesAndNatureOfRelationshipDetail</Role>
      <ShortName>Related Party Transactions - Schedule Of Related Parties And Nature Of Relationship (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>1103 - Disclosure - Related Party Transactions - Schedule Of Related Party Transactions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyTransactionsDetail</Role>
      <ShortName>Related Party Transactions - Schedule Of Related Party Transactions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>1104 - Disclosure - Related Party Transactions - Schedule Of Related Party Transactions (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyTransactionsParentheticalDetail</Role>
      <ShortName>Related Party Transactions - Schedule Of Related Party Transactions (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>1105 - Disclosure - Related Party Transactions - Schedule Of Related Party Balances (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyBalancesDetail</Role>
      <ShortName>Related Party Transactions - Schedule Of Related Party Balances (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>1106 - Disclosure - Related Party Transactions - Schedule Of Related Party Balances (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRelatedPartyBalancesParentheticalDetail</Role>
      <ShortName>Related Party Transactions - Schedule Of Related Party Balances (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>1107 - Disclosure - Related Party Transactions - Schedule of Repayment of Related Party Loans in Fixed Quarterly Installments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/RelatedPartyTransactionsScheduleOfRepaymentOfRelatedPartyLoansInFixedQuarterlyInstallmentsDetail</Role>
      <ShortName>Related Party Transactions - Schedule of Repayment of Related Party Loans in Fixed Quarterly Installments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>1108 - Disclosure - Commitments and contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and contingencies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>1109 - Disclosure - Accumulated Other Comprehensive Income (loss) -Schedule Of Accumulated Other Comprehensive Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossScheduleOfAccumulatedOtherComprehensiveIncomeDetail</Role>
      <ShortName>Accumulated Other Comprehensive Income (loss) -Schedule Of Accumulated Other Comprehensive Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossTables</ParentRole>
      <Position>109</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>1110 - Disclosure - Accumulated Other Comprehensive Income (loss) - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossAdditionalInformationDetail</Role>
      <ShortName>Accumulated Other Comprehensive Income (loss) - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://en.ksyun.com/role/AccumulatedOtherComprehensiveIncomeLossTables</ParentRole>
      <Position>110</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>1111 - Disclosure - Subsequent Events - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/SubsequentEventsAdditionalInformationDetail</Role>
      <ShortName>Subsequent Events - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>1112 - Disclosure - Condensed Financial Information of the Parent Company - Summary of Parent Company Balance Sheet (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyBalanceSheetDetail</Role>
      <ShortName>Condensed Financial Information of the Parent Company - Summary of Parent Company Balance Sheet (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>1113 - Disclosure - Condensed Financial Information of the Parent Company - Summary of Parent Company Balance Sheet Disclosure (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyBalanceSheetDisclosureParentheticalDetail</Role>
      <ShortName>Condensed Financial Information of the Parent Company - Summary of Parent Company Balance Sheet Disclosure (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>113</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>1114 - Disclosure - Condensed Financial Information of the Parent Company - Summary of Parent Company Income Statement (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyIncomeStatementDetail</Role>
      <ShortName>Condensed Financial Information of the Parent Company - Summary of Parent Company Income Statement (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>114</Position>
    </Report>
    <Report instance="d247625d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>1115 - Disclosure - Condensed Financial Information of the Parent Company - Summary of Parent Company Cash Flow (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://en.ksyun.com/role/CondensedFinancialInformationOfTheParentCompanySummaryOfParentCompanyCashFlowDetail</Role>
      <ShortName>Condensed Financial Information of the Parent Company - Summary of Parent Company Cash Flow (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>115</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="20-F" original="d247625d20f.htm">d247625d20f.htm</File>
    <File>d247625dex121.htm</File>
    <File>d247625dex122.htm</File>
    <File>d247625dex131.htm</File>
    <File>d247625dex132.htm</File>
    <File>d247625dex151.htm</File>
    <File>d247625dex152.htm</File>
    <File>d247625dex153.htm</File>
    <File>d247625dex423.htm</File>
    <File>d247625dex424.htm</File>
    <File>d247625dex425.htm</File>
    <File>d247625dex81.htm</File>
    <File>kc-20211231.xsd</File>
    <File>kc-20211231_cal.xml</File>
    <File>kc-20211231_def.xml</File>
    <File>kc-20211231_lab.xml</File>
    <File>kc-20211231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>g247625dsp15.jpg</File>
    <File>g247625g00m01.jpg</File>
    <File>g247625g66a66.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1725">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="53">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
