Share-Based Compensation - Schedule of Share-Based Compensation Expenses (Detail) ¥ in Thousands, $ in Thousands |
12 Months Ended |
|
Dec. 31, 2017
CNY (¥)
|
Dec. 31, 2017
USD ($)
|
Dec. 31, 2016
CNY (¥)
|
Dec. 31, 2015
CNY (¥)
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Share-based compensation expense |
¥ 177,786
|
$ 27,325
|
¥ 195,393
|
¥ 107,945
|
| Cost of Revenues [Member] |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Share-based compensation expense |
15,166
|
2,331
|
12,310
|
6,939
|
| Sales and Marketing Expenses [Member] |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Share-based compensation expense |
53,064
|
8,155
|
50,814
|
36,584
|
| General and Administrative Expenses [Member] |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Share-based compensation expense |
59,954
|
9,215
|
77,965
|
40,142
|
| Product Development Expenses [Member] |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Share-based compensation expense |
¥ 49,602
|
$ 7,624
|
¥ 54,304
|
¥ 24,280
|